VERSION=5.8.3
BUILD=1
ARCH=i386
TAG=OPT

PKGNAME=ftchmail
MAINTAINER="tg <tg@linuxmafia.org>"

IGNOREPATH=/tmp:/proc:/dev:/root:/var:/home:/usr/local
STRIPLIB=y
STRIPBIN=y

PROGNAME=fetchmail
DESC="\
fetchmail-$VERSION\n\
\n\
fetchmail is a mail-retrieval and forwarding utility.  It fetches\n\
mail from a POP, IMAP, or ETRN-capable remote mailserver and forwards\n\
it to your local (client) machine's delivery system.  You can then\n\
handle the retrieved mail using normal mail user agents such as elm,\n\
pine, or Mail.  The fetchmail utility can be run in a daemon mode to\n\
repeatedly poll one or more systems at a specified interval."

compile() {
   tar xvzf $CWD/fetchmail-$VERSION.tar.gz
   cd fetchmail-$VERSION
   ./configure --prefix=/usr --enable-nls --with-ssl=/usr $ARCH-slackware-linux
   make CFLAGS=-O2 LDFLAGS=-s
}

install() {
   make install

   mkdir -p /usr/doc/fetchmail-$VERSION
   cp -r ABOUT-NLS COPYING FAQ FEATURES INSTALL MANIFEST NEWS NOTES README \
      *.html contrib fetchmail.lsm fetchmailconf \
      /usr/doc/fetchmail-$VERSION
}