1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${TOPDIR}/rules.mk
9 PKG_MD5SUM
:= 44f13990132c20299c1994cd6f425140
10 PKG_DESCR
:= The netfilter firewalling software
12 PKG_URL
:= http
://www.netfilter.org
13 PKG_SITES
:= http
://www.netfilter.org
/projects
/iptables
/files
/ \
14 ftp
://ftp.be.netfilter.org
/pub
/netfilter
/iptables
/ \
15 ftp
://ftp.de.netfilter.org
/pub
/netfilter
/iptables
/ \
16 ftp
://ftp.no.netfilter.org
/pub
/netfilter
/iptables
/
18 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.bz2
20 include ${TOPDIR}/mk
/package.mk
22 # right now default extensions are builtin
23 # use --disable-static in CONFIGURE_ARGS to change and optimize package
24 #include ${LINUX_DIR}/.config
26 $(eval
$(call PKG_template
,IPTABLES
,iptables
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
27 $(eval
$(call PKG_template
,IP6TABLES
,ip6tables
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
30 CONFIGURE_ARGS
+= --enable-devel
34 SUB_INSTALL-
${ADK_PACKAGE_IP6TABLES}+= ip6tables-install
36 post-install
: ${SUB_INSTALL-m
} ${SUB_INSTALL-y
}
37 ${INSTALL_DIR} ${IDIR_IPTABLES}/{usr
/lib
,etc
,usr
/sbin
}
38 ${INSTALL_DATA} .
/files
/firewall.conf
${IDIR_IPTABLES}/etc
39 ${CP} ${WRKINST}/usr
/sbin
/iptables
* ${IDIR_IPTABLES}/usr
/sbin
/
40 ${CP} ${WRKINST}/usr
/lib
/libiptc.so
* ${IDIR_IPTABLES}/usr
/lib
41 ${CP} ${WRKINST}/usr
/lib
/libip4tc.so
* ${IDIR_IPTABLES}/usr
/lib
42 ${CP} ${WRKINST}/usr
/lib
/libxtables.so
* ${IDIR_IPTABLES}/usr
/lib
45 ${INSTALL_DIR} ${IDIR_IP6TABLES}/usr
/lib
46 ${INSTALL_DIR} ${IDIR_IP6TABLES}/usr
/sbin
47 ${INSTALL_BIN} ${WRKINST}/usr
/sbin
/ip6tables
${IDIR_IP6TABLES}/usr
/sbin
/
48 ${CP} ${WRKINST}/usr
/lib
/libip6tc.so
* ${IDIR_IP6TABLES}/usr
/lib
50 include ${TOPDIR}/mk
/pkg-bottom.mk