1 |
commit: 414ae1cb1a4f9159bc0af30d9e106655f900c8ae |
2 |
Author: Pierre-Olivier Mercier <nemunaire <AT> nemunai <DOT> re> |
3 |
AuthorDate: Thu Jun 3 06:55:35 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 21 22:30:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414ae1cb |
7 |
|
8 |
www-apps/gitea: update service file for newer postgresql |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Pierre-Olivier Mercier <nemunaire <AT> nemunai.re> |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
www-apps/gitea/files/gitea.service-r3 | 34 ++++++++++++++++++++++++++++++++++ |
15 |
www-apps/gitea/gitea-9999.ebuild | 4 ++-- |
16 |
2 files changed, 36 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/www-apps/gitea/files/gitea.service-r3 b/www-apps/gitea/files/gitea.service-r3 |
19 |
new file mode 100644 |
20 |
index 00000000000..0867ba63782 |
21 |
--- /dev/null |
22 |
+++ b/www-apps/gitea/files/gitea.service-r3 |
23 |
@@ -0,0 +1,34 @@ |
24 |
+[Unit] |
25 |
+Description=Gitea service |
26 |
+Documentation=https://docs.gitea.io/ |
27 |
+ |
28 |
+AssertPathIsDirectory=/var/lib/gitea |
29 |
+AssertPathIsReadWrite=/var/lib/gitea |
30 |
+ |
31 |
+After=network.target |
32 |
+Requires=network.target |
33 |
+After=mysqld.service |
34 |
+After=postgresql-9.5.service |
35 |
+After=postgresql-9.6.service |
36 |
+After=postgresql-10.service |
37 |
+After=postgresql-11.service |
38 |
+After=postgresql-12.service |
39 |
+After=postgresql-13.service |
40 |
+After=postgresql-14.service |
41 |
+After=memcached.service |
42 |
+After=redis.service |
43 |
+ |
44 |
+[Service] |
45 |
+User=git |
46 |
+Group=git |
47 |
+ |
48 |
+Environment="GITEA_WORK_DIR=/var/lib/gitea" "GITEA_CUSTOM=/var/lib/gitea/custom" |
49 |
+WorkingDirectory=/var/lib/gitea |
50 |
+ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini |
51 |
+ |
52 |
+Restart=always |
53 |
+PrivateTmp=true |
54 |
+Nice=5 |
55 |
+ |
56 |
+[Install] |
57 |
+WantedBy=multi-user.target |
58 |
|
59 |
diff --git a/www-apps/gitea/gitea-9999.ebuild b/www-apps/gitea/gitea-9999.ebuild |
60 |
index b975338d0ff..6a4eaea9959 100644 |
61 |
--- a/www-apps/gitea/gitea-9999.ebuild |
62 |
+++ b/www-apps/gitea/gitea-9999.ebuild |
63 |
@@ -1,4 +1,4 @@ |
64 |
-# Copyright 1999-2020 Gentoo Authors |
65 |
+# Copyright 1999-2021 Gentoo Authors |
66 |
# Distributed under the terms of the GNU General Public License v2 |
67 |
|
68 |
EAPI=7 |
69 |
@@ -101,7 +101,7 @@ src_install() { |
70 |
newtmpfiles - gitea.conf <<-EOF |
71 |
d /run/gitea 0755 git git |
72 |
EOF |
73 |
- systemd_newunit "${FILESDIR}"/gitea.service-r2 gitea.service |
74 |
+ systemd_newunit "${FILESDIR}"/gitea.service-r3 gitea.service |
75 |
|
76 |
insinto /etc/gitea |
77 |
newins custom/conf/app.example.ini app.ini |