diff options
Diffstat (limited to 'meta/recipes-extended/pigz/pigz.inc')
-rw-r--r-- | meta/recipes-extended/pigz/pigz.inc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-extended/pigz/pigz.inc b/meta/recipes-extended/pigz/pigz.inc new file mode 100644 index 0000000000..355fb2a4ec --- /dev/null +++ b/meta/recipes-extended/pigz/pigz.inc | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "A parallel implementation of gzip" | ||
2 | DESCRIPTION = "pigz, which stands for parallel implementation of gzip, is a \ | ||
3 | fully functional replacement for gzip that exploits multiple processors and \ | ||
4 | multiple cores to the hilt when compressing data. pigz was written by Mark \ | ||
5 | Adler, and uses the zlib and pthread libraries." | ||
6 | HOMEPAGE = "http://zlib.net/pigz/" | ||
7 | SECTION = "console/utils" | ||
8 | LICENSE = "Zlib" | ||
9 | |||
10 | SRC_URI = "http://zlib.net/pigz/pigz-${PV}.tar.gz" | ||
11 | |||
12 | PROVIDES_class-native += "gzip-native" | ||
13 | |||
14 | DEPENDS = "zlib" | ||
15 | |||
16 | do_install () { | ||
17 | if [ "${CLASSOVERRIDE}" = "class-target" ] ; then | ||
18 | # Install files into /bin (FHS), which is typical place for gzip | ||
19 | install -d ${D}${base_bindir} | ||
20 | install ${B}/pigz ${D}${base_bindir}/gzip | ||
21 | install ${B}/unpigz ${D}${base_bindir}/gunzip | ||
22 | else | ||
23 | install -d ${D}${bindir} | ||
24 | install ${B}/pigz ${D}${bindir}/gzip | ||
25 | install ${B}/unpigz ${D}${bindir}/gunzip | ||
26 | fi | ||
27 | } | ||
28 | |||
29 | ALTERNATIVE_${PN} = "gzip gunzip" | ||
30 | ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip" | ||
31 | ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip" | ||
32 | ALTERNATIVE_PRIORITY = "80" | ||