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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=sr.ht-uacme
pkgver=1.0
pkgrel=0
pkgdesc="sr.ht acme configuration & utilities"
url="https://sr.ht/~sircmpwn/sr.ht"
arch="noarch"
license="MIT"
depends="uacme openssl moreutils doas"
pkgusers="uacme"
pkggroups="uacme"
install="$pkgname.pre-install"
source="
acme-update-certs
crontab
uacme.conf
doas.conf
"
options="$options !check"
build() {
true # no-op
}
package() {
mkdir -p "$pkgdir"/usr/bin
install -Dm755 acme-update-certs "$pkgdir"/usr/bin/acme-update-certs
mkdir -p "$pkgdir"/etc
install -Dm644 uacme.conf "$pkgdir"/etc/uacme.conf
mkdir -p "$pkgdir"/etc/doas.d
install -Dm644 doas.conf "$pkgdir"/etc/doas.d/10-uacme.conf
mkdir -p "$pkgdir"/etc/crontabs
install -Dm600 -ouacme -guacme crontab "$pkgdir"/etc/crontabs/acme
mkdir -p "$pkgdir"/var/log
install -Dm644 -ouacme -guacme /dev/null "$pkgdir"/var/log/acme.log
install -dm774 -ouacme -guacme "$pkgdir"/etc/ssl/uacme/private
install -dm755 -ouacme -guacme "$pkgdir"/var/www/.well-known/acme-challenge
}
sha512sums="
032482a8f76164aa00a71ec31a34d679c5b3403b9b1b150f954ba5808cb6bb524f77a9d11d673d07e1aa3d9108b0af21247888429533cd580d90df80bc465ea7 acme-update-certs
ebd161435985ffbd36de6f16a6daa82702ef32e23841eb8257c2cda5a546462a213da913f8bc7979b84a22667b5def4973e899ac7236d63737c2a9d969bf832d crontab
51e397f4a6ce4b66135560d9f82baa31097285ebf71e045c3c89ac9dee895fc0c05ad130c45ea85634b7a49b29bcbecc5d2cd6912f44a88196694686dc1d6220 uacme.conf
bba47979d11da452a31c21312a688d4648fa8773fbde02a1af00c17a484e81736066b76247720cba6f6e686dbc83c0c35ca9885f4f67fb16822817dfc07694f8 doas.conf
"