[Buildroot] [PATCH 3/4] package/polkit: support different authentication frameworks
aduskett at gmail.com
aduskett at gmail.com
Sun Nov 24 19:57:37 UTC 2019
From: Adam Duskett <Aduskett at gmail.com>
Use pam if available, otherwise use shadow.
Signed-off-by: Adam Duskett <Aduskett at gmail.com>
---
package/polkit/polkit.mk | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk
index 5d85ea9897..4135a64d6b 100644
--- a/package/polkit/polkit.mk
+++ b/package/polkit/polkit.mk
@@ -13,13 +13,17 @@ POLKIT_INSTALL_STAGING = YES
POLKIT_DEPENDENCIES = libglib2 host-intltool expat spidermonkey
-# We could also support --with-authfw=pam
POLKIT_CONF_OPTS = \
- --with-authfw=shadow \
--with-os-type=unknown \
--disable-man-pages \
--disable-examples \
--enable-libsystemd-login=no \
--enable-libelogind=no
+ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
+POLKIT_CONF_OPTS += --with-authfw=pam
+else
+POLKIT_CONF_OPTS += --with-authfw=shadow
+endif
+
$(eval $(autotools-package))
--
2.23.0
More information about the buildroot
mailing list