From ba8fab5645ea781e5f77abd6cbfe68e045692dc1 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Mon, 2 Jan 2023 15:56:55 -0500 Subject: */*: Remove packages now in guru Signed off by: Julien Roy --- www-apps/meta-srht/files/meta.sr.ht-api.service | 12 ++ www-apps/meta-srht/files/meta.sr.ht-daily.service | 8 + www-apps/meta-srht/files/meta.sr.ht-daily.timer | 9 ++ .../meta-srht/files/meta.sr.ht-webhooks.service | 12 ++ www-apps/meta-srht/files/meta.sr.ht.service | 162 ++------------------- www-apps/meta-srht/files/sysusers.conf | 1 + www-apps/meta-srht/meta-srht-0.54.4.ebuild | 9 +- 7 files changed, 62 insertions(+), 151 deletions(-) create mode 100644 www-apps/meta-srht/files/meta.sr.ht-api.service create mode 100644 www-apps/meta-srht/files/meta.sr.ht-daily.service create mode 100644 www-apps/meta-srht/files/meta.sr.ht-daily.timer create mode 100644 www-apps/meta-srht/files/meta.sr.ht-webhooks.service create mode 100644 www-apps/meta-srht/files/sysusers.conf (limited to 'www-apps') diff --git a/www-apps/meta-srht/files/meta.sr.ht-api.service b/www-apps/meta-srht/files/meta.sr.ht-api.service new file mode 100644 index 0000000..ee94056 --- /dev/null +++ b/www-apps/meta-srht/files/meta.sr.ht-api.service @@ -0,0 +1,12 @@ +[Unit] +Description=meta.sr.ht API service +After= network.target + +[Service] +Type=simple +User=metasrht +Restart=always +ExecStart=/usr/bin/metasrht-api -b :5100 + +[Install] +WantedBy=multi-user.target diff --git a/www-apps/meta-srht/files/meta.sr.ht-daily.service b/www-apps/meta-srht/files/meta.sr.ht-daily.service new file mode 100644 index 0000000..2642ec9 --- /dev/null +++ b/www-apps/meta-srht/files/meta.sr.ht-daily.service @@ -0,0 +1,8 @@ +[Unit] +Description=meta.sr.ht job +After=network.target + +[Service] +Type=oneshot +User=metasrht +ExecStart=/usr/bin/metasrht-daily diff --git a/www-apps/meta-srht/files/meta.sr.ht-daily.timer b/www-apps/meta-srht/files/meta.sr.ht-daily.timer new file mode 100644 index 0000000..2462204 --- /dev/null +++ b/www-apps/meta-srht/files/meta.sr.ht-daily.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Daily meta.sr.ht job + +[Timer] +OnCalendar=daily +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/www-apps/meta-srht/files/meta.sr.ht-webhooks.service b/www-apps/meta-srht/files/meta.sr.ht-webhooks.service new file mode 100644 index 0000000..e0baf48 --- /dev/null +++ b/www-apps/meta-srht/files/meta.sr.ht-webhooks.service @@ -0,0 +1,12 @@ +[Unit] +Description=meta.sr.ht webhooks service +After= network.target + +[Service] +Type=simple +User=metasrht +Restart=always +ExecStart=/usr/bin/celery -A metasrht.webhooks worker --loglevel=INFO + +[Install] +WantedBy=multi-user.target diff --git a/www-apps/meta-srht/files/meta.sr.ht.service b/www-apps/meta-srht/files/meta.sr.ht.service index ab22f07..4944a2f 100644 --- a/www-apps/meta-srht/files/meta.sr.ht.service +++ b/www-apps/meta-srht/files/meta.sr.ht.service @@ -1,150 +1,12 @@ - - - - - - -~sircmpwn/sr.ht-pkgbuilds: meta.sr.ht/meta.sr.ht.service - sourcehut git - - - - - - - - - - - - - - - -
-
-

-~sircmpwn/sr.ht-pkgbuilds -

- -
-
-
-
- -sr.ht-pkgbuilds/meta.sr.ht/meta.sr.ht.service - - - - - - - - -rw-r--r-- - - - - - 267 bytes - - -
- -
-
-
-94c3fbc7 — - - - Eli Schwartz - - python-pgpy: also run the testsuite - -a month ago - -
-
-
-
-
-
-
-
                                                                                
-
1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-
[Unit]
-Description=meta.sr.ht website service
-Requires=postgresql.service
-After=postgresql.service network.target
-
-[Service]
-Type=simple
-User=metasrht
-Restart=always
-ExecStart=/usr/bin/gunicorn metasrht.app:app -b 127.0.0.1:5000
-
-[Install]
-WantedBy=multi-user.target
-
-
-
- -
- \ No newline at end of file +[Unit] +Description=meta.sr.ht website service +After= network.target + +[Service] +Type=simple +User=metasrht +Restart=always +ExecStart=/usr/bin/gunicorn metasrht.app:app -b 127.0.0.1:5000 + +[Install] +WantedBy=multi-user.target diff --git a/www-apps/meta-srht/files/sysusers.conf b/www-apps/meta-srht/files/sysusers.conf new file mode 100644 index 0000000..3114aec --- /dev/null +++ b/www-apps/meta-srht/files/sysusers.conf @@ -0,0 +1 @@ +u metasrht - "meta.sr.ht user" diff --git a/www-apps/meta-srht/meta-srht-0.54.4.ebuild b/www-apps/meta-srht/meta-srht-0.54.4.ebuild index 48a2220..ae168a6 100644 --- a/www-apps/meta-srht/meta-srht-0.54.4.ebuild +++ b/www-apps/meta-srht/meta-srht-0.54.4.ebuild @@ -1,7 +1,7 @@ # Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 PYTHON_COMPAT=( python3_{8..11} ) DISTUTILS_USE_PEP517=setuptools @@ -46,6 +46,13 @@ src_compile() { ego build -o metasrht-api } +src_install() { + distutils-r1_src_install + dobin "${S}/api/metasrht-api" + insinto "/etc/" + newins "${S}/config.example.ini" +} + plg_postinst() { optfeature "billing support" "dev-python/stripe dev-python/weasyprint" } -- cgit v1.2.3