IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/tmp:/usr/src
STRIPLIB=y
STRIPBIN=y

VERSION=2.5.6
PROGNAME="rsync $VERSION"
DESC="\
rsync                                                                  \n\
                                                                       \n\
rsync is a replacement for rcp that has many more features.  It        \n\
uses the "rsync algorithm" which provides a very fast method for       \n\
bringing remote files into sync.  It does this by sending just the     \n\
differences in the files across the link, without requiring that both  \n\
sets of files are present at one of the ends of the link beforehand.   \n\
                                                                       \n\
rsync was written by Andrew Tridgell and Paul Mackerras."

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=http://rsync.samba.org/rsync/download.html
PKGNAME=rsync-$VERSION-s390-$BUILD
TAG=OPT

compile() {
   tar -xvzf $CWD/rsync-$VERSION.tar.gz
   cd rsync-$VERSION/
   ./configure --prefix=/usr
   make
}

install() {
   make install DESTDIR=/package-rsync

   mkdir -p /package-rsync/usr/doc/rsync-$VERSION
   cp -a COPYING README NEWS tech_report.tex /package-rsync/usr/doc/rsync-$VERSION

   ( cd /package-rsync/usr/man
     for dir in 1 5; do
       ( cd man$dir
         rm -f *.gz
         gzip -9 *.$dir
       )
     done
   )
}

attributes() {
   chown -R root.bin $PKG/package-rsync/usr/bin/
}

special() {
   cd $PKG
   mv package-rsync/* ./
   rmdir package-rsync/

   cd $CTL
   cat $CWD/slack-desc > slack-desc
}

