summaryrefslogtreecommitdiff
path: root/package/dhcp-forwarder/Makefile
blob: ef7b77431a25fd6624b57c973525cf436e667d05 (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
31
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		dhcp-forwarder
PKG_VERSION:=		0.10
PKG_RELEASE:=		1
PKG_HASH:=		a1d01bea1d768212f5d78e5f5aa7d433a53df7ff29cb3d1d924967581d00d7a1
PKG_DESCR:=		dhcp relay agent
PKG_SECTION:=		net/dns
PKG_URL:=		http://www.nongnu.org/dhcp-fwd/
PKG_SITES:=		http://savannah.nongnu.org/download/dhcp-fwd/

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,DHCP_FORWARDER,dhcp-forwarder,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ARGS+=	--disable-dietlibc
CONFIGURE_ENV+=		ac_cv_func_malloc_0_nonnull=yes
XAKE_FLAGS+=		cfg_filename="/etc/dhcp-fwd.conf"

dhcp-forwarder-install:
	${INSTALL_DIR} ${IDIR_DHCP_FORWARDER}/usr/sbin \
		${IDIR_DHCP_FORWARDER}/etc
	${INSTALL_DATA} ${WRKBUILD}/contrib/dhcp-fwd.conf \
		${IDIR_DHCP_FORWARDER}/etc
	${INSTALL_BIN} ${WRKINST}/usr/sbin/dhcp-fwd \
		${IDIR_DHCP_FORWARDER}/usr/sbin

include ${ADK_TOPDIR}/mk/pkg-bottom.mk