]> code.ossystems Code Review - openembedded-core.git/commitdiff
sudo: Avoid post install scripts
authorMark Hatle <mark.hatle@windriver.com>
Wed, 9 Nov 2011 23:04:08 +0000 (17:04 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jan 2012 16:39:02 +0000 (16:39 +0000)
The post install script was removed, and the install_append updated
to ensure the permissions are set correctly.

(From OE-Core rev: 463e44ae159da2e03369f9ac14843b479de2e43d)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/sudo/sudo.inc
meta/recipes-extended/sudo/sudo_1.8.1p2.bb

index 72a7c167cd659ee130720731ce85824ad5c75442..83dd209afae7d281e030545ef73b133fd6c0604a 100644 (file)
@@ -29,11 +29,3 @@ do_install_prepend (){
        mkdir -p ${D}/${localstatedir}/lib
 }
 
-pkg_postinst_${PN} () {
-       if [ "x$D" != "x" ]; then
-               exit 1
-       fi
-
-       chmod 4111 /usr/bin/sudo
-       chmod 0440 /etc/sudoers
-}
index b56829181a397af93c4b83026eb333e4997e667c..6629d1ef74d2dcb32c90f12b8d61776abab7635d 100644 (file)
@@ -23,4 +23,7 @@ do_install_append () {
                        break
                fi
        done
+
+       chmod 4111 $D/usr/bin/sudo
+       chmod 0440 $D/etc/sudoers
 }