www-apps/gitea: bump to 1.7.4

Closes: #1

Package-Manager: Portage-2.3.62, Repoman-2.3.11
Manifest-Sign-Key: 0DEDF1A904568BAD1FC45C283DCC44782ED07E1C
This commit is contained in:
Felix Neumärker 2019-03-15 21:54:05 +01:00 committed by Pierre-Olivier Mercier
commit 30bbd9a7f7
5 changed files with 160 additions and 5 deletions

View file

@ -1,4 +0,0 @@
[log]
MODE = file
LEVEL = Info
ROOT_PATH = /var/log/gitea

View file

@ -0,0 +1,9 @@
# config file path
GITEA_CONFIG="/etc/gitea/app.ini"
# git paths
GITEA_WORK_DIR="/var/lib/gitea"
GITEA_CUSTOM="${GITEA_WORK_DIR}/custom"
#GITEA_OPTS = "--port 3000"

View file

@ -0,0 +1,24 @@
#!/sbin/openrc-run
# Copyright 2016-2019 Gentoo Authors
# 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="--config ${GITEA_CONFIG:-/etc/gitea/app.ini} ${GITEA_OPTS}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
-e GITEA_WORK_DIR=${GITEA_WORK_DIR:-/var/lib/gitea} \
-e GITEA_CUSTOM=${GITEA_CUSTOM:-/var/lib/gitea/custom}"
depend() {
need net
after net
}
start_pre() {
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
}