--- origsrc/src/CYGWIN-PATCHES/README	1969-12-31 19:00:00.000000000 -0500
+++ src/src/CYGWIN-PATCHES/README	2016-04-30 08:24:08.410843800 -0400
@@ -0,0 +1,51 @@
+==========
+unison2.49
+==========
+
+Unison is a file synchronizer for Unix and Windows. It allows two replicas of a
+collection of files and directories to be stored on different hosts (or
+different disks on the same host), modified separately, and then brought up to
+date by propagating the changes in each replica to the other.
+
+Unison comes in several complementary packages for Cygwin:
+
+Package name  Unison version  Executable name
+------------  --------------  --------------------
+unison2.27     2.27.*         /usr/bin/unison-2.27
+unison2.32     2.32.*         /usr/bin/unison-2.32
+unison2.40     2.40.*         /usr/bin/unison-2.40
+unison2.45     2.45.*         /usr/bin/unison-2.45
+unison2.48     2.48.*         /usr/bin/unison-2.48
+
+Separate packages and executables are needed because Unison's protocol for
+exchanging information on the network is incompatible between these versions.
+Two versions of Unison are compatible if and only if the first two numbers in
+their version strings are the same.  For example, all versions 2.32.* are
+compatible with each other, and incompatible with versions 2.40.*.  If you try
+to use e.g. Unison version 2.32.* to synchronize with a server running version
+2.40.*, Unison will issue an error message about incompatible versions and quit.
+By installing one or more of the packages listed above, you can run whichever
+version you need in order to synchronize with your server.
+
+The package postinstallation script uses alternatives(8) to install a symlink
+/usr/bin/unison that points to one of the above-named executables.  By default
+this symlink will track the highest-numbered version of Unison that you install
+on your system, unless you reset it, either manually or using alternatives(8).
+See alternatives(8) for more details.
+
+If the server provides multiple versions of Unison, then you can invoke Unison
+on the client with e.g. '-servercmd /usr/bin/unison-2.49' to run the version
+you want on the server, or put 'servercmd /usr/bin/unison-2.49' into the
+client's preference file.
+
+All of the Unison packages for Cygwin use the text UI.  There is also a GTK2 UI
+for Unison, but I haven't been able to get it working yet under Cygwin.  At some
+time in the future I may make unison-gtk2 packages available for Cygwin.
+
+Source home page:   http://www.cis.upenn.edu/~bcpierce/unison/
+Source download:    http://www.cis.upenn.edu/~bcpierce/unison/download/releases/unison-2.49/unison-2.49.tar.gz
+Cygwin maintainer:  Andrew Schulman <schulman.andrew@epa.gov>
+License:            GPL
+
+Please address questions and bug reports to the Cygwin mailing list
+<cygwin@cygwin.com>.
--- origsrc/src/CYGWIN-PATCHES/postinstall.sh	1969-12-31 19:00:00.000000000 -0500
+++ src/src/CYGWIN-PATCHES/postinstall.sh	2016-04-30 08:24:08.426468800 -0400
@@ -0,0 +1,6 @@
+# Install this package as a unison alternative.
+
+UNISON_VERSION=2.49
+UNISON_PRIORITY=2049
+
+/usr/sbin/alternatives --install /usr/bin/unison unison /usr/bin/unison-$UNISON_VERSION $UNISON_PRIORITY
--- origsrc/src/CYGWIN-PATCHES/preremove.sh	1969-12-31 19:00:00.000000000 -0500
+++ src/src/CYGWIN-PATCHES/preremove.sh	2016-04-30 08:24:08.426468800 -0400
@@ -0,0 +1,3 @@
+# Remove this package as a unison alternative.
+
+/usr/sbin/alternatives --remove unison /usr/bin/unison-2.49
