summaryrefslogtreecommitdiff
path: root/meta-openvuplus/recipes-extended/shadow/shadow_4.1.4.3.bbappend
blob: d8d176941bdcb69b7c9a54121a8eaf12363a8cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PR .= "vuplus0"

FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"

pkg_postinst_${PN} () {
	for i in chpasswd chfn newgrp chsh groups vipw vigr ; do
		update-alternatives --install ${sbindir}/$i $i $i.${PN} 200
	done 

        if [ "x$D" != "x" ]; then
        	rootarg="--root=$D"
        else
        	rootarg=""
        fi

        pwconv $rootarg
        grpconv $rootarg
}

pkg_prerm_${PN} () {
        for i in chpasswd chfn newgrp chsh groups vipw vigr ; do
                update-alternatives --remove $i $i.${PN}
        done
}