diff --git a/net-misc/rsync/patches/rsync-3.1.0.patch b/net-misc/rsync/patches/rsync-3.1.0.patch new file mode 100644 index 000000000..965d77397 --- /dev/null +++ b/net-misc/rsync/patches/rsync-3.1.0.patch @@ -0,0 +1,67 @@ +diff -Naur rsync-3.1.0/configure.ac rsync-3.1.0-haiku/configure.ac +--- rsync-3.1.0/configure.ac 2013-09-28 14:55:54.057409536 -0600 ++++ rsync-3.1.0-haiku/configure.ac 2013-10-09 19:17:25.484704256 -0600 +@@ -455,6 +455,9 @@ + fi + + AC_SEARCH_LIBS(inet_ntop, resolv) ++AC_SEARCH_LIBS(socket, network) ++AC_SEARCH_LIBS(getpass, bsd) ++AC_SEARCH_LIBS(getxattr, gnu) + + # For OS X, Solaris, HP-UX, etc.: figure out if -liconv is needed. We'll + # accept either iconv_open or libiconv_open, since some include files map +@@ -1079,6 +1082,13 @@ + AC_DEFINE(SUPPORT_XATTRS, 1) + AC_DEFINE(NO_SYMLINK_XATTRS, 1, [True if symlinks do not support xattrs]) + ;; ++ *haiku*) ++ AC_MSG_RESULT(Using Linux xattrs) ++ AC_DEFINE(HAVE_LINUX_XATTRS, 1, [True if you have Linux xattrs]) ++ AC_DEFINE(SUPPORT_XATTRS, 1) ++ AC_DEFINE(NO_DEVICE_XATTRS, 1, [True if device files do not support xattrs]) ++ AC_DEFINE(NO_SYMLINK_XATTRS, 1, [True if symlinks do not support xattrs]) ++ ;; + *) + if test x"$enable_xattr_support" = x"yes"; then + AC_MSG_ERROR(Failed to find extended attribute support) +diff -Naur rsync-3.1.0/rsync.h rsync-3.1.0-haiku/rsync.h +--- rsync-3.1.0/rsync.h 2013-09-28 14:55:54.063700992 -0600 ++++ rsync-3.1.0-haiku/rsync.h 2013-10-09 18:36:27.000262144 -0600 +@@ -442,7 +442,9 @@ + #ifdef MAKEDEV_TAKES_3_ARGS + #define MAKEDEV(devmajor,devminor) makedev(0,devmajor,devminor) + #else +-#define MAKEDEV(devmajor,devminor) makedev(devmajor,devminor) ++#define MAKEDEV(devmajor,devminor) ((dev_t)0) ++#define major(dev) (0) ++#define minor(dev) (0) + #endif + + #ifdef HAVE_COMPAT_H +diff -Naur rsync-3.1.0/testsuite/hands.test rsync-3.1.0-haiku/testsuite/hands.test +--- rsync-3.1.0/testsuite/hands.test 2008-07-20 23:28:19.061079552 -0600 ++++ rsync-3.1.0-haiku/testsuite/hands.test 2013-10-09 18:36:57.847511552 -0600 +@@ -15,7 +15,7 @@ + + runtest "basic operation" 'checkit "$RSYNC -av \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"' + +-ln "$fromdir/filelist" "$fromdir/dir" ++cp -p "$fromdir/filelist" "$fromdir/dir" + runtest "hard links" 'checkit "$RSYNC -avH $DEBUG_OPTS \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"' + + rm "$todir/text" +diff -Naur rsync-3.1.0/testsuite/relative.test rsync-3.1.0-haiku/testsuite/relative.test +--- rsync-3.1.0/testsuite/relative.test 2007-09-22 20:18:57.062914560 -0600 ++++ rsync-3.1.0-haiku/testsuite/relative.test 2013-10-09 18:37:31.927727616 -0600 +@@ -31,8 +31,8 @@ + sleep 1 + runtest "basic relative" 'checkit "$RSYNC -avR ./$deepstr \"$todir\"" "$chkdir" "$todir"' + +-ln $deepstr/filelist $deepstr/dir +-ln ../chk/$deepstr/filelist ../chk/$deepstr/dir ++cp -p $deepstr/filelist $deepstr/dir ++cp -p ../chk/$deepstr/filelist ../chk/$deepstr/dir + runtest "hard links" 'checkit "$RSYNC -avHR ./$deepstr/ \"$todir\"" "$chkdir" "$todir"' + + cp "$deepdir/text" "$todir/$deepstr/ThisShouldGo" diff --git a/net-misc/rsync/rsync-3.1.0.recipe b/net-misc/rsync/rsync-3.1.0.recipe new file mode 100644 index 000000000..50a073bd0 --- /dev/null +++ b/net-misc/rsync/rsync-3.1.0.recipe @@ -0,0 +1,68 @@ +SUMMARY="rsync is a utility for fast incremental file transfer" +DESCRIPTION=" +rsync is a file transfer program for Unix systems. rsync 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." + +HOMEPAGE="http://rsync.samba.org/" +SRC_URI="http://rsync.samba.org/ftp/rsync/src/rsync-3.1.0.tar.gz" +CHECKSUM_MD5="3be148772a33224771a8d4d2a028b132" +LICENSE="GNU GPL v3" +COPYRIGHT="1996-2013 by Andrew Tridgell, Wayne Davison, and others." +REVISION="1" +ARCHITECTURES="?x86_gcc2 ?x86" +PATCHES="rsync-3.1.0.patch" + +PROVIDES=" + rsync = $portVersion compat >= 3 + cmd:rsync = $portVersion compat >= 3 + " + +REQUIRES=" + haiku + lib:libz + " + +BUILD_REQUIRES=" + devel:libz + " + +BUILD_PREREQUIRES=" + haiku_devel + cmd:aclocal + cmd:autoconf + cmd:find + cmd:gcc + cmd:ld + cmd:make + " + +SOURCE_DIR="$portVersionedName" + +BUILD() +{ + aclocal + autoconf + runConfigure ./configure \ + --enable-xattr-support \ + --disable-iconv \ + --disable-iconv-open \ + --disable-locale \ + --disable-debug \ + --with-included-zlib=no + + make reconfigure + make +} + +INSTALL() +{ + make install +} + +TEST() +{ + make test +}