diff options
author | Dan McGregor <danismostlikely@gmail.com> | 2024-04-11 16:36:13 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-23 13:40:24 +0100 |
commit | 6fd0ad3283c039361686eecbaff03bdc722427e2 (patch) | |
tree | 05d50ad45891749b68dac1fd1f98c28fbe5f756e /meta/recipes-extended/shadow | |
parent | 622235b4de9c56224b4f3c1b36f2e5bd8df1b5cb (diff) | |
download | poky-6fd0ad3283c039361686eecbaff03bdc722427e2.tar.gz |
shadow: install manpages
Install the manpages for shadow, and also make the conflicting manpages
alternatives in util-linux.
(From OE-Core rev: 4b5a119ab36b2339b5469e5c7d34635090cc70f0)
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow')
-rw-r--r-- | meta/recipes-extended/shadow/shadow.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index 7b9763d6db..c15715fc77 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -168,6 +168,14 @@ do_install:append:class-native() { | |||
168 | SYSROOT_DIRS:append:class-native = " ${STAGING_DIR_NATIVE}/lib-shadow-deps/" | 168 | SYSROOT_DIRS:append:class-native = " ${STAGING_DIR_NATIVE}/lib-shadow-deps/" |
169 | INSANE_SKIP:${PN}:class-native = "already-stripped" | 169 | INSANE_SKIP:${PN}:class-native = "already-stripped" |
170 | 170 | ||
171 | do_install:append:class-nativesdk() { | ||
172 | oe_runmake -C ${B}/man DESTDIR="${D}" sbindir="${base_sbindir}" usbindir="${sbindir}" install-man | ||
173 | } | ||
174 | |||
175 | do_install:append:class-target() { | ||
176 | oe_runmake -C ${B}/man DESTDIR="${D}" sbindir="${base_sbindir}" usbindir="${sbindir}" install-man | ||
177 | } | ||
178 | |||
171 | PACKAGES =+ "${PN}-base" | 179 | PACKAGES =+ "${PN}-base" |
172 | FILES:${PN}-base = "\ | 180 | FILES:${PN}-base = "\ |
173 | ${base_bindir}/login.shadow \ | 181 | ${base_bindir}/login.shadow \ |
@@ -193,6 +201,10 @@ ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw" | |||
193 | ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" | 201 | ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" |
194 | ALTERNATIVE_LINK_NAME[nologin] = "${base_sbindir}/nologin" | 202 | ALTERNATIVE_LINK_NAME[nologin] = "${base_sbindir}/nologin" |
195 | 203 | ||
204 | ALTERNATIVE:${PN}-doc = "chfn.1 chsh.1" | ||
205 | ALTERNATIVE_LINK_NAME[chfn.1] = "${mandir}/man1/chfn.1" | ||
206 | ALTERNATIVE_LINK_NAME[chsh.1] = "${mandir}/man1/chsh.1" | ||
207 | |||
196 | ALTERNATIVE:${PN}-base = "newgrp groups login su" | 208 | ALTERNATIVE:${PN}-base = "newgrp groups login su" |
197 | ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login" | 209 | ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login" |
198 | ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" | 210 | ALTERNATIVE_LINK_NAME[su] = "${base_bindir}/su" |