summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Wejman <piotr.wejman@arm.com>2026-05-13 15:14:42 +0200
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-05-13 20:46:50 -0700
commit37408fe618d4edbf5d86e8e9bc7ae1e3c0b70d5e (patch)
tree49b2dfc4a842598294bf427e2100c058c636ba8b
parent125dbabef63ffa6fb1d62ae3de26ef1257f9d184 (diff)
downloadmeta-openembedded-37408fe618d4edbf5d86e8e9bc7ae1e3c0b70d5e.tar.gz
nftables: add systemd PACKAGECONFIG
Add a systemd PACKAGECONFIG option to install nftables systemd unit files. When "systemd" is present in DISTRO_FEATURES, the option is enabled and the service is installed but disabled by default. Signed-off-by: Piotr Wejman <piotr.wejman@arm.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
-rw-r--r--meta-networking/recipes-filter/nftables/nftables_1.1.6.bb8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta-networking/recipes-filter/nftables/nftables_1.1.6.bb b/meta-networking/recipes-filter/nftables/nftables_1.1.6.bb
index cc57db3c81..04066c5fa9 100644
--- a/meta-networking/recipes-filter/nftables/nftables_1.1.6.bb
+++ b/meta-networking/recipes-filter/nftables/nftables_1.1.6.bb
@@ -17,9 +17,9 @@ SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.xz \
17 " 17 "
18SRC_URI[sha256sum] = "372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c" 18SRC_URI[sha256sum] = "372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c"
19 19
20inherit autotools manpages pkgconfig ptest python3native 20inherit autotools manpages pkgconfig ptest python3native systemd
21 21
22PACKAGECONFIG ?= "python readline json" 22PACKAGECONFIG ?= "python readline json ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
23PACKAGECONFIG[editline] = "--with-cli=editline, , libedit, , , linenoise readline" 23PACKAGECONFIG[editline] = "--with-cli=editline, , libedit, , , linenoise readline"
24PACKAGECONFIG[json] = "--with-json, --without-json, jansson" 24PACKAGECONFIG[json] = "--with-json, --without-json, jansson"
25PACKAGECONFIG[linenoise] = "--with-cli=linenoise, , linenoise, , , editline readline" 25PACKAGECONFIG[linenoise] = "--with-cli=linenoise, , linenoise, , , editline readline"
@@ -28,10 +28,14 @@ PACKAGECONFIG[mini-gmp] = "--with-mini-gmp, --without-mini-gmp"
28PACKAGECONFIG[python] = "" 28PACKAGECONFIG[python] = ""
29PACKAGECONFIG[readline] = "--with-cli=readline, , readline, , , editline linenoise" 29PACKAGECONFIG[readline] = "--with-cli=readline, , readline, , , editline linenoise"
30PACKAGECONFIG[xtables] = "--with-xtables, --without-xtables, iptables" 30PACKAGECONFIG[xtables] = "--with-xtables, --without-xtables, iptables"
31PACKAGECONFIG[systemd] = "--with-unitdir=${systemd_system_unitdir}, --without-unitdir"
31 32
32EXTRA_OECONF = " \ 33EXTRA_OECONF = " \
33 ${@bb.utils.contains_any('PACKAGECONFIG', 'editline linenoise readline', '', '--without-cli', d)}" 34 ${@bb.utils.contains_any('PACKAGECONFIG', 'editline linenoise readline', '', '--without-cli', d)}"
34 35
36SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'nftables.service', '', d)}"
37SYSTEMD_AUTO_ENABLE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'disable', '', d)}"
38
35PEP517_SOURCE_PATH = "${S}/py" 39PEP517_SOURCE_PATH = "${S}/py"
36 40
37# xtables will need it on musl see iptables 41# xtables will need it on musl see iptables