opt/dovecot/Pkgfile

49 lines
1.1 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: IMAP and POP3 server with ssl/ipv6 support, written with security primarily in mind
# URL: https://dovecot.org
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: zlib bzip2 xz openssl libcap linux-pam
2006-02-23 16:26:10 +01:00
name=dovecot
2023-09-18 11:52:37 +02:00
version=2.3.21
release=1
source=(https://dovecot.org/releases/2.3/$name-$version.tar.gz
dovecot.rc dovecot.pam)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
2010-08-29 11:17:24 +02:00
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--localstatedir=/var \
2022-02-12 19:08:58 +01:00
--with-rundir=/run/dovecot \
--with-moduledir=/usr/lib/dovecot/modules \
--with-pam \
--with-ssl=openssl
2010-08-29 11:17:24 +02:00
make
make DESTDIR=$PKG install
2006-02-23 16:26:10 +01:00
cp -r $PKG/usr/share/doc/dovecot/example-config/* $PKG/etc/dovecot
2006-02-23 16:26:10 +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
2022-06-15 13:04:49 +02: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 16:26:10 +01:00
# directories
install -d -m 0750 $PKG/var/lib/dovecot
# cleanup
rm -r $PKG/usr/share/doc
rm $PKG/etc/dovecot/README
2006-02-23 16:26:10 +01:00
}