blob: 1998437c5ef37ac0572439b1dad68001cb21d3fe (
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
68
69
70
71
72
73
74
75
|
# Maintainer: Jean Lucas <jean@4ray.co>
pkgname=opensmtpd-extras-git
_pkgname=OpenSMTPD-extras
pkgver=0+r604+g36cc595
pkgrel=1
pkgdesc='Additional queues, schedulers, and tables for OpenSMTPD (Git)'
arch=(i686 x86_64)
url=https://github.com/OpenSMTPD/OpenSMTPD-extras
license=(ISC BSD BSD3 'custom:Public Domain' custom:ISC-like)
makedepends=(git libevent python2 postgresql-libs mariadb-libs hiredis)
optdepends=(
'libevent: for table-python support'
'python2: for table-python support'
'postgresql-libs: for table-postgres support'
'mariadb-libs: for table-mysql support'
'hiredis: for table-redis support'
)
source=(git+$url)
sha512sums=('SKIP')
pkgver() {
cd $_pkgname
echo 0+r$(git rev-list --count HEAD)+g$(git rev-parse --short HEAD)
}
prepare() {
cd $_pkgname
./bootstrap
# Python add-ons use Python 2
sed 's#python_type="python"#python_type="python2"#' -i configure
# Fix config folder location
sed 's#/mail#/smtpd#' -i extras/tables/table-sqlite/sqlite.conf
}
build() {
cd $_pkgname
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/smtpd \
--sysconfdir=/etc/smtpd \
--with-queue-null \
--with-queue-python \
--with-queue-ram \
--with-queue-stub \
--with-scheduler-python \
--with-scheduler-ram \
--with-scheduler-stub \
--with-table-ldap \
--with-table-mysql \
--with-table-passwd \
--with-table-postgres \
--with-table-python \
--with-table-redis \
--with-table-socketmap \
--with-table-sqlite \
--with-table-stub
make
}
check() {
cd $_pkgname
make -k check
}
package() {
cd $_pkgname
make DESTDIR="$pkgdir" install
}
|