2006-02-23 15:26:10 +00:00
|
|
|
# Description: IMAP and POP3 server with ssl/ipv6 support, written with security primarily in mind
|
2006-10-09 17:35:49 +00:00
|
|
|
# URL: http://dovecot.org
|
2008-07-11 09:29:19 +02:00
|
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
2006-02-23 15:26:10 +00:00
|
|
|
# Depends on: openssl
|
|
|
|
|
|
|
|
name=dovecot
|
2008-10-23 08:17:00 +02:00
|
|
|
version=1.1.5
|
2008-03-10 21:43:04 +01:00
|
|
|
release=1
|
2008-06-23 09:54:23 +02:00
|
|
|
source=(http://dovecot.org/releases/1.1/$name-$version.tar.gz \
|
2006-02-23 15:26:10 +00:00
|
|
|
dovecot-config.patch dovecot)
|
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
|
|
|
|
2008-06-23 09:54:23 +02:00
|
|
|
patch -p1 -i $SRC/$name-config.patch
|
2006-02-23 15:26:10 +00:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-moduledir=/usr/lib/dovecot/modules \
|
2006-08-04 15:06:27 +00:00
|
|
|
--with-ioloop=epoll \
|
2006-02-23 15:26:10 +00:00
|
|
|
--enable-ipv6 \
|
2008-02-18 17:47:01 +01:00
|
|
|
--enable-header-install \
|
2006-02-23 15:26:10 +00:00
|
|
|
--with-ssl=openssl \
|
|
|
|
--with-pop3d
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2008-02-18 17:47:01 +01:00
|
|
|
rm -r $PKG/usr/share
|
2007-03-25 10:22:48 +02:00
|
|
|
rm $PKG/etc/dovecot-{ldap,sql}-example.conf
|
2006-02-23 15:26:10 +00:00
|
|
|
mv $PKG/etc/dovecot-example.conf $PKG/etc/dovecot.conf
|
2006-10-14 08:32:22 +00:00
|
|
|
install -D -m 755 $SRC/dovecot $PKG/etc/rc.d/dovecot
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
install -d $PKG/etc/ssl/{certs,keys}
|
|
|
|
touch $PKG/etc/ssl/certs/dovecot.crt
|
|
|
|
touch $PKG/etc/ssl/keys/dovecot.key
|
2006-05-14 09:17:55 +00:00
|
|
|
chmod 0600 $PKG/etc/ssl/{keys/dovecot.key,certs/dovecot.crt}
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2006-08-04 15:06:27 +00:00
|
|
|
install -d $PKG/var/{run,lib}/dovecot
|
|
|
|
install -d -m 0750 -o root -g dovecot $PKG/var/run/dovecot/login
|
|
|
|
chmod 0750 $PKG/var/lib/dovecot
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|