2006-02-23 16:26:10 +01:00
|
|
|
# Description: IMAP and POP3 server with ssl/ipv6 support, written with security primarily in mind
|
2021-06-21 15:58:11 +02:00
|
|
|
# URL: https://dovecot.org
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2024-08-13 12:58:56 +02:00
|
|
|
# Depends on: bzip2 libcap linux-pam openssl sqlite3 xz zlib
|
2024-08-05 10:50:13 +02:00
|
|
|
# Optional: clucene cyrus-sasl icu krb5 libsodium lua53 lz4 mariadb nss openldap postgresql
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=dovecot
|
2024-08-15 11:20:29 +02:00
|
|
|
version=2.3.21.1
|
|
|
|
release=1
|
2018-01-28 13:14:45 +01:00
|
|
|
source=(https://dovecot.org/releases/2.3/$name-$version.tar.gz
|
2024-08-05 10:50:13 +02:00
|
|
|
dovecot-2.3.21-openssl3_fixes-1.patch
|
|
|
|
dovecot-2.3.21-security_fix-1.patch
|
2021-06-21 15:58:11 +02:00
|
|
|
dovecot.rc dovecot.pam)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2021-06-21 15:58:11 +02:00
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2010-08-29 11:17:24 +02:00
|
|
|
|
2024-08-05 10:50:13 +02:00
|
|
|
patch -Np1 -i $SRC/dovecot-2.3.21-openssl3_fixes-1.patch
|
|
|
|
patch -Np1 -i $SRC/dovecot-2.3.21-security_fix-1.patch
|
|
|
|
autoreconf -fvi
|
|
|
|
|
|
|
|
prt-get isinst clucene && PKGMK_DOVECOT+=' --with-lucene'
|
|
|
|
prt-get isinst icu && PKGMK_DOVECOT+=' --with-icu'
|
|
|
|
prt-get isinst krb5 && PKGMK_DOVECOT+=' --with-gssapi'
|
|
|
|
prt-get isinst libsodium && PKGMK_DOVECOT+=' --with-sodium'
|
|
|
|
prt-get isinst lua53 && PKGMK_DOVECOT+=' --with-lua=plugin'
|
|
|
|
prt-get isinst mariadb && PKGMK_DOVECOT+=' --with-mysql'
|
|
|
|
prt-get isinst nss && PKGMK_DOVECOT+=' --with-nss'
|
|
|
|
prt-get isinst openldap && PKGMK_DOVECOT+=' --with-ldap=plugin'
|
|
|
|
prt-get isinst postgresql && PKGMK_DOVECOT+=' --with-pgsql'
|
|
|
|
|
|
|
|
CPPFLAGS="-I/usr/include/tirpc" \
|
|
|
|
LDFLAGS+=" -ltirpc" \
|
|
|
|
./configure $PKGMK_DOVECOT \
|
2021-06-21 15:58:11 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
2022-02-12 19:08:58 +01:00
|
|
|
--with-rundir=/run/dovecot \
|
2021-06-21 15:58:11 +02:00
|
|
|
--with-moduledir=/usr/lib/dovecot/modules \
|
2024-08-05 10:50:13 +02:00
|
|
|
--with-rundir=/run/dovecot \
|
|
|
|
--with-sql \
|
|
|
|
--with-sqlite \
|
|
|
|
--with-libcap \
|
2021-06-21 15:58:11 +02:00
|
|
|
--with-pam \
|
|
|
|
--with-ssl=openssl
|
2010-08-29 11:17:24 +02:00
|
|
|
|
2021-06-21 15:58:11 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2021-06-21 15:58:11 +02:00
|
|
|
cp -r $PKG/usr/share/doc/dovecot/example-config/* $PKG/etc/dovecot
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2021-06-21 15:58:11 +02:00
|
|
|
# RC script
|
|
|
|
install -D -m 755 $SRC/dovecot.rc $PKG/etc/rc.d/dovecot
|
2019-03-10 13:53:24 +01:00
|
|
|
|
2021-06-21 15:58:11 +02:00
|
|
|
# PAM
|
|
|
|
install -D -m 644 $SRC/dovecot.pam $PKG/etc/pam.d/dovecot
|
2010-08-29 11:17:24 +02:00
|
|
|
|
2022-06-15 13:04:49 +02:00
|
|
|
# SSL
|
2021-06-21 15:58:11 +02:00
|
|
|
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 16:26:10 +01:00
|
|
|
|
2021-06-21 15:58:11 +02:00
|
|
|
# directories
|
|
|
|
install -d -m 0750 $PKG/var/lib/dovecot
|
2019-03-10 13:53:24 +01:00
|
|
|
|
2021-06-21 15:58:11 +02:00
|
|
|
# cleanup
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
rm $PKG/etc/dovecot/README
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|