summaryrefslogtreecommitdiff
path: root/net/rsync
diff options
context:
space:
mode:
Diffstat (limited to 'net/rsync')
-rw-r--r--net/rsync/Makefile30
-rw-r--r--net/rsync/files/md51
-rw-r--r--net/rsync/patches/patch-aa25
-rw-r--r--net/rsync/pkg/COMMENT1
-rw-r--r--net/rsync/pkg/DESCR16
-rw-r--r--net/rsync/pkg/PLIST4
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