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
|
2020-04-04 15:08:12 +02:00
|
|
|
POLKIT_AUTORECONF = YES
|
2013-01-18 13:08:44 +01:00
|
|
|
POLKIT_INSTALL_STAGING = YES
|
|
|
|
|
2020-03-17 22:03:53 +01:00
|
|
|
POLKIT_DEPENDENCIES = \
|
|
|
|
libglib2 host-intltool expat spidermonkey $(TARGET_NLS_DEPENDENCIES)
|
2013-01-18 13:08:44 +01:00
|
|
|
|
2019-12-14 11:35:35 +01:00
|
|
|
# spidermonkey needs C++11
|
2020-03-17 22:03:53 +01:00
|
|
|
POLKIT_CONF_ENV = \
|
|
|
|
CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" \
|
|
|
|
LIBS=$(TARGET_NLS_LIBS)
|
2019-12-14 11:35:35 +01:00
|
|
|
|
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
|
|
|
|
2020-04-18 04:58:16 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
|
|
|
|
POLKIT_CONF_OPTS += --enable-introspection
|
|
|
|
POLKIT_DEPENDENCIES += gobject-introspection
|
|
|
|
else
|
|
|
|
POLKIT_CONF_OPTS += --disable-introspection
|
|
|
|
endif
|
|
|
|
|
2019-12-07 00:46:45 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
2020-03-15 21:56:10 +01:00
|
|
|
POLKIT_DEPENDENCIES += linux-pam
|
2019-12-07 00:46:45 +01:00
|
|
|
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
|
|
|
|
|
2020-04-18 04:58:13 +02:00
|
|
|
define POLKIT_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 $(POLKIT_PKGDIR)/polkit.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/polkit.service
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2013-01-18 13:08:44 +01:00
|
|
|
$(eval $(autotools-package))
|