diff options
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/at/at_3.1.14.bb | 9 | ||||
-rw-r--r-- | meta/recipes-extended/pam/libpam_1.1.6.bb | 2 | ||||
-rw-r--r-- | meta/recipes-extended/screen/screen_4.0.3.bb | 9 | ||||
-rw-r--r-- | meta/recipes-extended/sudo/sudo_1.8.8.bb | 9 |
4 files changed, 10 insertions, 19 deletions
diff --git a/meta/recipes-extended/at/at_3.1.14.bb b/meta/recipes-extended/at/at_3.1.14.bb index f80b620e68..166a2a5804 100644 --- a/meta/recipes-extended/at/at_3.1.14.bb +++ b/meta/recipes-extended/at/at_3.1.14.bb | |||
@@ -54,10 +54,7 @@ do_install () { | |||
54 | install -m 0755 ${WORKDIR}/S99at ${D}${sysconfdir}/init.d/atd | 54 | install -m 0755 ${WORKDIR}/S99at ${D}${sysconfdir}/init.d/atd |
55 | ln -sf ../init.d/atd ${D}${sysconfdir}/rcS.d/S99at | 55 | ln -sf ../init.d/atd ${D}${sysconfdir}/rcS.d/S99at |
56 | 56 | ||
57 | for feature in ${DISTRO_FEATURES}; do | 57 | if [ "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then |
58 | if [ "$feature" = "pam" ]; then | 58 | install -D -m 0644 ${WORKDIR}/${BP}/pam.conf ${D}${sysconfdir}/pam.d/atd |
59 | install -D -m 0644 ${WORKDIR}/${BP}/pam.conf ${D}${sysconfdir}/pam.d/atd | 59 | fi |
60 | break | ||
61 | fi | ||
62 | done | ||
63 | } | 60 | } |
diff --git a/meta/recipes-extended/pam/libpam_1.1.6.bb b/meta/recipes-extended/pam/libpam_1.1.6.bb index c9bdcb0908..8d0a5685b6 100644 --- a/meta/recipes-extended/pam/libpam_1.1.6.bb +++ b/meta/recipes-extended/pam/libpam_1.1.6.bb | |||
@@ -110,7 +110,7 @@ do_install() { | |||
110 | } | 110 | } |
111 | 111 | ||
112 | python do_pam_sanity () { | 112 | python do_pam_sanity () { |
113 | if "pam" not in d.getVar("DISTRO_FEATURES", True).split(): | 113 | if not base_contains('DISTRO_FEATURES', 'pam', True, False, d): |
114 | bb.warn("Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly") | 114 | bb.warn("Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly") |
115 | } | 115 | } |
116 | addtask pam_sanity before do_configure | 116 | addtask pam_sanity before do_configure |
diff --git a/meta/recipes-extended/screen/screen_4.0.3.bb b/meta/recipes-extended/screen/screen_4.0.3.bb index be42fb9eec..b79b573e6c 100644 --- a/meta/recipes-extended/screen/screen_4.0.3.bb +++ b/meta/recipes-extended/screen/screen_4.0.3.bb | |||
@@ -36,12 +36,9 @@ EXTRA_OECONF = "--with-pty-mode=0620 --with-pty-group=5 \ | |||
36 | ${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}" | 36 | ${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}" |
37 | 37 | ||
38 | do_install_append () { | 38 | do_install_append () { |
39 | for feature in ${DISTRO_FEATURES}; do | 39 | if [ "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then |
40 | if [ "$feature" = "pam" ]; then | 40 | install -D -m 644 ${WORKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen |
41 | install -D -m 644 ${WORKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen | 41 | fi |
42 | break | ||
43 | fi | ||
44 | done | ||
45 | } | 42 | } |
46 | 43 | ||
47 | pkg_postinst_${PN} () { | 44 | pkg_postinst_${PN} () { |
diff --git a/meta/recipes-extended/sudo/sudo_1.8.8.bb b/meta/recipes-extended/sudo/sudo_1.8.8.bb index ba7c4ab454..6ab072f4db 100644 --- a/meta/recipes-extended/sudo/sudo_1.8.8.bb +++ b/meta/recipes-extended/sudo/sudo_1.8.8.bb | |||
@@ -14,12 +14,9 @@ RDEPENDS_${PN} += " ${@base_contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limit | |||
14 | EXTRA_OECONF += " ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}" | 14 | EXTRA_OECONF += " ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}" |
15 | 15 | ||
16 | do_install_append () { | 16 | do_install_append () { |
17 | for feature in ${DISTRO_FEATURES}; do | 17 | if [ "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then |
18 | if [ "$feature" = "pam" ]; then | 18 | install -D -m 664 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo |
19 | install -D -m 664 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo | 19 | fi |
20 | break | ||
21 | fi | ||
22 | done | ||
23 | 20 | ||
24 | chmod 4111 ${D}${bindir}/sudo | 21 | chmod 4111 ${D}${bindir}/sudo |
25 | chmod 0440 ${D}${sysconfdir}/sudoers | 22 | chmod 0440 ${D}${sysconfdir}/sudoers |