Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "PolicyKit Authorization Framework" |
| 2 | DESCRIPTION = "The polkit package is an application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes." |
| 3 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/polkit" |
| 4 | LICENSE = "LGPLv2+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb \ |
| 6 | file://src/polkit/polkit.h;beginline=1;endline=20;md5=0a8630b0133176d0504c87a0ded39db4" |
| 7 | |
| 8 | DEPENDS = "expat glib-2.0 intltool-native mozjs" |
| 9 | |
| 10 | inherit autotools gtk-doc pkgconfig useradd systemd gobject-introspection |
| 11 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 12 | PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', \ |
| 14 | bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \ |
| 15 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 16 | |
| 17 | PACKAGECONFIG[pam] = "--with-authfw=pam,--with-authfw=shadow,libpam,libpam" |
| 18 | PACKAGECONFIG[systemd] = "--enable-libsystemd-login=yes --with-systemdsystemunitdir=${systemd_unitdir}/system/,--enable-libsystemd-login=no --with-systemdsystemunitdir=,systemd" |
| 19 | # there is no --enable/--disable option for consolekit and it's not picked by shlibs, so add it to RDEPENDS |
| 20 | PACKAGECONFIG[consolekit] = ",,,consolekit" |
| 21 | |
| 22 | PAM_SRC_URI = "file://polkit-1_pam.patch" |
| 23 | SRC_URI = "http://www.freedesktop.org/software/polkit/releases/polkit-${PV}.tar.gz \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 24 | file://0001-make-netgroup-support-configurable.patch \ |
| 25 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 26 | " |
| 27 | SRC_URI[md5sum] = "4b77776c9e4f897dcfe03b2c34198edf" |
| 28 | SRC_URI[sha256sum] = "e1c095093c654951f78f8618d427faf91cf62abdefed98de40ff65eca6413c81" |
| 29 | |
| 30 | EXTRA_OECONF = "--with-os-type=moblin --disable-man-pages" |
| 31 | |
| 32 | do_compile_prepend () { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 33 | export GIR_EXTRA_LIBS_PATH="${B}/src/polkit/.libs" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | PACKAGES =+ "${PN}-examples" |
| 37 | |
| 38 | FILES_${PN}_append = " \ |
| 39 | ${libdir}/${BPN}-1 \ |
| 40 | ${nonarch_libdir}/${BPN}-1 \ |
| 41 | ${datadir}/dbus-1 \ |
| 42 | ${datadir}/${BPN}-1 \ |
| 43 | " |
| 44 | |
| 45 | FILES_${PN}-examples = "${bindir}/*example*" |
| 46 | |
| 47 | USERADD_PACKAGES = "${PN}" |
| 48 | USERADD_PARAM_${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 polkitd" |
| 49 | |
| 50 | SYSTEMD_SERVICE_${PN} = "${BPN}.service" |
| 51 | SYSTEMD_AUTO_ENABLE = "disable" |