commit:     1fc210e2a9094c3b3520b729252703baf67d6f89
Author:     Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Fri Sep 11 16:09:12 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Fri Sep 11 16:09:12 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1fc210e2

www-apps/gogs: systemd fix

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Denis Reva <denis7774 <AT> gmail.com>

 www-apps/gogs/files/systemd/gogs.service | 4 ++--
 www-apps/gogs/gogs-0.12.1.ebuild         | 5 +----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/www-apps/gogs/files/systemd/gogs.service 
b/www-apps/gogs/files/systemd/gogs.service
index c4648a22..014c5c8a 100644
--- a/www-apps/gogs/files/systemd/gogs.service
+++ b/www-apps/gogs/files/systemd/gogs.service
@@ -12,7 +12,7 @@ Requires=network.target
 
 [Service]
 User=gogs
-Group=gogs
+Group=git
 
 Environment="GOGS_WORK_DIR=/var/lib/gogs"
 Environment="GOGS_CUSTOM=/etc/gogs"
@@ -21,4 +21,4 @@ ExecStart=/usr/bin/gogs web -c /etc/gogs/conf/app.ini
 
 Restart=always
 PrivateTmp=true
-Nice=5
\ No newline at end of file
+Nice=5

diff --git a/www-apps/gogs/gogs-0.12.1.ebuild b/www-apps/gogs/gogs-0.12.1.ebuild
index 702c8c55..e1584b81 100644
--- a/www-apps/gogs/gogs-0.12.1.ebuild
+++ b/www-apps/gogs/gogs-0.12.1.ebuild
@@ -487,10 +487,7 @@ src_install() {
        # Install binary
        dobin gogs
        # Prepare systemd init scripts and install it
-       cp "${FILESDIR}/systemd/${PN}.service" "${T}/${PN}.service" || die
-       use mysql && enable_systemd_dep mysqld
-       use postgres && enable_systemd_dep postgresql
-       systemd_dounit "${T}/${PN}.service"
+       systemd_dounit "${FILESDIR}/systemd/${PN}.service"
        # Install OpenRC init files
        doconfd "${FILESDIR}/gogs-confd"
        doinitd "${FILESDIR}/gogs-initd"

Reply via email to