### this file is sourced not run
PKGVER=3.1.3
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 8.2
TARBALL=rsync-$PKGVER.tar.gz
MD5SUM=1581a588fde9d89f6bc6201e8129afaf
SRC_URL=http://rsync.samba.org/ftp/rsync/src/$TARBALL
BUNDLE=

SLACKREQ='openssl'
SLACKDESC="rsync: rsync $PKGVER (Fast incremental file transfer)  
rsync:  
rsync: rsync is an open source utility that provides fast incremental file 
rsync: transfer. This is useful for synchronizing large file archives over a 
rsync: network.  
rsync: 
rsync: 
rsync: 
rsync: 
rsync: 
rsync: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --without-included-zlib"
	pkg_build_autoconf && 
	pkg_build_slackdesc &&

	# sample rsyncd.conf file - need further work to make it work.
	install /tmp/pkg/rsyncd.conf /etc &&

	# install rrsync tool - for restricted rsync via ssh
	# https://www.guyrutenberg.com/2014/01/14/restricting-ssh-access-to-rsync/
	# http://ftp.samba.org/pub/unpacked/rsync/support/rrsync
	install -m755 /tmp/pkg/rrsync /usr/bin &&

	true
}


