iptables_1.6.1.bb 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. SUMMARY = "Tools for managing kernel packet filtering capabilities"
  2. DESCRIPTION = "iptables is the userspace command line program used to configure and control network packet \
  3. filtering code in Linux."
  4. HOMEPAGE = "http://www.netfilter.org/"
  5. BUGTRACKER = "http://bugzilla.netfilter.org/"
  6. LICENSE = "GPLv2+"
  7. LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263\
  8. file://iptables/iptables.c;beginline=13;endline=25;md5=c5cffd09974558cf27d0f763df2a12dc"
  9. RRECOMMENDS_${PN} = "kernel-module-x-tables \
  10. kernel-module-ip-tables \
  11. kernel-module-iptable-filter \
  12. kernel-module-iptable-nat \
  13. kernel-module-nf-defrag-ipv4 \
  14. kernel-module-nf-conntrack \
  15. kernel-module-nf-conntrack-ipv4 \
  16. kernel-module-nf-nat \
  17. kernel-module-ipt-masquerade"
  18. FILES_${PN} =+ "${libdir}/xtables/ ${datadir}/xtables"
  19. SRC_URI = "http://netfilter.org/projects/iptables/files/iptables-${PV}.tar.bz2 \
  20. file://types.h-add-defines-that-are-required-for-if_packet.patch \
  21. file://0001-configure-Add-option-to-enable-disable-libnfnetlink.patch \
  22. file://0002-configure.ac-only-check-conntrack-when-libnfnetlink-enabled.patch \
  23. "
  24. SRC_URI_append_libc-musl = " file://0001-fix-build-with-musl.patch"
  25. SRC_URI[md5sum] = "ab38a33806b6182c6f53d6afb4619add"
  26. SRC_URI[sha256sum] = "0fc2d7bd5d7be11311726466789d4c65fb4c8e096c9182b56ce97440864f0cf5"
  27. inherit autotools pkgconfig
  28. EXTRA_OECONF = "--with-kernel=${STAGING_INCDIR} \
  29. "
  30. PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
  31. PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
  32. # libnfnetlink recipe is in meta-networking layer
  33. PACKAGECONFIG[libnfnetlink] = "--enable-libnfnetlink,--disable-libnfnetlink,libnfnetlink libnetfilter-conntrack"
  34. # libnftnl recipe is in meta-networking layer(previously known as libnftables)
  35. PACKAGECONFIG[libnftnl] = "--enable-nftables,--disable-nftables,libnftnl"
  36. do_configure_prepend() {
  37. # Remove some libtool m4 files
  38. # Keep ax_check_linker_flags.m4 which belongs to autoconf-archive.
  39. rm -f libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4
  40. }