summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Schlote <c.schlote@konzeptpark.de>2010-05-03 11:50:20 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-06-25 17:04:09 +0200
commiteab36222a9bfaedd6de0f651d5f50a5e071abf74 (patch)
treebf59c4e5526287d2fc2468814483f999db4a5919
parent421a414b82cd560254a6570c85d90c07f981eb5d (diff)
downloadptxdist-eab36222a9bfaedd6de0f651d5f50a5e071abf74.tar.gz
ptxdist-eab36222a9bfaedd6de0f651d5f50a5e071abf74.tar.xz
[zsync] Added version 0.6.1 as package to ptxdist
zsync allows for efficent updates of existing files. It was easy to port and might be useful for the one or other purpose. Signed-off-by: Carsten Schlote <c.schlote@konzeptpark.de> [mkl: removed UTF8 chars and trailing whitespace from .in] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--rules/zsync.in17
-rw-r--r--rules/zsync.make67
2 files changed, 84 insertions, 0 deletions
diff --git a/rules/zsync.in b/rules/zsync.in
new file mode 100644
index 000000000..2a5606d52
--- /dev/null
+++ b/rules/zsync.in
@@ -0,0 +1,17 @@
+## SECTION=networking
+
+config ZSYNC
+ tristate
+ prompt "zsync"
+ help
+ zsync is a file transfer program. It allows you to download a
+ file from a remote server, where you have a copy of an older
+ version of the file on your computer already. zsync downloads
+ only the new parts of the file. It uses the same algorithm as
+ rsync. However, where rsync is designed for synchronising data
+ from one computer to another within an organisation, zsync is
+ designed for file distribution, with one file on a server to be
+ distributed to thousands of downloaders. zsync requires no
+ special server software - just a web server to host the files -
+ and imposes no extra load on the server, making it ideal for
+ large scale file distribution.
diff --git a/rules/zsync.make b/rules/zsync.make
new file mode 100644
index 000000000..d6f9eaf4f
--- /dev/null
+++ b/rules/zsync.make
@@ -0,0 +1,67 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2010 by Carsten Schlote <c.schlote@konzeptpark.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_ZSYNC) += zsync
+
+#
+# Paths and names
+#
+ZSYNC_VERSION := 0.6.1
+ZSYNC := zsync-$(ZSYNC_VERSION)
+ZSYNC_SUFFIX := tar.bz2
+ZSYNC_URL := http://zsync.moria.org.uk/download/$(ZSYNC).$(ZSYNC_SUFFIX)
+ZSYNC_SOURCE := $(SRCDIR)/$(ZSYNC).$(ZSYNC_SUFFIX)
+ZSYNC_DIR := $(BUILDDIR)/$(ZSYNC)
+ZSYNC_LICENSE := GPL
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(ZSYNC_SOURCE):
+ @$(call targetinfo)
+ @$(call get, ZSYNC)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+ZSYNC_CONF_TOOL := autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/zsync.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, zsync)
+ @$(call install_fixup, zsync,PACKAGE,zsync)
+ @$(call install_fixup, zsync,PRIORITY,optional)
+ @$(call install_fixup, zsync,VERSION,$(ZSYNC_VERSION))
+ @$(call install_fixup, zsync,SECTION,base)
+ @$(call install_fixup, zsync,AUTHOR,"Carsten Schlote <c.schlote@konzeptpark.de>")
+ @$(call install_fixup, zsync,DEPENDS,)
+ @$(call install_fixup, zsync,DESCRIPTION,missing)
+
+ @$(call install_copy, zsync, 0, 0, 0755, -, /usr/bin/zsync)
+ @$(call install_copy, zsync, 0, 0, 0755, -, /usr/bin/zsyncmake)
+
+ @$(call install_finish, zsync)
+
+ @$(call touch)
+
+# vim: syntax=make