blob: 3aa02c93c08af797b0e22b804cd64e1652361971 (
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
|
# Maintainer: Edmund Lodewijks <e.lodewijks at gmail.com>
pkgname=openarc-git
_pkgname=openarc
pkgver=1.2.0.r17.g3ff4b07
pkgrel=3
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' 'libmilter' 'libidn2')
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"'
'libmilter-sharedlib: libmilter, built with local CFLAGS, LDFLAGS, and shared library instead of static archive (recommended)'
'dkimpy-milter: for optional tests'
'perl-mail-dkim: for optional tests')
makedepends=('git' 'python-miltertest')
provides=('openarc')
conflicts=('openarc')
source=("git+https://github.com/flowerysong/OpenARC.git#branch=main"
openarc.service
openarc.sysusers
openarc.tmpfiles)
backup=('etc/openarc/openarc.conf')
sha256sums=('SKIP'
'd438b4a2e0ab5b247938213da7e8062fa5865e750e4f89d41471311edc163022'
'31c399c0e3a69bb845b033ab5c0ad92d44cacb0fd58e0113cd1901e75900515e'
'a27619fe3bbea2a0fd7c555851089722b1d67818bc014d1dce20620b5eb4bbc5')
pkgver() {
cd "$srcdir/OpenARC"
git describe --long --tags | sed 's/rel.openarc.//;s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/OpenARC"
autoreconf -fvi
}
build() {
cd "$srcdir/OpenARC"
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir="/etc/$_pkgname" \
--localstatedir=/var \
--disable-static
make -j1
}
check() {
cd "$srcdir/OpenARC"
make -j1 check
}
package() {
cd "$srcdir/OpenARC"
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
ln -s "$pkgdir/usr/share/licenses/$_pkgname" "$pkgdir/usr/share/licenses/$pkgname"
}
|