diff options
Diffstat (limited to 'meta/recipes-extended/gzip/gzip.inc')
-rw-r--r-- | meta/recipes-extended/gzip/gzip.inc | 35 |
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 @@ | |||
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 | SRC_URI_append_class-target = " file://wrong-path-fix.patch" | ||
13 | |||
14 | inherit autotools texinfo | ||
15 | |||
16 | EXTRA_OEMAKE_class-target = "GREP=${base_bindir}/grep" | ||
17 | |||
18 | do_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 | |||
27 | inherit update-alternatives | ||
28 | |||
29 | ALTERNATIVE_PRIORITY = "100" | ||
30 | ALTERNATIVE_${PN} = "gunzip gzip zcat" | ||
31 | ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip" | ||
32 | ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip" | ||
33 | ALTERNATIVE_LINK_NAME[zcat] = "${base_bindir}/zcat" | ||
34 | |||
35 | export CONFIG_SHELL="/bin/sh" | ||