Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame^] | 1 | SUMMARY = "Netfilter Tables userspace utillites" |
| 2 | SECTION = "net" |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d1a78fdd879a263a5e0b42d1fc565e79" |
| 5 | |
| 6 | DEPENDS = "libmnl libnftnl bison-native \ |
| 7 | ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}" |
| 8 | |
| 9 | # Ensure we reject the 0.099 version by matching at least two dots |
| 10 | UPSTREAM_CHECK_REGEX = "nftables-(?P<pver>\d+(\.\d+){2,}).tar.bz2" |
| 11 | |
| 12 | SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2" |
| 13 | SRC_URI[md5sum] = "fdfd51a1083fb054a487b5159b1ed5cd" |
| 14 | SRC_URI[sha256sum] = "08b8683a9db5fba980bc092b75288af98d218bbe8ab446daf2338570d0730f9a" |
| 15 | |
| 16 | inherit autotools manpages pkgconfig |
| 17 | |
| 18 | PACKAGECONFIG ??= "python readline" |
| 19 | PACKAGECONFIG[json] = "--with-json, --without-json, jansson" |
| 20 | PACKAGECONFIG[manpages] = "--enable-man-doc, --disable-man-doc, asciidoc-native" |
| 21 | PACKAGECONFIG[mini-gmp] = "--with-mini-gmp, --without-mini-gmp" |
| 22 | PACKAGECONFIG[python] = "--enable-python --with-python-bin=${PYTHON}, --with-python-bin="", python3" |
| 23 | PACKAGECONFIG[readline] = "--with-cli=readline, --without-cli, readline" |
| 24 | PACKAGECONFIG[xtables] = "--with-xtables, --without-xtables, iptables" |
| 25 | |
| 26 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3native', '', d)} |
| 27 | |
| 28 | RRECOMMENDS_${PN} += "kernel-module-nf-tables" |
| 29 | |
| 30 | PACKAGES =+ "${PN}-python" |
| 31 | FILES_${PN}-python = "${nonarch_libdir}/${PYTHON_DIR}" |
| 32 | RDEPENDS_${PN}-python = "python3-core python3-json" |