summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/pigz/pigz.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/pigz/pigz.inc')
-rw-r--r--meta/recipes-extended/pigz/pigz.inc32
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 @@
1SUMMARY = "A parallel implementation of gzip"
2DESCRIPTION = "pigz, which stands for parallel implementation of gzip, is a \
3fully functional replacement for gzip that exploits multiple processors and \
4multiple cores to the hilt when compressing data. pigz was written by Mark \
5Adler, and uses the zlib and pthread libraries."
6HOMEPAGE = "http://zlib.net/pigz/"
7SECTION = "console/utils"
8LICENSE = "Zlib"
9
10SRC_URI = "http://zlib.net/pigz/pigz-${PV}.tar.gz"
11
12PROVIDES_class-native += "gzip-native"
13
14DEPENDS = "zlib"
15
16do_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
29ALTERNATIVE_${PN} = "gzip gunzip"
30ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip"
31ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip"
32ALTERNATIVE_PRIORITY = "80"