diff options
author | agc <agc> | 1998-01-23 09:57:21 +0000 |
---|---|---|
committer | agc <agc> | 1998-01-23 09:57:21 +0000 |
commit | ef326e7d9e3d6efd9d7a8dea5d2b101ab57cb76e (patch) | |
tree | 967b2a40eff738e8fff7a750ffdac520163b8936 /net/rsync | |
parent | 564684a5c69afac5591c798c5948b2c2e2017d22 (diff) | |
download | pkgsrc-ef326e7d9e3d6efd9d7a8dea5d2b101ab57cb76e.tar.gz |
Initial import of rsync, a utility to synchronise directory trees
across machines in an efficient manner, into the NetBSD packages
collection.
This is originally from the FreeBSD ports collection, but I've
(a) deleted the patches which add support for a client for the public
rsync daemon (I have no real way to test that under NetBSD), and
(b) added a patch to use mkstemp() instead of a mktemp(), open()
combination, and
(c) also upgraded to version 1.6.9 while I was at it.
Diffstat (limited to 'net/rsync')
-rw-r--r-- | net/rsync/Makefile | 30 | ||||
-rw-r--r-- | net/rsync/files/md5 | 1 | ||||
-rw-r--r-- | net/rsync/patches/patch-aa | 25 | ||||
-rw-r--r-- | net/rsync/pkg/COMMENT | 1 | ||||
-rw-r--r-- | net/rsync/pkg/DESCR | 16 | ||||
-rw-r--r-- | net/rsync/pkg/PLIST | 4 |
6 files changed, 77 insertions, 0 deletions
diff --git a/net/rsync/Makefile b/net/rsync/Makefile new file mode 100644 index 00000000000..345277a5639 --- /dev/null +++ b/net/rsync/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 1998/01/23 09:57:21 agc Exp $ +# +# New ports collection makefile for: rsync +# Version required: 1.6.9 +# Date created: Sat Aug 3, 1996 +# Whom: David O'Brien (obrien@cs.ucdavis.edu) +# +# FreeBSD Id: Makefile,v 1.10 1998/01/03 10:14:21 obrien Exp +# + +DISTNAME= rsync-1.6.9 +CATEGORIES= net +MASTER_SITES= ftp://samba.anu.edu.au/pub/rsync/ \ + ftp://sunsite.auc.dk/pub/unix/rsync/ \ + ftp://ftp.sunet.se/pub/unix/admin/rsync \ + ftp://ftp.fu-berlin.de/pub/unix/network/rsync/ + +MAINTAINER= obrien@FreeBSD.org + +GNU_CONFIGURE= yes +MAN1= rsync.1 + +post-install: + @strip ${PREFIX}/bin/rsync +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/rsync + ${INSTALL_DATA} ${WRKSRC}/tech_report.tex ${PREFIX}/share/doc/rsync +.endif + +.include <bsd.port.mk> diff --git a/net/rsync/files/md5 b/net/rsync/files/md5 new file mode 100644 index 00000000000..0e63f6c0f51 --- /dev/null +++ b/net/rsync/files/md5 @@ -0,0 +1 @@ +MD5 (rsync-1.6.9.tar.gz) = 86b4ce12ef9a0fd9b8e1c76fe489be2c diff --git a/net/rsync/patches/patch-aa b/net/rsync/patches/patch-aa new file mode 100644 index 00000000000..adea6c5987b --- /dev/null +++ b/net/rsync/patches/patch-aa @@ -0,0 +1,25 @@ +--- rsync.c 1998/01/22 13:23:54 1.1 ++++ rsync.c 1998/01/22 13:28:29 +@@ -756,17 +756,11 @@ + } else { + sprintf(fnametmp,"%s.XXXXXX",fname); + } +- if (NULL == mktemp(fnametmp)) { +- fprintf(FERROR,"mktemp %s failed\n",fnametmp); +- receive_data(f_in,buf,-1,NULL); +- if (buf) unmap_file(buf); +- close(fd1); +- continue; +- } +- fd2 = open(fnametmp,O_WRONLY|O_CREAT|O_EXCL,file->mode); +- if (fd2 == -1 && relative_paths && errno == ENOENT && +- create_directory_path(fnametmp) == 0) { +- fd2 = open(fnametmp,O_WRONLY|O_CREAT|O_EXCL,file->mode); ++ if ((fd2 = mkstemp(fnametmp)) < 0) { ++ if (relative_paths && errno == ENOENT && ++ create_directory_path(fnametmp) == 0) { ++ fd2 = open(fnametmp,O_WRONLY|O_CREAT|O_EXCL,file->mode); ++ } + } + if (fd2 == -1) { + fprintf(FERROR,"open %s : %s\n",fnametmp,strerror(errno)); diff --git a/net/rsync/pkg/COMMENT b/net/rsync/pkg/COMMENT new file mode 100644 index 00000000000..30189ea49a1 --- /dev/null +++ b/net/rsync/pkg/COMMENT @@ -0,0 +1 @@ +A network file distribution/synchronisation utility. diff --git a/net/rsync/pkg/DESCR b/net/rsync/pkg/DESCR new file mode 100644 index 00000000000..046caa04fcc --- /dev/null +++ b/net/rsync/pkg/DESCR @@ -0,0 +1,16 @@ +rsync is a replacement for rcp that has many more features. + +rsyns uses the "rsync algorithm" which provides a very fast method for +bringing remote files into sync. It does this by sending just the +differences in the files across the link, without requiring that both +sets of files are present at one of the ends of the link beforehand. +This makes rsync a good remote file distribution/synchronisation utility +in a dialup PPP/SLIP environment. + +Note, requires rsync on the destination machine. + +There is a Computer Science Technical Report on the rsync algorithm is +included in the distribution, and is available as +ftp://samba.anu.edu.au/pub/rsync/tech_report.ps + + -- David (obrien@cs.ucdavis.edu) diff --git a/net/rsync/pkg/PLIST b/net/rsync/pkg/PLIST new file mode 100644 index 00000000000..d86aeb66407 --- /dev/null +++ b/net/rsync/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1998/01/23 09:57:22 agc Exp $ +bin/rsync +man/man1/rsync.1.gz +share/doc/rsync/tech_report.tex |