opt/dovecot/Pkgfile
2006-02-23 15:26:10 +00:00

39 lines
1.2 KiB
Plaintext

# Description: IMAP and POP3 server with ssl/ipv6 support, written with security primarily in mind
# URL: http://dovecot.procontrol.fi
# Maintainer: Jürgen Daubert <juergen.daubert@t-online.de>
# Depends on: openssl
name=dovecot
version=1.0.beta3
release=1
source=(http://dovecot.procontrol.fi/releases/$name-$version.tar.gz \
dovecot-config.patch dovecot)
build () {
cd $name-$version
patch -p1 < ../$name-config.patch
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--localstatedir=/var \
--with-moduledir=/usr/lib/dovecot/modules \
--enable-ipv6 \
--with-ssl=openssl \
--with-pop3d
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
mv $PKG/etc/dovecot-example.conf $PKG/etc/dovecot.conf
install -D -m 755 ../dovecot $PKG/etc/rc.d/dovecot
install -d $PKG/etc/ssl/{certs,keys}
touch $PKG/etc/ssl/certs/dovecot.crt
touch $PKG/etc/ssl/keys/dovecot.key
install -d $PKG/var/run/dovecot/login
chmod 0750 $PKG/var/run/dovecot/login
chown root:dovecot $PKG/var/run/dovecot/login
}