mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
* added bep-file and patch for rsync-3.0.7
This commit is contained in:
97
net-misc/rsync/patches/rsync-3.0.7.patch
Normal file
97
net-misc/rsync/patches/rsync-3.0.7.patch
Normal file
@@ -0,0 +1,97 @@
|
||||
diff -ruw rsync-3.0.7/Makefile.in rsync-3.0.7-haiku/Makefile.in
|
||||
--- rsync-3.0.7/Makefile.in 2009-12-13 02:22:43.000000000 +0100
|
||||
+++ rsync-3.0.7-haiku/Makefile.in 2010-01-05 12:01:44.000000000 +0100
|
||||
@@ -7,7 +7,7 @@
|
||||
bindir=@bindir@
|
||||
mandir=@mandir@
|
||||
|
||||
-LIBS=@LIBS@
|
||||
+LIBS=@LIBS@ -lz
|
||||
CC=@CC@
|
||||
CFLAGS=@CFLAGS@
|
||||
CPPFLAGS=@CPPFLAGS@
|
||||
@@ -30,8 +30,8 @@
|
||||
HEADERS=byteorder.h config.h errcode.h proto.h rsync.h ifuncs.h lib/pool_alloc.h
|
||||
LIBOBJ=lib/wildmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o lib/md5.o \
|
||||
lib/permstring.o lib/pool_alloc.o lib/sysacls.o lib/sysxattrs.o @LIBOBJS@
|
||||
-ZLIBOBJ=zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o \
|
||||
- zlib/trees.o zlib/zutil.o zlib/adler32.o zlib/compress.o zlib/crc32.o
|
||||
+#ZLIBOBJ=zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o \
|
||||
+# zlib/trees.o zlib/zutil.o zlib/adler32.o zlib/compress.o zlib/crc32.o
|
||||
OBJS1=flist.o rsync.o generator.o receiver.o cleanup.o sender.o exclude.o \
|
||||
util.o main.o checksum.o match.o syscall.o log.o backup.o
|
||||
OBJS2=options.o io.o compat.o hlink.o token.o uidlist.o socket.o hashtable.o \
|
||||
@@ -40,7 +40,7 @@
|
||||
DAEMON_OBJ = params.o loadparm.o clientserver.o access.o connection.o authenticate.o
|
||||
popt_OBJS=popt/findme.o popt/popt.o popt/poptconfig.o \
|
||||
popt/popthelp.o popt/poptparse.o
|
||||
-OBJS=$(OBJS1) $(OBJS2) $(OBJS3) $(DAEMON_OBJ) $(LIBOBJ) $(ZLIBOBJ) @BUILD_POPT@
|
||||
+OBJS=$(OBJS1) $(OBJS2) $(OBJS3) $(DAEMON_OBJ) $(LIBOBJ) @BUILD_POPT@
|
||||
|
||||
TLS_OBJ = tls.o syscall.o lib/compat.o lib/snprintf.o lib/permstring.o lib/sysxattrs.o @BUILD_POPT@
|
||||
|
||||
diff -ruw rsync-3.0.7/configure.in rsync-3.0.7-haiku/configure.in
|
||||
--- rsync-3.0.7/configure.in 2009-12-31 22:08:07.000000000 +0100
|
||||
+++ rsync-3.0.7-haiku/configure.in 2010-01-05 13:36:20.000000000 +0100
|
||||
@@ -427,6 +427,9 @@
|
||||
fi
|
||||
|
||||
AC_SEARCH_LIBS(inet_ntop, resolv)
|
||||
+AC_SEARCH_LIBS(socket, network)
|
||||
+AC_SEARCH_LIBS(getpass, bsd)
|
||||
+AC_SEARCH_LIBS(getxattr, gnu)
|
||||
|
||||
# Solaris and HP-UX weirdness:
|
||||
# Search for libiconv_open (not iconv_open) to discover if -liconv is needed!
|
||||
@@ -974,6 +977,11 @@
|
||||
AC_DEFINE(HAVE_FREEBSD_XATTRS, 1, [True if you have FreeBSD xattrs])
|
||||
AC_DEFINE(SUPPORT_XATTRS, 1)
|
||||
;;
|
||||
+ haiku*)
|
||||
+ AC_MSG_RESULT(Using Linux xattrs)
|
||||
+ AC_DEFINE(HAVE_LINUX_XATTRS, 1, [True if you have Linux xattrs])
|
||||
+ AC_DEFINE(SUPPORT_XATTRS, 1)
|
||||
+ ;;
|
||||
*)
|
||||
if test x"$enable_xattr_support" = x"yes"; then
|
||||
AC_MSG_ERROR(Failed to find extended attribute support)
|
||||
diff -ruw rsync-3.0.7/rsync.h rsync-3.0.7-haiku/rsync.h
|
||||
--- rsync-3.0.7/rsync.h 2009-12-23 20:36:27.000000000 +0100
|
||||
+++ rsync-3.0.7-haiku/rsync.h 2010-01-05 12:01:44.000000000 +0100
|
||||
@@ -386,7 +386,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 -ruw rsync-3.0.7/testsuite/hands.test rsync-3.0.7-haiku/testsuite/hands.test
|
||||
--- rsync-3.0.7/testsuite/hands.test 2007-03-18 21:40:01.000000000 +0100
|
||||
+++ rsync-3.0.7-haiku/testsuite/hands.test 2010-01-05 12:01:44.000000000 +0100
|
||||
@@ -13,7 +13,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 \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"'
|
||||
|
||||
rm "$todir/text"
|
||||
diff -ruw rsync-3.0.7/testsuite/relative.test rsync-3.0.7-haiku/testsuite/relative.test
|
||||
--- rsync-3.0.7/testsuite/relative.test 2007-09-23 04:18:57.000000000 +0200
|
||||
+++ rsync-3.0.7-haiku/testsuite/relative.test 2010-01-05 12:01:44.000000000 +0100
|
||||
@@ -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"
|
||||
20
net-misc/rsync/rsync-3.0.7.bep
Normal file
20
net-misc/rsync/rsync-3.0.7.bep
Normal file
@@ -0,0 +1,20 @@
|
||||
DESCRIPTION="Rsync"
|
||||
HOMEPAGE="http://www.samba.org/rsync"
|
||||
SRC_URI="http://www.samba.org/ftp/rsync/src/rsync-3.0.7.tar.gz"
|
||||
CHECKSUM_MD5="b53525900817cf1ba7ad3a516ab5bfe9"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd rsync-3.0.7
|
||||
libtoolize --force --copy --install
|
||||
./configure --prefix=/boot/common --enable-xattr-support --disable-iconv --disable-iconv-open --disable-ipv6 --disable-locale --disable-debug
|
||||
make reconfigure
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd rsync-3.0.7
|
||||
make install
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user