Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.14
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 5ab24ad683f76689cfe7e0c73f44855d
  8. PKG_DESCR:= The 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-nf-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_DEPENDS+= kmod-ip6-nf-iptables kmod-nf-conntrack-ipv6
  16. PKG_DEPENDS+= kmod-ip6-nf-filter kmod-ip6-nf-target-reject
  17. PKG_URL:= http://www.netfilter.org/
  18. PKG_SITES:= http://www.netfilter.org/projects/iptables/files/
  19. PKG_SUBPKGS:= IPTABLES IPTABLES_DEV
  20. PKGSC_IPTABLES_DEV:= devel
  21. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  22. include ${TOPDIR}/mk/package.mk
  23. # right now default extensions are builtin
  24. # use --disable-static in CONFIGURE_ARGS to change and optimize package
  25. #include ${LINUX_DIR}/.config
  26. $(eval $(call PKG_template,IPTABLES,iptables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. $(eval $(call PKG_template,IPTABLES_DEV,iptables-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR},${PKGSC_IPTABLES_DEV}))
  28. TARGET_LDFLAGS+= -fPIC
  29. CONFIGURE_ARGS+= --enable-devel
  30. iptables-install:
  31. ${INSTALL_DIR} ${IDIR_IPTABLES}/{usr/lib,etc,usr/sbin}
  32. ${INSTALL_DATA} ./files/firewall.conf ${IDIR_IPTABLES}/etc
  33. ${CP} ${WRKINST}/usr/sbin/iptables* ${IDIR_IPTABLES}/usr/sbin
  34. ${CP} ${WRKINST}/usr/sbin/xtables* ${IDIR_IPTABLES}/usr/sbin
  35. ${CP} ${WRKINST}/usr/lib/libiptc.so* ${IDIR_IPTABLES}/usr/lib
  36. ${CP} ${WRKINST}/usr/lib/libip4tc.so* ${IDIR_IPTABLES}/usr/lib
  37. ${CP} ${WRKINST}/usr/lib/libxtables.so* ${IDIR_IPTABLES}/usr/lib
  38. ${INSTALL_DIR} ${IDIR_IPTABLES}/{usr/lib,etc,usr/sbin}
  39. ${INSTALL_DATA} ./files/firewall6.conf ${IDIR_IPTABLES}/etc
  40. ${CP} ${WRKINST}/usr/sbin/ip6tables ${IDIR_IPTABLES}/usr/sbin
  41. ${CP} ${WRKINST}/usr/lib/libip6tc.so* ${IDIR_IPTABLES}/usr/lib
  42. iptables-dev-install:
  43. ${INSTALL_DIR} ${IDIR_IPTABLES_DEV}/usr/include
  44. ${CP} ${WRKINST}/usr/include/* ${IDIR_IPTABLES_DEV}/usr/include
  45. include ${TOPDIR}/mk/pkg-bottom.mk