summaryrefslogtreecommitdiff
path: root/package/iptables
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-02-26 23:39:17 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-02-26 23:39:17 +0100
commit26f7c999e7c586eeb0eabeaf34ebbc9b3c145d7c (patch)
tree22f152f92d6c1e9c325583f46278a385ffefd38b /package/iptables
parent67cb0759e674470fa53fd3711d8460fd4a12c1a3 (diff)
another round of native compile fixes
Diffstat (limited to 'package/iptables')
-rw-r--r--package/iptables/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/package/iptables/Makefile b/package/iptables/Makefile
index e20e117c5..9a39ffe60 100644
--- a/package/iptables/Makefile
+++ b/package/iptables/Makefile
@@ -16,10 +16,10 @@ PKG_DEPENDS+= kmod-ip-nf-filter kmod-ip-nf-match-state
PKG_DEPENDS+= kmod-netfilter-xt-target-tcpmss
PKG_DEPENDS6:= kmod-ip6-nf-iptables kmod-nf-conntrack-ipv6
PKG_DEPENDS6+= kmod-ip6-nf-filter kmod-ip6-nf-target-reject
-PKG_URL:= http://www.netfilter.org
+PKG_URL:= http://www.netfilter.org/
PKG_SITES:= http://www.netfilter.org/projects/iptables/files/
-PKG_SUBPKGS:= IPTABLES IP6TABLES
+PKG_SUBPKGS:= IPTABLES IP6TABLES IPTABLES_DEV
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
@@ -30,22 +30,27 @@ include ${TOPDIR}/mk/package.mk
#include ${LINUX_DIR}/.config
$(eval $(call PKG_template,IPTABLES,iptables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,IPTABLES_DEV,iptables-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,IP6TABLES,ip6tables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS6},${PKG_DESCR},${PKG_SECTION}))
CONFIGURE_ARGS+= --enable-devel
-post-install:
+iptables-install:
${INSTALL_DIR} ${IDIR_IPTABLES}/{usr/lib,etc,usr/sbin}
${INSTALL_DATA} ./files/firewall.conf ${IDIR_IPTABLES}/etc
- ${CP} ${WRKINST}/usr/sbin/iptables* ${IDIR_IPTABLES}/usr/sbin/
+ ${CP} ${WRKINST}/usr/sbin/iptables* ${IDIR_IPTABLES}/usr/sbin
${CP} ${WRKINST}/usr/lib/libiptc.so* ${IDIR_IPTABLES}/usr/lib
${CP} ${WRKINST}/usr/lib/libip4tc.so* ${IDIR_IPTABLES}/usr/lib
${CP} ${WRKINST}/usr/lib/libxtables.so* ${IDIR_IPTABLES}/usr/lib
+iptables-dev-install:
+ ${INSTALL_DIR} ${IDIR_IPTABLES_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* ${IDIR_IPTABLES_DEV}/usr/include
+
ip6tables-install:
${INSTALL_DIR} ${IDIR_IP6TABLES}/{usr/lib,etc,usr/sbin}
${INSTALL_DATA} ./files/firewall6.conf ${IDIR_IP6TABLES}/etc
- ${INSTALL_BIN} ${WRKINST}/usr/sbin/ip6tables ${IDIR_IP6TABLES}/usr/sbin/
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/ip6tables ${IDIR_IP6TABLES}/usr/sbin
${CP} ${WRKINST}/usr/lib/libip6tc.so* ${IDIR_IP6TABLES}/usr/lib
include ${TOPDIR}/mk/pkg-bottom.mk