M sr.ht/meta.sr.ht/APKBUILD => sr.ht/meta.sr.ht/APKBUILD +8 -10
@@ 1,6 1,6 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=meta.sr.ht
-pkgver=0.43.0
+pkgver=0.45.0
pkgrel=0
pkgdesc="sr.ht account service"
url="https://git.sr.ht/~sircmpwn/meta.sr.ht"
@@ 35,14 35,12 @@ options="$options !check"
install="$pkgname.post-install $pkgname.post-upgrade"
build() {
- cd "$builddir"
python3 setup.py build
cd api
go build -o metasrht-api
}
package() {
- cd "$builddir"
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm755 "$srcdir"/meta.sr.ht.initd \
"$pkgdir"/etc/init.d/meta.sr.ht
@@ 68,10 66,10 @@ _billing() {
touch "$subpkgdir"/usr/lib/python3.8/site-packages/metasrht/.billing
}
-sha512sums="859264e217a604369f0e8efd93069e506c29defbefb2f54d73dd6f3b8a1bed6d52d76371e7f281e82af070e9fbe23f36c24136ef0d979102d2d9587c5707f732 meta.sr.ht-0.43.0.tar.gz
-e216548b27a824d65f7db1fcd6a7381de896b35c98ad75b8dcfc77701941b8472a62f562498941ed6ba5f6c18e5e988d19dc80293db42ed5f0d20e453ecbe554 meta.sr.ht.initd
-6ee005b75d1a277a3795a0b91eb88c490f27f4053cad5d74051140e812ee5514c77a334f37cd70a3ef7be02feae4a0688e9c06401cd530d3d56b3441c3d57a54 meta.sr.ht.confd
-87a9be9668f6c2675fd692078215898c482cbeae0b173e48923a7941d9a7dac0a58b5febf12637a6c69d924206e65cee7fa5f2f6017723b3cdc24f0b13469292 meta.sr.ht-api.initd
-6b29cd7bbbadc4e99e47e42bef843eaa17e5cc8e86999158c810a56f694bfd6c58340959f259108f1f26c4664cf2db8a9fbc1c5dad2f33f653483eae6d709056 meta.sr.ht-api.confd
-6f307bfd287d3508b8fb0b7c5dc41b2ce935a98052d9b7f9c8a95148f810a0af11fae7a07918bc115c78a8b33ae88ba9b0a0209f52c7e5228f95cb94ccc992ea meta.sr.ht-webhooks.initd
-b055504df3b8ede19aa50d36d97c255f6310dbc6e4fd62f6776beb8d62d0592b761819ecb3120754dbb8ad0b48c04b41bae95a2264de0d96de9e1bee70bc2693 meta.sr.ht-webhooks.confd"
+sha512sums="8026f78c2c762e29f9dab56b476453ecfa10b1cf234cca5fd83015acd65a8fe8f5cc3e0ba457a34501f553c0e804caabb3a4698b85e61c7aa239d6f634a82b3c meta.sr.ht-0.45.0.tar.gz
+c1782e12caaeb11db5eab299dbee1510ee1a697840c5b5ecd46aec23f7a16acc6e60fa0b7959a1cbcbc2614183b4e988f9eb905da475e418fd4b13fd53c71e2a meta.sr.ht.initd
+7e29f31839febf557d484f34de800e89be39d7a288cc5ea0b4d7fbdf13a722564d3795fdf0da53c5e2f9fb79f3e9b57508b569aa99762e35c4f9ac50f7dff59e meta.sr.ht.confd
+8377026251395fa74980a6733a6715c5dcfa6b893ad846d556479d3170605ba7cbe5dcc1c482f90a20e0b6332732cba9480d198dfcc9d73d2d6e338e5276bc65 meta.sr.ht-api.initd
+36550c28b15fbdf32051591a9231035852916ae701521afa00b7da5959ec08c6eca74714ecea3b8d5f35d41c388aadd61ddfeee9a270cefdadf9be32b0ced145 meta.sr.ht-api.confd
+26db23b2302c5a3a3dcb6068f0bc57d932a24ff8bcf288b8d8e1ca2385ee05603eded26e19b73c40adc96b8a0d2fad64c4f28526d69bcbc61981df8acc3efb11 meta.sr.ht-webhooks.initd
+0091092a0f0f77158c571e0731470239034cd1480657755ca0537ab4d00002d60b444bcd7df12bfc86b4ca79f5cfed51722079a46a44abc8bf2ba6a7e1111a7c meta.sr.ht-webhooks.confd"
M sr.ht/meta.sr.ht/meta.sr.ht-api.confd => sr.ht/meta.sr.ht/meta.sr.ht-api.confd +0 -6
@@ 6,9 6,3 @@
# Extra arguments to pass to Gunicorn
# META_ARGS=
-
-# If no, use an external postgresql server
-# LOCAL_PG=yes
-
-# If no, use an external redis server
-# LOCAL_REDIS=yes
M sr.ht/meta.sr.ht/meta.sr.ht-api.initd => sr.ht/meta.sr.ht/meta.sr.ht-api.initd +3 -2
@@ 16,8 16,9 @@ pidfile="/run/${RC_SVCNAME}.pid"
depend() {
need net
- [ "$LOCAL_REDIS" = "yes" ] && need redis
- [ "$LOCAL_PG" = "yes" ] && need postgresql
+ use redis
+ use postgresql
+ use pgbouncer
}
start_pre() {
M sr.ht/meta.sr.ht/meta.sr.ht-webhooks.confd => sr.ht/meta.sr.ht/meta.sr.ht-webhooks.confd +0 -3
@@ 3,6 3,3 @@
# Extra arguments to pass to Gunicorn
# META_ARGS=
-
-# If no, use an external postgresql server
-# LOCAL_PG=yes
M sr.ht/meta.sr.ht/meta.sr.ht-webhooks.initd => sr.ht/meta.sr.ht/meta.sr.ht-webhooks.initd +2 -2
@@ 14,8 14,8 @@ pidfile="/run/${RC_SVCNAME}.pid"
depend() {
need net
- need redis
- [ "$LOCAL_PG" == "yes" ] && need postgresql
+ use redis
+ use postgresql
}
start_pre() {
M sr.ht/meta.sr.ht/meta.sr.ht.confd => sr.ht/meta.sr.ht/meta.sr.ht.confd +0 -6
@@ 6,9 6,3 @@
# Extra arguments to pass to Gunicorn
# META_ARGS=
-
-# If no, use an external postgresql server
-# LOCAL_PG=yes
-
-# If no, use an external redis server
-# LOCAL_REDIS=yes
M sr.ht/meta.sr.ht/meta.sr.ht.initd => sr.ht/meta.sr.ht/meta.sr.ht.initd +3 -4
@@ 5,8 5,6 @@ supervisor=supervise-daemon
META_USER=${META_USER:-meta}
META_BIND=${META_BIND:-127.0.0.1:5000}
META_ARGS=${META_ARGS:-}
-LOCAL_PG=${LOCAL_PG:-yes}
-LOCAL_REDIS=${LOCAL_REDIS:-yes}
LOGS=/var/log/meta.sr.ht.log
supervise_daemon_args="-1 $LOGS -2 $LOGS"
command="/usr/bin/gunicorn"
@@ 16,8 14,9 @@ pidfile="/run/${RC_SVCNAME}.pid"
depend() {
need net
- [ "$LOCAL_REDIS" = "yes" ] && need redis
- [ "$LOCAL_PG" = "yes" ] && need postgresql
+ use redis
+ use postgresql
+ use pgbouncer
}
start_pre() {