package/systemd: add optional support for polkit
authorGabe Evans <gabe@hashrabbit.co>
Fri, 1 Jul 2016 21:51:14 +0000 (23:51 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 2 Jul 2016 10:58:12 +0000 (12:58 +0200)
Signed-off-by: Gabe Evans <gabe@hashrabbit.co>
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/systemd/Config.in
package/systemd/systemd.mk

index 441a80af24df2ad0a613f5f10e6441f618341f89..80796d2190b8d70fce0c0efda124233f637f2d4a 100644 (file)
@@ -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
index 4a2654c99988d959cb217cf73555fbec35885953..5b0aa01b9512ed78c56a1642614569ab926afce2 100644 (file)
@@ -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