Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Standard GNU compressor" |
| 2 | DESCRIPTION = "GNU Gzip is a popular data compression program originally written by Jean-loup Gailly for the GNU \ |
| 3 | project. Mark Adler wrote the decompression part" |
| 4 | HOMEPAGE = "http://www.gnu.org/software/gzip/" |
| 5 | SECTION = "console/utils" |
| 6 | # change to GPLv3+ in 2007/07. Previous GPLv2 version is 1.3.12 |
| 7 | |
| 8 | inherit autotools texinfo |
| 9 | |
| 10 | EXTRA_OEMAKE_class-target = "GREP=${base_bindir}/grep" |
| 11 | |
| 12 | do_install_append () { |
| 13 | # Rename and move files into /bin (FHS), which is typical place for gzip |
| 14 | install -d ${D}${base_bindir} |
| 15 | mv ${D}${bindir}/gunzip ${D}${base_bindir}/gunzip |
| 16 | mv ${D}${bindir}/gzip ${D}${base_bindir}/gzip |
| 17 | mv ${D}${bindir}/zcat ${D}${base_bindir}/zcat |
| 18 | mv ${D}${bindir}/uncompress ${D}${base_bindir}/uncompress |
| 19 | } |
| 20 | |
| 21 | inherit update-alternatives |
| 22 | |
| 23 | ALTERNATIVE_PRIORITY = "100" |
| 24 | ALTERNATIVE_${PN} = "gunzip gzip zcat" |
| 25 | ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip" |
| 26 | ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip" |
| 27 | ALTERNATIVE_LINK_NAME[zcat] = "${base_bindir}/zcat" |
| 28 | |
| 29 | export CONFIG_SHELL="/bin/sh" |