DOCS="AUTHORS COPY* INSTALL *.html NEWS README authlib/README* imap/BUGS \ imap/Change* imap/FAQ imap/*.html maildir/*.txt maildir/*.html tcpd/READM* \ tcpd/*.html userdb/*.html sysconftool" IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var STRIPLIB=y STRIPBIN=y SETATTR=y # pkginfo VERSION=1.4.6.20020529 PROGNAME="Courier-IMAP server" # |-----handy-ruler------------------------------------------------------| SLACKDESC="\ courier-imap: courier-imap-$VERSION\n\ courier-imap:\n\ courier-imap: Courier-IMAP is an IMAP server for Maildir mailboxes.\n\ courier-imap:\n\ courier-imap:\n\ courier-imap:\n\ courier-imap:\n\ courier-imap:\n\ courier-imap:\n\ courier-imap:\n\ courier-imap:" # maintainer ARCH=i386 BUILD=1rob MAINTAINER="Robert Stan " SOURCE=http://www.inter7.com/courierimap/ LOCATION=ftp://ftp.linuxpackages.net/pub/Slackware-8/robert/n/ # package name PKGNAME="courier-imap-${VERSION}-${ARCH}-${BUILD}" # compiler flags PKGOPT="-O2 -fomit-frame-pointer -march=$ARCH" compile() { tar xvzf $CWD/courier-imap-$VERSION.tar.gz ; cd courier-imap-$VERSION CFLAGS=$PKGOPT ./configure --prefix=/usr \ --sysconfdir=/etc/courier-imap \ --libexecdir=/usr/libexec/courier-imap \ --localstatedir=/var \ --with-db=db \ --with-authmysql \ --with-mysql-libs=/usr/lib/mysql \ --with-mysql-includes=/usr/include/mysql \ --disable-root-check \ --enable-workarounds-for-imap-client-bugs || exit 1 CFLAGS=$PKGOPT make -j2 || exit 1 } install() { make install ls /etc/courier-imap/*.dist > /etc/courier-imap/configlist mkdir -p /usr/doc/courier-imap-$VERSION cp -a $DOCS /usr/doc/courier-imap-$VERSION } attributes() { echo "No special attributes..." } special() { cat << EOF >> $CTL/doinst.sh # Install config files usr/bin/perl usr/doc/courier-imap-$VERSION/sysconftool \ \`cat etc/courier-imap/configlist\` EOF mkdir -p -m 700 $PKG/var/authdaemon # Package description echo -e $SLACKDESC > $CTL/slack-desc echo -e $SLACKDESC > $CWD/$PKGNAME.txt } subpacks() { echo "No subpacks..." }