From 1fc210e2a9094c3b3520b729252703baf67d6f89 Mon Sep 17 00:00:00 2001 From: Denis Reva Date: Fri, 11 Sep 2020 21:09:12 +0500 Subject: [PATCH] www-apps/gogs: systemd fix Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Denis Reva --- 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 c4648a2292..014c5c8ab7 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 702c8c5523..e1584b81ae 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"