summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-12-11 16:36:10 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-12-11 16:36:10 +0100
commit34bfa45180532da58789de2d3335a986a20f0e85 (patch)
tree4a0eb3ad21fa102113ded5d53060a4c70b679242
parent3d54ba0501a0266b9493a33f70d5feeb2f7c37f5 (diff)
downloadptxdist-34bfa45180532da58789de2d3335a986a20f0e85.tar.gz
ptxdist-34bfa45180532da58789de2d3335a986a20f0e85.tar.xz
gzip: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/gzip.in20
-rw-r--r--rules/gzip.make83
2 files changed, 103 insertions, 0 deletions
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 <m.olbrich@pengutronix.de>
+#
+# 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 <m.olbrich@pengutronix.de>")
+ @$(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