summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-12-24 22:08:16 +0100
committerManuel Rüger <mrueg@gentoo.org>2016-12-24 22:08:29 +0100
commit247dedad5366d05f1598ce56497294ad09a9c6c1 (patch)
tree64c1dc67cbe6a21fe33d8f6814c66ed70a6f2b94 /www-apps/gitea/files
parentnet-libs/gnutls: disable tools by default (diff)
downloadgentoo-247dedad5366d05f1598ce56497294ad09a9c6c1.tar.gz
gentoo-247dedad5366d05f1598ce56497294ad09a9c6c1.tar.bz2
gentoo-247dedad5366d05f1598ce56497294ad09a9c6c1.zip
www-apps/gitea: Version bump to 1.0.0
Add initscript Add logrotate file Package-Manager: portage-2.3.3
Diffstat (limited to 'www-apps/gitea/files')
-rw-r--r--www-apps/gitea/files/gitea.confd2
-rw-r--r--www-apps/gitea/files/gitea.initd25
-rw-r--r--www-apps/gitea/files/gitea.logrotated8
3 files changed, 35 insertions, 0 deletions
diff --git a/www-apps/gitea/files/gitea.confd b/www-apps/gitea/files/gitea.confd
new file mode 100644
index 000000000000..cb99b520c839
--- /dev/null
+++ b/www-apps/gitea/files/gitea.confd
@@ -0,0 +1,2 @@
+# arguments for gitea
+command_args="--config /etc/gitea/app.ini"
diff --git a/www-apps/gitea/files/gitea.initd b/www-apps/gitea/files/gitea.initd
new file mode 100644
index 000000000000..05565f6da278
--- /dev/null
+++ b/www-apps/gitea/files/gitea.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description="Gitea, a self-hosted Git service"
+pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
+user=${user:-${SVCNAME}}
+group=${group:-${SVCNAME}}
+
+command="/usr/bin/gitea web"
+command_args="${command_args:--config /etc/gitea/app.ini}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --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.logrotated b/www-apps/gitea/files/gitea.logrotated
new file mode 100644
index 000000000000..4ddfdf06bdaf
--- /dev/null
+++ b/www-apps/gitea/files/gitea.logrotated
@@ -0,0 +1,8 @@
+/var/log/gitea/* {
+ su gitea gitea
+ missingok
+ size 5M
+ rotate 3
+ compress
+ copytruncate
+}