diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/iptables/Makefile |
Initial import
Diffstat (limited to 'package/iptables/Makefile')
-rw-r--r-- | package/iptables/Makefile | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/package/iptables/Makefile b/package/iptables/Makefile new file mode 100644 index 000000000..ba7de8fad --- /dev/null +++ b/package/iptables/Makefile @@ -0,0 +1,65 @@ +# $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:= iptables +PKG_VERSION:= 1.4.3.2 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 545698693b636cfc844aafc6729fd48a +MASTER_SITES:= http://www.netfilter.org/projects/iptables/files/ \ + ftp://ftp.be.netfilter.org/pub/netfilter/iptables/ \ + ftp://ftp.de.netfilter.org/pub/netfilter/iptables/ \ + ftp://ftp.no.netfilter.org/pub/netfilter/iptables/ +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 + +include ${TOPDIR}/mk/package.mk +include ${LINUX_DIR}/.config + +$(eval $(call PKG_template,IPTABLES,iptables,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) +$(eval $(call PKG_template,IPTABLES_UTILS,iptables-utils,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) +ifeq ($(ADK_IPV6),y) +$(eval $(call PKG_template,IP6TABLES,ip6tables,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) +endif + +CONFIGURE_STYLE:= gnu +CONFIGURE_ARGS+= --enable-devel \ + --libexecdir=/usr/lib \ + --with-kernel='${LINUX_DIR}' +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +SUB_INSTALL-${ADK_PACKAGE_IPTABLES_UTILS}+= iptables-utils-install +ifeq ($(ADK_IPV6),y) +SUB_INSTALL-${ADK_PACKAGE_IP6TABLES}+= ip6tables-install +endif + +post-install: ${SUB_INSTALL-m} ${SUB_INSTALL-y} + ${INSTALL_DIR} ${IDIR_IPTABLES}/usr/lib + ${INSTALL_DIR} ${IDIR_IPTABLES}/usr/sbin + ${INSTALL_DIR} ${IDIR_IPTABLES}/usr/lib/xtables + ${INSTALL_BIN} ${WRKINST}/usr/sbin/iptables ${IDIR_IPTABLES}/usr/sbin/ + (cd ${WRKINST}/usr/lib/xtables ; \ + ${INSTALL_DATA} libipt_*.so ${IDIR_IPTABLES}/usr/lib/xtables/ \ + ) + (cd ${WRKINST}/usr/lib/xtables ; \ + ${INSTALL_DATA} libxt_*.so ${IDIR_IPTABLES}/usr/lib/xtables/ \ + ) + ${CP} ${WRKINST}/usr/lib/libiptc.so* ${IDIR_IPTABLES}/usr/lib + ${CP} ${WRKINST}/usr/lib/libxtables.so* ${IDIR_IPTABLES}/usr/lib + +iptables-utils-install: + ${INSTALL_DIR} ${IDIR_IPTABLES_UTILS}/usr/sbin + ${INSTALL_BIN} ${WRKINST}/usr/sbin/iptables-{save,restore} ${IDIR_IPTABLES_UTILS}/usr/sbin/ + +ip6tables-install: + ${INSTALL_DIR} ${IDIR_IP6TABLES}/usr/sbin + ${INSTALL_DIR} ${IDIR_IP6TABLES}/usr/lib/xtables + ${INSTALL_BIN} ${WRKINST}/usr/sbin/ip6tables ${IDIR_IP6TABLES}/usr/sbin/ + (cd ${WRKINST}/usr/lib/xtables ; \ + ${INSTALL_DATA} libip6t_*.so ${IDIR_IP6TABLES}/usr/lib/xtables/ \ + ) + +include ${TOPDIR}/mk/pkg-bottom.mk |