2006-02-23 15:26:10 +00:00
|
|
|
# Description: IMAP and POP3 server with ssl/ipv6 support, written with security primarily in mind
|
2020-06-06 13:00:05 +02:00
|
|
|
# URL: https://dovecot.org
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2019-03-10 13:53:24 +01:00
|
|
|
# Depends on: zlib bzip2 xz openssl libcap linux-pam
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=dovecot
|
2020-08-12 15:59:00 +02:00
|
|
|
version=2.3.11.3
|
2018-03-01 09:57:59 +01:00
|
|
|
release=1
|
2018-01-28 13:14:45 +01:00
|
|
|
source=(https://dovecot.org/releases/2.3/$name-$version.tar.gz
|
2019-03-10 13:53:24 +01:00
|
|
|
dovecot.rc dovecot.pam)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
2018-03-01 09:57:59 +01:00
|
|
|
cd $name-$version
|
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 \
|
|
|
|
--with-moduledir=/usr/lib/dovecot/modules \
|
2019-03-10 13:53:24 +01:00
|
|
|
--with-pam \
|
|
|
|
--with-ssl=openssl
|
2010-08-29 11:17:24 +02:00
|
|
|
|
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-02-23 15:26:10 +00:00
|
|
|
|
2019-03-10 13:53:24 +01:00
|
|
|
# RC script
|
|
|
|
install -D -m 755 $SRC/dovecot.rc $PKG/etc/rc.d/dovecot
|
|
|
|
|
|
|
|
# PAM
|
|
|
|
install -D -m 644 $SRC/dovecot.pam $PKG/etc/pam.d/dovecot
|
2010-08-29 11:17:24 +02:00
|
|
|
|
2019-03-10 13:53:24 +01:00
|
|
|
# SSL
|
|
|
|
install -d $PKG/etc/ssl/{certs,private}
|
|
|
|
touch $PKG/etc/ssl/certs/dovecot.pem
|
|
|
|
touch $PKG/etc/ssl/private/dovecot.pem
|
|
|
|
chmod 0600 $PKG/etc/ssl/{certs/dovecot.pem,private/dovecot.pem}
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2019-03-10 13:53:24 +01:00
|
|
|
# directories
|
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
|
2019-03-10 13:53:24 +01:00
|
|
|
|
|
|
|
# cleanup
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
rm $PKG/etc/dovecot/README
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|