pigz: new package

A parallel implementation of gzip for modern
multi-processor, multi-core machines.

Signed-off-by: Alfredo Alvarez Fernandez <alfredo.alvarez_fernandez@nokia.com>
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
[Thomas: add entry to DEVELOPERS file, add hash for license file.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Alfredo Alvarez Fernandez 2018-07-04 09:07:36 +02:00 committed by Thomas Petazzoni
parent c31637b584
commit ec0ae23c45
5 changed files with 40 additions and 0 deletions

View file

@ -1914,6 +1914,7 @@ F: package/civetweb/
N: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
F: docs/manual/
F: package/opkg-utils/
F: package/pigz/
F: support/scripts/size-stats
F: utils/size-stats-compare
F: toolchain/

View file

@ -70,6 +70,7 @@ menu "Compressors and decompressors"
source "package/lzip/Config.in"
source "package/lzop/Config.in"
source "package/p7zip/Config.in"
source "package/pigz/Config.in"
source "package/pixz/Config.in"
source "package/unrar/Config.in"
source "package/unzip/Config.in"

14
package/pigz/Config.in Normal file
View file

@ -0,0 +1,14 @@
config BR2_PACKAGE_PIGZ
bool "pigz"
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_ZLIB
help
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.
http://www.zlib.net/pigz/
comment "pigz needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS

3
package/pigz/pigz.hash Normal file
View file

@ -0,0 +1,3 @@
# From https://zlib.net/pigz/
sha256 a4f816222a7b4269bd232680590b579ccc72591f1bb5adafcd7208ca77e14f73 pigz-2.4.tar.gz
sha256 dc8f78258cdb4478b5922f4c00eb63d3cbac06c171dc829648fd414bb0cf4493 README

21
package/pigz/pigz.mk Normal file
View file

@ -0,0 +1,21 @@
################################################################################
#
# pigz
#
################################################################################
PIGZ_VERSION = 2.4
PIGZ_SITE = http://www.zlib.net/pigz
PIGZ_DEPENDENCIES = zlib
PIGZ_LICENSE = Zlib
PIGZ_LICENSE_FILES = README
define PIGZ_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef
define PIGZ_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/pigz $(TARGET_DIR)/usr/bin/pigz
endef
$(eval $(generic-package))