diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-extended/pigz | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-extended/pigz')
-rw-r--r-- | meta/recipes-extended/pigz/pigz.inc | 32 | ||||
-rw-r--r-- | meta/recipes-extended/pigz/pigz_2.3.1.bb | 10 |
2 files changed, 42 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" | ||
diff --git a/meta/recipes-extended/pigz/pigz_2.3.1.bb b/meta/recipes-extended/pigz/pigz_2.3.1.bb new file mode 100644 index 0000000000..cd5508d63e --- /dev/null +++ b/meta/recipes-extended/pigz/pigz_2.3.1.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require pigz.inc | ||
2 | LIC_FILES_CHKSUM = "file://pigz.c;beginline=7;endline=21;md5=a21d4075cb00ab4ca17fce5e7534ca95" | ||
3 | |||
4 | SRC_URI[md5sum] = "e803f8bc0770c7a5e96dccb1d2dd2aab" | ||
5 | SRC_URI[sha256sum] = "629b0ce5422a3978f31742bf8275d0be2f84987140d18f390f1e3b4e46e0af54" | ||
6 | |||
7 | NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}" | ||
8 | |||
9 | BBCLASSEXTEND = "native nativesdk" | ||
10 | |||