summaryrefslogtreecommitdiff
path: root/package/rarpd/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/rarpd/Makefile
Initial import
Diffstat (limited to 'package/rarpd/Makefile')
-rw-r--r--package/rarpd/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/package/rarpd/Makefile b/package/rarpd/Makefile
new file mode 100644
index 000000000..c32eb13fa
--- /dev/null
+++ b/package/rarpd/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:= rarpd
+PKG_VERSION:= 1.1
+PKG_RELEASE:= 10
+PKG_MD5SUM:= 04e2ca849e758d0b88c8281775ec3b58
+MASTER_SITES:= ftp://ftp.dementia.org/pub/net-tools/
+
+# Hack Alert!
+# The configure script for rarpd, when used with the --with-libnet option
+# doesn't correctly detect and set -DNEW_LIBNET_INTERFACE.
+EXTRA_CFLAGS= -DNEW_LIBNET_INTERFACE
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,RARPD,rarpd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ARGS+= --with-libnet="${STAGING_DIR}/usr" \
+ --with-pcap="${STAGING_DIR}/usr"
+TCFLAGS+= ${EXTRA_CFLAGS}
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_RARPD}/usr/sbin
+ ${INSTALL_DIR} ${IDIR_RARPD}/etc/init.d
+ ${INSTALL_BIN} ${WRKINST}/sbin/rarpd ${IDIR_RARPD}/usr/sbin/
+ ${INSTALL_BIN} ./files/rarpd.init ${IDIR_RARPD}/etc/init.d/rarpd
+
+include ${TOPDIR}/mk/pkg-bottom.mk