From a93ded8dbe1fc1a4b5785e0079c9a77316bb7dd6 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 17 Feb 2010 12:15:17 +0100 Subject: consolekit 0.4.1: fix PAM and make it a distro feature --- recipes/hal/consolekit_0.4.1.bb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/recipes/hal/consolekit_0.4.1.bb b/recipes/hal/consolekit_0.4.1.bb index 784ba3e231..855d80adcd 100644 --- a/recipes/hal/consolekit_0.4.1.bb +++ b/recipes/hal/consolekit_0.4.1.bb @@ -1,6 +1,8 @@ DESCRIPTION = "ConsoleKit is a framework for defining and tracking users, login sessions, and seats." LICENSE = "GPLv2" -DEPENDS = "policykit libpam dbus" +DEPENDS = "policykit dbus ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" + +PR = "r1" inherit gnome @@ -10,8 +12,9 @@ SRC_URI[archive.sha256sum] = "f032adc6146d745034315054c5822a7a09f30e20a40d6e8022 S = "${WORKDIR}/ConsoleKit-${PV}" +EXTRA_OECONF = " ${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam-module --with-pam-module-dir=${libdir}/security', '--disable-pam-module', d)} " -FILES_${PN} += "${libdir}/ConsoleKit ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*" +FILES_${PN} += "${libdir}/ConsoleKit ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit* ${libdir}/security/pam_ck_connector.so" -- cgit v1.2.3