2012-01-31 14:43:27 +00:00
|
|
|
# Template file for 'dovecot'
|
|
|
|
pkgname=dovecot
|
2012-12-03 10:21:58 +00:00
|
|
|
version=2.1.12
|
2012-09-22 09:48:31 +00:00
|
|
|
revision=1
|
2012-01-31 14:43:27 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--with-moduledir=/usr/lib/dovecot/modules --with-sql=plugin
|
|
|
|
--disable-static --with-nss --with-pam --with-mysql --with-pgsql
|
|
|
|
--with-sqlite --with-ssl=openssl --with-ssldir=/etc/dovecot/ssl
|
|
|
|
--with-gssapi --with-ldap=plugin --with-zlib --with-bzlib --with-libcap
|
2012-07-10 07:20:28 +00:00
|
|
|
--with-solr --with-docs --with-systemdsystemunitdir=/usr/lib/systemd/system"
|
2012-01-31 14:43:27 +00:00
|
|
|
short_desc="IMAP and POP3 server written with security primarily in mind"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="LGPL-2.1"
|
2012-07-01 16:53:56 +00:00
|
|
|
homepage="http://dovecot.org"
|
|
|
|
distfiles="$homepage/releases/2.1/$pkgname-$version.tar.gz"
|
2012-12-03 10:21:58 +00:00
|
|
|
checksum=d76ae15146452d053c423d883b2cbc24f62a55cf2f1f547577f42bc7d8d20840
|
2012-01-31 14:43:27 +00:00
|
|
|
long_desc="
|
|
|
|
Dovecot is an open source IMAP and POP3 email server for Linux/UNIX-like
|
|
|
|
systems, written with security primarily in mind. Dovecot is an excellent
|
|
|
|
choice for both small and large installations. It's fast, simple to set
|
|
|
|
up, requires no special administration and it uses very little memory."
|
|
|
|
|
2012-12-03 10:23:27 +00:00
|
|
|
subpackages="${pkgname}-plugin-ldap ${pkgname}-plugin-mysql
|
2012-12-03 10:21:58 +00:00
|
|
|
${pkgname}-plugin-pgsql ${pkgname}-plugin-sqlite"
|
2012-01-31 14:43:27 +00:00
|
|
|
|
|
|
|
systemd_services="dovecot.service true"
|
|
|
|
system_accounts="dovecot dovenull"
|
|
|
|
dovecot_homedir="/var/chroot"
|
|
|
|
dovenull_homedir="/var/chroot"
|
|
|
|
|
|
|
|
conf_files="
|
|
|
|
/etc/dovecot/conf.d/10-auth.conf
|
|
|
|
/etc/dovecot/conf.d/10-director.conf
|
|
|
|
/etc/dovecot/conf.d/10-logging.conf
|
|
|
|
/etc/dovecot/conf.d/10-mail.conf
|
|
|
|
/etc/dovecot/conf.d/10-master.conf
|
|
|
|
/etc/dovecot/conf.d/10-ssl.conf
|
|
|
|
/etc/dovecot/conf.d/15-lda.conf
|
|
|
|
/etc/dovecot/conf.d/20-imap.conf
|
|
|
|
/etc/dovecot/conf.d/20-lmtp.conf
|
|
|
|
/etc/dovecot/conf.d/20-pop3.conf
|
|
|
|
/etc/dovecot/conf.d/90-acl.conf
|
|
|
|
/etc/dovecot/conf.d/90-plugin.conf
|
|
|
|
/etc/dovecot/conf.d/90-quota.conf
|
|
|
|
/etc/dovecot/conf.d/auth-checkpassword.conf.ext
|
|
|
|
/etc/dovecot/conf.d/auth-deny.conf.ext
|
|
|
|
/etc/dovecot/conf.d/auth-master.conf.ext
|
|
|
|
/etc/dovecot/conf.d/auth-passwdfile.conf.ext
|
|
|
|
/etc/dovecot/conf.d/auth-sql.conf.ext
|
|
|
|
/etc/dovecot/conf.d/auth-static.conf.ext
|
|
|
|
/etc/dovecot/conf.d/auth-system.conf.ext
|
|
|
|
/etc/dovecot/conf.d/auth-vpopmail.conf.ext
|
|
|
|
/etc/dovecot/dovecot.conf
|
|
|
|
/etc/ssl/dovecot-openssl.cnf"
|
|
|
|
|
2012-12-03 10:21:58 +00:00
|
|
|
# For SSL support.
|
|
|
|
depends="openssl>=0"
|
|
|
|
|
|
|
|
makedepends="openssl-devel mit-krb5-devel libmysqlclient-devel>=5.5.27
|
|
|
|
postgresql-libs-devel sqlite-devel libldap-devel libcap-devel pam-devel
|
|
|
|
libcurl-devel expat-devel"
|
|
|
|
|
2012-01-31 14:43:27 +00:00
|
|
|
post_install() {
|
|
|
|
local econfdir=usr/share/doc/dovecot/example-config
|
|
|
|
local econfdird=${econfdir}/conf.d
|
|
|
|
|
|
|
|
# install example conf files and ssl.conf
|
|
|
|
vmkdir etc/dovecot/conf.d
|
|
|
|
install -m644 ${DESTDIR}/${econfdird}/*.conf \
|
|
|
|
${DESTDIR}/etc/dovecot/conf.d
|
|
|
|
install -m644 ${DESTDIR}/${econfdird}/*.conf.ext \
|
|
|
|
${DESTDIR}/etc/dovecot/conf.d
|
|
|
|
install -m644 ${DESTDIR}/${econfdir}/dovecot.conf ${DESTDIR}/etc/dovecot
|
|
|
|
vinstall doc/dovecot-openssl.cnf 644 etc/ssl
|
|
|
|
vinstall doc/mkcert.sh 755 usr/sbin dovecot-mkcert.sh
|
|
|
|
rm ${DESTDIR}/etc/dovecot/README
|
|
|
|
|
|
|
|
# Remove development stuff.
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
|
|
|
rm -rf ${DESTDIR}/usr/share/aclocal
|
|
|
|
}
|