2016-04-15 11:53:24 +00:00
|
|
|
#
|
2016-04-15 12:11:27 +00:00
|
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
2016-04-15 11:53:24 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gzip
|
2023-04-25 21:30:11 +00:00
|
|
|
PKG_VERSION:=1.12
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2016-04-15 11:53:24 +00:00
|
|
|
|
2018-08-07 22:56:21 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2016-04-15 11:53:24 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/gzip
|
2023-04-25 21:30:11 +00:00
|
|
|
PKG_HASH:=ce5e03e519f637e1f814011ace35c4f87b33c0bbabeec35baf5fbd3479e91956
|
2019-09-02 13:15:08 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2019-09-12 12:13:21 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:gnu:gzip
|
2016-04-15 11:53:24 +00:00
|
|
|
|
2018-08-07 22:56:21 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2016-04-15 11:53:24 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/gzip
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2016-10-23 16:21:19 +00:00
|
|
|
SUBMENU:=Compression
|
2016-04-15 11:53:24 +00:00
|
|
|
TITLE:=gzip (GNU zip) is a compression utility.
|
2016-04-15 12:11:27 +00:00
|
|
|
URL:=https://www.gnu.org/software/gzip/
|
|
|
|
MAINTAINER:=Christian Beier <dontmind@freeshell.org>
|
2020-06-23 14:37:43 +00:00
|
|
|
ALTERNATIVES:=\
|
|
|
|
300:/bin/gunzip:/usr/libexec/gunzip-gnu \
|
|
|
|
300:/bin/gzip:/usr/libexec/gzip-gnu \
|
|
|
|
300:/bin/zcat:/usr/libexec/zcat-gnu
|
2016-04-15 11:53:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gzip/description
|
|
|
|
gzip (GNU zip) is a compression utility designed to be a \
|
|
|
|
replacement for compress.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
gl_cv_func_getopt_gnu=yes \
|
|
|
|
ac_cv_search_clock_gettime=no
|
|
|
|
|
|
|
|
define Package/gzip/install
|
|
|
|
$(SED) 's,/bin/bash,/bin/sh,g' $(PKG_INSTALL_DIR)/usr/bin/{gunzip,zcat}
|
2020-06-23 14:37:43 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/libexec
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gunzip $(1)/usr/libexec/gunzip-gnu
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gzip $(1)/usr/libexec/gzip-gnu
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/zcat $(1)/usr/libexec/zcat-gnu
|
2016-04-15 11:53:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,gzip))
|