summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sudo/sudo_1.8.8.bb
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-10-24 11:01:50 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-30 13:39:10 +0000
commitf6053d8927d51d7d1f2c13ae2773db0154bd24ec (patch)
treee6714c8ebe61f70211ab3818893dcac2a76e4dac /meta/recipes-extended/sudo/sudo_1.8.8.bb
parent5fb5243608be16dd8365096af9b8e838d81b5172 (diff)
downloadpoky-f6053d8927d51d7d1f2c13ae2773db0154bd24ec.tar.gz
sudo: upgrade to 1.8.8
License checksum updated to reflect additional Copyright for file getopt_long.c, owned by The NetBSD Foundation, Inc (From OE-Core rev: e78a5cf3af993d87300d6a527fa14ec6ef9ed79a) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sudo/sudo_1.8.8.bb')
-rw-r--r--meta/recipes-extended/sudo/sudo_1.8.8.bb26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-extended/sudo/sudo_1.8.8.bb b/meta/recipes-extended/sudo/sudo_1.8.8.bb
new file mode 100644
index 0000000000..ba7c4ab454
--- /dev/null
+++ b/meta/recipes-extended/sudo/sudo_1.8.8.bb
@@ -0,0 +1,26 @@
1require sudo.inc
2
3SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \
4 ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}"
5
6PAM_SRC_URI = "file://sudo.pam"
7
8SRC_URI[md5sum] = "fc4f074090afd56d9ff4ff4e97321971"
9SRC_URI[sha256sum] = "9f911c1e9297fb8006deb52fa81197a8d06b9d54e70672f723c467ecae992fc9"
10
11DEPENDS += " ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
12RDEPENDS_${PN} += " ${@base_contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}"
13
14EXTRA_OECONF += " ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}"
15
16do_install_append () {
17 for feature in ${DISTRO_FEATURES}; do
18 if [ "$feature" = "pam" ]; then
19 install -D -m 664 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo
20 break
21 fi
22 done
23
24 chmod 4111 ${D}${bindir}/sudo
25 chmod 0440 ${D}${sysconfdir}/sudoers
26}