From 8078e101a771bc3ffff078bf8184c8e66ad3d298 Mon Sep 17 00:00:00 2001 From: burakerturk Date: Sat, 18 Jul 2015 03:03:17 +0300 Subject: [PATCH] librsync add repo --- network/share/librsync/actions.py | 20 ++++ .../files/librsync-0.9.7-largefiles.patch | 92 +++++++++++++++++++ .../share/librsync/files/librsync-link.patch | 26 ++++++ network/share/librsync/pspec.xml | 67 ++++++++++++++ network/share/librsync/translations.xml | 15 +++ 5 files changed, 220 insertions(+) create mode 100644 network/share/librsync/actions.py create mode 100644 network/share/librsync/files/librsync-0.9.7-largefiles.patch create mode 100644 network/share/librsync/files/librsync-link.patch create mode 100644 network/share/librsync/pspec.xml create mode 100644 network/share/librsync/translations.xml diff --git a/network/share/librsync/actions.py b/network/share/librsync/actions.py new file mode 100644 index 0000000000..a2e5ef69d3 --- /dev/null +++ b/network/share/librsync/actions.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def setup(): + autotools.configure("--disable-static --enable-shared") + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "README", "THANKS" , "TODO") diff --git a/network/share/librsync/files/librsync-0.9.7-largefiles.patch b/network/share/librsync/files/librsync-0.9.7-largefiles.patch new file mode 100644 index 0000000000..5dbb0c9e7f --- /dev/null +++ b/network/share/librsync/files/librsync-0.9.7-largefiles.patch @@ -0,0 +1,92 @@ +RCS file: /cvsroot/librsync/librsync/mdfour.h,v +retrieving revision 1.7 +retrieving revision 1.8 +Index: mdfour.h +=================================================================== +--- mdfour.h.orig 2004-02-08 00:17:57.000000000 +0100 ++++ mdfour.h 2007-09-02 10:10:50.000000000 +0200 +@@ -1,7 +1,7 @@ + /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- + * + * librsync -- the library for network deltas +- * $Id: mdfour.h,v 1.7 2003/10/17 16:15:21 abo Exp $ ++ * $Id: mdfour.h,v 1.8 2006/03/10 10:44:10 abo Exp $ + * + * Copyright (C) 2000, 2001 by Martin Pool + * Copyright (C) 2002, 2003 by Donovan Baarda +@@ -24,7 +24,7 @@ + #include "types.h" + + struct rs_mdfour { +- int A, B, C, D; ++ unsigned int A, B, C, D; + #if HAVE_UINT64 + uint64_t totalN; + #else +Index: patch.c +=================================================================== +--- patch.c.orig 2004-09-17 23:35:50.000000000 +0200 ++++ patch.c 2007-09-02 10:10:50.000000000 +0200 +@@ -1,7 +1,7 @@ + /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- + * + * librsync -- the library for network deltas +- * $Id: patch.c,v 1.30 2004/09/10 02:48:58 mbp Exp $ ++ * $Id: patch.c,v 1.31 2006/03/10 10:44:10 abo Exp $ + * + * Copyright (C) 2000, 2001 by Martin Pool + * +@@ -214,12 +214,9 @@ static rs_result rs_patch_s_copying(rs_j + void *buf, *ptr; + rs_buffers_t *buffs = job->stream; + +- len = job->basis_len; +- + /* copy only as much as will fit in the output buffer, so that we + * don't have to block or store the input. */ +- if (len > buffs->avail_out) +- len = buffs->avail_out; ++ len = (buffs->avail_out < job->basis_len) ? buffs->avail_out : job->basis_len; + + if (!len) + return RS_BLOCKED; +Index: doc/rdiff.1 +=================================================================== +--- doc/rdiff.1.orig 2004-02-08 00:17:57.000000000 +0100 ++++ doc/rdiff.1 2007-09-02 10:10:50.000000000 +0200 +@@ -1,6 +1,6 @@ + .\" + .\" librsync -- dynamic caching and delta update in HTTP +-.\" $Id: rdiff.1,v 1.1 2002/01/25 21:25:34 bje Exp $ ++.\" $Id: rdiff.1,v 1.2 2006/02/21 12:21:52 abo Exp $ + .\" + .\" Copyright (C) 2000 by Martin Pool + .\" +@@ -18,7 +18,7 @@ + .\" License along with this program; if not, write to the Free Software + .\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + .\" +-.TH rdiff 1 "$Date: 2002/01/25 21:25:34 $" ++.TH rdiff 1 "$Date: 2006/02/21 12:21:52 $" + .SH NAME + rdiff \- compute and apply signature-based file differences + .SH SYNOPSYS +@@ -29,10 +29,17 @@ rdiff \- compute and apply signature-bas + .PP + \fBrdiff\fP [\fIoptions\fP] \fBpatch\fP \fIbasis-file delta-file new-file\fP + .fi ++.SH USAGE ++You can use \fBrdiff\fP to update files, much like \fBrsync\fP does. ++However, unlike \fBrsync\fP, \fBrdiff\fP puts you in control. There ++are three steps to updating a file: \fBsignature\fP, \fBdelta\fP, and ++\fBpatch\fP. + .SH DESCRIPTION + In every case where a filename must be specified, \- may be used + instead to mean either standard input or standard output as +-appropriate. ++appropriate. Be aware that if you do this, you'll need to terminate your ++\fIoptions\fP with \-\- or \fBrdiff\fP will think you are passing it ++an empty option. + .SH "RETURN VALUE" + 0 for successful completion, 1 for environmental problems (file not + found, invalid options, IO error, etc), 2 for a corrupt file and 3 for diff --git a/network/share/librsync/files/librsync-link.patch b/network/share/librsync/files/librsync-link.patch new file mode 100644 index 0000000000..b3523712ac --- /dev/null +++ b/network/share/librsync/files/librsync-link.patch @@ -0,0 +1,26 @@ +--- librsync-0.9.7/configure.ac.orig 2004-10-10 11:52:26.000000000 +0200 ++++ librsync-0.9.7/configure.ac 2004-10-18 22:39:40.600385603 +0200 +@@ -27,9 +27,9 @@ + AC_PROG_LIBTOOL + + # Checks for libraries. +-AC_CHECK_LIB(z, deflate) +-AC_CHECK_LIB(bz2, BZ2_bzCompress) +-AC_CHECK_LIB(popt, poptGetContext,,[BUILD_POPT='popt/libpopt.a'; CFLAGS="$CFLAGS -I$srcdir/popt"]) ++dnl AC_CHECK_LIB(z, deflate) -- unused ++dnl AC_CHECK_LIB(bz2, BZ2_bzCompress) -- unused ++AC_CHECK_LIB(popt, poptGetContext,[BUILD_POPT=-lpopt],[BUILD_POPT='popt/libpopt.a'; CFLAGS="$CFLAGS -I$srcdir/popt"]) + + # Checks for header files. + AC_FUNC_ALLOCA +--- librsync-0.9.7/Makefile.am.orig 2004-02-08 00:17:57.000000000 +0100 ++++ librsync-0.9.7/Makefile.am 2004-10-18 22:36:07.967024276 +0200 +@@ -60,7 +60,7 @@ + + rdiff_LDADD = @BUILD_POPT@ librsync.la + +-rdiff_DEPENDENCIES = @BUILD_POPT@ librsync.la ++rdiff_DEPENDENCIES = librsync.la + + # this script is used to build prototab.[ch] + noinst_SCRIPTS = mkprototab.pl diff --git a/network/share/librsync/pspec.xml b/network/share/librsync/pspec.xml new file mode 100644 index 0000000000..b0eab94509 --- /dev/null +++ b/network/share/librsync/pspec.xml @@ -0,0 +1,67 @@ + + + + + librsync + http://librsync.sourceforge.net/ + + PisiLinux Community + admins@pisilinux.org + + LGPLv2.1 + library + app:console + librsync implements the rolling-checksum algorithm of remote file synchronization that was popularized by the rsync utility and is used in rproxy + librsync implements the rolling-checksum algorithm of remote file synchronization that was popularized by the rsync utility and is used in rproxy. This algorithm transfers the differences between 2 files without needing both files on the same system. + mirrors://sourceforge/librsync/librsync-0.9.7.tar.gz + + popt-devel + + + librsync-0.9.7-largefiles.patch + librsync-link.patch + + + + librsync + + popt + + + /usr/bin + /usr/lib + /usr/share/man + /usr/share/doc/librsync + + + + + librsync-devel + Development files for librsync + + librsync + + + /usr/include + /usr/lib/librsync.so + /usr/share/man/man3 + + + + + + 2014-02-01 + 0.9.7 + Rebuild + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2010-10-13 + 0.9.7 + First release + Gökcen Eraslan + admins@pisilinux.org + + + diff --git a/network/share/librsync/translations.xml b/network/share/librsync/translations.xml new file mode 100644 index 0000000000..75cfbc66bb --- /dev/null +++ b/network/share/librsync/translations.xml @@ -0,0 +1,15 @@ + + + + librsync + Uzaktaki dosyaların senkronize edilmesi için gerekli olan algoritmayı sağlayan kitaplığı + Uzaktaki dosyaların senkronize edilmesi için gerekli olan algoritmayı sağlayan kitaplığı. Bu algoritma iki dosya arasındaki farkları, iki dosyanın aynı sistemde olmasına ihtiyaç duymadan transfer eder. + librsync implémente l'algorithme de la somme de contrôle tournante (rolling-checksum) pour la synchronisation rendue populaire par l'utilitaire rsync et utilisée par rproxy. Cet algorithme transfert les différences entre 2 fichiers sans nécessiter la présence des fichiers sur le même système. + librsync implementa el cómputo del rolling-checksum de la sincronización de archivos remotos, que fue popularizado por la herramienta rsync y se usa en rproxy. El algoritmo transfiere la diferencia de los 2 archivos sin la necesidad de tener ambos archivos en el mismo sistema. + + + + librsync-devel + librsync için geliştirme dosyaları + +