diff options
-rw-r--r-- | meta/recipes-extended/man-pages/man-pages_3.71.bb | 7 | ||||
-rw-r--r-- | meta/recipes-extended/shadow/shadow.inc | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-extended/man-pages/man-pages_3.71.bb b/meta/recipes-extended/man-pages/man-pages_3.71.bb index 759bad540c..225b2567cb 100644 --- a/meta/recipes-extended/man-pages/man-pages_3.71.bb +++ b/meta/recipes-extended/man-pages/man-pages_3.71.bb | |||
@@ -27,3 +27,10 @@ do_install() { | |||
27 | # Only deliveres man-pages so FILES_${PN} gets everything | 27 | # Only deliveres man-pages so FILES_${PN} gets everything |
28 | FILES_${PN}-doc = "" | 28 | FILES_${PN}-doc = "" |
29 | FILES_${PN} = "${mandir}/*" | 29 | FILES_${PN} = "${mandir}/*" |
30 | |||
31 | inherit update-alternatives | ||
32 | |||
33 | ALTERNATIVE_PRIORITY = "100" | ||
34 | ALTERNATIVE_${PN} = "passwd.5 getspnam.3" | ||
35 | ALTERNATIVE_LINK_NAME[passwd.5] = "${mandir}/man5/passwd.5" | ||
36 | ALTERNATIVE_LINK_NAME[getspnam.3] = "${mandir}/man3/getspnam.3" | ||
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index 131e541d29..14c7281f53 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -159,6 +159,10 @@ ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw" | |||
159 | ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" | 159 | ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" |
160 | ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" | 160 | ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" |
161 | 161 | ||
162 | ALTERNATIVE_${PN}-doc = "passwd.5 getspnam.3" | ||
163 | ALTERNATIVE_LINK_NAME[passwd.5] = "${mandir}/man5/passwd.5" | ||
164 | ALTERNATIVE_LINK_NAME[getspnam.3] = "${mandir}/man3/getspnam.3" | ||
165 | |||
162 | pkg_postinst_${PN} () { | 166 | pkg_postinst_${PN} () { |
163 | if [ "x$D" != "x" ]; then | 167 | if [ "x$D" != "x" ]; then |
164 | rootarg="--root $D" | 168 | rootarg="--root $D" |