aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dbmail/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-11-07 09:04:35 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-11-07 09:04:35 +0000
commit30f1ddf1f8459c98e8b0e2b73b0263f8173fba8a (patch)
tree89716aeb11e845183c2fbd272ff2da2c2bcabbef /testing/dbmail/APKBUILD
parentdab2a3eaae74c39a1a259d944a66ea893741def0 (diff)
downloadaports-30f1ddf1f8459c98e8b0e2b73b0263f8173fba8a.tar.bz2
aports-30f1ddf1f8459c98e8b0e2b73b0263f8173fba8a.tar.xz
testing/dbmail: fix initd and add default config
Diffstat (limited to 'testing/dbmail/APKBUILD')
-rw-r--r--testing/dbmail/APKBUILD44
1 files changed, 30 insertions, 14 deletions
diff --git a/testing/dbmail/APKBUILD b/testing/dbmail/APKBUILD
index a160811901..bc5c0cad11 100644
--- a/testing/dbmail/APKBUILD
+++ b/testing/dbmail/APKBUILD
@@ -3,25 +3,28 @@
pkgname=dbmail
_realpkgver=3.0.0-rc3
pkgver=${_realpkgver/-/_}
-pkgrel=0
+pkgrel=1
pkgdesc="Fast and scalable sql based mail services"
url="http://dbmail.org"
arch="all"
license="GPL"
+pkgusers="dbmail"
+pkggroups="dbmail"
depends=
depends_dev="openldap-dev libsieve-dev glib-dev gmime-dev
mhash-dev libevent-dev libzdb-dev"
makedepends="$depends_dev asciidoc xmlto automake autoconf"
install=""
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-auth-ldap:auth_ldap"
source="http://www.dbmail.org/download/3.0/dbmail-${_realpkgver}.tar.gz
$pkgname-imapd.initd
$pkgname-lmtpd.initd
$pkgname-pop3d.initd
$pkgname-httpd.initd
$pkgname-timsieved.initd
+ $pkgname.pre-install
post-rc3.patch
- gmime-2.6.patch
+ dbmail.conf
"
_builddir="$srcdir/${pkgname}-${_realpkgver}"
@@ -34,19 +37,21 @@ prepare() {
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
+ # we need support for gmine 2.6
+ sed -i 's/gmime-2.4/gmime-2.6/g' configure
}
build() {
cd "$_builddir"
- autoreconf
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-sieve \
- --with-ldap
+ --with-ldap \
+ --disable-static
make || return 1
- #make man pages
+ # make man pages
cd "$_builddir/man"
make || return 1
}
@@ -55,7 +60,6 @@ package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/dbmail/*.la || return 1
- install -Dm644 "$pkgname.conf" "$pkgdir/etc/$pkgname.conf.sample"
mkdir -p "$pkgdir/usr/share/$pkgname"
mv sql/* "$pkgdir/usr/share/$pkgname/"
mv "$pkgname.schema" "$pkgdir/usr/share/$pkgname/"
@@ -66,13 +70,25 @@ package() {
#install man pages
cd "$_builddir/man"
make DESTDIR="$pkgdir" install || return 1
+ install -m644 -D "$srcdir"/$pkgname.conf \
+ "$pkgdir"/etc/$pkgname.conf || return 1
+ install -dDo dbmail "$pkgdir"/var/run/dbmail || return 1
+ install -dDo dbmail "$pkgdir"/var/lib/dbmail || return 1
+}
+
+auth_ldap() {
+ pkgdesc="$pkgname ldap authentication"
+ mkdir -p "$subpkgdir"/usr/lib/dbmail
+ mv "$pkgdir"/usr/lib/dbmail/libauth_ldap* \
+ "$subpkgdir"/usr/lib/dbmail/ || return 1
}
md5sums="52c3b9aad310efc90a6a2fff0552f73e dbmail-3.0.0-rc3.tar.gz
-76a0f8f96ca70a4af14c81716134cc5d dbmail-imapd.initd
-a6d79d7f0cf0fb80ef2ada71c25d9350 dbmail-lmtpd.initd
-504dd74912daeea4268f8c25ddf6de0f dbmail-pop3d.initd
-42ac86844fedf5d1afec764170e6a5de dbmail-httpd.initd
-4253a7580d82e026ecbaf45ea863e9e7 dbmail-timsieved.initd
-5e37f1190c8798edb450a40e97fe9a81 post-rc3.patch
-5c2548b1a68393337c58856614a5f359 gmime-2.6.patch"
+2f77092fade3b10123a47a5cce5b6a4a dbmail-imapd.initd
+f3a84b58ba878375ca088a0b544922cc dbmail-lmtpd.initd
+4273524211baefd9f32ea40ce9cb7dd1 dbmail-pop3d.initd
+1bf891189a6daf14254738d28f3c654f dbmail-httpd.initd
+4cd701bf1a8d292848fffe208afbe182 dbmail-timsieved.initd
+f146703e0c8c9badc92de152ac6f1e5b dbmail.pre-install
+f609d4cd01dbef95c6a1c498133a2065 post-rc3.patch
+549f2073f1c6ac902f783b493c0667d4 dbmail.conf"