summaryrefslogtreecommitdiff
path: root/package/dhcp-forwarder/Makefile
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/dhcp-forwarder/Makefile
Initial import
Diffstat (limited to 'package/dhcp-forwarder/Makefile')
-rw-r--r--package/dhcp-forwarder/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/package/dhcp-forwarder/Makefile b/package/dhcp-forwarder/Makefile
new file mode 100644
index 000000000..880e1a3cb
--- /dev/null
+++ b/package/dhcp-forwarder/Makefile
@@ -0,0 +1,36 @@
+# $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-forwarder
+PKG_VERSION:= 0.7
+PKG_RELEASE:= 12
+PKG_MD5SUM:= e7f876e615ebc3f96418f6477b4451e2
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+MASTER_SITES:= http://savannah.nongnu.org/download/dhcp-fwd/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,DHCP_FORWARDER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= gnu
+CONFIGURE_ENV+= ac_cv_func_malloc_0_nonnull="yes"
+CONFIGURE_ARGS+= --disable-dietlibc
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+XAKE_FLAGS+= cfg_filename="/etc/dhcp-fwd.conf"
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_DHCP_FORWARDER}/etc/init.d
+ ${INSTALL_DIR} ${IDIR_DHCP_FORWARDER}/usr/sbin
+ ${INSTALL_DATA} ${WRKBUILD}/contrib/dhcp-fwd.conf \
+ ${IDIR_DHCP_FORWARDER}/etc/
+ ${INSTALL_BIN} ./files/dhcp-fwd.init \
+ ${IDIR_DHCP_FORWARDER}/etc/init.d/dhcp-fwd
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/dhcp-fwd \
+ ${IDIR_DHCP_FORWARDER}/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk