aboutsummaryrefslogtreecommitdiffstats
path: root/main/dovecot/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-11-04 09:14:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-11-04 09:14:51 +0000
commit68fe16b6a2c4cc1b1ecfe7a0574a6c46eaf885d3 (patch)
treeb75201dd497ac777ac255791cb091c0279ba0a01 /main/dovecot/APKBUILD
parent606918b5424df5605fbd2a0ea3ea95c413c15cf0 (diff)
downloadaports-68fe16b6a2c4cc1b1ecfe7a0574a6c46eaf885d3.tar.gz
aports-68fe16b6a2c4cc1b1ecfe7a0574a6c46eaf885d3.tar.bz2
aports-68fe16b6a2c4cc1b1ecfe7a0574a6c46eaf885d3.tar.xz
main/dovecot: added plugins for pgsql, mysql and sqlite
fixes #199
Diffstat (limited to 'main/dovecot/APKBUILD')
-rw-r--r--main/dovecot/APKBUILD44
1 files changed, 40 insertions, 4 deletions
diff --git a/main/dovecot/APKBUILD b/main/dovecot/APKBUILD
index 0fe38ff91e..df42224053 100644
--- a/main/dovecot/APKBUILD
+++ b/main/dovecot/APKBUILD
@@ -2,14 +2,16 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dovecot
pkgver=1.2.6
-pkgrel=0
+pkgrel=1
pkgdesc="IMAP and POP3 server"
url="http://www.dovecot.org/"
license="LGPL-2.1"
depends=
-makedepends="libcap-dev zlib-dev openssl-dev bzip2-dev"
+makedepends="libcap-dev zlib-dev openssl-dev bzip2-dev postgresql-dev
+ mysql-dev sqlite-dev"
install="dovecot.pre-install"
-subpackages="$pkgname-doc $pkgname-dev"
+subpackages="$pkgname-doc $pkgname-dev $pkgname-pgsql $pkgname-mysql
+ $pkgname-sqlite"
source="http://www.dovecot.org/releases/1.2/$pkgname-$pkgver.tar.gz
dovecot.initd
"
@@ -21,13 +23,47 @@ build() {
--sysconfdir=/etc/dovecot \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
+ --with-sql=plugin \
+ --with-sql-drivers \
+ --with-mysql \
+ --with-sqlite \
+ --with-pgsql \
--with-ssl=openssl || return 1
make || return 1
- make DESTDIR="$pkgdir" install
+}
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
+_mv() {
+ local i
+ while [ $# -gt 0 ]; do
+ local dir=${1%/*}
+ mkdir -p "$subpkgdir"/$dir
+ mv "$pkgdir/$1" "$subpkgdir/$dir/"
+ shift
+ done
+}
+
+
+pgsql() {
+ pkgdesc="postgresql driver for dovecot"
+ _mv $(cd "$pkgdir" && find usr -name '*pgsql.so')
+}
+
+mysql() {
+ pkgdesc="mysql driver for dovecot"
+ _mv $(cd "$pkgdir" && find usr -name '*mysql.so')
+}
+
+sqlite() {
+ pkgdesc="sqlite driver for dovecot"
+ _mv $(cd "$pkgdir" && find usr -name '*sqlite.so')
+}
+
md5sums="807666f1a112e7379c4dbb57c9ce4899 dovecot-1.2.6.tar.gz
c58b474dca20e6e60fa4f1f5b9c726e1 dovecot.initd"