Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:= 6
  7. PKG_MD5SUM:= 536d048c8e8eeebcd9757d0863ebb0c0
  8. PKG_DESCR:= netfilter firewalling software
  9. PKG_SECTION:= firewall
  10. PKG_DEPENDS:= libnetfilter_conntrack libmnl libnfnetlink
  11. PKG_BUILDDEP:= autotool libnetfilter_conntrack
  12. PKG_URL:= http://www.netfilter.org/
  13. PKG_SITES:= http://www.netfilter.org/projects/iptables/files/
  14. PKG_OPTS:= dev
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. include ${TOPDIR}/mk/package.mk
  17. # right now default extensions are builtin
  18. # use --disable-static in CONFIGURE_ARGS to change and optimize package
  19. #include ${LINUX_DIR}/.config
  20. $(eval $(call PKG_template,IPTABLES,iptables,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  21. AUTOTOOL_STYLE:= autoreconf
  22. TARGET_LDFLAGS+= -fPIC
  23. CONFIGURE_ARGS+= --enable-devel
  24. iptables-install:
  25. ${INSTALL_DIR} ${IDIR_IPTABLES}/{usr/lib,etc,usr/sbin}
  26. ${INSTALL_DATA} ./files/firewall.conf ${IDIR_IPTABLES}/etc
  27. ${INSTALL_BIN} ${WRKINST}/usr/sbin/iptables ${IDIR_IPTABLES}/usr/sbin
  28. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ip6tables ${IDIR_IPTABLES}/usr/sbin
  29. ${INSTALL_BIN} ${WRKINST}/usr/sbin/iptables-{save,restore} \
  30. ${IDIR_IPTABLES}/usr/sbin
  31. ${CP} ${WRKINST}/usr/sbin/xtables-multi ${IDIR_IPTABLES}/usr/sbin
  32. ${CP} ${WRKINST}/usr/lib/libiptc.so* ${IDIR_IPTABLES}/usr/lib
  33. ${CP} ${WRKINST}/usr/lib/libip4tc.so* ${IDIR_IPTABLES}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/libip6tc.so* ${IDIR_IPTABLES}/usr/lib
  35. ${CP} ${WRKINST}/usr/lib/libxtables.so* ${IDIR_IPTABLES}/usr/lib
  36. include ${TOPDIR}/mk/pkg-bottom.mk