diff options
-rw-r--r-- | rules/zsync.in | 17 | ||||
-rw-r--r-- | rules/zsync.make | 67 |
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 |