blob: 5aed263aed66fa020f09b63ca8ccbb7089422f90 (
plain)
1 # Description: IMAP and POP3 server with ssl/ipv6 support, written with security primarily in mind
2 # URL: https://dovecot.org
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: zlib bzip2 xz openssl libcap linux-pam
5
6 name=dovecot
7 version=2.3.13
8 release=1
9 source=(https://dovecot.org/releases/2.3/$name-$version.tar.gz
10 dovecot.rc dovecot.pam)
11
12 build () {
13 cd $name-$version
14
15 ./configure --prefix=/usr \
16 --libexecdir=/usr/lib \
17 --sysconfdir=/etc \
18 --localstatedir=/var \
19 --with-moduledir=/usr/lib/dovecot/modules \
20 --with-pam \
21 --with-ssl=openssl
22
23 make
24 make DESTDIR=$PKG install
25
26 cp -r $PKG/usr/share/doc/dovecot/example-config/* $PKG/etc/dovecot
27
28 # RC script
29 install -D -m 755 $SRC/dovecot.rc $PKG/etc/rc.d/dovecot
30
31 # PAM
32 install -D -m 644 $SRC/dovecot.pam $PKG/etc/pam.d/dovecot
33
34 # SSL
35 install -d $PKG/etc/ssl/{certs,private}
36 touch $PKG/etc/ssl/certs/dovecot.pem
37 touch $PKG/etc/ssl/private/dovecot.pem
38 chmod 0600 $PKG/etc/ssl/{certs/dovecot.pem,private/dovecot.pem}
39
40 # directories
41 install -d -m 0750 $PKG/var/lib/dovecot
42 install -d -m 0755 $PKG/var/run/dovecot
43 install -d -m 0750 -o root -g dovecot $PKG/var/run/dovecot/login
44
45 # cleanup
46 rm -r $PKG/usr/share/doc
47 rm $PKG/etc/dovecot/README
48
49 }
|