From 2cff20f423fb9e82b44c68504be605c223bd74fb Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Fri, 3 Jul 2015 15:23:49 +0800 Subject: Update alternatives of man pages Update alternatives of man pages in several packages. Signed-off-by: Kai Kang Signed-off-by: Ross Burton --- meta/recipes-extended/mktemp/mktemp_1.7.bb | 4 ++++ meta/recipes-extended/procps/procps_3.3.10.bb | 4 ++++ meta/recipes-extended/shadow/shadow.inc | 3 ++- meta/recipes-extended/stat/stat_3.3.bb | 3 +++ 4 files changed, 13 insertions(+), 1 deletion(-) (limited to 'meta/recipes-extended') diff --git a/meta/recipes-extended/mktemp/mktemp_1.7.bb b/meta/recipes-extended/mktemp/mktemp_1.7.bb index b53fc11b1e..fe238eea37 100644 --- a/meta/recipes-extended/mktemp/mktemp_1.7.bb +++ b/meta/recipes-extended/mktemp/mktemp_1.7.bb @@ -28,3 +28,7 @@ do_install_append () { ALTERNATIVE_${PN} = "mktemp" ALTERNATIVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp" ALTERNATIVE_PRIORITY = "100" + +ALTERNATIVE_${PN}-doc = "mktemp.1" +ALTERNATIVE_PRIORITY_${PN}-doc = "300" +ALTERNATIVE_LINK_NAME[mktemp.1] = "${mandir}/man1/mktemp.1" diff --git a/meta/recipes-extended/procps/procps_3.3.10.bb b/meta/recipes-extended/procps/procps_3.3.10.bb index 621b6dd578..65d64ec478 100644 --- a/meta/recipes-extended/procps/procps_3.3.10.bb +++ b/meta/recipes-extended/procps/procps_3.3.10.bb @@ -52,6 +52,10 @@ ALTERNATIVE_PRIORITY = "100" ALTERNATIVE_${PN} = "${bindir_progs} ${base_bindir_progs} ${base_sbindir_progs}" +ALTERNATIVE_${PN}-doc = "kill.1 uptime.1" +ALTERNATIVE_LINK_NAME[kill.1] = "${mandir}/man1/kill.1" +ALTERNATIVE_LINK_NAME[uptime.1] = "${mandir}/man1/uptime.1" + python __anonymous() { for prog in d.getVar('base_bindir_progs', True).split(): d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_bindir', True), prog)) diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index 5451718cce..4313ffe952 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc @@ -179,9 +179,10 @@ ALTERNATIVE_${PN}-base = "newgrp groups login su" ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login" ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" -ALTERNATIVE_${PN}-doc = "passwd.5 getspnam.3" +ALTERNATIVE_${PN}-doc = "passwd.5 getspnam.3 groups.1" ALTERNATIVE_LINK_NAME[passwd.5] = "${mandir}/man5/passwd.5" ALTERNATIVE_LINK_NAME[getspnam.3] = "${mandir}/man3/getspnam.3" +ALTERNATIVE_LINK_NAME[groups.1] = "${mandir}/man1/groups.1" pkg_postinst_${PN} () { if [ "x$D" != "x" ]; then diff --git a/meta/recipes-extended/stat/stat_3.3.bb b/meta/recipes-extended/stat/stat_3.3.bb index 8a19b3b7ed..651831e314 100644 --- a/meta/recipes-extended/stat/stat_3.3.bb +++ b/meta/recipes-extended/stat/stat_3.3.bb @@ -24,5 +24,8 @@ ALTERNATIVE_PRIORITY[stat] = "200" ALTERNATIVE_LINK_NAME[stat] = "${base_bindir}/stat" ALTERNATIVE_TARGET[stat] = "${base_bindir}/stat.stat" +ALTERNATIVE_${PN}-doc = "stat.1" +ALTERNATIVE_LINK_NAME[stat.1] = "${mandir}/man1/stat.1" + BBCLASSEXTEND = "native" -- cgit 1.2.3-korg