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