From patchwork Wed May 13 13:14:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Wejman X-Patchwork-Id: 88039 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53145CD4851 for ; Wed, 13 May 2026 13:15:13 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7385.1778678103864679751 for ; Wed, 13 May 2026 06:15:04 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=mLy51rk0; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: piotr.wejman@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DD03D1C14; Wed, 13 May 2026 06:14:57 -0700 (PDT) Received: from e134100.nice.arm.com (e134100.arm.com [10.34.101.65]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CE1E23F836; Wed, 13 May 2026 06:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1778678103; bh=gU8cyDj1LkcR5d4vD2wFWTSqpZoPoSm75oUaCqXNe1g=; h=From:To:Cc:Subject:Date:From; b=mLy51rk0sAHwijNiIMcd3G+JF1/ub7n4AKxvBZmlSabzskwzRaeM3YWr+ThJVpML+ +4RBbp+Yj3QHs8qzR2SSvzJ16eJbqVDIVhU1wpREUm//oYwhNDJ7oLDbivRkje36cC PvN73E8eIv4Eat5xEIydt0mhK9w5QfcbC+VaWoaI= From: Piotr Wejman To: openembedded-devel@lists.openembedded.org Cc: raj.khem@gmail.com, joe@deserted.net, Ross.Burton@arm.com, Vincent.Mailhol@arm.com, Piotr Wejman Subject: [meta-networking][PATCH v2] nftables: add systemd PACKAGECONFIG Date: Wed, 13 May 2026 15:14:42 +0200 Message-ID: <20260513131442.2582068-1-piotr.wejman@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 13 May 2026 13:15:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/126972 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 --- meta-networking/recipes-filter/nftables/nftables_1.1.6.bb | 8 ++++++-- 1 file 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 \ " SRC_URI[sha256sum] = "372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c" -inherit autotools manpages pkgconfig ptest python3native +inherit autotools manpages pkgconfig ptest python3native systemd -PACKAGECONFIG ?= "python readline json" +PACKAGECONFIG ?= "python readline json ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" PACKAGECONFIG[editline] = "--with-cli=editline, , libedit, , , linenoise readline" PACKAGECONFIG[json] = "--with-json, --without-json, jansson" PACKAGECONFIG[linenoise] = "--with-cli=linenoise, , linenoise, , , editline readline" @@ -28,10 +28,14 @@ PACKAGECONFIG[mini-gmp] = "--with-mini-gmp, --without-mini-gmp" PACKAGECONFIG[python] = "" PACKAGECONFIG[readline] = "--with-cli=readline, , readline, , , editline linenoise" PACKAGECONFIG[xtables] = "--with-xtables, --without-xtables, iptables" +PACKAGECONFIG[systemd] = "--with-unitdir=${systemd_system_unitdir}, --without-unitdir" EXTRA_OECONF = " \ ${@bb.utils.contains_any('PACKAGECONFIG', 'editline linenoise readline', '', '--without-cli', d)}" +SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'nftables.service', '', d)}" +SYSTEMD_AUTO_ENABLE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'disable', '', d)}" + PEP517_SOURCE_PATH = "${S}/py" # xtables will need it on musl see iptables