blob: ed30103ccd7e7797cb86a1e3a42940a367bfd773 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -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"
5LICENSE = "GPLv2+"
6
Andrew Geissler5f350902021-07-23 13:09:54 -04007LIC_FILES_CHKSUM = "file://README;md5=92cd5ee2e0b35d782817e7e277b6ce4b"
Andrew Geissler82c905d2020-04-13 13:39:40 -05008SRC_URI = "${KERNELORG_MIRROR}/linux/docs/${BPN}/${BP}.tar.gz"
9
Andrew Geissler5f350902021-07-23 13:09:54 -040010SRC_URI[sha256sum] = "2684d42ab53184d7607105834e277577daa7e854cdce0d4aacf9f7ad8437c7ce"
Andrew Geissler82c905d2020-04-13 13:39:40 -050011
12inherit manpages
13
14MAN_PKG = "${PN}"
15
16PACKAGECONFIG ??= ""
17PACKAGECONFIG[manpages] = ""
18
19do_configure[noexec] = "1"
20do_compile[noexec] = "1"
21
22do_install() {
Andrew Geissler5f350902021-07-23 13:09:54 -040023 oe_runmake install prefix=${prefix} DESTDIR=${D}
Andrew Geissler82c905d2020-04-13 13:39:40 -050024}
25
Patrick Williams213cb262021-08-07 19:21:33 -050026# Only deliveres man-pages so FILES:${PN} gets everything
27FILES:${PN}-doc = ""
28FILES:${PN} = "${mandir}/*"
Andrew Geissler82c905d2020-04-13 13:39:40 -050029
30inherit update-alternatives
31
32ALTERNATIVE_PRIORITY = "100"
Patrick Williams213cb262021-08-07 19:21:33 -050033ALTERNATIVE:${PN} = "passwd.5 getspnam.3 crypt.3"
Andrew Geissler82c905d2020-04-13 13:39:40 -050034ALTERNATIVE_LINK_NAME[passwd.5] = "${mandir}/man5/passwd.5"
35ALTERNATIVE_LINK_NAME[getspnam.3] = "${mandir}/man3/getspnam.3"
36ALTERNATIVE_LINK_NAME[crypt.3] = "${mandir}/man3/crypt.3"