diff options
| author | Piotr Wejman <piotr.wejman@arm.com> | 2026-05-13 15:14:42 +0200 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-05-13 20:46:50 -0700 |
| commit | 37408fe618d4edbf5d86e8e9bc7ae1e3c0b70d5e (patch) | |
| tree | 49b2dfc4a842598294bf427e2100c058c636ba8b | |
| parent | 125dbabef63ffa6fb1d62ae3de26ef1257f9d184 (diff) | |
| download | meta-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.bb | 8 |
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 | " |
| 18 | SRC_URI[sha256sum] = "372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c" | 18 | SRC_URI[sha256sum] = "372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c" |
| 19 | 19 | ||
| 20 | inherit autotools manpages pkgconfig ptest python3native | 20 | inherit autotools manpages pkgconfig ptest python3native systemd |
| 21 | 21 | ||
| 22 | PACKAGECONFIG ?= "python readline json" | 22 | PACKAGECONFIG ?= "python readline json ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
| 23 | PACKAGECONFIG[editline] = "--with-cli=editline, , libedit, , , linenoise readline" | 23 | PACKAGECONFIG[editline] = "--with-cli=editline, , libedit, , , linenoise readline" |
| 24 | PACKAGECONFIG[json] = "--with-json, --without-json, jansson" | 24 | PACKAGECONFIG[json] = "--with-json, --without-json, jansson" |
| 25 | PACKAGECONFIG[linenoise] = "--with-cli=linenoise, , linenoise, , , editline readline" | 25 | PACKAGECONFIG[linenoise] = "--with-cli=linenoise, , linenoise, , , editline readline" |
| @@ -28,10 +28,14 @@ PACKAGECONFIG[mini-gmp] = "--with-mini-gmp, --without-mini-gmp" | |||
| 28 | PACKAGECONFIG[python] = "" | 28 | PACKAGECONFIG[python] = "" |
| 29 | PACKAGECONFIG[readline] = "--with-cli=readline, , readline, , , editline linenoise" | 29 | PACKAGECONFIG[readline] = "--with-cli=readline, , readline, , , editline linenoise" |
| 30 | PACKAGECONFIG[xtables] = "--with-xtables, --without-xtables, iptables" | 30 | PACKAGECONFIG[xtables] = "--with-xtables, --without-xtables, iptables" |
| 31 | PACKAGECONFIG[systemd] = "--with-unitdir=${systemd_system_unitdir}, --without-unitdir" | ||
| 31 | 32 | ||
| 32 | EXTRA_OECONF = " \ | 33 | EXTRA_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 | ||
| 36 | SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'nftables.service', '', d)}" | ||
| 37 | SYSTEMD_AUTO_ENABLE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'disable', '', d)}" | ||
| 38 | |||
| 35 | PEP517_SOURCE_PATH = "${S}/py" | 39 | PEP517_SOURCE_PATH = "${S}/py" |
| 36 | 40 | ||
| 37 | # xtables will need it on musl see iptables | 41 | # xtables will need it on musl see iptables |
