blob: ebfc10852e9fc4c49861606114a05e57e7124ed7 (
plain)
1 # Description: IMAP and POP3 server with ssl/ipv6 support, written with security primarily in mind
2 # URL: http://dovecot.org
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: zlib bzip2 openssl tcp_wrappers libcap
5
6 name=dovecot
7 version=2.1.8
8 release=1
9 source=(http://dovecot.org/releases/2.1/$name-$version.tar.gz \
10 dovecot-config.patch dovecot)
11
12 build () {
13 cd $name-$version
14
15 patch -p1 -i $SRC/$name-config.patch
16
17 ./configure --prefix=/usr \
18 --libexecdir=/usr/lib \
19 --sysconfdir=/etc \
20 --localstatedir=/var \
21 --mandir=/usr/man \
22 --with-moduledir=/usr/lib/dovecot/modules \
23 --with-ssl=openssl \
24 --with-libwrap
25
26 make
27 make DESTDIR=$PKG install
28
29 cp -r $PKG/usr/share/doc/dovecot/example-config/* $PKG/etc/dovecot
30 install -D -m 755 $SRC/dovecot $PKG/etc/rc.d/dovecot
31
32 rm -r $PKG/usr/share/doc
33 rm $PKG/etc/dovecot/README
34
35 install -d $PKG/etc/ssl/{certs,keys}
36 touch $PKG/etc/ssl/certs/dovecot.crt
37 touch $PKG/etc/ssl/keys/dovecot.key
38 chmod 0600 $PKG/etc/ssl/{keys/dovecot.key,certs/dovecot.crt}
39
40 install -d -m 0750 $PKG/var/lib/dovecot
41 install -d -m 0755 $PKG/var/run/dovecot
42 install -d -m 0750 -o root -g dovecot $PKG/var/run/dovecot/login
43 }
|