blob: 6a1933f84741f7ad3b04908fadd2acdc52e14e8a (
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
76
77
78
79
80
81
82
83
84
85
86
87
|
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=boulder
pkgver=2020_02_03
_pkgver="${pkgver//_/-}"
pkgrel=1
pkgdesc='ACME-compatible X.509 Certificate Authority'
arch=('x86_64' 'i686' 'pentium4')
url='https://github.com/letsencrypt/boulder'
license=('MPL2')
groups=()
depends=(
'libtool'
)
makedepends=(
'go'
)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=(
'etc/boulder/config/admin-revoker.json'
'etc/boulder/config/akamai-purger.json'
'etc/boulder/config/ca-a.json'
'etc/boulder/config/ca-b.json'
'etc/boulder/config/cert-checker.json'
'etc/boulder/config/contact-exporter.json'
'etc/boulder/config/expiration-mailer.json'
'etc/boulder/config/nonce.json'
'etc/boulder/config/notify-mailer.json'
'etc/boulder/config/ocsp-responder.json'
'etc/boulder/config/ocsp-updater.json'
'etc/boulder/config/orphan-finder.json'
'etc/boulder/config/publisher.json'
'etc/boulder/config/ra.json'
'etc/boulder/config/sa.json'
'etc/boulder/config/va.json'
'etc/boulder/config/wfe.json'
'etc/boulder/config/wfe2.json'
'etc/boulder/data/'
'etc/boulder/data/production-email.template'
'etc/boulder/data/staging-email.template'
)
options=()
source=(
"${pkgname}-${_pkgver}.tar.gz::https://github.com/letsencrypt/${pkgname}/archive/release-${_pkgver}.tar.gz"
)
sha512sums=('076997bf128477c3a3bf963bf029996670f4fb93b4a6dd17d422e2d1675d2c0bd31c3cf227aff3d76f9035761bc4ac6226106450c292a52063dfcc1d7ac415e2')
prepare() {
cd "${pkgname}-release-${_pkgver}"
sed -i '
/ go install / s/ \$(GO_BUILD_FLAGS) / -buildmode=pie /
' 'Makefile'
}
build() {
cd "${pkgname}-release-${_pkgver}"
make
find 'test/config' -type f \
-exec sed -i '
s@"test/@"@
' {} +
}
package() {
cd "${pkgname}-release-${_pkgver}"
install -d -m755 "${pkgdir}/usr/bin"
find cmd -maxdepth 1 -mindepth 1 -type d -printf 'bin/%f\n' \
| grep -vxF 'bin/testdata' \
| xargs -r install -m755 -t "${pkgdir}/usr/bin/"
install -D -m755 -t "${pkgdir}/etc/boulder/config" 'test/config/'*
install -D -m755 -t "${pkgdir}/etc/boulder/data" 'data/'*
install -d -m755 "${pkgdir}/var/lib/boulder/sa"
mv sa/_db "${pkgdir}/var/lib/boulder/sa"
}
|