snort3: improve date filtering in report
[feed/packages.git] / utils / gzip / Makefile
1 #
2 # Copyright (C) 2006-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gzip
11 PKG_VERSION:=1.13
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@GNU/gzip
16 PKG_HASH:=7454eb6935db17c6655576c2e1b0fabefd38b4d0936e0f87f48cd062ce91a057
17 PKG_LICENSE:=GPL-3.0-or-later
18 PKG_CPE_ID:=cpe:/a:gnu:gzip
19
20 PKG_BUILD_PARALLEL:=1
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/gzip
26 SECTION:=utils
27 CATEGORY:=Utilities
28 SUBMENU:=Compression
29 TITLE:=gzip (GNU zip) is a compression utility.
30 URL:=https://www.gnu.org/software/gzip/
31 MAINTAINER:=Christian Beier <dontmind@freeshell.org>
32 ALTERNATIVES:=\
33 300:/bin/gunzip:/usr/libexec/gunzip-gnu \
34 300:/bin/gzip:/usr/libexec/gzip-gnu \
35 300:/bin/zcat:/usr/libexec/zcat-gnu
36 endef
37
38 define Package/gzip/description
39 gzip (GNU zip) is a compression utility designed to be a \
40 replacement for compress.
41 endef
42
43 CONFIGURE_VARS += \
44 gl_cv_func_getopt_gnu=yes \
45 ac_cv_search_clock_gettime=no
46
47 define Package/gzip/install
48 $(SED) 's,/bin/bash,/bin/sh,g' $(PKG_INSTALL_DIR)/usr/bin/{gunzip,zcat}
49 $(INSTALL_DIR) $(1)/usr/libexec
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gunzip $(1)/usr/libexec/gunzip-gnu
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gzip $(1)/usr/libexec/gzip-gnu
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/zcat $(1)/usr/libexec/zcat-gnu
53 endef
54
55 $(eval $(call BuildPackage,gzip))