diff options
author | Saul Wold <sgw@linux.intel.com> | 2012-07-26 17:14:13 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-15 14:26:34 +0100 |
commit | 9ed6b34541d904b9a297316790783c2c53997a44 (patch) | |
tree | 88b5c37b9a3f3679d4aa6528efdb505b1e2b88df | |
parent | a260a6ed1b252244b68a29c73c312d81f30bfc4e (diff) | |
download | poky-9ed6b34541d904b9a297316790783c2c53997a44.tar.gz |
shadow: cleanup update-alternatives deprecated code
(From OE-Core rev: 3c9361606e458ffe3fec1eef621998ab887894c2)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/shadow/shadow_4.1.4.3.bb | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb index de10f646cd..6794cc144e 100644 --- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb +++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb | |||
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \ | |||
9 | 9 | ||
10 | DEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 10 | DEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
11 | RDEPENDS_${PN} = "shadow-securetty ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}" | 11 | RDEPENDS_${PN} = "shadow-securetty ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}" |
12 | PR = "r11" | 12 | PR = "r12" |
13 | 13 | ||
14 | SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ | 14 | SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ |
15 | file://login_defs_pam.sed \ | 15 | file://login_defs_pam.sed \ |
@@ -105,17 +105,11 @@ inherit update-alternatives | |||
105 | 105 | ||
106 | ALTERNATIVE_PRIORITY = "200" | 106 | ALTERNATIVE_PRIORITY = "200" |
107 | 107 | ||
108 | bindir_progs = "passwd chfn newgrp chsh groups" | 108 | ALTERNATIVE_${PN} = "passwd chfn newgrp chsh groups chpasswd login vipw vigr" |
109 | ALTERNATIVE_LINKS += "${bindir}/${@' ${bindir}/'.join((d.getVar('bindir_progs', True)).split())}" | 109 | ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd" |
110 | 110 | ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login" | |
111 | sbindir_progs = "chpasswd" | 111 | ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw" |
112 | ALTERNATIVE_LINKS += "${sbindir}/${@' ${sbindir}/'.join((d.getVar('sbindir_progs', True)).split())}" | 112 | ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" |
113 | |||
114 | base_bindir_progs = "login" | ||
115 | ALTERNATIVE_LINKS += "${base_bindir}/${@' ${base_bindir}/'.join((d.getVar('base_bindir_progs', True)).split())}" | ||
116 | |||
117 | base_sbindir_progs = "vipw vigr" | ||
118 | ALTERNATIVE_LINKS += "${base_sbindir}/${@' ${base_sbindir}/'.join((d.getVar('base_sbindir_progs', True)).split())}" | ||
119 | 113 | ||
120 | pkg_postinst_${PN} () { | 114 | pkg_postinst_${PN} () { |
121 | if [ "x$D" != "x" ]; then | 115 | if [ "x$D" != "x" ]; then |