~sircmpwn/sr.ht-pkgbuilds

9f97e09f2d540a9735ae0d17b50c461051646ee8 — Thorben G√ľnther 9 months ago 02a0bac
Add missing webhook services
M hg.sr.ht/PKGBUILD => hg.sr.ht/PKGBUILD +4 -1
@@ 15,11 15,13 @@ install=hg.sr.ht.install
source=(
	"$pkgname-$pkgver.tar.gz::https://hg.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
	"hg.sr.ht.service"
	"hg.sr.ht-webhooks.service"
	"sysusers.conf"
	"tmpfiles.conf"
)
sha256sums=('22d75528e593a2d2e7dc29a4cccdf09246910dfef8fd21daf4ad539045bc741e'
sha256sums=('586652021d06e08ca9989ed9e518d0a112d2f6340c9f5e3ee130ff7762d4f307'
            'c962cc45d71c364816113121b2f8e2d7207653df5ee57a78523241a6652b70ea'
            '31051ffb5a86487aff02b9026f7d34b68b462328a43d37ea19b652b0cca3f406'
            'f757c1c92db1d6000cfc7887ed69fc8e350e7b64c1cff3539318e69e6e1425df'
            '985698a1d24140d15016a36fd1ebe5b41aea466190f4d550e70d281ee0090dbb')
export PKGVER=$pkgver


@@ 32,6 34,7 @@ build() {
package() {
	cd $pkgbase-$pkgver
	install -Dm0644 ../hg.sr.ht.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../hg.sr.ht-webhooks.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../sysusers.conf "$pkgdir/usr/lib/sysusers.d/hg.sr.ht.conf"
	install -Dm0644 ../tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/hg.sr.ht.conf"
	python3 setup.py install --root="${pkgdir}" --optimize=1

A hg.sr.ht/hg.sr.ht-webhooks.service => hg.sr.ht/hg.sr.ht-webhooks.service +13 -0
@@ 0,0 1,13 @@
[Unit]
Description=hg.sr.ht webhooks service
Requires=postgresql.service
After=postgresql.service network.target

[Service]
Type=simple
User=hgsrht
Restart=always
ExecStart=/usr/bin/celery -A hgsrht.webhooks worker --loglevel=info

[Install]
WantedBy=multi-user.target

M lists.sr.ht/PKGBUILD => lists.sr.ht/PKGBUILD +3 -0
@@ 17,10 17,12 @@ install=lists.sr.ht.install
source=(
	"$pkgname-$pkgver.tar.gz::http://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
	"lists.sr.ht.service"
	"lists.sr.ht-webhooks.service"
	"sysusers.conf"
)
sha256sums=('afa8a123eed3c26df77cb8fc7f90ec9f49237a3481259730915a279f73848a20'
            '3bfc68d7945fa1d996fdf2ca202ceebbe5511ca6618f9a123ea1ac61ac1df062'
            'e845fce17a361d19e447a9b253dd7b68fb51b729b51a6c4a6ed94845954e1279'
            '753453b055e613e7c0fb22991ca8d9f588fe1ba705e26f0e8c2504c464f4e5d0')
export PKGVER=$pkgver



@@ 32,6 34,7 @@ build() {
package() {
	cd $pkgbase-$pkgver
	install -Dm0644 ../lists.sr.ht.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../lists.sr.ht-webhooks.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../sysusers.conf "$pkgdir/usr/lib/sysusers.d/lists.sr.ht.conf"
	python3 setup.py install --root="${pkgdir}" --optimize=1
}

A lists.sr.ht/lists.sr.ht-webhooks.service => lists.sr.ht/lists.sr.ht-webhooks.service +13 -0
@@ 0,0 1,13 @@
[Unit]
Description=lists.sr.ht webhooks service
Requires=postgresql.service
After=postgresql.service network.target

[Service]
Type=simple
User=listssrht
Restart=always
ExecStart=/usr/bin/celery -A listssrht.webhooks worker --loglevel=info

[Install]
WantedBy=multi-user.target

M todo.sr.ht/PKGBUILD => todo.sr.ht/PKGBUILD +3 -0
@@ 14,10 14,12 @@ makedepends=("python-setuptools" "nodejs" "sassc")
source=(
	"$pkgname-$pkgver.tar.gz::http://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz"
	"todo.sr.ht.service"
	"todo.sr.ht-webhooks.service"
	"sysusers.conf"
)
sha256sums=('c0548717813947eb29b0645236735a869b8c8a2997ea87e7ac59fc4e0b5f210d'
            '6c373a2df95e6062efd167de75b1d58af980a509a50b71507d07120c6b9358b2'
            'd5253ecd8b74ba3a3d806ab84abd7c1c621fa562ac4aca52f71255854ef9e62a'
            'f9b1dbca0557b7b24654dcb0d7e7d990675ce251a3d2f380d87eb1d3aca93821')
export PKGVER=$pkgver



@@ 29,6 31,7 @@ build() {
package() {
	cd $pkgbase-$pkgver
	install -Dm0644 ../todo.sr.ht.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../todo.sr.ht-webhooks.service -t "$pkgdir"/usr/lib/systemd/system/
	install -Dm0644 ../sysusers.conf "$pkgdir/usr/lib/sysusers.d/todo.sr.ht.conf"
	python3 setup.py install --root="${pkgdir}" --optimize=1
}

A todo.sr.ht/todo.sr.ht-webhooks.service => todo.sr.ht/todo.sr.ht-webhooks.service +13 -0
@@ 0,0 1,13 @@
[Unit]
Description=todo.sr.ht webhooks service
Requires=postgresql.service
After=postgresql.service network.target

[Service]
Type=simple
User=todosrht
Restart=always
ExecStart=/usr/bin/celery -A todosrht.webhooks worker --loglevel=info

[Install]
WantedBy=multi-user.target