Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.3.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 545698693b636cfc844aafc6729fd48a
  8. PKG_DESCR:= The netfilter firewalling software
  9. PKG_SECTION:= net
  10. PKG_URL:= http://www.netfilter.org
  11. PKG_SITES:= http://www.netfilter.org/projects/iptables/files/ \
  12. ftp://ftp.be.netfilter.org/pub/netfilter/iptables/ \
  13. ftp://ftp.de.netfilter.org/pub/netfilter/iptables/ \
  14. ftp://ftp.no.netfilter.org/pub/netfilter/iptables/
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. include ${TOPDIR}/mk/package.mk
  17. include ${LINUX_DIR}/.config
  18. $(eval $(call PKG_template,IPTABLES,iptables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,IPTABLES_UTILS,iptables-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. ifeq ($(ADK_IPV6),y)
  21. $(eval $(call PKG_template,IP6TABLES,ip6tables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. endif
  23. CONFIGURE_STYLE:= gnu
  24. CONFIGURE_ARGS+= --enable-devel \
  25. --libexecdir=/usr/lib \
  26. --with-kernel='${LINUX_DIR}'
  27. BUILD_STYLE:= auto
  28. INSTALL_STYLE:= auto
  29. SUB_INSTALL-${ADK_PACKAGE_IPTABLES_UTILS}+= iptables-utils-install
  30. ifeq ($(ADK_IPV6),y)
  31. SUB_INSTALL-${ADK_PACKAGE_IP6TABLES}+= ip6tables-install
  32. endif
  33. post-install: ${SUB_INSTALL-m} ${SUB_INSTALL-y}
  34. ${INSTALL_DIR} ${IDIR_IPTABLES}/usr/lib
  35. ${INSTALL_DIR} ${IDIR_IPTABLES}/usr/sbin
  36. ${INSTALL_DIR} ${IDIR_IPTABLES}/usr/lib/xtables
  37. ${INSTALL_BIN} ${WRKINST}/usr/sbin/iptables ${IDIR_IPTABLES}/usr/sbin/
  38. (cd ${WRKINST}/usr/lib/xtables ; \
  39. ${INSTALL_DATA} libipt_*.so ${IDIR_IPTABLES}/usr/lib/xtables/ \
  40. )
  41. (cd ${WRKINST}/usr/lib/xtables ; \
  42. ${INSTALL_DATA} libxt_*.so ${IDIR_IPTABLES}/usr/lib/xtables/ \
  43. )
  44. ${CP} ${WRKINST}/usr/lib/libiptc.so* ${IDIR_IPTABLES}/usr/lib
  45. ${CP} ${WRKINST}/usr/lib/libxtables.so* ${IDIR_IPTABLES}/usr/lib
  46. iptables-utils-install:
  47. ${INSTALL_DIR} ${IDIR_IPTABLES_UTILS}/usr/sbin
  48. ${INSTALL_BIN} ${WRKINST}/usr/sbin/iptables-{save,restore} ${IDIR_IPTABLES_UTILS}/usr/sbin/
  49. ip6tables-install:
  50. ${INSTALL_DIR} ${IDIR_IP6TABLES}/usr/sbin
  51. ${INSTALL_DIR} ${IDIR_IP6TABLES}/usr/lib/xtables
  52. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ip6tables ${IDIR_IP6TABLES}/usr/sbin/
  53. (cd ${WRKINST}/usr/lib/xtables ; \
  54. ${INSTALL_DATA} libip6t_*.so ${IDIR_IP6TABLES}/usr/lib/xtables/ \
  55. )
  56. include ${TOPDIR}/mk/pkg-bottom.mk