Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.21
  6. PKG_RELEASE:= 5
  7. PKG_MD5SUM:= 536d048c8e8eeebcd9757d0863ebb0c0
  8. PKG_DESCR:= netfilter firewalling software
  9. PKG_SECTION:= firewall
  10. PKG_DEPENDS:= kmod-ip-nf-iptables kmod-nf-conntrack
  11. PKG_DEPENDS+= kmod-nf-conntrack-ipv4 kmod-full-nat
  12. PKG_DEPENDS+= kmod-ip-nf-target-masquerade kmod-ip-nf-target-reject
  13. PKG_DEPENDS+= kmod-ip-nf-filter kmod-ip-nf-match-state
  14. PKG_DEPENDS+= kmod-netfilter-xt-target-tcpmss
  15. PKG_BUILDDEP:= autotool libnetfilter_conntrack
  16. PKG_URL:= http://www.netfilter.org/
  17. PKG_SITES:= http://www.netfilter.org/projects/iptables/files/
  18. PKG_OPTS:= dev
  19. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  20. PKG_SUBPKGS:= IPTABLES IP6TABLES
  21. PKGSD_IPTABLES:= iptables for IPv4
  22. PKGSD_IP6TABLES:= iptables for IPv6
  23. PKGSS_IP6TABLES:= iptables kmod-ip6-nf-iptables kmod-nf-conntrack-ipv6 kmod-ip6-nf-filter kmod-ip6-nf-target-reject
  24. include ${TOPDIR}/mk/package.mk
  25. # right now default extensions are builtin
  26. # use --disable-static in CONFIGURE_ARGS to change and optimize package
  27. #include ${LINUX_DIR}/.config
  28. $(eval $(call PKG_template,IPTABLES,iptables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_IPTABLES},${PKG_SECTION},${PKG_OPTS}))
  29. $(eval $(call PKG_template,IP6TABLES,ip6tables,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_IP6TABLES},${PKGSD_IP6TABLES},${PKG_SECTION},${PKG_OPTS}))
  30. AUTOTOOL_STYLE:= autoreconf
  31. TARGET_LDFLAGS+= -fPIC
  32. CONFIGURE_ARGS+= --enable-devel
  33. iptables-install:
  34. ${INSTALL_DIR} ${IDIR_IPTABLES}/{usr/lib,etc,usr/sbin}
  35. ${INSTALL_DATA} ./files/firewall.conf ${IDIR_IPTABLES}/etc
  36. ${CP} ${WRKINST}/usr/sbin/iptables* ${IDIR_IPTABLES}/usr/sbin
  37. ${CP} ${WRKINST}/usr/sbin/xtables* ${IDIR_IPTABLES}/usr/sbin
  38. ${CP} ${WRKINST}/usr/lib/libiptc.so* ${IDIR_IPTABLES}/usr/lib
  39. ${CP} ${WRKINST}/usr/lib/libip4tc.so* ${IDIR_IPTABLES}/usr/lib
  40. ${CP} ${WRKINST}/usr/lib/libxtables.so* ${IDIR_IPTABLES}/usr/lib
  41. ip6tables-install:
  42. ${INSTALL_DIR} ${IDIR_IP6TABLES}/{usr/lib,etc,usr/sbin}
  43. ${INSTALL_DATA} ./files/firewall6.conf ${IDIR_IP6TABLES}/etc
  44. ${CP} ${WRKINST}/usr/sbin/ip6tables ${IDIR_IP6TABLES}/usr/sbin
  45. ${CP} ${WRKINST}/usr/lib/libip6tc.so* ${IDIR_IP6TABLES}/usr/lib
  46. include ${TOPDIR}/mk/pkg-bottom.mk