Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: www-apps/gogs/files/systemd/, www-apps/gogs/
Date: Fri, 11 Sep 2020 16:51:28
Message-Id: 1599840552.1fc210e2a9094c3b3520b729252703baf67d6f89.andrewammerlaan@gentoo
1 commit: 1fc210e2a9094c3b3520b729252703baf67d6f89
2 Author: Denis Reva <denis7774 <AT> gmail <DOT> com>
3 AuthorDate: Fri Sep 11 16:09:12 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Fri Sep 11 16:09:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1fc210e2
7
8 www-apps/gogs: systemd fix
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Denis Reva <denis7774 <AT> gmail.com>
12
13 www-apps/gogs/files/systemd/gogs.service | 4 ++--
14 www-apps/gogs/gogs-0.12.1.ebuild | 5 +----
15 2 files changed, 3 insertions(+), 6 deletions(-)
16
17 diff --git a/www-apps/gogs/files/systemd/gogs.service b/www-apps/gogs/files/systemd/gogs.service
18 index c4648a22..014c5c8a 100644
19 --- a/www-apps/gogs/files/systemd/gogs.service
20 +++ b/www-apps/gogs/files/systemd/gogs.service
21 @@ -12,7 +12,7 @@ Requires=network.target
22
23 [Service]
24 User=gogs
25 -Group=gogs
26 +Group=git
27
28 Environment="GOGS_WORK_DIR=/var/lib/gogs"
29 Environment="GOGS_CUSTOM=/etc/gogs"
30 @@ -21,4 +21,4 @@ ExecStart=/usr/bin/gogs web -c /etc/gogs/conf/app.ini
31
32 Restart=always
33 PrivateTmp=true
34 -Nice=5
35 \ No newline at end of file
36 +Nice=5
37
38 diff --git a/www-apps/gogs/gogs-0.12.1.ebuild b/www-apps/gogs/gogs-0.12.1.ebuild
39 index 702c8c55..e1584b81 100644
40 --- a/www-apps/gogs/gogs-0.12.1.ebuild
41 +++ b/www-apps/gogs/gogs-0.12.1.ebuild
42 @@ -487,10 +487,7 @@ src_install() {
43 # Install binary
44 dobin gogs
45 # Prepare systemd init scripts and install it
46 - cp "${FILESDIR}/systemd/${PN}.service" "${T}/${PN}.service" || die
47 - use mysql && enable_systemd_dep mysqld
48 - use postgres && enable_systemd_dep postgresql
49 - systemd_dounit "${T}/${PN}.service"
50 + systemd_dounit "${FILESDIR}/systemd/${PN}.service"
51 # Install OpenRC init files
52 doconfd "${FILESDIR}/gogs-confd"
53 doinitd "${FILESDIR}/gogs-initd"