# SliTaz package receipt.
PACKED_SIZE="164.0K"
UNPACKED_SIZE="368.0K"
PACKAGE="rsync"
VERSION="3.1.3"
CATEGORY="network"
SHORT_DESC="Utility that provides fast incremental."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL"
[ -n "$TARGET" ] || TARGET="i486"
BUILD_DEPENDS="uclibc-cross-compiler-$TARGET perl"
DEPENDS=""
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://rsync.samba.org/"
WGET_URL="${WEB_SITE}ftp/$PACKAGE/$TARBALL"
CONFIG_FILES="/etc/rsyncd.conf /etc/rsyncd.secrets"
SUGGESTED="rsh dropbear-client"
# Rules to configure and make the package.
compile_rules()
{
sed -i 's/cross_compiling=no/cross_compiling=yes/' configure.sh
./configure CC=uclibc-$TARGET-cc --host=i486-pc-linux-gnu \
--prefix=/usr \
--mandir=/usr/share/man \
--disable-iconv --disable-iconv-open \
--disable-acl-support --disable-xattr-support \
--with-included-popt --disable-debug \
$CONFIGURE_ARGS
sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
-e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
sed -i 's/-liconv//' Makefile
make &&
make DESTDIR=$DESTDIR install
}
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/usr
cp -a $install/usr/bin $fs/usr
# Config file is /etc/rsyncd.conf.
# User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
#
cp -a $stuff/etc $fs
chown root.root $fs/etc/init.d/*
chmod 0644 $fs/etc/rsyncd.conf
}
config_form()
{
cat <