summaryrefslogtreecommitdiffstats
path: root/testing/dbmail/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-04-19 15:40:38 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-04-19 15:40:38 +0000
commitec55037bad13dbda58558be94dd250cd1260239c (patch)
treea9f741f54ab30fd1d654431034cf3b7f9a2c0fcc /testing/dbmail/APKBUILD
parente9a1284b8ca4788f89640f0487ce739d8bb6f1d5 (diff)
downloadaports-ec55037bad13dbda58558be94dd250cd1260239c.tar.bz2
aports-ec55037bad13dbda58558be94dd250cd1260239c.tar.xz
testing/dbmail: new aport
missing init scripts
Diffstat (limited to 'testing/dbmail/APKBUILD')
-rw-r--r--testing/dbmail/APKBUILD63
1 files changed, 63 insertions, 0 deletions
diff --git a/testing/dbmail/APKBUILD b/testing/dbmail/APKBUILD
new file mode 100644
index 000000000..ed604dc12
--- /dev/null
+++ b/testing/dbmail/APKBUILD
@@ -0,0 +1,63 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=dbmail
+pkgver=3.0.0_rc2
+_realpkgver=3.0.0-rc2
+pkgrel=0
+pkgdesc="Fast and scalable sql based mail services"
+url="http://dbmail.org"
+arch="all"
+license="GPL"
+depends=
+depends_dev="sqlite-dev mysql-dev postgresql-dev openldap-dev
+ libsieve-dev glib-dev gmime-dev mhash-dev libevent-dev
+ libzdb-dev"
+makedepends="$depends_dev asciidoc xmlto"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://www.dbmail.org/download/3.0/dbmail-3.0.0-rc2.tar.gz
+ code-cleanups.patch"
+
+_builddir="$srcdir/${pkgname}_${_realpkgver}"
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/inf \
+ --with-mysql \
+ --with-pgsql \
+ --with-sqlite \
+ --with-sieve \
+ --with-ldap
+ make || return 1
+ #make man pages
+ cd "$_builddir/man"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 dbmail.conf $pkgdir/etc/dbmail.conf.sample
+ mkdir -p "$pkgdir/usr/share/dbmail"
+ mv sql/* "$pkgdir/usr/share/dbmail/"
+ mv dbmail.schema "$pkgdir/usr/share/dbmail/"
+ #install man pages
+ cd "$_builddir/man"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="c4fda2da173ddeda25bcf9e2e57abd1e dbmail-3.0.0-rc2.tar.gz
+b482ba661bb4b1b6fe50e303f37b2336 code-cleanups.patch"