blob: 3d28ba2a2425171c47daeeb2b8fcd50a114eb8f2 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Framework for defining and tracking users, login sessions, and seats"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002DESCRIPTION = "It provides a mechanism for software to react to changes \
3of any of these items or of any of the metadata associated with them."
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004HOMEPAGE = "http://www.freedesktop.org/wiki/Software/ConsoleKit"
5BUGTRACKER = "https://bugs.freedesktop.org/buglist.cgi?query_format=specific&product=ConsoleKit"
6
7LICENSE = "GPLv2+"
8LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
9 file://src/main.c;endline=21;md5=0a994e09769780220163255d8f9071c3"
10
11DEPENDS = "glib-2.0 glib-2.0-native dbus dbus-glib virtual/libx11"
Patrick Williams213cb262021-08-07 19:21:33 -050012RDEPENDS:${PN} += "base-files"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013
Brad Bishop6dbb3162019-11-25 09:41:34 -050014inherit autotools pkgconfig features_check
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015# depends on virtual/libx11
16REQUIRED_DISTRO_FEATURES = "x11"
17
18SRC_URI = "http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-${PV}.tar.xz \
19 file://sepbuildfix.patch \
20 file://add-polkit-configure-argument.patch \
21"
22
23SRC_URI[md5sum] = "611792b4d616253a5bdec9175f8b7678"
24SRC_URI[sha256sum] = "b41d17e06f80059589fbeefe96ad07bcc564c49e65516da1caf975146475565c"
25
26S = "${WORKDIR}/ConsoleKit-${PV}"
27
Brad Bishop19323692019-04-05 15:28:33 -040028PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd polkit', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029
30PACKAGECONFIG[pam] = "--enable-pam-module --with-pam-module-dir=${base_libdir}/security,--disable-pam-module,libpam"
Brad Bishop19323692019-04-05 15:28:33 -040031PACKAGECONFIG[polkit] = "--with-polkit,--without-polkit,polkit"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--with-systemdsystemunitdir="
33
Patrick Williams213cb262021-08-07 19:21:33 -050034FILES:${PN} += "${exec_prefix}/lib/ConsoleKit \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050035 ${libdir}/ConsoleKit ${systemd_unitdir} ${base_libdir} \
36 ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037
38PACKAGES =+ "pam-plugin-ck-connector"
Patrick Williams213cb262021-08-07 19:21:33 -050039FILES:pam-plugin-ck-connector += "${base_libdir}/security/*.so"
40RDEPENDS:pam-plugin-ck-connector += "${PN}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050041
Patrick Williams213cb262021-08-07 19:21:33 -050042do_install:append() {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
44 install -d ${D}${sysconfdir}/tmpfiles.d
45 echo "d ${localstatedir}/log/ConsoleKit - - - -" \
46 > ${D}${sysconfdir}/tmpfiles.d/consolekit.conf
47 fi
48
Patrick Williamsc0f7c042017-02-23 20:41:17 -060049 # Remove /var/ directories as the daemon creates them as required
50 rm -rf ${D}${localstatedir}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050051}