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
88
89
90
91
92
93
94
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=lists.sr.ht
pkgver=0.57.15
pkgrel=0
pkgdesc="sr.ht mailing list service"
url="https://git.sr.ht/~sircmpwn/lists.sr.ht"
arch="all"
license="AGPLv3"
depends="
py3-pygit2
py3-srht
py3-celery
py3-aiosmtpd
py3-asyncpg
py3-redis
py3-gunicorn
"
makedepends="py-setuptools sassc go minify"
subpackages="$pkgname-openrc $pkgname-nginx:_nginx"
source="
$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
sr.ht-nginx-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/sr.ht-nginx/archive/master.tar.gz
lists.sr.ht.initd
lists.sr.ht.confd
lists.sr.ht-api.initd
lists.sr.ht-api.confd
lists.sr.ht-process.initd
lists.sr.ht-process.confd
lists.sr.ht-lmtp.initd
lists.sr.ht-lmtp.confd
lists.sr.ht-webhooks.initd
lists.sr.ht-webhooks.confd
lists.sr.ht.gunicorn.conf.py
"
export PKGVER=$pkgver
options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"
build() {
python3 setup.py build
pyver="$(python3 --version | cut -d. -f1-2 | cut -d' ' -f2-)"
make SRHT_PATH=/usr/lib/python$pyver/site-packages/srht
}
package() {
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm755 api/api "$pkgdir"/usr/bin/listssrht-api
mkdir -p "$pkgdir"/etc/init.d
install -Dm755 "$srcdir"/lists.sr.ht.initd \
"$pkgdir"/etc/init.d/lists.sr.ht
install -Dm644 "$srcdir"/lists.sr.ht.confd \
"$pkgdir"/etc/conf.d/lists.sr.ht
install -Dm755 "$srcdir"/lists.sr.ht-api.initd \
"$pkgdir"/etc/init.d/lists.sr.ht-api
install -Dm644 "$srcdir"/lists.sr.ht-api.confd \
"$pkgdir"/etc/conf.d/lists.sr.ht-api
install -Dm755 "$srcdir"/lists.sr.ht-lmtp.initd \
"$pkgdir"/etc/init.d/lists.sr.ht-lmtp
install -Dm644 "$srcdir"/lists.sr.ht-lmtp.confd \
"$pkgdir"/etc/conf.d/lists.sr.ht-lmtp
install -Dm755 "$srcdir"/lists.sr.ht-process.initd \
"$pkgdir"/etc/init.d/lists.sr.ht-process
install -Dm644 "$srcdir"/lists.sr.ht-process.confd \
"$pkgdir"/etc/conf.d/lists.sr.ht-process
install -Dm755 "$srcdir"/lists.sr.ht-webhooks.initd \
"$pkgdir"/etc/init.d/lists.sr.ht-webhooks
install -Dm644 "$srcdir"/lists.sr.ht-webhooks.confd \
"$pkgdir"/etc/conf.d/lists.sr.ht-webhooks
install -Dm644 "$srcdir"/lists.sr.ht.gunicorn.conf.py \
"$pkgdir"/etc/sr.ht/lists.sr.ht.gunicorn.conf.py
}
_nginx() {
depends="sr.ht-nginx"
pkgdesc="nginx configuration for $pkgname"
install -Dm644 "$srcdir/sr.ht-nginx-master/lists.sr.ht.conf" \
"$subpkgdir"/etc/nginx/http.d/lists.sr.ht.conf
}
sha512sums="
b6b8c973c416a6fc06ce6f203dc96fe8daf9b9ce114c08d96d3abf965be322ec30be461d38ea00fc7404f1d3cfc62f73c7fc2e334c0d000366a719a99b32889c lists.sr.ht-0.57.15.tar.gz
ccd803d2d87c86a035c36d88f538828cfec2da8f6bd1bd15f3ec0f1fdb6fd006f4f5145700e19eab23fcc0de1ac30c47062698214e3842209c42ea1d4f000377 sr.ht-nginx-0.57.15.tar.gz
bc34e789d752eb35f534511eef7ee70f257db0fee9db2cc5829adf48dfd7b20a2e259d01ab0ca914e64768c5e99cdfca995bf49e9d879fb6aff4cef5bdecc631 lists.sr.ht.initd
0fdee2ea046f0f90ff56be74d3ad036c855103e76a4ca47b418f66f54c581a4e5d5674499fa68bcb4ca4dee1a35e9fffab0dfe45b66d071b841ffc113cdf9d79 lists.sr.ht.confd
2460050d9d6e6d2ebf623c2734a31fd2d1aeaaf8161a6a2d5fdc701b3d38f8844951f2361745aad175ce0edd3b92a0bfe326beb04a239f59fb902a000f32d6f9 lists.sr.ht-api.initd
ddd380a46dbf7f6c1fd883f2b1f80e984ba7e11bf71a53e60152549737b3253e9e7010ccdeae66811f3b2f6a8bafe241f57fc36a12b9f80379900355bb68c8ef lists.sr.ht-api.confd
b70ef07ee3247b33167111e301804d69416e8ebe020ea28587a4fd7d8fa0a81c7228309a5aa344d83f32578a7a66466f9484eac5332cfe264a538178645fd202 lists.sr.ht-process.initd
66d114850cc9002a2491458fb91947da35010e521f28a89828b0fd5ef76463a8298bd4f921f22a67c70cfc85cdf13a62a8eee71925eb6e531d81e36ff1e78982 lists.sr.ht-process.confd
4527cf69c943fcdf4ca8b9a02e3916fcadd03781995b34123b8b2a953e7962fd62f51cee5b22cb35ee702be8599015ae59dbd49583e7451a84bb1cc68f557c86 lists.sr.ht-lmtp.initd
47e703f2820bc6161909eb5434cba80b4c801fd4f18ee2b984afb217bbe43f21391ff86a8855d470b122131db1f2714a7c8c5aa58a6666123a8520327bdc0b11 lists.sr.ht-lmtp.confd
5f06d373d62096eea3c1bc6cabc220151f23705cd544be4b73d3ef488a4cffebfa5bd72455af7a1fc3b10fe08a894737fe627a1e2e2395a22d4bd08bd3042586 lists.sr.ht-webhooks.initd
66d114850cc9002a2491458fb91947da35010e521f28a89828b0fd5ef76463a8298bd4f921f22a67c70cfc85cdf13a62a8eee71925eb6e531d81e36ff1e78982 lists.sr.ht-webhooks.confd
39c12898976aa3b5896ed8287216cf4f2ed4998722891e1b5e507070df86f9111286396eb82cc01b3faaf1016b51db47d077fc4b1b7d72e3782f936c89fb3e37 lists.sr.ht.gunicorn.conf.py
"