aboutsummaryrefslogtreecommitdiffstats
path: root/packages/udhcp/udhcp_0.9.8.bb
blob: 98f257a603ab547cbc05903a5762801d022bf386 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SECTION = "console/network"
DESCRIPTION = "Small dhcp client and dhcp server.  Designed for embedded use."
HOMEPAGE = "http://udhcp.busybox.net/"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
LICENSE = "GPL"

SRC_URI = "http://udhcp.busybox.net/source/udhcp-${PV}.tar.gz \
	   file://install.patch;patch=1 \
	   file://nostrip.patch;patch=1 \
	   file://gcc3.patch;patch=1"

inherit autotools

CFLAGS =+ "-UDEFAULT_SCRIPT -DDEFAULT_SCRIPT=\"${datadir}/udhcpc/default.script\" \
	   -DVERSION=\"${PV}\""
EXTRA_OEMAKE = "'CC=${CC}' 'LD=${CCLD}' \
		'CFLAGS=${CFLAGS}' 'LDFLAGS=${LDFLAGS}' \
		'prefix=${prefix}' 'sbindir=/sbin' \
		'usrsbindir=${sbindir}' \
		'usrbindir=${bindir}' \
		'datadir=${datadir}'"

PACKAGES = "udhcpc udhcpc-doc udhcpd udhcpd-doc"
FILES_udhcpc = "/sbin/udhcpc ${datadir}/udhcpc"
FILES_udhcpc-doc = "${mandir}/man8/udhcpc.8"
FILES_udhcpd = "${sbindir}/udhcpd \
		${bindir}/dumpleases"
FILES_udhcpd-doc = "${mandir}/man1/dumpleases.1 \
		    ${mandir}/man8/udhcpd.8 \
		    ${mandir}/man5/udhcpd.conf.5"