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
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2010-10-02 13:41:39 +02:00
|
|
|
# Depends on: zlib bzip2 openssl tcp_wrappers libcap
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=dovecot
|
2011-01-13 17:13:46 +01:00
|
|
|
version=2.0.9
|
2008-03-10 21:43:04 +01:00
|
|
|
release=1
|
2010-08-29 11:17:24 +02:00
|
|
|
source=(http://dovecot.org/releases/2.0/$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
|
2010-08-29 11:17:24 +02:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
2010-08-29 11:17:24 +02:00
|
|
|
--mandir=/usr/man \
|
2006-02-23 15:26:10 +00:00
|
|
|
--with-moduledir=/usr/lib/dovecot/modules \
|
2010-08-29 11:17:24 +02:00
|
|
|
--with-ssl=openssl \
|
|
|
|
--with-libwrap
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2010-08-29 11:17:24 +02:00
|
|
|
cp -r $PKG/usr/share/doc/dovecot/example-config/* $PKG/etc/dovecot
|
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
|
|
|
|
2010-08-29 11:17:24 +02:00
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
rm $PKG/etc/dovecot/README
|
|
|
|
|
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
|
|
|
|
2010-08-29 11:17:24 +02:00
|
|
|
install -d -m 0750 $PKG/var/lib/dovecot
|
|
|
|
install -d -m 0755 $PKG/var/run/dovecot
|
2006-08-04 15:06:27 +00:00
|
|
|
install -d -m 0750 -o root -g dovecot $PKG/var/run/dovecot/login
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|