From 9a9e440b8ecd90a63766c7ab795b58cf5619ddaa Mon Sep 17 00:00:00 2001 From: Gabe Evans Date: Fri, 1 Jul 2016 23:51:14 +0200 Subject: [PATCH] package/systemd: add optional support for polkit Signed-off-by: Gabe Evans Signed-off-by: Maxime Hadjinlian Signed-off-by: Thomas Petazzoni --- package/systemd/Config.in | 11 +++++++++++ package/systemd/systemd.mk | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/package/systemd/Config.in b/package/systemd/Config.in index 441a80af24..80796d2190 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -253,6 +253,17 @@ config BR2_PACKAGE_SYSTEMD_COREDUMP http://www.freedesktop.org/software/systemd/man/systemd-coredump.html +config BR2_PACKAGE_SYSTEMD_POLKIT + bool "enable polkit support" + select BR2_PACKAGE_POLKIT + help + If enabled, systemd is built with polkit support and policy + files for its services are generated and installed. It is + useful for allowing unprivileged processes to speak to + systemd's many privileged processes. + + http://wiki.freedesktop.org/www/Software/polkit/ + config BR2_PACKAGE_SYSTEMD_NETWORKD bool "enable network manager" help diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 4a2654c999..5b0aa01b95 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -237,6 +237,12 @@ else SYSTEMD_CONF_OPTS += --disable-coredump endif +ifeq ($(BR2_PACKAGE_SYSTEMD_POLKIT),y) +SYSTEMD_CONF_OPTS += --enable-polkit +else +SYSTEMD_CONF_OPTS += --disable-polkit +endif + ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y) SYSTEMD_CONF_OPTS += --enable-networkd define SYSTEMD_INSTALL_RESOLVCONF_HOOK -- 2.30.2