This packages adds a "lossless compression algorithm" - supported by 'rsync 3.2.1'.
For details see: https://github.com/facebook/zstd/releases/tag/v1.4.5
Signed-off-by: Matthias Fischer matthias.fischer@ipfire.org --- config/rootfiles/packages/zstd | 20 ++++++++ lfs/zstd | 83 ++++++++++++++++++++++++++++++++++ make.sh | 1 + src/paks/zstd/install.sh | 25 ++++++++++ src/paks/zstd/uninstall.sh | 25 ++++++++++ src/paks/zstd/update.sh | 26 +++++++++++ 6 files changed, 180 insertions(+) create mode 100644 config/rootfiles/packages/zstd create mode 100644 lfs/zstd create mode 100644 src/paks/zstd/install.sh create mode 100644 src/paks/zstd/uninstall.sh create mode 100644 src/paks/zstd/update.sh
diff --git a/config/rootfiles/packages/zstd b/config/rootfiles/packages/zstd new file mode 100644 index 000000000..78c3ffec3 --- /dev/null +++ b/config/rootfiles/packages/zstd @@ -0,0 +1,20 @@ +usr/bin/unzstd +usr/bin/zstd +usr/bin/zstdcat +usr/bin/zstdgrep +usr/bin/zstdless +usr/bin/zstdmt +#usr/include/zbuff.h +#usr/include/zdict.h +#usr/include/zstd.h +#usr/include/zstd_errors.h +#usr/lib/libzstd.a +usr/lib/libzstd.so +usr/lib/libzstd.so.1 +usr/lib/libzstd.so.1.4.5 +#usr/lib/pkgconfig/libzstd.pc +#usr/share/man/man1/unzstd.1 +#usr/share/man/man1/zstd.1 +#usr/share/man/man1/zstdcat.1 +#usr/share/man/man1/zstdgrep.1 +#usr/share/man/man1/zstdless.1 diff --git a/lfs/zstd b/lfs/zstd new file mode 100644 index 000000000..55ac837d3 --- /dev/null +++ b/lfs/zstd @@ -0,0 +1,83 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2020 IPFire Team info@ipfire.org # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see http://www.gnu.org/licenses/. # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 1.4.5 + +THISAPP = zstd-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = zstd +PAK_VER = 1 + +DEPS = + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = dd0b53631303b8f972dafa6fd34beb0c + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make prefix=/usr install + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 2e54cec28..57cf2f724 100755 --- a/make.sh +++ b/make.sh @@ -1431,6 +1431,7 @@ buildipfire() { lfsmake2 xvid lfsmake2 libmpeg2 lfsmake2 gnump3d + lfsmake2 zstd lfsmake2 rsync lfsmake2 libtirpc lfsmake2 rpcbind diff --git a/src/paks/zstd/install.sh b/src/paks/zstd/install.sh new file mode 100644 index 000000000..3fe8bc67e --- /dev/null +++ b/src/paks/zstd/install.sh @@ -0,0 +1,25 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2009 IPFire-Team info@ipfire.org. # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +extract_files diff --git a/src/paks/zstd/uninstall.sh b/src/paks/zstd/uninstall.sh new file mode 100644 index 000000000..f786519d6 --- /dev/null +++ b/src/paks/zstd/uninstall.sh @@ -0,0 +1,25 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2009 IPFire-Team info@ipfire.org. # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +remove_files diff --git a/src/paks/zstd/update.sh b/src/paks/zstd/update.sh new file mode 100644 index 000000000..89c40d0d7 --- /dev/null +++ b/src/paks/zstd/update.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team info@ipfire.org. # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +./uninstall.sh +./install.sh