2010-11-28 07:24:13 +00:00
|
|
|
DESCRIPTION = "ConsoleKit is a framework for defining and tracking users, login sessions, and seats."
|
|
|
|
HOMEPAGE="http://www.freedesktop.org/wiki/Software/ConsoleKit"
|
|
|
|
BUGTRACKER="https://bugs.freedesktop.org/buglist.cgi?query_format=specific&product=ConsoleKit"
|
|
|
|
|
2013-02-04 09:20:22 +00:00
|
|
|
PR = "r10"
|
2011-06-25 09:24:44 +00:00
|
|
|
|
2010-11-28 07:24:13 +00:00
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
|
|
|
|
file://src/main.c;endline=21;md5=0a994e09769780220163255d8f9071c3"
|
|
|
|
|
2013-03-21 09:24:25 +00:00
|
|
|
DEPENDS = "glib-2.0 dbus dbus-glib virtual/libx11"
|
2011-11-30 22:57:47 +00:00
|
|
|
RDEPENDS_${PN} += "base-files"
|
2010-11-28 07:24:13 +00:00
|
|
|
|
2013-03-21 09:24:25 +00:00
|
|
|
inherit autotools pkgconfig
|
2010-11-28 07:24:13 +00:00
|
|
|
|
2013-04-17 09:15:11 +00:00
|
|
|
SRC_URI = "http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-${PV}.tar.bz2 \
|
|
|
|
file://sepbuildfix.patch"
|
2011-06-09 10:53:13 +00:00
|
|
|
SRC_URI[md5sum] = "f2657f93761206922d558471a936fbc3"
|
|
|
|
SRC_URI[sha256sum] = "43e0780c53078e125efcec3f847e484dc3533e49b408ce6a0ab1b223686b9c38"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2010-11-28 07:24:13 +00:00
|
|
|
|
2011-06-09 10:53:13 +00:00
|
|
|
S = "${WORKDIR}/ConsoleKit-${PV}"
|
2010-11-28 07:24:13 +00:00
|
|
|
|
2013-03-07 17:54:00 +00:00
|
|
|
PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \
|
|
|
|
${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
|
|
|
|
|
|
|
|
PACKAGECONFIG[pam] = "--enable-pam-module --with-pam-module-dir=${base_libdir}/security,--disable-pam-module,libpam"
|
|
|
|
# No option to turn it on or off, so rely on the build dependency for now.
|
|
|
|
PACKAGECONFIG[policykit] = ",,polkit"
|
|
|
|
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--with-systemdsystemunitdir="
|
2010-11-28 07:24:13 +00:00
|
|
|
|
2013-02-04 09:20:22 +00:00
|
|
|
FILES_${PN} += "${localstatedir}/log/ConsoleKit ${exec_prefix}/lib/ConsoleKit \
|
|
|
|
${libdir}/ConsoleKit ${systemd_unitdir} ${base_libdir} \
|
|
|
|
${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*"
|
2011-07-22 10:14:39 +00:00
|
|
|
FILES_${PN}-dbg += "${base_libdir}/security/.debug"
|
2010-11-28 07:24:13 +00:00
|
|
|
|
2011-06-25 09:24:44 +00:00
|
|
|
PACKAGES =+ "pam-plugin-ck-connector"
|
2011-07-22 10:14:39 +00:00
|
|
|
FILES_pam-plugin-ck-connector += "${base_libdir}/security/*.so"
|
2011-06-25 09:24:44 +00:00
|
|
|
RDEPENDS_pam-plugin-ck-connector += "${PN}"
|
2013-05-26 08:14:13 +00:00
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
# Remove /var/run from package as console-kit-daemon will populate it on startup
|
|
|
|
rm -fr "${D}${localstatedir}/run"
|
|
|
|
}
|