Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "GNU cpio is a program to manage archives of files" |
| 2 | DESCRIPTION = "GNU cpio is a tool for creating and extracting archives, or copying files from one place to \ |
| 3 | another. It handles a number of cpio formats as well as reading and writing tar files." |
| 4 | HOMEPAGE = "http://www.gnu.org/software/cpio/" |
| 5 | SECTION = "base" |
| 6 | LICENSE = "GPLv3" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" |
| 8 | |
| 9 | SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \ |
| 10 | file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ |
| 11 | " |
| 12 | |
| 13 | SRC_URI[md5sum] = "389c5452d667c23b5eceb206f5000810" |
| 14 | SRC_URI[sha256sum] = "e87470d9c984317f658567c03bfefb6b0c829ff17dbf6b0de48d71a4c8f3db88" |
| 15 | |
| 16 | inherit autotools gettext texinfo |
| 17 | |
| 18 | EXTRA_OECONF += "DEFAULT_RMT_DIR=${sbindir}" |
| 19 | |
| 20 | do_install () { |
| 21 | autotools_do_install |
| 22 | if [ "${base_bindir}" != "${bindir}" ]; then |
| 23 | install -d ${D}${base_bindir}/ |
| 24 | mv "${D}${bindir}/cpio" "${D}${base_bindir}/cpio" |
| 25 | rmdir ${D}${bindir}/ |
| 26 | fi |
| 27 | |
| 28 | # Avoid conflicts with the version from tar |
| 29 | mv "${D}${mandir}/man8/rmt.8" "${D}${mandir}/man8/rmt-cpio.8" |
| 30 | } |
| 31 | |
| 32 | PACKAGES =+ "${PN}-rmt" |
| 33 | |
| 34 | FILES_${PN}-rmt = "${sbindir}/rmt*" |
| 35 | |
| 36 | inherit update-alternatives |
| 37 | |
| 38 | ALTERNATIVE_PRIORITY = "100" |
| 39 | |
| 40 | ALTERNATIVE_${PN} = "cpio" |
| 41 | ALTERNATIVE_${PN}-rmt = "rmt" |
| 42 | |
| 43 | ALTERNATIVE_LINK_NAME[cpio] = "${base_bindir}/cpio" |
| 44 | |
| 45 | ALTERNATIVE_PRIORITY[rmt] = "50" |
| 46 | ALTERNATIVE_LINK_NAME[rmt] = "${sbindir}/rmt" |
| 47 | |
| 48 | BBCLASSEXTEND = "native" |