www-servers/gitlab-gitaly:
Add ebuild for version 0.66.0 Package-Manager: Portage-2.3.19, Repoman-2.3.6
This commit is contained in:
parent
355550f6b8
commit
e233c14c0f
6 changed files with 125 additions and 1 deletions
|
@ -0,0 +1,43 @@
|
|||
diff --git a/config.toml.example b/config.toml.example
|
||||
index 10f8cce..f65b5b9 100644
|
||||
--- a/config.toml.example
|
||||
+++ b/config.toml.example
|
||||
@@ -1,9 +1,9 @@
|
||||
# Example Gitaly configuration file
|
||||
|
||||
-socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
|
||||
+socket_path = "/run/gitlab/gitaly.socket"
|
||||
|
||||
# The directory where Gitaly's executables are stored
|
||||
-bin_dir = "/home/git/gitaly"
|
||||
+bin_dir = "/usr/bin"
|
||||
|
||||
# # Optional: listen on a TCP socket. This is insecure (no authentication)
|
||||
# listen_addr = "localhost:9999"
|
||||
@@ -19,7 +19,7 @@ bin_dir = "/home/git/gitaly"
|
||||
|
||||
[[storage]]
|
||||
name = "default"
|
||||
-path = "/home/git/repositories"
|
||||
+path = "/var/lib/git/repositories"
|
||||
|
||||
# # You can optionally configure more storages for this Gitaly instance to serve up
|
||||
#
|
||||
@@ -40,7 +40,7 @@ path = "/home/git/repositories"
|
||||
|
||||
[gitaly-ruby]
|
||||
# The directory where gitaly-ruby is installed
|
||||
-dir = "/home/git/gitaly/ruby"
|
||||
+dir = "/var/lib/gitlab-gitaly/ruby"
|
||||
|
||||
# # Gitaly-ruby resident set size (RSS) that triggers a memory restart (bytes)
|
||||
# max_rss = 300000000
|
||||
@@ -53,7 +53,7 @@ dir = "/home/git/gitaly/ruby"
|
||||
|
||||
[gitlab-shell]
|
||||
# The directory where gitlab-shell is installed
|
||||
-dir = "/home/git/gitlab-shell"
|
||||
+dir = "/usr/share/gitlab-shell"
|
||||
|
||||
# # You can adjust the concurrency of each RPC endpoint
|
||||
# [[concurrency]]
|
|
@ -0,0 +1,9 @@
|
|||
CONFIGFILE=/etc/gitlab/gitaly-config.toml
|
||||
RUNAS_USER=git
|
||||
RUNAS_GROUP=${RUNAS_USER}
|
||||
LOGFILE=/var/log/gitlab/gitlab-gitaly.log
|
||||
PIDFILE=/run/gitlab/gitlab-gitaly.pid
|
||||
|
||||
# This must match the setting in /etc/gitlab/gitaly-config.toml
|
||||
# If not using a socket, simply comment out or delete the next line.
|
||||
SOCKETDIR=/run/gitlab
|
20
www-servers/gitlab-gitaly/files/gitlab-gitaly-0.66.0.init
Normal file
20
www-servers/gitlab-gitaly/files/gitlab-gitaly-0.66.0.init
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
start() {
|
||||
ebegin "Starting gitlab-gitaly"
|
||||
|
||||
checkpath -f -m 640 -o ${RUNAS_USER}:${RUNAS_GROUP} "${LOGFILE}"
|
||||
checkpath -d -m 700 -o ${RUNAS_USER}:${RUNAS_GROUP} "$(dirname ${PIDFILE})"
|
||||
[ -z "${SOCKETDIR}" ] || checkpath -d -m 700 -o ${RUNAS_USER}:${RUNAS_GROUP} "${SOCKETDIR}"
|
||||
|
||||
start-stop-daemon --start --exec /usr/bin/gitlab-gitaly --pidfile "${PIDFILE}" \
|
||||
--make-pidfile --background --user ${RUNAS_USER}:${RUNAS_GROUP} --stdout "${LOGFILE}" --stderr "${LOGFILE}" \
|
||||
-- ${CONFIGFILE}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping gitlab-gitaly"
|
||||
start-stop-daemon --stop --exec /usr/bin/gitlab-gitaly --pidfile "${PIDFILE}" --user ${RUNAS_USER}:${RUNAS_GROUP}
|
||||
eend $?
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue