mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] networkmanager: configure with polkit if POLKIT is enabled
@ 2019-02-26 16:06 Baeuerle, Florian
  0 siblings, 0 replies; only message in thread
From: Baeuerle, Florian @ 2019-02-26 16:06 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-26 16:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26 16:06 [ptxdist] [PATCH] networkmanager: configure with polkit if POLKIT is enabled Baeuerle, Florian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox