Commit 1bf1ef9d authored by Natanael Copa's avatar Natanael Copa
Browse files

main/dovecot: enable plugins for ldap and gssapi

parent 056b2423
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment