diff options
| -rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp3.inc | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp3.inc b/meta/recipes-connectivity/dhcp/dhcp3.inc deleted file mode 100644 index 6c7483eae1..0000000000 --- a/meta/recipes-connectivity/dhcp/dhcp3.inc +++ /dev/null | |||
| @@ -1,49 +0,0 @@ | |||
| 1 | SECTION = "console/network" | ||
| 2 | DESCRIPTION = "Internet Software Consortium DHCP package" | ||
| 3 | HOMEPAGE = "http://www.isc.org/" | ||
| 4 | |||
| 5 | LICENSE = "ISC" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=4;md5=bb6fd41f5895b67088ebea61ad365e74" | ||
| 7 | |||
| 8 | SRC_URI = "ftp://ftp.isc.org/isc/dhcp/dhcp-${PV}.tar.gz \ | ||
| 9 | file://init-relay file://default-relay \ | ||
| 10 | file://init-server file://default-server \ | ||
| 11 | file://dhclient.conf file://dhcpd.conf" | ||
| 12 | |||
| 13 | inherit autotools | ||
| 14 | |||
| 15 | TARGET_CFLAGS += "-D_GNU_SOURCE" | ||
| 16 | |||
| 17 | do_compile() { | ||
| 18 | make RANLIB=${RANLIB} PREDEFINES='-D_PATH_DHCPD_DB=\"/var/lib/dhcp/dhcpd.leases\" \ | ||
| 19 | -D_PATH_DHCLIENT_DB=\"/var/lib/dhcp/dhclient.leases\" \ | ||
| 20 | -D_PATH_DHCLIENT_SCRIPT=\"/sbin/dhclient-script\" \ | ||
| 21 | -D_PATH_DHCPD_CONF=\"/etc/dhcp/dhcpd.conf\" \ | ||
| 22 | -D_PATH_DHCLIENT_CONF=\"/etc/dhcp/dhclient.conf\"' | ||
| 23 | } | ||
| 24 | |||
| 25 | do_install() { | ||
| 26 | make -e DESTDIR=${D} USRMANDIR=${mandir}/man1 ADMMANDIR=${mandir}/man8 FFMANDIR=${mandir}/man5 LIBMANDIR=${mandir}/man3 LIBDIR=${libdir} INCDIR=${includedir} install | ||
| 27 | install -d ${D}${sysconfdir}/init.d | ||
| 28 | install -d ${D}${sysconfdir}/default | ||
| 29 | install -d ${D}${sysconfdir}/dhcp | ||
| 30 | install -m 0755 ${WORKDIR}/init-relay ${D}${sysconfdir}/init.d/dhcp-relay | ||
| 31 | install -m 0644 ${WORKDIR}/default-relay ${D}${sysconfdir}/default/dhcp-relay | ||
| 32 | install -m 0755 ${WORKDIR}/init-server ${D}${sysconfdir}/init.d/dhcp-server | ||
| 33 | install -m 0644 ${WORKDIR}/default-server ${D}${sysconfdir}/default/dhcp-server | ||
| 34 | install -m 0644 ${WORKDIR}/dhclient.conf ${D}${sysconfdir}/dhcp/dhclient.conf | ||
| 35 | install -m 0644 ${WORKDIR}/dhcpd.conf ${D}${sysconfdir}/dhcp/dhcpd.conf | ||
| 36 | install -d ${D}${base_sbindir}/ | ||
| 37 | mv ${D}${sbindir}/dhclient ${D}${base_sbindir}/ | ||
| 38 | install -m 0755 ${S}/client/scripts/linux ${D}${base_sbindir}/dhclient-script | ||
| 39 | } | ||
| 40 | |||
| 41 | PACKAGES += "dhcp-server dhcp-client dhcp-relay dhcp-omshell" | ||
| 42 | FILES_${PN} = "" | ||
| 43 | FILES_dhcp-server = "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server ${sysconfdir}/default/dhcp-server ${sysconfdir}/dhcp/dhcpd.conf" | ||
| 44 | FILES_dhcp-relay = "${sbindir}/dhcrelay ${sysconfdir}/init.d/dhcp-relay ${sysconfdir}/default/dhcp-relay" | ||
| 45 | |||
| 46 | FILES_dhcp-client = "${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${sysconfdir}/dhcp/dhclient.conf" | ||
| 47 | RDEPENDS_dhcp-client = "bash" | ||
| 48 | |||
| 49 | FILES_dhcp-omshell = "${bindir}/omshell" | ||
