Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= iptables
  5. PKG_VERSION:= 1.4.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c67cf30e281a924def6426be0973df56
  8. PKG_DESCR:= The netfilter firewalling software
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= kmod-nf-ip-iptables kmod-nf-conntrack kmod-nf-conntrack-ipv4 kmod-nf-nat kmod-nf-ip-target-masquerade kmod-nf-ip-target-reject kmod-nf-ip-filter
  11. PKG_URL:= http://www.netfilter.org
  12. PKG_SITES:= http://www.netfilter.org/projects/iptables/files/ \
  13. ftp://ftp.be.netfilter.org/pub/netfilter/iptables/ \
  14. ftp://ftp.de.netfilter.org/pub/netfilter/iptables/ \
  15. ftp://ftp.no.netfilter.org/pub/netfilter/iptables/
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  17. include ${TOPDIR}/mk/package.mk
  18. # right now default extensions are builtin
  19. # use --disable-static in CONFIGURE_ARGS to change and optimize package
  20. #include ${LINUX_DIR}/.config
  21. $(eval $(call PKG_template,IPTABLES,iptables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,IP6TABLES,ip6tables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. CONFIGURE_STYLE:= gnu
  24. CONFIGURE_ARGS+= --enable-devel
  25. BUILD_STYLE:= auto
  26. INSTALL_STYLE:= auto
  27. SUB_INSTALL-${ADK_PACKAGE_IP6TABLES}+= ip6tables-install
  28. post-install: ${SUB_INSTALL-m} ${SUB_INSTALL-y}
  29. ${INSTALL_DIR} ${IDIR_IPTABLES}/{usr/lib,etc,usr/sbin}
  30. ${INSTALL_DATA} ./files/firewall.conf ${IDIR_IPTABLES}/etc
  31. ${CP} ${WRKINST}/usr/sbin/iptables* ${IDIR_IPTABLES}/usr/sbin/
  32. ${CP} ${WRKINST}/usr/lib/libiptc.so* ${IDIR_IPTABLES}/usr/lib
  33. ${CP} ${WRKINST}/usr/lib/libip4tc.so* ${IDIR_IPTABLES}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/libxtables.so* ${IDIR_IPTABLES}/usr/lib
  35. ip6tables-install:
  36. ${INSTALL_DIR} ${IDIR_IP6TABLES}/usr/lib
  37. ${INSTALL_DIR} ${IDIR_IP6TABLES}/usr/sbin
  38. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ip6tables ${IDIR_IP6TABLES}/usr/sbin/
  39. ${CP} ${WRKINST}/usr/lib/libip6tc.so* ${IDIR_IP6TABLES}/usr/lib
  40. include ${TOPDIR}/mk/pkg-bottom.mk