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