blob: 53f3770fba8fe5b7b1ab5b36708925c9c176488a (
plain)
1 # Description: IMAP and POP3 server with ssl/ipv6 support, written with security primarily in mind
2 # URL: http://dovecot.procontrol.fi
3 # Maintainer: Jürgen Daubert <juergen.daubert@t-online.de>
4 # Depends on: openssl
5
6 name=dovecot
7 version=1.0.beta5
8 release=1
9 source=(http://dovecot.procontrol.fi/releases/$name-$version.tar.gz \
10 dovecot-config.patch dovecot)
11
12 build () {
13 cd $name-$version
14
15 patch -p1 < ../$name-config.patch
16 ./configure --prefix=/usr \
17 --libexecdir=/usr/lib \
18 --sysconfdir=/etc \
19 --localstatedir=/var \
20 --with-moduledir=/usr/lib/dovecot/modules \
21 --enable-ipv6 \
22 --with-ssl=openssl \
23 --with-pop3d
24 make
25 make DESTDIR=$PKG install
26
27 rm -r $PKG/usr/share
28 mv $PKG/etc/dovecot-example.conf $PKG/etc/dovecot.conf
29 install -D -m 755 ../dovecot $PKG/etc/rc.d/dovecot
30
31 install -d $PKG/etc/ssl/{certs,keys}
32 touch $PKG/etc/ssl/certs/dovecot.crt
33 touch $PKG/etc/ssl/keys/dovecot.key
34
35 install -d $PKG/var/run/dovecot/login
36 chmod 0750 $PKG/var/run/dovecot/login
37 chown root:dovecot $PKG/var/run/dovecot/login
38 }
|