netbase: fix non working wpa_supplicant detection in network restarts. Push PR.
[openembedded.git] / recipes / dhcp / dhcp_3.0.1.bb
1 SECTION = "console/network"
2 DESCRIPTION = "Internet Software Consortium DHCP package"
3 HOMEPAGE = "http://www.isc.org/"
4 LICENSE = "BSD"
5 PR = "r4"
6 SRC_URI = "ftp://ftp.isc.org/isc/dhcp/dhcp-3.0-history/dhcp-${PV}.tar.gz \
7            file://noattrmode.patch;patch=1 \
8            file://fixincludes.patch;patch=1 \
9            file://useless-use-of-bash.patch;patch=1 \
10            file://init-relay file://default-relay \
11            file://init-server file://default-server \
12            file://dhclient.conf file://dhcpd.conf"
13
14 do_configure() {
15         ./configure
16 }
17
18 do_compile() {
19         make RANLIB=${RANLIB} PREDEFINES='-D_PATH_DHCPD_DB=\"/var/lib/dhcp/dhcpd.leases\" \
20         -D_PATH_DHCLIENT_DB=\"/var/lib/dhcp/dhclient.leases\" \
21         -D_PATH_DHCLIENT_SCRIPT=\"/sbin/dhclient-script\" \
22         -D_PATH_DHCPD_CONF=\"/etc/dhcp/dhcpd.conf\" \
23         -D_PATH_DHCLIENT_CONF=\"/etc/dhcp/dhclient.conf\"'
24 }
25
26 do_install() {
27         make -e DESTDIR=${D} USRMANDIR=${mandir}/man1 ADMMANDIR=${mandir}/man8 FFMANDIR=${mandir}/man5 LIBMANDIR=${mandir}/man3 LIBDIR=${libdir} INCDIR=${includedir} install
28         install -d ${D}${sysconfdir}/init.d
29         install -d ${D}${sysconfdir}/default
30         install -d ${D}${sysconfdir}/dhcp
31         install -m 0755 ${WORKDIR}/init-relay ${D}${sysconfdir}/init.d/dhcp-relay
32         install -m 0644 ${WORKDIR}/default-relay ${D}${sysconfdir}/default/dhcp-relay
33         install -m 0755 ${WORKDIR}/init-server ${D}${sysconfdir}/init.d/dhcp-server
34         install -m 0644 ${WORKDIR}/default-server ${D}${sysconfdir}/default/dhcp-server
35         install -m 0644 ${WORKDIR}/dhclient.conf ${D}${sysconfdir}/dhcp/dhclient.conf
36         install -m 0644 ${WORKDIR}/dhcpd.conf ${D}${sysconfdir}/dhcp/dhcpd.conf
37         install -d ${D}/var/lib/dhcp
38 }
39
40 PACKAGES = "${PN}-dbg dhcp-server dhcp-client dhcp-relay dhcp-omshell dhcp-dev dhcp-doc"
41 FILES_dhcp-server = "${sbindir}/dhcpd /etc/init.d/dhcp-server /etc/default/dhcp-server /etc/dhcp/dhcpd.conf"
42 FILES_dhcp-relay = "${sbindir}/dhcrelay /etc/init.d/dhcp-relay /etc/default/dhcp-relay"
43 FILES_dhcp-client = "/sbin/ /etc/dhcp/dhclient.conf /var/lib/dhcp"
44 FILES_dhcp-omshell = "${bindir}/omshell"
45
46 CONFFILES_dhcp-server_nylon = "/etc/dhcp/dhcpd.conf"
47 CONFFILES_dhcp-relay_nylon = "/etc/default/dhcp-relay"
48 CONFFILES_dhcp-client_nylon = "/etc/dhcp/dhclient.conf"