diff options
| author | Mark Hatle <mark.hatle@windriver.com> | 2011-11-09 17:04:08 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-11 11:01:08 +0000 |
| commit | 6d0ad5c31b71c40925b923d487c7af350cb37689 (patch) | |
| tree | 3b830880991ec57d844ee152f733cb7541f07ef7 /meta/recipes-extended/sudo | |
| parent | af2a885c9e36a976688dbe0fafff0154ddc7120a (diff) | |
| download | poky-6d0ad5c31b71c40925b923d487c7af350cb37689.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)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sudo')
| -rw-r--r-- | meta/recipes-extended/sudo/sudo.inc | 8 | ||||
| -rw-r--r-- | meta/recipes-extended/sudo/sudo_1.8.3.bb | 5 |
2 files changed, 4 insertions, 9 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 | ||
| 32 | pkg_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.3.bb b/meta/recipes-extended/sudo/sudo_1.8.3.bb index 0ac0851153..99fe5b91e7 100644 --- a/meta/recipes-extended/sudo/sudo_1.8.3.bb +++ b/meta/recipes-extended/sudo/sudo_1.8.3.bb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | require sudo.inc | 1 | require sudo.inc |
| 2 | 2 | ||
| 3 | PR = "r0" | 3 | PR = "r1" |
| 4 | 4 | ||
| 5 | SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ | 5 | SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ |
| 6 | file://libtool.patch \ | 6 | file://libtool.patch \ |
| @@ -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 | } |
