diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-support/consolekit/consolekit_0.4.6.bb | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-support/consolekit/consolekit_0.4.6.bb')
-rw-r--r-- | meta/recipes-support/consolekit/consolekit_0.4.6.bb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-support/consolekit/consolekit_0.4.6.bb b/meta/recipes-support/consolekit/consolekit_0.4.6.bb new file mode 100644 index 0000000000..dfbd11c2d1 --- /dev/null +++ b/meta/recipes-support/consolekit/consolekit_0.4.6.bb | |||
@@ -0,0 +1,49 @@ | |||
1 | SUMMARY = "Framework for defining and tracking users, login sessions, and seats" | ||
2 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/ConsoleKit" | ||
3 | BUGTRACKER = "https://bugs.freedesktop.org/buglist.cgi?query_format=specific&product=ConsoleKit" | ||
4 | |||
5 | LICENSE = "GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
7 | file://src/main.c;endline=21;md5=0a994e09769780220163255d8f9071c3" | ||
8 | |||
9 | DEPENDS = "glib-2.0 glib-2.0-native dbus dbus-glib virtual/libx11" | ||
10 | RDEPENDS_${PN} += "base-files" | ||
11 | |||
12 | inherit autotools pkgconfig | ||
13 | |||
14 | SRC_URI = "http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-${PV}.tar.xz \ | ||
15 | file://sepbuildfix.patch \ | ||
16 | file://add-polkit-configure-argument.patch \ | ||
17 | " | ||
18 | |||
19 | SRC_URI[md5sum] = "611792b4d616253a5bdec9175f8b7678" | ||
20 | SRC_URI[sha256sum] = "b41d17e06f80059589fbeefe96ad07bcc564c49e65516da1caf975146475565c" | ||
21 | |||
22 | S = "${WORKDIR}/ConsoleKit-${PV}" | ||
23 | |||
24 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \ | ||
25 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" | ||
26 | |||
27 | PACKAGECONFIG[pam] = "--enable-pam-module --with-pam-module-dir=${base_libdir}/security,--disable-pam-module,libpam" | ||
28 | PACKAGECONFIG[policykit] = "--with-polkit,--without-polkit,polkit" | ||
29 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--with-systemdsystemunitdir=" | ||
30 | |||
31 | FILES_${PN} += "${localstatedir}/log/ConsoleKit ${exec_prefix}/lib/ConsoleKit \ | ||
32 | ${libdir}/ConsoleKit ${systemd_unitdir} ${base_libdir} \ | ||
33 | ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*" | ||
34 | FILES_${PN}-dbg += "${base_libdir}/security/.debug" | ||
35 | |||
36 | PACKAGES =+ "pam-plugin-ck-connector" | ||
37 | FILES_pam-plugin-ck-connector += "${base_libdir}/security/*.so" | ||
38 | RDEPENDS_pam-plugin-ck-connector += "${PN}" | ||
39 | |||
40 | do_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 | |||
47 | # Remove /var/run from package as console-kit-daemon will populate it on startup | ||
48 | rm -fr "${D}${localstatedir}/run" | ||
49 | } | ||