blob: 9610e41c80f8ce48db23d9cdbd65511994c524c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $Id: PKGBUILD 42470 2011-03-16 21:11:47Z jelle $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sebastian Faltoni <sebastian.faltoni@gmail.com>
pkgname=dbmail
pkgver=2.2.17
pkgrel=2
pkgdesc="Fast and scalable sql based mail services"
arch=('i686' 'x86_64')
# mhash libevent libzdb
depends=('gmime22')
makedepends=('asciidoc' 'xmlto' 'docbook-xsl' 'docbook-xml' 'postgresql-libs>=8.4.1' 'sqlite3' 'libmysqlclient' 'libldap>=2.4.18' 'libsieve')
optdepends=('postgresql-libs: for PostgreSQL storage backend'
'sqlite3: for SQLite storage backend'
'libmysqlclient: for MySQL storage backend'
'libldap: for LDAP authentication'
'libsieve: for dbmail-sieve')
url="http://www.dbmail.org"
license=('GPL')
options=('!libtool' 'zipman')
backup=(etc/conf.d/dbmail)
source=(http://www.dbmail.org/download/2.2/$pkgname-${pkgver}.tar.gz \
dbmail.conf.d \
dbmail.rc.d)
md5sums=('20d90596d6aea066e701a6cb91445a39'
'e7f72bc360decdb2475266391ad12329'
'099225611da20ec194c092ac9befc33c')
build() {
cd $srcdir/$pkgname-${pkgver}/
# Uncoment this if you want pam authentication
# patch -p1 <$srcdir/dbmail-2.2.10-pam-support.patch
# automake
# autoconf
# Apply these patches if you want to use MySQL 5.1.* < 5.1.47
# See MySQL bug: http://bugs.mysql.com/bug.php?id=38745
if false; then
patch -p0 dbmail-message.c <<EOF
744c744
< "FROM %smessageblks "
---
> "FROM %smessageblks use index(physmessage_id_index) "
EOF
patch -p0 db.c <<EOF
2139c2139
< "SELECT message_idnr FROM %smessages "
---
> "SELECT message_idnr FROM %smessages use index(mailbox_idnr_index) "
EOF
fi
./configure --prefix=/usr --with-mysql --with-pgsql --with-sqlite --with-ldap --with-sieve
make || return 1
make DESTDIR=$pkgdir install || return 1
(cd man && make && make install DESTDIR=$pkgdir) || return 1
mkdir $pkgdir/etc && \
install -Dm644 dbmail.conf $pkgdir/etc/dbmail.conf.sample && \
install -Dm644 ../${pkgname}.conf.d $pkgdir/etc/conf.d/${pkgname} && \
install -Dm755 ../${pkgname}.rc.d $pkgdir/etc/rc.d/${pkgname} && \
mkdir $pkgdir/usr/share/dbmail && \
cp -r sql/* $pkgdir/usr/share/dbmail/ && \
cp dbmail.schema $pkgdir/usr/share/dbmail/
}
|