public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Yixun Lan" <dlan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/, www-apps/gitea/files/
Date: Fri, 17 Nov 2023 01:51:07 +0000 (UTC)	[thread overview]
Message-ID: <1700185746.7bf41879db42ed6108bdcd9b08b4c5a10b90d22a.dlan@gentoo> (raw)

commit:     7bf41879db42ed6108bdcd9b08b4c5a10b90d22a
Author:     Ryan Qian <i <AT> bitbili <DOT> net>
AuthorDate: Tue Nov 14 21:14:05 2023 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Fri Nov 17 01:49:06 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bf41879

www-apps/gitea: update the systemd service file for new postgresql versions

Closes: https://github.com/gentoo/gentoo/pull/33825
Signed-off-by: Ryan Qian <i <AT> bitbili.net>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 www-apps/gitea/files/gitea.service-r4 | 34 ++++++++++++++++++++++++++++++++++
 www-apps/gitea/gitea-1.21.0.ebuild    |  2 +-
 2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/www-apps/gitea/files/gitea.service-r4 b/www-apps/gitea/files/gitea.service-r4
new file mode 100644
index 000000000000..3fa73aaf1db8
--- /dev/null
+++ b/www-apps/gitea/files/gitea.service-r4
@@ -0,0 +1,34 @@
+[Unit]
+Description=Gitea service
+Documentation=https://docs.gitea.io/
+
+AssertPathIsDirectory=/var/lib/gitea
+AssertPathIsReadWrite=/var/lib/gitea
+
+After=network.target
+Requires=network.target
+After=mysqld.service
+After=postgresql-10.service
+After=postgresql-11.service
+After=postgresql-12.service
+After=postgresql-13.service
+After=postgresql-14.service
+After=postgresql-15.service
+After=postgresql-16.service
+After=memcached.service
+After=redis.service
+
+[Service]
+User=git
+Group=git
+
+Environment="GITEA_WORK_DIR=/var/lib/gitea" "GITEA_CUSTOM=/var/lib/gitea/custom"
+WorkingDirectory=/var/lib/gitea
+ExecStart=/usr/bin/gitea --config /etc/gitea/app.ini web
+
+Restart=always
+PrivateTmp=true
+Nice=5
+
+[Install]
+WantedBy=multi-user.target

diff --git a/www-apps/gitea/gitea-1.21.0.ebuild b/www-apps/gitea/gitea-1.21.0.ebuild
index c3878c4ba16b..fce72a8ba35f 100644
--- a/www-apps/gitea/gitea-1.21.0.ebuild
+++ b/www-apps/gitea/gitea-1.21.0.ebuild
@@ -101,7 +101,7 @@ src_install() {
 	newtmpfiles - gitea.conf <<-EOF
 		d /run/gitea 0755 git git
 	EOF
-	systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service
+	systemd_newunit "${FILESDIR}"/gitea.service-r4 gitea.service
 
 	insinto /etc/gitea
 	newins custom/conf/app.example.ini app.ini


             reply	other threads:[~2023-11-17  1:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-17  1:51 Yixun Lan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-16  0:29 [gentoo-commits] repo/gentoo:master commit in: www-apps/gitea/, www-apps/gitea/files/ Yixun Lan
2024-06-06 22:08 Yixun Lan
2024-01-13 11:10 Yixun Lan
2021-06-21 22:36 Sam James
2021-06-21 22:36 Sam James
2020-01-06 10:39 Joonas Niilola
2019-11-07  5:42 Joonas Niilola
2019-06-07 13:26 Michał Górny
2019-04-21 21:45 Michał Górny
2019-03-15 22:42 Patrice Clement
2016-12-25 21:06 Manuel Rüger
2016-12-25 20:53 Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1700185746.7bf41879db42ed6108bdcd9b08b4c5a10b90d22a.dlan@gentoo \
    --to=dlan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox