blob: bc02597ef710b47d4541b79d3d159f3a302bcc91 [file] [log] [blame]
Andrew Geisslerc5535c92023-01-27 16:10:19 -06001SUMMARY = "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 = "GPL-2.0-or-later & GPL-2.0-only & GPL-1.0-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT"
6
Andrew Geissler6aa7eec2023-03-03 12:41:14 -06007LIC_FILES_CHKSUM = "file://README;md5=0fdad39ebaa973a50785f79f0f59f87f \
Andrew Geisslerc5535c92023-01-27 16:10:19 -06008 file://LICENSES/BSD-2-Clause.txt;md5=d0f280d1058e77e66264a9b9e10e6c89 \
9 file://LICENSES/BSD-3-Clause.txt;md5=71f739ef75581cae312e8c711bcdab16 \
10 file://LICENSES/BSD-4-Clause-UC.txt;md5=1da3cf8ad50cd8d5d1de3cfc53196d01 \
11 file://LICENSES/GPL-1.0-or-later.txt;md5=e5b7c80002ef72ab868b43ce47b65125 \
12 file://LICENSES/GPL-2.0-only.txt;md5=3d26203303a722dedc6bf909d95ba815 \
13 file://LICENSES/GPL-2.0-or-later.txt;md5=3d26203303a722dedc6bf909d95ba815 \
14 file://LICENSES/Linux-man-pages-copyleft.txt;md5=173b960c686ff2d26f043ddaeb63f6ce \
15 file://LICENSES/MIT.txt;md5=7dda4e90ded66ab88b86f76169f28663 \
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060016 "
Andrew Geisslerc5535c92023-01-27 16:10:19 -060017SRC_URI = "${KERNELORG_MIRROR}/linux/docs/${BPN}/${BP}.tar.gz"
18
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060019SRC_URI[sha256sum] = "76eca045b42a90dd25d094c46d97ac90187bc0f1bfca358bb5dae5c4337acbb0"
Andrew Geisslerc5535c92023-01-27 16:10:19 -060020
21inherit manpages
22
23MAN_PKG = "${PN}"
24
25PACKAGECONFIG ??= ""
26PACKAGECONFIG[manpages] = ""
27
28do_configure[noexec] = "1"
29do_compile[noexec] = "1"
30
31do_install() {
32 oe_runmake install prefix=${prefix} DESTDIR=${D}
33}
34
35# Only deliveres man-pages so FILES:${PN} gets everything
36FILES:${PN}-doc = ""
37FILES:${PN} = "${mandir}/*"
38
39inherit update-alternatives
40
41ALTERNATIVE_PRIORITY = "100"
42ALTERNATIVE:${PN} = "crypt.3 crypt_r.3 getspnam.3 passwd.5"
43ALTERNATIVE_LINK_NAME[crypt.3] = "${mandir}/man3/crypt.3"
44ALTERNATIVE_LINK_NAME[crypt_r.3] = "${mandir}/man3/crypt_r.3"
45ALTERNATIVE_LINK_NAME[getspnam.3] = "${mandir}/man3/getspnam.3"
46ALTERNATIVE_LINK_NAME[passwd.5] = "${mandir}/man5/passwd.5"