Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= iptables
  7. PKG_VERSION:= 1.4.3.2
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 545698693b636cfc844aafc6729fd48a
  10. PKG_DESCR:= The netfilter firewalling software
  11. PKG_SECTION:= net
  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/
  17. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  18. include ${TOPDIR}/mk/package.mk
  19. include ${LINUX_DIR}/.config
  20. $(eval $(call PKG_template,IPTABLES,iptables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. $(eval $(call PKG_template,IPTABLES_UTILS,iptables-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. ifeq ($(ADK_IPV6),y)
  23. $(eval $(call PKG_template,IP6TABLES,ip6tables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. endif
  25. CONFIGURE_STYLE:= gnu
  26. CONFIGURE_ARGS+= --enable-devel \
  27. --libexecdir=/usr/lib \
  28. --with-kernel='${LINUX_DIR}'
  29. BUILD_STYLE:= auto
  30. INSTALL_STYLE:= auto
  31. SUB_INSTALL-${ADK_PACKAGE_IPTABLES_UTILS}+= iptables-utils-install
  32. ifeq ($(ADK_IPV6),y)
  33. SUB_INSTALL-${ADK_PACKAGE_IP6TABLES}+= ip6tables-install
  34. endif
  35. post-install: ${SUB_INSTALL-m} ${SUB_INSTALL-y}
  36. ${INSTALL_DIR} ${IDIR_IPTABLES}/usr/lib
  37. ${INSTALL_DIR} ${IDIR_IPTABLES}/usr/sbin
  38. ${INSTALL_DIR} ${IDIR_IPTABLES}/usr/lib/xtables
  39. ${INSTALL_BIN} ${WRKINST}/usr/sbin/iptables ${IDIR_IPTABLES}/usr/sbin/
  40. (cd ${WRKINST}/usr/lib/xtables ; \
  41. ${INSTALL_DATA} libipt_*.so ${IDIR_IPTABLES}/usr/lib/xtables/ \
  42. )
  43. (cd ${WRKINST}/usr/lib/xtables ; \
  44. ${INSTALL_DATA} libxt_*.so ${IDIR_IPTABLES}/usr/lib/xtables/ \
  45. )
  46. ${CP} ${WRKINST}/usr/lib/libiptc.so* ${IDIR_IPTABLES}/usr/lib
  47. ${CP} ${WRKINST}/usr/lib/libxtables.so* ${IDIR_IPTABLES}/usr/lib
  48. iptables-utils-install:
  49. ${INSTALL_DIR} ${IDIR_IPTABLES_UTILS}/usr/sbin
  50. ${INSTALL_BIN} ${WRKINST}/usr/sbin/iptables-{save,restore} ${IDIR_IPTABLES_UTILS}/usr/sbin/
  51. ip6tables-install:
  52. ${INSTALL_DIR} ${IDIR_IP6TABLES}/usr/sbin
  53. ${INSTALL_DIR} ${IDIR_IP6TABLES}/usr/lib/xtables
  54. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ip6tables ${IDIR_IP6TABLES}/usr/sbin/
  55. (cd ${WRKINST}/usr/lib/xtables ; \
  56. ${INSTALL_DATA} libip6t_*.so ${IDIR_IP6TABLES}/usr/lib/xtables/ \
  57. )
  58. include ${TOPDIR}/mk/pkg-bottom.mk