From 34bfa45180532da58789de2d3335a986a20f0e85 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 11 Dec 2012 16:36:10 +0100 Subject: gzip: new package Signed-off-by: Michael Olbrich --- rules/gzip.in | 20 ++++++++++++++ rules/gzip.make | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 rules/gzip.in create mode 100644 rules/gzip.make diff --git a/rules/gzip.in b/rules/gzip.in new file mode 100644 index 000000000..1774e4f9a --- /dev/null +++ b/rules/gzip.in @@ -0,0 +1,20 @@ +## SECTION=shell_and_console + +config GZIP + tristate + select LIBC_RT + select GCCLIBS_GCC_S + prompt "gzip" + depends on ( !BUSYBOX_GZIP && !BUSYBOX_GUNZIP ) || ALLYES + help + gzip (GNU zip) is a compression utility designed to be a replacement + for compress. Its main advantages over compress are much better + compression and freedom from patented algorithms. + + +comment "BusyBox' gzip is selected! (netkit-base)" + depends on BUSYBOX_GZIP + +comment "BusyBox' gunzip is selected! (netkit-base)" + depends on BUSYBOX_GUNZIP + diff --git a/rules/gzip.make b/rules/gzip.make new file mode 100644 index 000000000..7fa04607f --- /dev/null +++ b/rules/gzip.make @@ -0,0 +1,83 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Michael Olbrich +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_GZIP) += gzip + +# +# Paths and names +# +GZIP_VERSION := 1.5 +GZIP_MD5 := 2a431e169b6f62f7332ef6d47cc53bae +GZIP := gzip-$(GZIP_VERSION) +GZIP_SUFFIX := tar.xz +GZIP_URL := $(call ptx/mirror, GNU, gzip/$(GZIP).$(GZIP_SUFFIX)) +GZIP_SOURCE := $(SRCDIR)/$(GZIP).$(GZIP_SUFFIX) +GZIP_DIR := $(BUILDDIR)/$(GZIP) +GZIP_LICENSE := GPLv3 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +GZIP_CONF_TOOL := autoconf +GZIP_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + $(GLOBAL_LARGE_FILE_OPTION) \ + --enable-threads=posix \ + --disable-rpath + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gzip.targetinstall: + @$(call targetinfo) + + @$(call install_init, gzip) + @$(call install_fixup, gzip,PRIORITY,optional) + @$(call install_fixup, gzip,SECTION,base) + @$(call install_fixup, gzip,AUTHOR,"Michael Olbrich ") + @$(call install_fixup, gzip,DESCRIPTION,missing) + + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/gzip) + + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/gunzip) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/gzexe) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/uncompress) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zcat) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zcmp) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zdiff) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zegrep) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zfgrep) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zforce) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zgrep) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zless) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zmore) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/znew) + + @$(call install_finish, gzip) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +#$(STATEDIR)/gzip.clean: +# @$(call targetinfo) +# @$(call clean_pkg, GZIP) + +# vim: syntax=make -- cgit v1.2.3