description="Synchronizing files over a network by sending just the differences in the files."
url="http://samba.anu.edu.au/rsync/"
packager="tnut <tnut@nutyx.org>"
name=rsync
version=3.1.3
nutyx_version=10.1

source=(http://downloads.tuxfamily.org/nutyx/files/nutyx-${nutyx_version}.tar.xz
	http://rsync.samba.org/ftp/$name/$name-$version.tar.gz
	rsync.driver )

build() {

cd $name-$version
./configure --prefix=/usr \
-mandir=/usr/share/man \
--without-included-zlib \
--infodir=/usr/share/info
make
make DESTDIR=$PKG install

# drivers
mkdir -p $PKG/var/lib/pkg/drivers
install -m 755 $SRC/rsync.driver \
$PKG/var/lib/pkg/drivers/rsync

# service
cd $SRC

cd $SRC/nutyx-${nutyx_version}
make DESTDIR=$PKG install-rsyncd
}
