blob: 170e4487c3bc708928e1796e188a5e5abc5271fa (
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
|
# $Id: PKGBUILD 79734 2012-11-11 19:36:41Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sebastian Faltoni <sebastian.faltoni@gmail.com>
pkgname=dbmail
pkgver=3.0.2
pkgrel=7
pkgdesc="Fast and scalable sql based mail services"
arch=('i686' 'x86_64')
depends=('gmime24' 'libzdb' 'mhash' 'libevent')
makedepends=('asciidoc' 'xmlto' 'docbook-xsl' 'docbook-xml' 'postgresql-libs>=8.4.1'
'sqlite' 'libmysqlclient' 'libldap>=2.4.18' 'libsieve')
optdepends=('postgresql-libs: for PostgreSQL storage backend'
'sqlite: 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/3.0/dbmail-${pkgver/_/-}.tar.gz
dbmail.conf.d
dbmail.rc.d
dbmail.tmpfiles
dbmail-imapd.service
dbmail-lmtpd.service
dbmail-pop3d.service
dbmail-timsieved.service)
md5sums=('eb32235abffdf967253ee9d004e0e4a9'
'e7f72bc360decdb2475266391ad12329'
'30774513fb016b9da08e9cf6f2a0b8e7'
'c4b5793c5422b62a675d4c66ff7e9300'
'84efa46eaac66057c4eb131d9bc27fa8'
'19560277f6a56d1f3f2fdb02315dcf0f'
'89a0f793737eaf36291409f8c840891e'
'dd1b5b2c542f55d9d934a58a36d0513d')
build() {
cd $srcdir/dbmail-${pkgver/_/-}/
[ -f Makefile ] || ./configure --prefix=/usr --with-ldap --with-sieve
make
}
package() {
cd $srcdir/dbmail-${pkgver/_/-}/
make DESTDIR=$pkgdir install
(cd man && make && make install DESTDIR=$pkgdir)
mkdir $pkgdir/etc
install -Dm644 dbmail.conf $pkgdir/etc/dbmail.conf.sample
install -Dm644 ../dbmail.conf.d $pkgdir/etc/conf.d/dbmail
install -Dm755 ../dbmail.rc.d $pkgdir/etc/rc.d/dbmail
mkdir $pkgdir/usr/share/dbmail
cp -r sql/* $pkgdir/usr/share/dbmail/
cp dbmail.schema $pkgdir/usr/share/dbmail/
install -Dm0644 $srcdir/dbmail-imapd.service $pkgdir/usr/lib/systemd/system/dbmail-imapd.service
install -Dm0644 $srcdir/dbmail-lmtpd.service $pkgdir/usr/lib/systemd/system/dbmail-lmtpd.service
install -Dm0644 $srcdir/dbmail-pop3d.service $pkgdir/usr/lib/systemd/system/dbmail-pop3d.service
install -Dm0644 $srcdir/dbmail-timsieved.service $pkgdir/usr/lib/systemd/system/dbmail-timsieved.service
install -Dm0644 $srcdir/dbmail.tmpfiles $pkgdir/usr/lib/tmpfiles.d/dbmail.conf
}
|