blob: a175e52f75867cc29d284be0d3538ce5b86346c0 (
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
|
# Maintainer: Konstantin Shalygin <k0ste@k0ste.ru>
# Contributor: Konstantin Shalygin <k0ste@k0ste.ru>
pkgname='mailfromd'
pkgver='8.7'
pkgrel='1'
pkgdesc='General-Purpose Mail Filter'
arch=('x86_64')
url="http://puszcza.gnu.org.ua/software/${pkgname}"
depends=('smtp-server' 'gdbm' 'mailutils' 'geoip' 'adns')
makedepends=('mailutils')
license=('GPL')
source=("${pkgname}.service"
"ftp://download.gnu.org.ua/pub/release/${pkgname}/${pkgname}-${pkgver}.tar.xz")
sha256sums=('26a380c1bfe964c1aaaf351f85504c72ca7be5dca199e7cd79252c83382a9ce0'
'd82a4a8160c937871c5d9b147b760365c09026753ffbeed09c5a35b2ac278e51')
backup=('etc/mailfromd.mf')
prepare() {
cd "${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--bindir=/usr/bin \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--with-gdbm \
--with-geoip \
--enable-ipv6 \
--enable-syslog-async \
DEFAULT_USER=mail \
DEFAULT_SOCKET=inet:8890@localhost \
DEFAULT_LOG_FACILITY=mail
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}/tests"
./testsuite -e --color=always
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -dm770 -o 8 -g 12 "${pkgdir}/var/lib/${pkgname}"
install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
}
|