2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-18 13:08:44 +01:00
|
|
|
#
|
|
|
|
# polkit
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-18 13:08:44 +01:00
|
|
|
|
2019-12-07 00:46:44 +01:00
|
|
|
POLKIT_VERSION = 0.116
|
2014-07-31 10:46:58 +02:00
|
|
|
POLKIT_SITE = http://www.freedesktop.org/software/polkit/releases
|
2017-03-30 15:43:32 +02:00
|
|
|
POLKIT_LICENSE = GPL-2.0
|
2013-01-18 13:08:44 +01:00
|
|
|
POLKIT_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
POLKIT_INSTALL_STAGING = YES
|
|
|
|
|
2019-12-07 00:46:44 +01:00
|
|
|
POLKIT_DEPENDENCIES = libglib2 host-intltool expat spidermonkey
|
2013-01-18 13:08:44 +01:00
|
|
|
|
2019-12-14 11:35:35 +01:00
|
|
|
# spidermonkey needs C++11
|
|
|
|
POLKIT_CONF_ENV = CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
POLKIT_CONF_OPTS = \
|
2013-01-27 06:07:19 +01:00
|
|
|
--with-os-type=unknown \
|
|
|
|
--disable-man-pages \
|
2019-12-07 00:46:44 +01:00
|
|
|
--disable-examples \
|
|
|
|
--disable-libelogind \
|
|
|
|
--disable-libsystemd-login
|
2013-01-18 13:08:44 +01:00
|
|
|
|
2019-12-07 00:46:45 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
|
|
|
POLKIT_CONF_OPTS += --with-authfw=pam
|
|
|
|
else
|
|
|
|
POLKIT_CONF_OPTS += --with-authfw=shadow
|
|
|
|
endif
|
|
|
|
|
2019-12-18 23:09:35 +01:00
|
|
|
define POLKIT_USERS
|
|
|
|
polkitd -1 polkitd -1 * - - - Polkit Daemon
|
|
|
|
endef
|
|
|
|
|
|
|
|
define POLKIT_PERMISSIONS
|
|
|
|
/etc/polkit-1 r 750 root polkitd - - - - -
|
|
|
|
/usr/share/polkit-1 r 750 root polkitd - - - - -
|
|
|
|
/usr/bin/pkexec f 4755 root root - - - - -
|
|
|
|
endef
|
|
|
|
|
2013-01-18 13:08:44 +01:00
|
|
|
$(eval $(autotools-package))
|