librsync add repo

This commit is contained in:
burakerturk
2015-07-18 03:03:17 +03:00
parent 59b2e608a6
commit 8078e101a7
5 changed files with 220 additions and 0 deletions
+20
View File
@@ -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")
@@ -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 <mbp@samba.org>
* Copyright (C) 2002, 2003 by Donovan Baarda <abo@minkirri.apana.org.au>
@@ -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 <mbp@samba.org>
*
@@ -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 <mbp@humbug.org.au>
.\"
@@ -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
@@ -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
+67
View File
@@ -0,0 +1,67 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>librsync</Name>
<Homepage>http://librsync.sourceforge.net/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>LGPLv2.1</License>
<IsA>library</IsA>
<IsA>app:console</IsA>
<Summary>librsync implements the rolling-checksum algorithm of remote file synchronization that was popularized by the rsync utility and is used in rproxy</Summary>
<Description>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.</Description>
<Archive sha1sum="d575eb5cae7a815798220c3afeff5649d3e8b4ab" type="targz">mirrors://sourceforge/librsync/librsync-0.9.7.tar.gz</Archive>
<BuildDependencies>
<Dependency>popt-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch>librsync-0.9.7-largefiles.patch</Patch>
<Patch level="1">librsync-link.patch</Patch>
</Patches>
</Source>
<Package>
<Name>librsync</Name>
<RuntimeDependencies>
<Dependency>popt</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc/librsync</Path>
</Files>
</Package>
<Package>
<Name>librsync-devel</Name>
<Summary>Development files for librsync</Summary>
<RuntimeDependencies>
<Dependency release="current">librsync</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/librsync.so</Path>
<Path fileType="man">/usr/share/man/man3</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2014-02-01</Date>
<Version>0.9.7</Version>
<Comment>Rebuild</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2010-10-13</Date>
<Version>0.9.7</Version>
<Comment>First release</Comment>
<Name>Gökcen Eraslan</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>librsync</Name>
<Summary xml:lang="tr">Uzaktaki dosyaların senkronize edilmesi için gerekli olan algoritmayı sağlayan kitaplığı</Summary>
<Description xml:lang="tr">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. </Description>
<Description xml:lang="fr">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.</Description>
<Description xml:lang="es">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.</Description>
</Source>
<Package>
<Name>librsync-devel</Name>
<Summary xml:lang="tr">librsync için geliştirme dosyaları</Summary>
</Package>
</PISI>