From c05e07afffe3c2f518d71f15d94d2c0ff5b0c95c Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Thu, 31 Aug 2023 10:40:00 +0800 Subject: pigz: upgrade 2.7 -> 2.8 (From OE-Core rev: eaf8cf1a24b6459877139105a4a2917751de3998) Signed-off-by: Wang Mingyu Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-extended/pigz/pigz_2.7.bb | 48 ---------------------------------- meta/recipes-extended/pigz/pigz_2.8.bb | 48 ++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 48 deletions(-) delete mode 100644 meta/recipes-extended/pigz/pigz_2.7.bb create mode 100644 meta/recipes-extended/pigz/pigz_2.8.bb (limited to 'meta/recipes-extended/pigz') diff --git a/meta/recipes-extended/pigz/pigz_2.7.bb b/meta/recipes-extended/pigz/pigz_2.7.bb deleted file mode 100644 index 9a1c591b27..0000000000 --- a/meta/recipes-extended/pigz/pigz_2.7.bb +++ /dev/null @@ -1,48 +0,0 @@ -SUMMARY = "A parallel implementation of gzip" -DESCRIPTION = "pigz, which stands for parallel implementation of gzip, is a \ -fully functional replacement for gzip that exploits multiple processors and \ -multiple cores to the hilt when compressing data. pigz was written by Mark \ -Adler, and uses the zlib and pthread libraries." -HOMEPAGE = "http://zlib.net/pigz/" -SECTION = "console/utils" -LICENSE = "Zlib & Apache-2.0" -LIC_FILES_CHKSUM = "file://pigz.c;md5=9ae6dee8ceba9610596ed0ada493d142;beginline=7;endline=21" - -SRC_URI = "http://zlib.net/${BPN}/fossils/${BP}.tar.gz" -SRC_URI[sha256sum] = "b4c9e60344a08d5db37ca7ad00a5b2c76ccb9556354b722d56d55ca7e8b1c707" -PROVIDES:class-native += "gzip-native" - -# Point this at the homepage in case /fossils/ isn't updated -UPSTREAM_CHECK_URI = "http://zlib.net/${BPN}/" -UPSTREAM_CHECK_REGEX = "pigz-(?P.*)\.tar" - -DEPENDS = "zlib" - -EXTRA_OEMAKE = "-e MAKEFLAGS=" - -inherit update-alternatives - -do_install() { - # Install files into /bin (FHS), which is typical place for gzip - install -d ${D}${base_bindir} - install ${B}/pigz ${D}${base_bindir}/pigz - ln -nsf pigz ${D}${base_bindir}/unpigz - ln -nsf pigz ${D}${base_bindir}/pigzcat -} - -do_install:append:class-native() { - install -d ${D}${bindir} - install ${B}/pigz ${D}${bindir}/gzip - ln -nsf gzip ${D}${bindir}/gunzip - ln -nsf gzip ${D}${bindir}/zcat -} - -ALTERNATIVE_PRIORITY = "110" -ALTERNATIVE:${PN} = "gunzip gzip zcat" -ALTERNATIVE:${PN}:class-nativesdk = "" -ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip" -ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip" -ALTERNATIVE_LINK_NAME[zcat] = "${base_bindir}/zcat" -ALTERNATIVE_TARGET = "${base_bindir}/pigz" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-extended/pigz/pigz_2.8.bb b/meta/recipes-extended/pigz/pigz_2.8.bb new file mode 100644 index 0000000000..fcf0c93e41 --- /dev/null +++ b/meta/recipes-extended/pigz/pigz_2.8.bb @@ -0,0 +1,48 @@ +SUMMARY = "A parallel implementation of gzip" +DESCRIPTION = "pigz, which stands for parallel implementation of gzip, is a \ +fully functional replacement for gzip that exploits multiple processors and \ +multiple cores to the hilt when compressing data. pigz was written by Mark \ +Adler, and uses the zlib and pthread libraries." +HOMEPAGE = "http://zlib.net/pigz/" +SECTION = "console/utils" +LICENSE = "Zlib & Apache-2.0" +LIC_FILES_CHKSUM = "file://pigz.c;md5=9ae6dee8ceba9610596ed0ada493d142;beginline=7;endline=21" + +SRC_URI = "http://zlib.net/${BPN}/fossils/${BP}.tar.gz" +SRC_URI[sha256sum] = "eb872b4f0e1f0ebe59c9f7bd8c506c4204893ba6a8492de31df416f0d5170fd0" +PROVIDES:class-native += "gzip-native" + +# Point this at the homepage in case /fossils/ isn't updated +UPSTREAM_CHECK_URI = "http://zlib.net/${BPN}/" +UPSTREAM_CHECK_REGEX = "pigz-(?P.*)\.tar" + +DEPENDS = "zlib" + +EXTRA_OEMAKE = "-e MAKEFLAGS=" + +inherit update-alternatives + +do_install() { + # Install files into /bin (FHS), which is typical place for gzip + install -d ${D}${base_bindir} + install ${B}/pigz ${D}${base_bindir}/pigz + ln -nsf pigz ${D}${base_bindir}/unpigz + ln -nsf pigz ${D}${base_bindir}/pigzcat +} + +do_install:append:class-native() { + install -d ${D}${bindir} + install ${B}/pigz ${D}${bindir}/gzip + ln -nsf gzip ${D}${bindir}/gunzip + ln -nsf gzip ${D}${bindir}/zcat +} + +ALTERNATIVE_PRIORITY = "110" +ALTERNATIVE:${PN} = "gunzip gzip zcat" +ALTERNATIVE:${PN}:class-nativesdk = "" +ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip" +ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip" +ALTERNATIVE_LINK_NAME[zcat] = "${base_bindir}/zcat" +ALTERNATIVE_TARGET = "${base_bindir}/pigz" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf