blob: 2d8787051301070ca2b1f16d587d34c5f87ab549 (
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
|
# Maintainer: Edmund Lodewijks <e.lodewijks at gmail.com>
## NOTE: Since pkgver 1.2.0 this package builds from a new upstream!
## The Trusted Domain Project has not updated OpenARC in years.
## This AUR package now tracks flowerysong's fork, which is
## currently maintained.
pkgname=openarc
pkgver=1.2.0
pkgrel=2
pkgdesc="Open source implementation of the ARC email authentication system"
arch=(x86_64)
url="https://github.com/flowerysong/OpenARC"
license=('BSD-2-Clause' 'LicenseRef-Sendmail-1.1')
depends=('sh' 'glibc' 'jansson' 'openssl' 'libbsd' 'libidn2' 'libmilter')
optdepends=('smtp-server: for using a local mail server'
'bind: required only for signature verification (alternatives available)'
'python: required for build, but also for "openarc-keygen"'
'dkimpy-milter: for optional tests'
'perl-mail-dkim: for optional tests'
)
makedepends=('git' 'python-miltertest')
conflicts=('openarc-git' 'openarc-unofficial-patches' 'openarc-unofficial-patches-git')
source=("https://github.com/flowerysong/OpenARC/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
openarc.service
openarc.sysusers
openarc.tmpfiles
)
backup=('etc/openarc/openarc.conf')
sha256sums=('450e989279e2eb3e2e2a1b754d9e6d4670abff58e3bed719d9175a03dfe2cec3'
'd438b4a2e0ab5b247938213da7e8062fa5865e750e4f89d41471311edc163022'
'31c399c0e3a69bb845b033ab5c0ad92d44cacb0fd58e0113cd1901e75900515e'
'a27619fe3bbea2a0fd7c555851089722b1d67818bc014d1dce20620b5eb4bbc5')
prepare() {
cd "$srcdir"/"${pkgname}-${pkgver}"
autoreconf -i
}
build() {
cd "$srcdir"/"${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir="/etc/pkgname" \
--localstatedir=/var \
--disable-static
make
}
check() {
cd "$srcdir"/"${pkgname}-${pkgver}"
make -j1 check
}
package() {
cd "$srcdir"/"${pkgname}-${pkgver}"
make -j1 DESTDIR="$pkgdir/" install
# systemd integration
install -Dm644 "$srcdir/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dm644 "$srcdir/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
install -Dm644 "$srcdir/$pkgname.service" -t "$pkgdir/usr/lib/systemd/system"
# license
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
for f in LICENSE LICENSE.Sendmail; do
ln -s $f "$pkgdir/usr/share/licenses/$pkgname/$f"
done
}
|