summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan G. Weichinger <office@oops.co.at>2018-06-02 14:05:50 +0200
committerManuel RĂ¼ger <mrueg@gentoo.org>2018-06-02 14:06:20 +0200
commit7062b1979c463885eb37690519eccd51825e3a6b (patch)
tree3d8225942780eb2e8ba0df0e228187a501f5b879 /www-apps/gitea/files
parentdev-util/vulkan-tools: Drop old (diff)
downloadgentoo-7062b1979c463885eb37690519eccd51825e3a6b.tar.gz
gentoo-7062b1979c463885eb37690519eccd51825e3a6b.tar.bz2
gentoo-7062b1979c463885eb37690519eccd51825e3a6b.zip
www-apps/gitea: Version bump to 1.4.1
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'www-apps/gitea/files')
-rw-r--r--www-apps/gitea/files/app.ini4
-rw-r--r--www-apps/gitea/files/gitea.initd4
-rw-r--r--www-apps/gitea/files/gitea.initd-r125
-rw-r--r--www-apps/gitea/files/gitea.service26
4 files changed, 57 insertions, 2 deletions
diff --git a/www-apps/gitea/files/app.ini b/www-apps/gitea/files/app.ini
new file mode 100644
index 000000000000..5dd998f60ee2
--- /dev/null
+++ b/www-apps/gitea/files/app.ini
@@ -0,0 +1,4 @@
+[log]
+MODE = file
+LEVEL = Info
+ROOT_PATH = /var/log/gitea
diff --git a/www-apps/gitea/files/gitea.initd b/www-apps/gitea/files/gitea.initd
index ea618140c580..837164aa0140 100644
--- a/www-apps/gitea/files/gitea.initd
+++ b/www-apps/gitea/files/gitea.initd
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 2016 Gentoo Foundation
+# Copyright 2016-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description="Gitea, a self-hosted Git service"
@@ -11,7 +11,7 @@ command="/usr/bin/gitea web"
command_args="${command_args:--config /var/lib/gitea/conf/app.ini}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
- -e GITEA_CUSTOM=/var/lib/gitea
+ -e GITEA_WORK_DIR=/var/lib/gitea
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"
diff --git a/www-apps/gitea/files/gitea.initd-r1 b/www-apps/gitea/files/gitea.initd-r1
new file mode 100644
index 000000000000..837164aa0140
--- /dev/null
+++ b/www-apps/gitea/files/gitea.initd-r1
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 2016-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Gitea, a self-hosted Git service"
+pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
+user=${user:-git}
+group=${group:-git}
+
+command="/usr/bin/gitea web"
+command_args="${command_args:--config /var/lib/gitea/conf/app.ini}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ -e GITEA_WORK_DIR=/var/lib/gitea
+ --stdout /var/log/${SVCNAME}/${SVCNAME}.log \
+ --stderr /var/log/${SVCNAME}/${SVCNAME}.log"
+
+depend() {
+ need net
+ after net
+}
+
+start_pre() {
+ checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
+}
diff --git a/www-apps/gitea/files/gitea.service b/www-apps/gitea/files/gitea.service
new file mode 100644
index 000000000000..3fdbc1fd0c3d
--- /dev/null
+++ b/www-apps/gitea/files/gitea.service
@@ -0,0 +1,26 @@
+[Unit]
+Description=Gitea service
+Documentation=https://gitea.io
+
+AssertPathIsDirectory=/var/lib/gitea
+AssertPathIsReadWrite=/var/lib/gitea
+
+After=network.target
+Requires=network.target
+After=mysqld.service
+Requires=mysqld.service
+
+[Service]
+User=git
+Group=git
+
+Environment="GITEA_CUSTOM=/var/lib/gitea"
+WorkingDirectory=/var/lib/gitea
+ExecStart=/usr/bin/gitea web -c /var/lib/gitea/conf/app.ini
+
+Restart=always
+PrivateTmp=true
+Nice=5
+
+[Install]
+WantedBy=multi-user.target