summaryrefslogtreecommitdiff
path: root/package/dhcp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/dhcp/Makefile')
-rw-r--r--package/dhcp/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/dhcp/Makefile b/package/dhcp/Makefile
new file mode 100644
index 000000000..c2e49a0b6
--- /dev/null
+++ b/package/dhcp/Makefile
@@ -0,0 +1,37 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= dhcp
+PKG_VERSION:= 3.0.7
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 426bfa1712ababaff4be6dadee9c1982
+MASTER_SITES:= ftp://ftp.isc.org/isc/dhcp/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,DHCP_RELAY,dhcp-relay,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,DHCP_SERVER,dhcp-server,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+do-configure:
+ (cd ${WRKBUILD} ; \
+ ./configure --copts "${TARGET_CFLAGS}" linux-2.2 \
+ );
+
+MAKE_FLAGS+= RANLIB=${TARGET_CROSS}ranlib
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_DHCP_RELAY}/usr/sbin
+ ${CP} ${WRKINST}/usr/sbin/dhcrelay ${IDIR_DHCP_RELAY}/usr/sbin/
+ ${INSTALL_DIR} ${IDIR_DHCP_SERVER}/etc/init.d
+ ${INSTALL_DIR} ${IDIR_DHCP_SERVER}/usr/sbin
+ ${INSTALL_BIN} ./files/dhcpd.init \
+ ${IDIR_DHCP_SERVER}/etc/init.d/dhcpd
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/dhcpd ${IDIR_DHCP_SERVER}/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk