mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Baeuerle, Florian" <Florian.Baeuerle@allegion.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] [PATCH] networkmanager: configure with polkit if POLKIT is enabled
Date: Tue, 26 Feb 2019 16:06:24 +0000	[thread overview]
Message-ID: <20190226160610.2065-1-florian.baeuerle@allegion.com> (raw)

Also install NetworkManagers polkit policy-files when POLKIT is enabled.

Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com>
---
 rules/networkmanager.in   | 4 ++++
 rules/networkmanager.make | 6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/rules/networkmanager.in b/rules/networkmanager.in
index 70a013940..26e9fff9d 100644
--- a/rules/networkmanager.in
+++ b/rules/networkmanager.in
@@ -89,6 +89,10 @@ config NETWORKMANAGER_EXAMPLES
 	bool
 	prompt "install examples for Network Manager"
 
+config NETWORKMANAGER_POLKIT
+	bool
+	default POLKIT
+
 endif
 
 menu "networkmanager plugins        "
diff --git a/rules/networkmanager.make b/rules/networkmanager.make
index fbbd90e67..6d31a201a 100644
--- a/rules/networkmanager.make
+++ b/rules/networkmanager.make
@@ -50,7 +50,7 @@ NETWORKMANAGER_CONF_OPT = \
 	--disable-qt \
 	--disable-teamdctl \
 	--disable-json-validation \
-	--disable-polkit \
+	--$(call ptx/endis,PTXCONF_NETWORKMANAGER_POLKIT)-polkit \
 	--disable-polkit-agent \
 	--disable-modify-system \
 	--$(call ptx/endis,PTXCONF_NETWORKMANAGER_PPP)-ppp \
@@ -225,6 +225,10 @@ endif
 	@$(call install_tree, networkmanager, 0, 0, -, /usr/share/dbus-1/system.d/)
 	@$(call install_tree, networkmanager, 0, 0, -, /usr/share/dbus-1/system-services/)
 
+ifdef PTXCONF_NETWORKMANAGER_POLKIT
+	@$(call install_tree, networkmanager, 0, 0, -, /usr/share/polkit-1/actions)
+endif
+
 ifdef PTXCONF_NETWORKMANAGER_EXAMPLES
 	@$(call install_glob, networkmanager, 0, 0, -, /usr/bin, */nm-*-*)
 endif
-- 
2.20.1

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2019-02-26 16:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190226160610.2065-1-florian.baeuerle@allegion.com \
    --to=florian.baeuerle@allegion.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox