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/"
SOURCE_URI="http://rsync.samba.org/ftp/rsync/src/rsync-$portVersion.tar.gz"
CHECKSUM_SHA256="7de4364fcf5fe42f3bdb514417f1c40d10bbca896abe7e7f2c581c6ea08a2621"
LICENSE="GNU GPL v3"
COPYRIGHT="1996-2013 by Andrew Tridgell, Wayne Davison, and others."
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
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
	"


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
}
