Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

11
devel/librsync/DESCR Normal file
View File

@@ -0,0 +1,11 @@
Librsync is a library for calculating and applying network deltas,
with an interface designed to ease integration into diverse network
applications. Librsync encapsulates the core algorithms of the rsync
protocol, which help with efficient calculation of the differences
between two files. The rsync algorithm is different from most
differencing algorithms because it does not require the presence of
the two files to calculate the delta. Instead, it requires a set of
checksums of each block of one file, which together form a signature
for that file. Blocks at any point in the other file which have the
same checksum are likely to be identical, and whatever remains is the
difference.

21
devel/librsync/Makefile Normal file
View File

@@ -0,0 +1,21 @@
# $NetBSD: Makefile,v 1.19 2012/10/31 11:17:20 asau Exp $
DISTNAME= librsync-0.9.7
PKGREVISION= 3
CATEGORIES= devel net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=librsync/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://librsync.sourceforge.net/
COMMENT= Checksum-based differencing library
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-included-popt
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

7
devel/librsync/PLIST Normal file
View File

@@ -0,0 +1,7 @@
@comment $NetBSD: PLIST,v 1.4 2004/11/25 14:25:22 adam Exp $
bin/rdiff
include/librsync-config.h
include/librsync.h
lib/librsync.la
man/man1/rdiff.1
man/man3/librsync.3

View File

@@ -0,0 +1,18 @@
# $NetBSD: buildlink3.mk,v 1.9 2011/04/22 13:42:01 obache Exp $
BUILDLINK_TREE+= librsync
.if !defined(LIBRSYNC_BUILDLINK3_MK)
LIBRSYNC_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.librsync+= librsync>=0.9.6nb2
BUILDLINK_ABI_DEPENDS.librsync+= librsync>=0.9.7nb3
BUILDLINK_PKGSRCDIR.librsync?= ../../devel/librsync
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.endif # LIBRSYNC_BUILDLINK3_MK
BUILDLINK_TREE+= -librsync

8
devel/librsync/distinfo Normal file
View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.6 2009/02/27 14:35:25 tnn Exp $
SHA1 (librsync-0.9.7.tar.gz) = d575eb5cae7a815798220c3afeff5649d3e8b4ab
RMD160 (librsync-0.9.7.tar.gz) = 39ca29334d0efabc0ee9e4d44abbe73a7d2fe831
Size (librsync-0.9.7.tar.gz) = 453802 bytes
SHA1 (patch-aa) = 79936cf4170736a59a3a918c7d7df9d63a549e7d
SHA1 (patch-ab) = 23b3267b39c8f9185dc8321898422ace81b4e27c
SHA1 (patch-ac) = 19c0dc0e76f5c1e44860b4dc9f1344c1e643b208

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.1 2007/02/20 19:15:03 snj Exp $
--- mdfour.h.orig 2007-02-20 10:57:21.000000000 -0800
+++ mdfour.h 2007-02-20 10:58:10.000000000 -0800
@@ -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

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-ab,v 1.1 2007/02/20 19:15:03 snj Exp $
--- patch.c.orig 2007-02-20 10:59:09.000000000 -0800
+++ patch.c 2007-02-20 11:00:35.000000000 -0800
@@ -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;

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ac,v 1.1 2009/02/27 14:35:25 tnn Exp $
Declare inline functions also as static. Fixes build with Sun Studio.
--- delta.c.orig 2004-09-17 23:35:49.000000000 +0200
+++ delta.c
@@ -125,6 +125,7 @@ static rs_result rs_delta_s_scan(rs_job_
static rs_result rs_delta_s_flush(rs_job_t *job);
static rs_result rs_delta_s_end(rs_job_t *job);
void rs_getinput(rs_job_t *job);
+#define inline static inline
inline int rs_findmatch(rs_job_t *job, rs_long_t *match_pos, size_t *match_len);
inline rs_result rs_appendmatch(rs_job_t *job, rs_long_t match_pos, size_t match_len);
inline rs_result rs_appendmiss(rs_job_t *job, size_t miss_len);