diff options
Diffstat (limited to 'meta/recipes-extended/gzip/gzip.inc')
-rw-r--r-- | meta/recipes-extended/gzip/gzip.inc | 29 |
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 @@ | |||
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 | LICENSE = "GPLv3+" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
9 | file://gzip.h;beginline=8;endline=20;md5=6e47caaa630e0c8bf9f1bc8d94a8ed0e" | ||
10 | |||
11 | SRC_URI = "${GNU_MIRROR}/gzip/${BP}.tar.gz" | ||
12 | |||
13 | inherit autotools | ||
14 | |||
15 | do_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 | |||
23 | inherit update-alternatives | ||
24 | |||
25 | ALTERNATIVE_PRIORITY = "100" | ||
26 | ALTERNATIVE_${PN} = "gunzip gzip zcat" | ||
27 | ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip" | ||
28 | ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip" | ||
29 | ALTERNATIVE_LINK_NAME[zcat] = "${base_bindir}/zcat" | ||