summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-11-09 17:04:08 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-30 16:43:38 +0000
commit05051d864d6f2a1fb4957c6822263a41d409bf59 (patch)
treebdd949c11d0300cb8dc92f9cd8bd1410adb12c2b /meta/recipes-extended
parent48ee7e9b3ae18f79a00756ccec54a301adf4ab97 (diff)
downloadpoky-05051d864d6f2a1fb4957c6822263a41d409bf59.tar.gz
sudo: Avoid post install scripts
The post install script was removed, and the install_append updated to ensure the permissions are set correctly. (From OE-Core rev: 463e44ae159da2e03369f9ac14843b479de2e43d) (From OE-Core rev: 52dac3a309f3f1d6a4ee7269b16ca381fd0cdd38) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/sudo/sudo.inc8
-rw-r--r--meta/recipes-extended/sudo/sudo_1.8.1p2.bb3
2 files changed, 3 insertions, 8 deletions
diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc
index 72a7c167cd..83dd209afa 100644
--- a/meta/recipes-extended/sudo/sudo.inc
+++ b/meta/recipes-extended/sudo/sudo.inc
@@ -29,11 +29,3 @@ do_install_prepend (){
29 mkdir -p ${D}/${localstatedir}/lib 29 mkdir -p ${D}/${localstatedir}/lib
30} 30}
31 31
32pkg_postinst_${PN} () {
33 if [ "x$D" != "x" ]; then
34 exit 1
35 fi
36
37 chmod 4111 /usr/bin/sudo
38 chmod 0440 /etc/sudoers
39}
diff --git a/meta/recipes-extended/sudo/sudo_1.8.1p2.bb b/meta/recipes-extended/sudo/sudo_1.8.1p2.bb
index b56829181a..6629d1ef74 100644
--- a/meta/recipes-extended/sudo/sudo_1.8.1p2.bb
+++ b/meta/recipes-extended/sudo/sudo_1.8.1p2.bb
@@ -23,4 +23,7 @@ do_install_append () {
23 break 23 break
24 fi 24 fi
25 done 25 done
26
27 chmod 4111 $D/usr/bin/sudo
28 chmod 0440 $D/etc/sudoers
26} 29}