From 1a21c9d60c5b408f50a7138e70432cbc46b49f2f Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Fri, 15 Apr 2016 13:53:24 +0200 Subject: [PATCH 1/2] gzip: import from oldpackages Signed-off-by: Christian Beier --- utils/gzip/Makefile | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 utils/gzip/Makefile diff --git a/utils/gzip/Makefile b/utils/gzip/Makefile new file mode 100644 index 000000000..12943fb08 --- /dev/null +++ b/utils/gzip/Makefile @@ -0,0 +1,61 @@ +# +# Copyright (C) 2006-2012 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gzip +PKG_VERSION:=1.4 +PKG_RELEASE:=3 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@GNU/gzip +PKG_MD5SUM:=e381b8506210c794278f5527cba0e765 + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/gzip + SECTION:=utils + CATEGORY:=Utilities + TITLE:=gzip (GNU zip) is a compression utility. + URL:=http://www.gzip.org/ +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} + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{gunzip,gzip,zcat} $(1)/usr/bin/ +endef + +define Package/gzip/postinst +#!/bin/sh +for app in gunzip gzip zcat; do + ln -sf ../usr/bin/$$app $${IPKG_INSTROOT}/bin/$$app +done +endef + +define Package/gzip/postrm +#!/bin/sh +for app in gunzip gzip zcat; do + ln -sf busybox $${IPKG_INSTROOT}/bin/$$app + $${IPKG_INSTROOT}/bin/$$app 2>&1 | grep 'applet not found' > /dev/null 2>&1 && rm $${IPKG_INSTROOT}/bin/$$app +done +exit 0 +endef + +$(eval $(call BuildPackage,gzip)) + From 6912f6ff082564b62b20385626b2e6c137973d99 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Fri, 15 Apr 2016 14:11:27 +0200 Subject: [PATCH 2/2] gzip: update to 1.7, update Makefile. Signed-off-by: Christian Beier --- utils/gzip/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/utils/gzip/Makefile b/utils/gzip/Makefile index 12943fb08..d1236f212 100644 --- a/utils/gzip/Makefile +++ b/utils/gzip/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2012 OpenWrt.org +# Copyright (C) 2006-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,12 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gzip -PKG_VERSION:=1.4 -PKG_RELEASE:=3 +PKG_VERSION:=1.7 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@GNU/gzip -PKG_MD5SUM:=e381b8506210c794278f5527cba0e765 +PKG_MD5SUM:=c4abae2ddd5c6f39c6f8169693cc7ac0 +PKG_LICENSE:=GPL-3.0+ PKG_INSTALL:=1 @@ -23,7 +24,8 @@ define Package/gzip SECTION:=utils CATEGORY:=Utilities TITLE:=gzip (GNU zip) is a compression utility. - URL:=http://www.gzip.org/ + URL:=https://www.gnu.org/software/gzip/ + MAINTAINER:=Christian Beier endef define Package/gzip/description