diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/dovecot/APKBUILD | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/main/dovecot/APKBUILD b/main/dovecot/APKBUILD index 90528e8b65..256d3ede46 100644 --- a/main/dovecot/APKBUILD +++ b/main/dovecot/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=dovecot pkgver=2.0.13 -pkgrel=0 +pkgrel=1 pkgdesc="IMAP and POP3 server" url="http://www.dovecot.org/" arch="all" @@ -11,10 +11,11 @@ depends="openssl logrotate" pkgusers="dovecot dovenull" pkggroups="dovecot dovenull" makedepends="libcap-dev zlib-dev openssl-dev bzip2-dev postgresql-dev - mysql-dev sqlite-dev" + mysql-dev sqlite-dev heimdal-dev openldap-dev" install="dovecot.pre-install dovecot.post-install" subpackages="$pkgname-sample-config:config $pkgname-doc $pkgname-dev - $pkgname-pgsql $pkgname-mysql $pkgname-sqlite" + $pkgname-pgsql $pkgname-mysql $pkgname-sqlite $pkgname-gssapi + $pkgname-ldap" source="http://www.dovecot.org/releases/2.0/$pkgname-$pkgver.tar.gz dovecot.logrotate dovecot.initd @@ -33,6 +34,8 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ + --with-gssapi=plugin \ + --with-ldap=plugin \ --with-sql=plugin \ --with-mysql \ --with-sqlite \ @@ -44,7 +47,10 @@ build() { package() { cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir" install + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/lib/dovecot/*.la \ + "$pkgdir"/usr/lib/dovecot/*/*.la || return 1 + install -d "$pkgdir"/var/run/dovecot \ "$pkgdir"/etc/ssl/dovecot install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname @@ -89,6 +95,16 @@ sqlite() { _mv $(cd "$pkgdir" && find usr -name '*sqlite.so') } +gssapi() { + pkgdesc="GSSAPI auth plugin for dovecot" + _mv $(cd "$pkgdir" && find usr -name '*gssapi.so') +} + +ldap() { + pkgdesc="LDAP plugin for dovecot" + _mv $(cd "$pkgdir" && find usr -name '*ldap.so') +} + config() { pkgdesc="Sample configuration files for dovecot" install="dovecot-sample-config.post-install" |