summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2009-11-20 20:18:47 +0000
committerwiz <wiz@pkgsrc.org>2009-11-20 20:18:47 +0000
commit6ccab607113943abdd9c5d7dbd34753501b6f835 (patch)
tree0cd47629f6ed703ee764b36856e748c6cde6d156 /net
parenta3797e50f5b3d780758f59c4d79b6069b1526558 (diff)
downloadpkgsrc-6ccab607113943abdd9c5d7dbd34753501b6f835.tar.gz
Update to 2.32.52, ok tonio.
Set license. Changes since 2.32.44: * Improvement to the code for resuming directory transfers: (1) make sure file information (permissions, ...) has been properly set when using a previously transferred temp file (2) make sure previously transferred directories are writable (other changes made in the developer version of Unison require a protocol change) * Got rid of the 16MiB marshalling limit by marshalling to a bigarray * Ignore one hour differences for deciding whether a file may have been updated. This avoids slow update detection after daylight saving time changes under Windows. This makes it slightly more likely to miss an update, but that should be safe enough. * Improved Unison icon under Windows * Case sensitivity information put in the archive (in a backward compatible way) and checked when the archive is loaded * Uses improved emulation of "select" call provided by Ocaml 3.11 under Windows (the GUI does not freeze as much during synchronization) * Upgraded to GPL version 3 and added copyright notice to documentation files. * Unison can sometimes fail to transfer a file, giving the unhelpful message "Destination updated during synchronization" even though the file has not been changed. This can be caused by programs that change either the file's contents *or* the file's extended attributes without changing its modification time. I'm not sure what is the best fix for this – it is not Unison's fault, but it makes Unison's behavior puzzling – but at least Unison can be more helpful about suggesting a workaround (running once with 'fastcheck' set to false). The failure message has been changed to give this advice. * Text UI o During update detection, display status by updating a single line rather than generating a new line of output every so often. That should be less confusing. o In repeat mode, don't save the archives when there is no update. Indeed, in this mode, we should minimize the amount of work performed and it is unlikely that the archives have changed much. * Bugfixes o Fixed quotation of paths and names when writing to a preference file o Fixed bug resulting in slow performances when transferring a file using our rsync implementation from a 64-bit architecture to a 32-bit architecture. o Fixed bug in Lwt_unix.run which could make it fail with a Not_found exception (see [Not_found raised in tryCopyMovedFile] errors) o Properly deals with non-conformant AppleDouble files produced by Mac OS X. o Fixed bug that results in Unison missing ressource fork changes o Applied a patch from Karl M to make the GTK2 version build with OCaml 3.11 on Windows. o Added some extra debugging code to remote.ml to give more informative error messages when people encounter the longstanding "assert failed during file transfer" bug. o Applied patch from Antoine Reilles for NetBSD compilation o Resizing the update window vertically no longer moves the status label. Fix contributed by Pedro Melo. Changes since 2.31: * Minor fixes and improvements: o Ignore one hour differences when deciding whether a file may have been updated. This avoids slow update detection after daylight saving time changes under Windows. This makes Unison slightly more likely to miss an update, but it should be safe enough. o Fix a small bug that was affecting mainly windows users. We need to commit the archives at the end of the sync even if there are no updates to propagate because some files (in fact, if we've just switched to DST on windows, a LOT of files) might have new modtimes in the archive. (Changed the text UI only. It's less clear where to change the GUI.) o Don't delete the temp file when a transfer fails due to a fingerprint mismatch (so that we can have a look and see why!) We've also added more debugging code togive more informative error messages when we encounter the dreaded and longstanding "assert failed during file transfer" bug Changes since 2.27: * If Unison is interrupted during a directory transfer, it will now leave the partially transferred directory intact in a temporary location. (This maintains the invariant that new files/directories are transferred either completely or not at all.) The next time Unison is run, it will continue filling in this temporary directory, skipping transferring files that it finds are already there. * We've added experimental support for invoking an external file transfer tool for whole-file copies instead of Unison's built-in transfer protocol. Three new preferences have been added: o copyprog is a string giving the name (and command-line switches, if needed) of an external program that can be used to copy large files efficiently. By default, rsync is invoked, but other tools such as scp can be used instead by changing the value of this preference. (Although this is not its primary purpose, rsync is actually a pretty fast way of copying files that don't already exist on the receiving host.) For files that do already exist on (but that have been changed in one replica), Unison will always use its built-in implementation of the rsync algorithm. o Added a "copyprogrest" preference, so that we can give different command lines for invoking the external copy utility depending on whether a partially transferred file already exists or not. (Rsync doesn't seem to care about this, but other utilities may.) o copythreshold is an integer (-1 by default), indicating above what filesize (in megabytse the external copying utility specified by copyprog. Specifying 0 will cause ALL copies to use the external program; a negative number will prevent any files from using it. (Default is -1.) Thanks to Alan Schmitt for a huge amount of hacking and o an anonymous sponsor for suggesting and underwriting this extension. * Small improvements: o Added a new preference, dontchmod. By default, Unison uses the chmod system call to set the permission bits of files after it has copied them. Butin some circumstances (and under some operating systems), the chmod call always fails. Setting this preference completely prevents Unison from ever calling chmod. o Don't ignore files that look like backup files if the backuplocation preference set to central o Shortened the names of several preferences. The old names are also still supported, for backwards compatibility, but they do not appear in the documentation. o Lots of little documentation tidying. (In particular, preferences are separated into Basic and Advanced! This should hopefully make Unison a little more approachable for new users. o Unison can sometimes fail to transfer a file, giving the unhelpful message "Destination updated during synchronization" # * Further improvements to the OS X GUI (thanks to Alan Schmitt and Craig Federighi). # Very preliminary support for triggering Unison from an external filesystem-watching utility. The current implementation is very simple, not efficient, and almost completely untested—not ready for real users. But if someone wants to help improve it (e.g., by writing a filesystem watcher for your favorite OS), please make yourself known! On the Unison side, the new behavior is very simple: * use the text UI * start Unison with the command-line flag "-repeat FOO", where FOO is name of a file where Unison should look for notifications of changes * when it starts up, Unison will read the whole contents of this file (on both hosts), which should be a newline-separated list of paths (relative to the root of the synchronization) and synchronize just these paths, as if it had been started with the "-path=xxx" option for each one of them * when it finishes, it will sleep for a few seconds and then examine the watchfile again; if anything has been added, it will read the new paths, synchronize them, and go back to sleep * that's it! To use this to drive Unison "incrementally," just start it in this mode and start up a tool (on each host) to watch for new changes to the filesystem and append the appropriate paths to the watchfile. Hopefully such tools should not be too hard to write. # Bug fixes: * Fixed a bug that was causing new files to be created with permissions 0x600 instead of using a reasonable default (like 0x644), if the 'perms' flag was set to 0. (Bug reported by Ben Crowell.) * Follow maxthreads preference when transferring directories.
Diffstat (limited to 'net')
-rw-r--r--net/unison/Makefile24
-rw-r--r--net/unison/distinfo12
-rw-r--r--net/unison/patches/patch-aa10
-rw-r--r--net/unison/patches/patch-ab26
-rw-r--r--net/unison/patches/patch-ac13
5 files changed, 22 insertions, 63 deletions
diff --git a/net/unison/Makefile b/net/unison/Makefile
index 974baa7fc7a..cadbe916538 100644
--- a/net/unison/Makefile
+++ b/net/unison/Makefile
@@ -1,18 +1,18 @@
-# $NetBSD: Makefile,v 1.36 2009/08/26 19:58:46 sno Exp $
+# $NetBSD: Makefile,v 1.37 2009/11/20 20:18:47 wiz Exp $
+
+DISTNAME= unison-2.32.52
-DISTNAME= unison-2.27.57
-PKGREVISION= 1
CATEGORIES= net
-MASTER_SITES= http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/
+MASTER_SITES= http://www.seas.upenn.edu/~bcpierce/unison/download/releases/stable/
MAINTAINER= tonio@NetBSD.org
HOMEPAGE= http://www.cis.upenn.edu/~bcpierce/unison/
COMMENT= File-synchronization tool
+LICENSE= gnu-gpl-v3
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
-DIST_SUBDIR= ${PKGNAME_NOREV}
BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.08.2
# docs: unison-manual.pdf/html/ps/dvi
@@ -40,13 +40,13 @@ INSTALLATION_DIRS= bin
INSTALLATION_DIRS+= share/doc/unison
post-install:
- ${INSTALL_MAN} ${WRKSRC}/BUGS.txt ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/CONTRIB ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/NEWS ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/ROADMAP.txt ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/TODO.txt ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/BUGS.txt ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/CONTRIB ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/NEWS ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/ROADMAP.txt ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/TODO.txt ${DESTDIR}${PREFIX}/share/doc/unison
.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/unison/distinfo b/net/unison/distinfo
index ef054ca5651..66e622f10f4 100644
--- a/net/unison/distinfo
+++ b/net/unison/distinfo
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.13 2008/07/25 20:03:03 tonio Exp $
+$NetBSD: distinfo,v 1.14 2009/11/20 20:18:47 wiz Exp $
-SHA1 (unison-2.27.57/unison-2.27.57.tar.gz) = 9892680d8bd3e3c50031451cc6e77eb5431768ea
-RMD160 (unison-2.27.57/unison-2.27.57.tar.gz) = 15388e3f2b9b593aba140416216837c49e4800c0
-Size (unison-2.27.57/unison-2.27.57.tar.gz) = 617253 bytes
-SHA1 (patch-aa) = bca069d0c27bec552c103b39e299fea36afb51c7
-SHA1 (patch-ab) = 9093c61236c379148ae99eb1ec94fb80ea6dbea4
-SHA1 (patch-ac) = d996e1ffff23da511976ba4455391952afab6234
+SHA1 (unison-2.32.52.tar.gz) = 68ea5709de4fcc2f9aef7b01b24637503b61b5ac
+RMD160 (unison-2.32.52.tar.gz) = 8216a2e482d5a445dd7acdb62e1bb6377e90d1a1
+Size (unison-2.32.52.tar.gz) = 697866 bytes
+SHA1 (patch-aa) = d59adf3446ea3f98f4ab72274b95b1140d3cf896
diff --git a/net/unison/patches/patch-aa b/net/unison/patches/patch-aa
index 9beff9aeb01..78f46a08512 100644
--- a/net/unison/patches/patch-aa
+++ b/net/unison/patches/patch-aa
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.7 2008/07/25 20:03:03 tonio Exp $
+$NetBSD: patch-aa,v 1.8 2009/11/20 20:18:47 wiz Exp $
---- Makefile.orig 2008-01-18 16:46:16.000000000 +0100
+--- Makefile.orig 2009-05-02 02:31:27.000000000 +0000
+++ Makefile
@@ -39,7 +39,7 @@ all:: INSTALL
@@ -16,12 +16,12 @@ $NetBSD: patch-aa,v 1.7 2008/07/25 20:03:03 tonio Exp $
# Installation
-INSTALLDIR = $(HOME)/bin/
-+INSTALLDIR = $(DESTDIR)$(PREFIX)/bin/
++INSTALLDIR = ${DESTDIR}$(PREFIX)/bin/
# This has two names because on OSX the file INSTALL shadows the target 'install'!
install: doinstall
@@ -80,10 +80,7 @@ text:
- make -C .. text
+ $(MAKE) -C .. text
doinstall: $(NAME)$(EXEC_EXT)
- -mv $(INSTALLDIR)/$(NAME)$(EXEC_EXT) /tmp/$(NAME)-$(shell echo $$$$)
@@ -31,7 +31,7 @@ $NetBSD: patch-aa,v 1.7 2008/07/25 20:03:03 tonio Exp $
######################################################################
# Demo
-@@ -332,7 +329,7 @@ testmerge:
+@@ -336,7 +333,7 @@ testmerge:
tags:
-$(ETAGS) *.mli */*.mli *.ml */*.ml */*.m *.c */*.c *.txt
diff --git a/net/unison/patches/patch-ab b/net/unison/patches/patch-ab
deleted file mode 100644
index 090fe8f48e5..00000000000
--- a/net/unison/patches/patch-ab
+++ /dev/null
@@ -1,26 +0,0 @@
-$NetBSD: patch-ab,v 1.5 2008/07/25 20:03:03 tonio Exp $
-
---- Makefile.OCaml.orig 2007-05-07 17:42:29.000000000 +0200
-+++ Makefile.OCaml
-@@ -29,6 +29,10 @@ ifeq ($(shell uname),Darwin)
- else
- ifeq ($(shell uname),OpenBSD)
- OSARCH=OpenBSD
-+else
-+ifeq ($(shell uname),NetBSD)
-+ OSARCH=NetBSD
-+endif
- endif
- endif
- endif
-@@ -261,6 +265,10 @@ else
- endif
- endif
-
-+ifeq ($(OSARCH), NetBSD)
-+ OCAMLDOT=false
-+endif
-+
- # Rebuild dependencies (must be invoked manually)
- .PHONY: depend
- depend::
diff --git a/net/unison/patches/patch-ac b/net/unison/patches/patch-ac
deleted file mode 100644
index 39963c72f4c..00000000000
--- a/net/unison/patches/patch-ac
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ac,v 1.5 2008/07/25 20:03:03 tonio Exp $
-
---- pty.c.orig 2007-04-13 16:30:01.000000000 +0200
-+++ pty.c
-@@ -15,7 +15,7 @@ extern void uerror (char * cmdname, valu
- #define HAS_OPENPTY 1
- #endif
-
--#ifdef __APPLE__
-+#if defined(__APPLE__) || defined(__NetBSD__)
- #include <util.h>
- #define HAS_OPENPTY 1
- #endif