Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_BUILDDEP:= autotool libnetfilter_conntrack
  11. PKG_URL:= http://www.netfilter.org/
  12. PKG_SITES:= http://www.netfilter.org/projects/iptables/files/
  13. PKG_OPTS:= dev
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. PKG_SUBPKGS:= IPTABLES IP6TABLES
  16. PKGSD_IPTABLES:= iptables for IPv4
  17. PKGSD_IP6TABLES:= iptables for IPv6
  18. PKGSS_IP6TABLES:= iptables
  19. include ${TOPDIR}/mk/package.mk
  20. # right now default extensions are builtin
  21. # use --disable-static in CONFIGURE_ARGS to change and optimize package
  22. #include ${LINUX_DIR}/.config
  23. $(eval $(call PKG_template,IPTABLES,iptables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_IPTABLES},${PKG_SECTION},${PKG_OPTS}))
  24. $(eval $(call PKG_template,IP6TABLES,ip6tables,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_IP6TABLES},${PKGSD_IP6TABLES},${PKG_SECTION},${PKG_OPTS}))
  25. AUTOTOOL_STYLE:= autoreconf
  26. TARGET_LDFLAGS+= -fPIC
  27. CONFIGURE_ARGS+= --enable-devel
  28. iptables-install:
  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/sbin/xtables* ${IDIR_IPTABLES}/usr/sbin
  33. ${CP} ${WRKINST}/usr/lib/libiptc.so* ${IDIR_IPTABLES}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/libip4tc.so* ${IDIR_IPTABLES}/usr/lib
  35. ${CP} ${WRKINST}/usr/lib/libxtables.so* ${IDIR_IPTABLES}/usr/lib
  36. ip6tables-install:
  37. ${INSTALL_DIR} ${IDIR_IP6TABLES}/{usr/lib,etc,usr/sbin}
  38. ${INSTALL_DATA} ./files/firewall6.conf ${IDIR_IP6TABLES}/etc
  39. ${CP} ${WRKINST}/usr/sbin/ip6tables ${IDIR_IP6TABLES}/usr/sbin
  40. ${CP} ${WRKINST}/usr/lib/libip6tc.so* ${IDIR_IP6TABLES}/usr/lib
  41. include ${TOPDIR}/mk/pkg-bottom.mk