consolekit_0.4.6.bb 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. LICENSE = "GPLv2+"
  5. LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
  6. file://src/main.c;endline=21;md5=0a994e09769780220163255d8f9071c3"
  7. DEPENDS = "glib-2.0 glib-2.0-native dbus dbus-glib virtual/libx11"
  8. RDEPENDS_${PN} += "base-files"
  9. inherit autotools pkgconfig distro_features_check
  10. # depends on virtual/libx11
  11. REQUIRED_DISTRO_FEATURES = "x11"
  12. SRC_URI = "http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-${PV}.tar.xz \
  13. file://sepbuildfix.patch \
  14. file://add-polkit-configure-argument.patch \
  15. "
  16. SRC_URI[md5sum] = "611792b4d616253a5bdec9175f8b7678"
  17. SRC_URI[sha256sum] = "b41d17e06f80059589fbeefe96ad07bcc564c49e65516da1caf975146475565c"
  18. S = "${WORKDIR}/ConsoleKit-${PV}"
  19. PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \
  20. ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
  21. PACKAGECONFIG[pam] = "--enable-pam-module --with-pam-module-dir=${base_libdir}/security,--disable-pam-module,libpam"
  22. PACKAGECONFIG[policykit] = "--with-polkit,--without-polkit,polkit"
  23. PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--with-systemdsystemunitdir="
  24. FILES_${PN} += "${localstatedir}/log/ConsoleKit ${exec_prefix}/lib/ConsoleKit \
  25. ${libdir}/ConsoleKit ${systemd_unitdir} ${base_libdir} \
  26. ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*"
  27. FILES_${PN}-dbg += "${base_libdir}/security/.debug"
  28. PACKAGES =+ "pam-plugin-ck-connector"
  29. FILES_pam-plugin-ck-connector += "${base_libdir}/security/*.so"
  30. RDEPENDS_pam-plugin-ck-connector += "${PN}"
  31. do_install_append() {
  32. if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
  33. install -d ${D}${sysconfdir}/tmpfiles.d
  34. echo "d ${localstatedir}/log/ConsoleKit - - - -" \
  35. > ${D}${sysconfdir}/tmpfiles.d/consolekit.conf
  36. fi
  37. # Remove /var/run from package as console-kit-daemon will populate it on startup
  38. rm -fr "${D}${localstatedir}/run"
  39. }