summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-filter/nftables/nftables_0.9.3.bb20
1 files changed, 12 insertions, 8 deletions
diff --git a/meta-networking/recipes-filter/nftables/nftables_0.9.3.bb b/meta-networking/recipes-filter/nftables/nftables_0.9.3.bb
index 7302626165..dc04326bc9 100644
--- a/meta-networking/recipes-filter/nftables/nftables_0.9.3.bb
+++ b/meta-networking/recipes-filter/nftables/nftables_0.9.3.bb
@@ -3,9 +3,11 @@ SECTION = "net"
3LICENSE = "GPLv2" 3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=d1a78fdd879a263a5e0b42d1fc565e79" 4LIC_FILES_CHKSUM = "file://COPYING;md5=d1a78fdd879a263a5e0b42d1fc565e79"
5 5
6DEPENDS = "libmnl libnftnl readline gmp bison-native" 6DEPENDS = "libmnl libnftnl bison-native \
7 ${@bb.utils.contains('PACKAGECONFIG', 'mini-gmp', '', 'gmp', d)}"
7 8
8UPSTREAM_CHECK_URI = "https://www.netfilter.org/projects/nftables/files/" 9# Ensure we reject the 0.099 version by matching at least two dots
10UPSTREAM_CHECK_REGEX = "nftables-(?P<pver>\d+(\.\d+){2,}).tar.bz2"
9 11
10SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2 \ 12SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.bz2 \
11 file://0001-update-python3-nftables-reference.patch" 13 file://0001-update-python3-nftables-reference.patch"
@@ -14,16 +16,18 @@ SRC_URI[sha256sum] = "956b915ce2a7aeaff123e49006be7a0690a0964e96c062703181a36e2e
14 16
15inherit autotools manpages pkgconfig 17inherit autotools manpages pkgconfig
16 18
17PACKAGECONFIG ?= "python" 19PACKAGECONFIG ??= "python readline"
18PACKAGECONFIG[manpages] = ", --disable-man-doc, asciidoc-native" 20PACKAGECONFIG[json] = "--with-json, --without-json, jansson"
19PACKAGECONFIG[python] = "--with-python-bin=${PYTHON}, --with-python-bin="", python3" 21PACKAGECONFIG[manpages] = "--enable-man-doc, --disable-man-doc, asciidoc-native"
22PACKAGECONFIG[mini-gmp] = "--with-mini-gmp, --without-mini-gmp"
23PACKAGECONFIG[python] = "--enable-python --with-python-bin=${PYTHON}, --with-python-bin="", python3"
24PACKAGECONFIG[readline] = "--with-cli=readline, --without-cli, readline"
25PACKAGECONFIG[xtables] = "--with-xtables, --without-xtables, iptables"
20 26
21inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3native', '', d)} 27inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3native', '', d)}
22 28
23ASNEEDED = ""
24
25RRECOMMENDS_${PN} += "kernel-module-nf-tables" 29RRECOMMENDS_${PN} += "kernel-module-nf-tables"
26 30
27PACKAGES =+ "${PN}-python" 31PACKAGES =+ "${PN}-python"
28FILES_${PN}-python = "${libdir_native}/${PYTHON_DIR}" 32FILES_${PN}-python = "${libdir}/${PYTHON_DIR}"
29RDEPENDS_${PN}-python = "python3-core python3-json" 33RDEPENDS_${PN}-python = "python3-core python3-json"