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" |
Andrew Geissler | 89770b0 | 2020-06-13 10:40:47 -0500 | [diff] [blame^] | 13 | SRC_URI[sha256sum] = "f2c1957eabc370057c4576b8f33a71d91a6ad019b8b335abafe61c9c42cc7e16" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 14 | |
| 15 | inherit autotools manpages pkgconfig |
| 16 | |
| 17 | PACKAGECONFIG ??= "python readline" |
| 18 | PACKAGECONFIG[json] = "--with-json, --without-json, jansson" |
| 19 | PACKAGECONFIG[manpages] = "--enable-man-doc, --disable-man-doc, asciidoc-native" |
| 20 | PACKAGECONFIG[mini-gmp] = "--with-mini-gmp, --without-mini-gmp" |
| 21 | PACKAGECONFIG[python] = "--enable-python --with-python-bin=${PYTHON}, --with-python-bin="", python3" |
| 22 | PACKAGECONFIG[readline] = "--with-cli=readline, --without-cli, readline" |
| 23 | PACKAGECONFIG[xtables] = "--with-xtables, --without-xtables, iptables" |
| 24 | |
| 25 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3native', '', d)} |
| 26 | |
| 27 | RRECOMMENDS_${PN} += "kernel-module-nf-tables" |
| 28 | |
| 29 | PACKAGES =+ "${PN}-python" |
| 30 | FILES_${PN}-python = "${nonarch_libdir}/${PYTHON_DIR}" |
| 31 | RDEPENDS_${PN}-python = "python3-core python3-json" |