summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow/shadow.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/shadow/shadow.inc')
-rw-r--r--meta/recipes-extended/shadow/shadow.inc19
1 files changed, 17 insertions, 2 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index a05ead35b7..7c63d88c70 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -150,15 +150,30 @@ do_install_append() {
150 ln -sf newgrp.${BPN} ${D}${bindir}/sg 150 ln -sf newgrp.${BPN} ${D}${bindir}/sg
151} 151}
152 152
153PACKAGES =+ "${PN}-base"
154FILES_${PN}-base = "\
155 ${base_bindir}/login.shadow \
156 ${base_bindir}/su.shadow \
157 ${bindir}/sg \
158 ${bindir}/newgrp.shadow \
159 ${bindir}/groups.shadow \
160 ${sysconfdir}/pam.d/login \
161 ${sysconfdir}/pam.d/su \
162 ${sysconfdir}/login.defs \
163"
164RDEPENDS_${PN} += "${PN}-base"
165
153inherit update-alternatives 166inherit update-alternatives
154 167
155ALTERNATIVE_PRIORITY = "200" 168ALTERNATIVE_PRIORITY = "200"
156 169
157ALTERNATIVE_${PN} = "passwd chfn newgrp chsh groups chpasswd login vipw vigr su" 170ALTERNATIVE_${PN} = "passwd chfn chsh chpasswd vipw vigr"
158ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd" 171ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd"
159ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login"
160ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw" 172ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw"
161ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" 173ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr"
174
175ALTERNATIVE_${PN}-base = "newgrp groups login su"
176ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login"
162ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" 177ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su"
163 178
164ALTERNATIVE_${PN}-doc = "passwd.5 getspnam.3" 179ALTERNATIVE_${PN}-doc = "passwd.5 getspnam.3"