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)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mark Hatle 2011-11-09 17:04:08 -06:00 committed by Richard Purdie
parent af2a885c9e
commit 6d0ad5c31b
2 changed files with 4 additions and 9 deletions

View 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
}

View File

@ -1,6 +1,6 @@
require sudo.inc
PR = "r0"
PR = "r1"
SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \
file://libtool.patch \
@ -23,4 +23,7 @@ do_install_append () {
break
fi
done
chmod 4111 $D/usr/bin/sudo
chmod 0440 $D/etc/sudoers
}