aboutsummaryrefslogtreecommitdiff
path: root/dev-vcs/git-srht/files
diff options
context:
space:
mode:
authorJulien Roy <julien@jroy.ca>2023-01-05 20:03:45 -0500
committerJulien Roy <julien@jroy.ca>2023-01-05 20:03:45 -0500
commita32792ac685c17544d1507fdc3ce1b202cc28f8a (patch)
treedaba08d97f6bf67d35491c987a4e038614a61c95 /dev-vcs/git-srht/files
parentb4c9c49d3b615dd2a08c3fc81621e28ecc8214c3 (diff)
downloadMrRoy-Overlay-a32792ac685c17544d1507fdc3ce1b202cc28f8a.tar.gz
MrRoy-Overlay-a32792ac685c17544d1507fdc3ce1b202cc28f8a.tar.bz2
MrRoy-Overlay-a32792ac685c17544d1507fdc3ce1b202cc28f8a.zip
dev-vcs/git-srht: new package, add 0.81.3
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'dev-vcs/git-srht/files')
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht-api.confd2
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht-api.initd15
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht-api.service13
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht-periodic.service7
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht-periodic.timer9
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht-webhooks.initd15
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht-webhooks.service13
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht.confd2
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht.cron4
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht.initd15
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht.service13
11 files changed, 108 insertions, 0 deletions
diff --git a/dev-vcs/git-srht/files/git.sr.ht-api.confd b/dev-vcs/git-srht/files/git.sr.ht-api.confd
new file mode 100644
index 0000000..4160577
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.sr.ht-api.confd
@@ -0,0 +1,2 @@
+ADDRESS=0.0.0.0
+PORT=5101 \ No newline at end of file
diff --git a/dev-vcs/git-srht/files/git.sr.ht-api.initd b/dev-vcs/git-srht/files/git.sr.ht-api.initd
new file mode 100644
index 0000000..0effd1d
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.sr.ht-api.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name="git.sr.ht API daemon"
+description=""
+command="/usr/bin/gitsrht-api"
+command_args="-b ${ADDRESS}:${PORT}"
+command_user="srht:srht"
+command_background=true
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+ need net
+}
diff --git a/dev-vcs/git-srht/files/git.sr.ht-api.service b/dev-vcs/git-srht/files/git.sr.ht-api.service
new file mode 100644
index 0000000..c41c2fc
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.sr.ht-api.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=git.sr.ht API service
+Requires=redis.service postgresql.service
+After=redis.service postgresql.service network.target
+
+[Service]
+Type=simple
+User=gitsrht
+Restart=always
+ExecStart=/usr/bin/gitsrht-api -b :5101
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dev-vcs/git-srht/files/git.sr.ht-periodic.service b/dev-vcs/git-srht/files/git.sr.ht-periodic.service
new file mode 100644
index 0000000..ce4c4b7
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.sr.ht-periodic.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=git.sr.ht maintenance tasks
+
+[Service]
+Type=oneshot
+User=gitsrht
+ExecStart=/usr/bin/gitsrht-periodic
diff --git a/dev-vcs/git-srht/files/git.sr.ht-periodic.timer b/dev-vcs/git-srht/files/git.sr.ht-periodic.timer
new file mode 100644
index 0000000..09f86f7
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.sr.ht-periodic.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Periodic git.sr.ht maintenance tasks
+
+[Timer]
+OnBootSec=20m
+OnUnitActiveSec=20m
+
+[Install]
+WantedBy=timers.target
diff --git a/dev-vcs/git-srht/files/git.sr.ht-webhooks.initd b/dev-vcs/git-srht/files/git.sr.ht-webhooks.initd
new file mode 100644
index 0000000..717f888
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.sr.ht-webhooks.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name="git.sr.ht webhooks daemon"
+description=""
+command="/usr/bin/celery"
+command_args="-A gitsrht.webhooks worker --loglevel=INFO"
+command_user="srht:srht"
+command_background=true
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+ need net
+}
diff --git a/dev-vcs/git-srht/files/git.sr.ht-webhooks.service b/dev-vcs/git-srht/files/git.sr.ht-webhooks.service
new file mode 100644
index 0000000..0a4b4d1
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.sr.ht-webhooks.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=git.sr.ht webhooks service
+Requires=postgresql.service
+After=postgresql.service network.target
+
+[Service]
+Type=simple
+User=gitsrht
+Restart=always
+ExecStart=/usr/bin/celery -A gitsrht.webhooks worker --loglevel=INFO
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dev-vcs/git-srht/files/git.sr.ht.confd b/dev-vcs/git-srht/files/git.sr.ht.confd
new file mode 100644
index 0000000..4864f19
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.sr.ht.confd
@@ -0,0 +1,2 @@
+BINDADDRESS=0.0.0.0
+PORT=5001 \ No newline at end of file
diff --git a/dev-vcs/git-srht/files/git.sr.ht.cron b/dev-vcs/git-srht/files/git.sr.ht.cron
new file mode 100644
index 0000000..06c8477
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.sr.ht.cron
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+su - srht -s /bin/sh -c /usr/bin/gitsrht-periodic
+exit $?
diff --git a/dev-vcs/git-srht/files/git.sr.ht.initd b/dev-vcs/git-srht/files/git.sr.ht.initd
new file mode 100644
index 0000000..9d5aac0
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.sr.ht.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name="git.sr.ht daemon"
+description=""
+command="/usr/bin/gunicorn"
+command_args="gitsrht.app:app -b ${ADDRESS}:${PORT}"
+command_user="srht:srht"
+command_background=true
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+ need net
+}
diff --git a/dev-vcs/git-srht/files/git.sr.ht.service b/dev-vcs/git-srht/files/git.sr.ht.service
new file mode 100644
index 0000000..a3f0082
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.sr.ht.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=git.sr.ht website service
+Requires=redis.service postgresql.service
+After=redis.service postgresql.service network.target
+
+[Service]
+Type=simple
+User=gitsrht
+Restart=always
+ExecStart=/usr/bin/gunicorn gitsrht.app:app -b 127.0.0.1:5001
+
+[Install]
+WantedBy=multi-user.target