blob: a17f739d4db213567def6481421aeced868e601c [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 Bishop19323692019-04-05 15:28:33 -040026PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd polkit', 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"
Brad Bishop19323692019-04-05 15:28:33 -040029PACKAGECONFIG[polkit] = "--with-polkit,--without-polkit,polkit"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030PACKAGECONFIG[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}