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.inc29
1 files changed, 29 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..6ec1dae0fd
--- /dev/null
+++ b/meta/recipes-extended/gzip/gzip.inc
@@ -0,0 +1,29 @@
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"
12
13inherit autotools
14
15do_install_append () {
16 # Rename and move files into /bin (FHS), which is typical place for gzip
17 install -d ${D}${base_bindir}
18 mv ${D}${bindir}/gunzip ${D}${base_bindir}/gunzip
19 mv ${D}${bindir}/gzip ${D}${base_bindir}/gzip
20 mv ${D}${bindir}/zcat ${D}${base_bindir}/zcat
21}
22
23inherit update-alternatives
24
25ALTERNATIVE_PRIORITY = "100"
26ALTERNATIVE_${PN} = "gunzip gzip zcat"
27ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip"
28ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip"
29ALTERNATIVE_LINK_NAME[zcat] = "${base_bindir}/zcat"