blob: a9f4f109e4825c40c4a0debf78a39f12f26c21cf (
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 libcap
5
6 name=dovecot
7 version=2.3.0
8 release=3
9 source=(https://dovecot.org/releases/2.3/$name-$version.tar.gz
10 CVE-2017-15132.patch CVE-2017-15132-1.patch
11 dovecot-config.patch dovecot)
12
13 build () {
14 cd $name-ce-$version
15
16 patch -p1 -i $SRC/CVE-2017-15132.patch
17 patch -p1 -i $SRC/CVE-2017-15132-1.patch
18 patch -p1 -i $SRC/$name-config.patch
19
20 ./configure --prefix=/usr \
21 --libexecdir=/usr/lib \
22 --sysconfdir=/etc \
23 --localstatedir=/var \
24 --with-moduledir=/usr/lib/dovecot/modules \
25 --with-ssl=openssl \
26 --without-libwrap
27
28 make
29 make DESTDIR=$PKG install
30
31 cp -r $PKG/usr/share/doc/dovecot/example-config/* $PKG/etc/dovecot
32 install -D -m 755 $SRC/dovecot $PKG/etc/rc.d/dovecot
33
34 rm -r $PKG/usr/share/doc
35 rm $PKG/etc/dovecot/README
36
37 install -d $PKG/etc/ssl/{certs,keys}
38 touch $PKG/etc/ssl/certs/dovecot.crt
39 touch $PKG/etc/ssl/keys/dovecot.key
40 chmod 0600 $PKG/etc/ssl/{keys/dovecot.key,certs/dovecot.crt}
41
42 install -d -m 0750 $PKG/var/lib/dovecot
43 install -d -m 0755 $PKG/var/run/dovecot
44 install -d -m 0750 -o root -g dovecot $PKG/var/run/dovecot/login
45 }
|