blob: 80d48bf84f2d0acbca2afc8b80f957e9a38baab1 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Framework for defining and tracking users, login sessions, and seats"
2HOMEPAGE = "http://www.freedesktop.org/wiki/Software/ConsoleKit"
3BUGTRACKER = "https://bugs.freedesktop.org/buglist.cgi?query_format=specific&product=ConsoleKit"
4
5LICENSE = "GPLv2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
7 file://src/main.c;endline=21;md5=0a994e09769780220163255d8f9071c3"
8
9DEPENDS = "glib-2.0 glib-2.0-native dbus dbus-glib virtual/libx11"
10RDEPENDS_${PN} += "base-files"
11
12inherit autotools pkgconfig distro_features_check
13# depends on virtual/libx11
14REQUIRED_DISTRO_FEATURES = "x11"
15
16SRC_URI = "http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-${PV}.tar.xz \
17 file://sepbuildfix.patch \
18 file://add-polkit-configure-argument.patch \
19"
20
21SRC_URI[md5sum] = "611792b4d616253a5bdec9175f8b7678"
22SRC_URI[sha256sum] = "b41d17e06f80059589fbeefe96ad07bcc564c49e65516da1caf975146475565c"
23
24S = "${WORKDIR}/ConsoleKit-${PV}"
25
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
28PACKAGECONFIG[pam] = "--enable-pam-module --with-pam-module-dir=${base_libdir}/security,--disable-pam-module,libpam"
29PACKAGECONFIG[policykit] = "--with-polkit,--without-polkit,polkit"
30PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--with-systemdsystemunitdir="
31
Patrick Williamsc0f7c042017-02-23 20:41:17 -060032FILES_${PN} += "${exec_prefix}/lib/ConsoleKit \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033 ${libdir}/ConsoleKit ${systemd_unitdir} ${base_libdir} \
34 ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050035
36PACKAGES =+ "pam-plugin-ck-connector"
37FILES_pam-plugin-ck-connector += "${base_libdir}/security/*.so"
38RDEPENDS_pam-plugin-ck-connector += "${PN}"
39
40do_install_append() {
41 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
42 install -d ${D}${sysconfdir}/tmpfiles.d
43 echo "d ${localstatedir}/log/ConsoleKit - - - -" \
44 > ${D}${sysconfdir}/tmpfiles.d/consolekit.conf
45 fi
46
Patrick Williamsc0f7c042017-02-23 20:41:17 -060047 # Remove /var/ directories as the daemon creates them as required
48 rm -rf ${D}${localstatedir}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050049}