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.3.8.2
PROGNAME="Courier-IMAP server"
DESC="courier-imap-1.3.8.2\n\n\
Courier-IMAP is an IMAP server for Maildir mailboxes."
# maintainer
BUILD=2
MAINTAINER="Robert Stan "
SOURCE=http://www.inter7.com/courierimap/
LOCATION=ftp://ftp.linuxmafia.org/pub/Slackware-7/courier-imap-$VERSION
# package name
PKGNAME=courimap
compile() {
tar xvzf $CWD/courier-imap-$VERSION.tar.gz
cd courier-imap-$VERSION
CPPFLAGS="-I/usr/include/mysql -O2" LDFLAGS="-L/usr/lib/mysql" \
./configure --prefix=/usr \
--sysconfdir=/etc/courier-imap \
--libexecdir=/etc/courier-imap \
--localstatedir=/var \
--with-db=db \
--with-authmysql \
--disable-root-check \
--enable-workarounds-for-imap-client-bugs
make
}
install() {
make install
#make install-configure
mkdir -p /usr/doc/$PKGNAME-$VERSION
cp -a $DOCS /usr/doc/$PKGNAME-$VERSION
}
attributes() {
echo "No special attributes..."
}
special() {
cat << EOF >> $CTL/doinst.sh
# Install config files
for file in imapd.dist imapd-ssl.dist pop3d.dist pop3d-ssl.dist \
authmysqlrc.dist authdaemonrc.dist; do
usr/bin/perl usr/doc/$PKGNAME-$VERSION/sysconftool etc/courier-imap/\$file
done
EOF
mkdir -p -m 700 $PKG/var/authdaemon
}
subpacks() {
echo "No subpacks..."
}