summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/gzip/gzip.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/gzip/gzip.inc')
-rw-r--r--meta/recipes-extended/gzip/gzip.inc35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-extended/gzip/gzip.inc b/meta/recipes-extended/gzip/gzip.inc
new file mode 100644
index 0000000000..b90856e796
--- /dev/null
+++ b/meta/recipes-extended/gzip/gzip.inc
@@ -0,0 +1,35 @@
1SUMMARY = "Standard GNU compressor"
2DESCRIPTION = "GNU Gzip is a popular data compression program originally written by Jean-loup Gailly for the GNU \
3project. Mark Adler wrote the decompression part"
4HOMEPAGE = "http://www.gnu.org/software/gzip/"
5SECTION = "console/utils"
6# change to GPLv3+ in 2007/07. Previous GPLv2 version is 1.3.12
7LICENSE = "GPLv3+"
8LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
9 file://gzip.h;beginline=8;endline=20;md5=6e47caaa630e0c8bf9f1bc8d94a8ed0e"
10
11SRC_URI = "${GNU_MIRROR}/gzip/${BP}.tar.gz"
12SRC_URI_append_class-target = " file://wrong-path-fix.patch"
13
14inherit autotools texinfo
15
16EXTRA_OEMAKE_class-target = "GREP=${base_bindir}/grep"
17
18do_install_append () {
19 # Rename and move files into /bin (FHS), which is typical place for gzip
20 install -d ${D}${base_bindir}
21 mv ${D}${bindir}/gunzip ${D}${base_bindir}/gunzip
22 mv ${D}${bindir}/gzip ${D}${base_bindir}/gzip
23 mv ${D}${bindir}/zcat ${D}${base_bindir}/zcat
24 mv ${D}${bindir}/uncompress ${D}${base_bindir}/uncompress
25}
26
27inherit update-alternatives
28
29ALTERNATIVE_PRIORITY = "100"
30ALTERNATIVE_${PN} = "gunzip gzip zcat"
31ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip"
32ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip"
33ALTERNATIVE_LINK_NAME[zcat] = "${base_bindir}/zcat"
34
35export CONFIG_SHELL="/bin/sh"