diff options
Diffstat (limited to 'meta/recipes-extended/sudo/sudo_1.8.11p2.bb')
-rw-r--r-- | meta/recipes-extended/sudo/sudo_1.8.11p2.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-extended/sudo/sudo_1.8.11p2.bb b/meta/recipes-extended/sudo/sudo_1.8.11p2.bb new file mode 100644 index 0000000000..c5e2545c18 --- /dev/null +++ b/meta/recipes-extended/sudo/sudo_1.8.11p2.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | require sudo.inc | ||
2 | |||
3 | SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ | ||
4 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ | ||
5 | " | ||
6 | |||
7 | PAM_SRC_URI = "file://sudo.pam" | ||
8 | |||
9 | SRC_URI[md5sum] = "84012b4871b6c775c957cd310d5bad87" | ||
10 | SRC_URI[sha256sum] = "8133849418fa18cf6b6bb6893d1855ff7afe21db8923234a00bf045c90fba1ad" | ||
11 | |||
12 | DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
13 | RDEPENDS_${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" | ||
14 | |||
15 | EXTRA_OECONF += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}" | ||
16 | |||
17 | do_install_append () { | ||
18 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then | ||
19 | install -D -m 664 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo | ||
20 | fi | ||
21 | |||
22 | chmod 4111 ${D}${bindir}/sudo | ||
23 | chmod 0440 ${D}${sysconfdir}/sudoers | ||
24 | |||
25 | # Explicitly remove the ${localstatedir}/run directory to avoid QA error | ||
26 | rmdir -p --ignore-fail-on-non-empty ${D}${localstatedir}/run/sudo | ||
27 | } | ||
28 | |||
29 | FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/*.la" | ||