1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 0ac416bb55997ca8632174fd10737fd61cdb8dba2752160a335775bc21dc73c7
10 PKG_DESCR
:= dhcp server
12 PKG_URL
:= https
://www.isc.org
/software
/dhcp
/
13 PKG_SITES
:= https
://downloads.isc.org
/isc
/dhcp
/$(PKG_VERSION
)/
16 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
18 PKG_SUBPKGS
:= DHCP_SERVER DHCP_RELAY
19 PKGSD_DHCP_RELAY
:= dhcp relay server
21 include ${ADK_TOPDIR}/mk
/package.mk
23 $(eval
$(call PKG_template
,DHCP_SERVER
,dhcp-server
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
24 $(eval
$(call PKG_template
,DHCP_RELAY
,dhcp-relay
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DHCP_RELAY},${PKG_SECTION}))
26 MAKE_ENV
+= BUILD_CC
="$(HOST_CC)" \
27 BUILD_CFLAGS
="$(HOST_CFLAGS)" \
28 BUILD_CPPFLAGS
="$(HOST_CPPFLAGS)" \
29 BUILD_LDFLAGS
="$(HOST_LDFLAGS)"
31 CONFIGURE_ARGS
+= --with-randomdev
=/dev
/random
32 --with-srv-lease-file
=/var
/lib
/dhcp
/dhcpd.leases \
33 --with-srv6-lease-file
=/var
/lib
/dhcp
/dhcpd6.leases \
34 --with-cli-lease-file
=/var
/lib
/dhcp
/dhclient.leases \
35 --with-cli6-lease-file
=/var
/lib
/dhcp
/dhclient6.leases \
36 --with-srv-pid-file
=/var
/run
/dhcpd.pid \
37 --with-srv6-pid-file
=/var
/run
/dhcpd6.pid \
38 --with-cli-pid-file
=/var
/run
/dhclient.pid \
39 --with-cli6-pid-file
=/var
/run
/dhclient6.pid \
40 --with-relay-pid-file
=/var
/run
/dhcrelay.pid \
41 --with-relay6-pid-file
=/var
/run
/dhcrelay6.pid
44 cd
$(WRKBUILD
)/bind
; tar -xvf bind.
tar.gz
47 ${INSTALL_DIR} ${IDIR_DHCP_RELAY}/usr
/sbin
48 ${INSTALL_BIN} ${WRKINST}/usr
/sbin
/dhcrelay \
49 ${IDIR_DHCP_RELAY}/usr
/sbin
/
52 ${INSTALL_DIR} ${IDIR_DHCP_SERVER}/usr
/sbin
53 ${INSTALL_DIR} ${IDIR_DHCP_SERVER}/etc
54 ${INSTALL_DATA} .
/files
/dhcpd.conf
${IDIR_DHCP_SERVER}/etc
55 ${INSTALL_BIN} ${WRKINST}/usr
/sbin
/dhcpd \
56 ${IDIR_DHCP_SERVER}/usr
/sbin
/
58 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk