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 | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame^] | 13 | SRC_URI[sha256sum] = "58bf547daf967a2b88ecb4f425f126006ebde22711db806b25c1d6cf84fe45f4" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 14 | |
| 15 | inherit autotools manpages pkgconfig |
| 16 | |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 17 | PACKAGECONFIG ??= "python readline json" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | RRECOMMENDS:${PN} += "kernel-module-nf-tables" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 28 | |
| 29 | PACKAGES =+ "${PN}-python" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 30 | FILES:${PN}-python = "${nonarch_libdir}/${PYTHON_DIR}" |
| 31 | RDEPENDS:${PN}-python = "python3-core python3-json ${PN}" |