diff options
Diffstat (limited to 'meta/recipes-extended/sudo/sudo_1.8.6p8.bb')
-rw-r--r-- | meta/recipes-extended/sudo/sudo_1.8.6p8.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-extended/sudo/sudo_1.8.6p8.bb b/meta/recipes-extended/sudo/sudo_1.8.6p8.bb new file mode 100644 index 0000000000..00602c00a3 --- /dev/null +++ b/meta/recipes-extended/sudo/sudo_1.8.6p8.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | require sudo.inc | ||
2 | |||
3 | PR = "r0" | ||
4 | |||
5 | SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ | ||
6 | file://libtool.patch \ | ||
7 | ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" | ||
8 | |||
9 | PAM_SRC_URI = "file://sudo.pam" | ||
10 | |||
11 | SRC_URI[md5sum] = "6dac48c73c8e0932980efcddafa569af" | ||
12 | SRC_URI[sha256sum] = "c0baaa87f59153967b650a0dde2f7d4147d358fa15f3fdabb47e84d0282fe625" | ||
13 | |||
14 | DEPENDS += " ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
15 | RDEPENDS_${PN} += " ${@base_contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" | ||
16 | |||
17 | EXTRA_OECONF += " ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}" | ||
18 | |||
19 | do_install_append () { | ||
20 | for feature in ${DISTRO_FEATURES}; do | ||
21 | if [ "$feature" = "pam" ]; then | ||
22 | install -D -m 664 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo | ||
23 | break | ||
24 | fi | ||
25 | done | ||
26 | |||
27 | chmod 4111 ${D}${bindir}/sudo | ||
28 | chmod 0440 ${D}${sysconfdir}/sudoers | ||
29 | } | ||