2012-01-31 15:43:27 +01:00
|
|
|
# Template file for 'dovecot'
|
|
|
|
pkgname=dovecot
|
2015-05-16 06:51:27 +02:00
|
|
|
version=2.2.18
|
2015-06-03 23:54:40 +02:00
|
|
|
revision=5
|
2012-01-31 15:43:27 +01:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--with-moduledir=/usr/lib/dovecot/modules --with-sql=plugin
|
2013-01-07 22:11:34 +01:00
|
|
|
--disable-static --with-nss --with-pam --with-mysql --with-pgsql
|
|
|
|
--with-sqlite --with-ssl=openssl --with-ssldir=/etc/dovecot/ssl
|
2014-08-04 19:26:22 +02:00
|
|
|
--with-gssapi --with-ldap=plugin --with-zlib --with-bzlib --with-lzma
|
2015-06-03 23:30:31 +02:00
|
|
|
--with-lz4 --with-libcap --with-solr --with-docs --sbindir=/usr/bin"
|
2012-01-31 15:43:27 +01:00
|
|
|
short_desc="IMAP and POP3 server written with security primarily in mind"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-01-31 15:43:27 +01:00
|
|
|
license="LGPL-2.1"
|
2012-07-01 18:53:56 +02:00
|
|
|
homepage="http://dovecot.org"
|
2013-05-05 09:11:56 +02:00
|
|
|
distfiles="${homepage}/releases/2.2/${pkgname}-${version}.tar.gz"
|
2015-05-16 06:51:27 +02:00
|
|
|
checksum=b6d8468cea47f1227f47b80618f7fb872e2b2e9d3302adc107a005dd083865bb
|
2012-01-31 15:43:27 +01:00
|
|
|
|
2014-08-04 19:34:33 +02:00
|
|
|
makedepends="
|
2015-03-27 10:50:40 +01:00
|
|
|
lz4-devel zlib-devel bzip2-devel liblzma-devel libressl-devel mit-krb5-devel
|
|
|
|
libmysqlclient-devel postgresql-libs-devel sqlite-devel
|
2014-08-04 19:34:33 +02:00
|
|
|
libldap-devel libcap-devel pam-devel libcurl-devel expat-devel"
|
|
|
|
|
2013-08-15 12:22:52 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
configure_args+="
|
|
|
|
i_cv_epoll_works=yes
|
|
|
|
i_cv_inotify_works=yes
|
|
|
|
i_cv_posix_fallocate_works=yes
|
|
|
|
i_cv_signed_size_t=no
|
|
|
|
i_cv_gmtime_max_time_t=32
|
|
|
|
i_cv_signed_time_t=yes
|
|
|
|
i_cv_mmap_plays_with_write=yes
|
|
|
|
i_cv_fd_passing=yes
|
|
|
|
i_cv_c99_vsnprintf=yes
|
|
|
|
i_cv_gssapi_spnego=yes
|
|
|
|
lib_cv_va_copy=yes
|
|
|
|
lib_cv___va_copy=yes
|
|
|
|
lib_cv_va_val_copy=yes"
|
2014-08-04 19:34:33 +02:00
|
|
|
# XXX clucene cannot be currently cross compiled
|
|
|
|
configure_args+=" --without-lucene"
|
|
|
|
subpackages="dovecot-plugin-ldap dovecot-plugin-mysql dovecot-plugin-pgsql dovecot-plugin-sqlite"
|
|
|
|
else
|
|
|
|
configure_args+=" --with-lucene"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends+=" clucene-devel"
|
2013-08-15 12:22:52 +02:00
|
|
|
fi
|
|
|
|
|
2014-01-01 16:10:11 +01:00
|
|
|
# For SSL support.
|
2014-09-16 10:16:22 +02:00
|
|
|
depends="virtual?openssl"
|
2014-01-01 16:10:11 +01:00
|
|
|
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 11:21:58 +01:00
|
|
|
|
2012-01-31 15:43:27 +01: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
|
2015-06-02 10:47:29 +02:00
|
|
|
vinstall doc/mkcert.sh 755 usr/bin dovecot-mkcert.sh
|
2012-01-31 15:43:27 +01:00
|
|
|
rm ${DESTDIR}/etc/dovecot/README
|
|
|
|
|
|
|
|
# Remove development stuff.
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
|
|
|
rm -rf ${DESTDIR}/usr/share/aclocal
|
2014-10-13 13:54:30 +02:00
|
|
|
|
|
|
|
vsv dovecot
|
2012-01-31 15:43:27 +01:00
|
|
|
}
|
2013-04-12 09:46:44 +02:00
|
|
|
|
|
|
|
dovecot-plugin-ldap_package() {
|
|
|
|
depends="dovecot>=${version}"
|
2013-08-15 11:58:44 +02:00
|
|
|
short_desc+=" - LDAP plugin"
|
2013-04-12 09:46:44 +02:00
|
|
|
conf_files="/etc/dovecot/conf.d/auth-ldap.conf.ext"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/dovecot/modules/auth/libauthdb_ldap.so
|
|
|
|
vmove usr/share/doc/dovecot/example-config/conf.d/auth-ldap.conf.ext
|
|
|
|
vmove etc/dovecot/conf.d/auth-ldap.conf.ext
|
|
|
|
}
|
|
|
|
}
|
2014-08-04 19:26:22 +02:00
|
|
|
dovecot-plugin-lucene_package() {
|
|
|
|
depends="dovecot>=${version}"
|
|
|
|
short_desc+=" - Full Text Search plugin (Lucene)"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_lucene_plugin.so
|
|
|
|
vmove usr/lib/dovecot/modules/lib21_fts_lucene_plugin.so
|
|
|
|
}
|
|
|
|
}
|
2013-04-12 09:46:44 +02:00
|
|
|
dovecot-plugin-mysql_package() {
|
|
|
|
depends="dovecot>=${version}"
|
2013-06-25 21:05:40 +02:00
|
|
|
short_desc+=" - MySQL plugin"
|
2013-04-12 09:46:44 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/dovecot/modules/auth/libdriver_mysql.so
|
|
|
|
vmove usr/lib/dovecot/modules/dict/libdriver_mysql.so
|
|
|
|
vmove usr/lib/dovecot/modules/libdriver_mysql.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dovecot-plugin-pgsql_package() {
|
|
|
|
depends="dovecot>=${version}"
|
2013-06-25 21:05:40 +02:00
|
|
|
short_desc+=" - PostgreSQL plugin"
|
2013-04-12 09:46:44 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/dovecot/modules/auth/libdriver_pgsql.so
|
|
|
|
vmove usr/lib/dovecot/modules/dict/libdriver_pgsql.so
|
|
|
|
vmove usr/lib/dovecot/modules/libdriver_pgsql.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dovecot-plugin-sqlite_package() {
|
|
|
|
depends="dovecot>=${version}"
|
2013-06-25 21:05:40 +02:00
|
|
|
short_desc+=" - SQLite plugin"
|
2013-04-12 09:46:44 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/dovecot/modules/auth/libdriver_sqlite.so
|
|
|
|
vmove usr/lib/dovecot/modules/dict
|
|
|
|
vmove usr/lib/dovecot/modules/libdriver_sqlite.so
|
|
|
|
}
|
|
|
|
}
|