[oe] [PATCH][STABLE] shadow: run pwconv and grpconv in postinst
Koen Kooi
koen at dominion.thruhere.net
Mon Mar 22 11:24:40 UTC 2010
Acked-by: <koen at openembedded.org>
Op 22 mrt 2010, om 12:06 heeft Marcin Juszkiewicz het volgende geschreven:
> From: Koen Kooi <koen at openembedded.org>
>
> * this converts oldstyle formats to the proper one
> ---
> recipes/shadow/shadow.inc | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/recipes/shadow/shadow.inc b/recipes/shadow/shadow.inc
> index 9da5845..5e3d2f2 100644
> --- a/recipes/shadow/shadow.inc
> +++ b/recipes/shadow/shadow.inc
> @@ -11,7 +11,7 @@ LICENSE = "BSD"
> SECTION = "base"
> DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
>
> -INC_PR = "r9"
> +INC_PR = "r10"
>
> # Additional Policy files for PAM
> PAM_SRC_URI = " \
> @@ -89,6 +89,11 @@ do_install_append() {
> pkg_postinst_${PN} () {
> update-alternatives --install ${bindir}/passwd passwd passwd.${PN} 100
> update-alternatives --install ${sbindir}/chpasswd chpasswd chpasswd.${PN} 100
> + if [ "x$D" != "x" ]; then
> + exit 1
> + fi
> + pwconv
> + grpconv
> }
>
> pkg_prerm_${PN} () {
> --
> 1.7.0.2
>
>
>
>
More information about the Openembedded-devel
mailing list