blob: f8602c699ea5615a6dc8368c5024c1092bba752c [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001SUMMARY = "Linux man-pages"
2DESCRIPTION = "The Linux man-pages project documents the Linux kernel and C library interfaces that are employed by user programs"
3SECTION = "console/utils"
4HOMEPAGE = "http://www.kernel.org/pub/linux/docs/man-pages"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00005LICENSE = "GPL-2.0-or-later"
Andrew Geisslereff27472021-10-29 15:35:00 -05006
7LIC_FILES_CHKSUM = "file://README;md5=92cd5ee2e0b35d782817e7e277b6ce4b"
8SRC_URI = "${KERNELORG_MIRROR}/linux/docs/${BPN}/${BP}.tar.gz"
9
10SRC_URI[sha256sum] = "ed615e9a31978833f59e7316667b9aeffbbdb0a92d1391f9c66fadc6e77d0da8"
11
12inherit manpages
13
14MAN_PKG = "${PN}"
15
16PACKAGECONFIG ??= ""
17PACKAGECONFIG[manpages] = ""
18
19do_configure[noexec] = "1"
20do_compile[noexec] = "1"
21
22do_install() {
23 oe_runmake install prefix=${prefix} DESTDIR=${D}
24}
25
26# Only deliveres man-pages so FILES:${PN} gets everything
27FILES:${PN}-doc = ""
28FILES:${PN} = "${mandir}/*"
29
30inherit update-alternatives
31
32ALTERNATIVE_PRIORITY = "100"
Andrew Geisslerd5838332022-05-27 11:33:10 -050033ALTERNATIVE:${PN} = "crypt.3 crypt_r.3 getspnam.3 passwd.5"
Andrew Geisslereff27472021-10-29 15:35:00 -050034ALTERNATIVE_LINK_NAME[crypt.3] = "${mandir}/man3/crypt.3"
Andrew Geisslerd5838332022-05-27 11:33:10 -050035ALTERNATIVE_LINK_NAME[crypt_r.3] = "${mandir}/man3/crypt_r.3"
36ALTERNATIVE_LINK_NAME[getspnam.3] = "${mandir}/man3/getspnam.3"
37ALTERNATIVE_LINK_NAME[passwd.5] = "${mandir}/man5/passwd.5"