From fec92e4b0c34adc9d512f61ff22de9026b83e3b4 Mon Sep 17 00:00:00 2001 From: Wenzong Fan Date: Wed, 20 Jul 2011 02:42:28 +0000 Subject: cronie: enable PAM support for cronie Enable PAM support for cronie and update its pam config file 'crond'. Signed-off-by: Wenzong Fan --- meta/recipes-extended/cronie/cronie_1.4.7.bb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'meta/recipes-extended/cronie/cronie_1.4.7.bb') diff --git a/meta/recipes-extended/cronie/cronie_1.4.7.bb b/meta/recipes-extended/cronie/cronie_1.4.7.bb index 992b610a1..bb715f2bf 100644 --- a/meta/recipes-extended/cronie/cronie_1.4.7.bb +++ b/meta/recipes-extended/cronie/cronie_1.4.7.bb @@ -14,17 +14,25 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=963ea0772a2adbdcd607a9b2ec320c11 \ SECTION = "utils" -PR = "r2" +DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" +PR = "r3" SRC_URI = "https://fedorahosted.org/releases/c/r/cronie/cronie-${PV}.tar.gz \ file://crond.init \ - file://crontab" + file://crontab \ + ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" + +PAM_SRC_URI = "file://crond_pam_config.patch" + SRC_URI[md5sum] = "dfc26c47756d0c40ee27ae3c7ee98e0d" SRC_URI[sha256sum] = "83bae15ae5504454ba74f4142f5db3aa22be594327fea19d2534f65803137fbd" inherit autotools update-rc.d +EXTRA_OECONF += "\ + ${@base_contains('DISTRO_FEATURES', 'pam', '--with-libpam', '--without-libpam', d)}" + INITSCRIPT_NAME = "crond" INITSCRIPT_PARAMS = "start 90 2 3 4 5 . stop 60 0 1 6 ." -- cgit v1.2.3