Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / udhcp / udhcp_0.9.8.oe
1 SECTION = "console/network"
2 DESCRIPTION = "Small dhcp client and dhcp server.  Designed for embedded use."
3 HOMEPAGE = "http://udhcp.busybox.net/"
4 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
5 LICENSE = "GPL"
6
7 SRC_URI = "http://udhcp.busybox.net/source/udhcp-${PV}.tar.gz \
8            file://install.patch;patch=1 \
9            file://nostrip.patch;patch=1 \
10            file://gcc3.patch;patch=1"
11
12 inherit autotools
13
14 CFLAGS =+ "-UDEFAULT_SCRIPT -DDEFAULT_SCRIPT=\"${datadir}/udhcpc/default.script\" \
15            -DVERSION=\"${PV}\""
16 EXTRA_OEMAKE = "'CC=${CC}' 'LD=${CCLD}' \
17                 'CFLAGS=${CFLAGS}' 'LDFLAGS=${LDFLAGS}' \
18                 'prefix=${prefix}' 'sbindir=/sbin' \
19                 'usrsbindir=${sbindir}' \
20                 'usrbindir=${bindir}' \
21                 'datadir=${datadir}'"
22
23 PACKAGES = "udhcpc udhcpc-doc udhcpd udhcpd-doc"
24 FILES_udhcpc = "/sbin/udhcpc ${datadir}/udhcpc"
25 FILES_udhcpc-doc = "${mandir}/man8/udhcpc.8"
26 FILES_udhcpd = "${sbindir}/udhcpd \
27                 ${bindir}/dumpleases"
28 FILES_udhcpd-doc = "${mandir}/man1/dumpleases.1 \
29                     ${mandir}/man8/udhcpd.8 \
30                     ${mandir}/man5/udhcpd.conf.5"