From e3c97b90d9ea51f69ee39e18f7a9e63e7d8688cc Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Thu, 29 Jan 2015 20:25:11 +0200 Subject: Added git ebuilds --- dev-vcs/git/files/git-daemon-r1.initd | 13 +++++++++++++ dev-vcs/git/files/git-daemon.confd | 19 +++++++++++++++++++ dev-vcs/git/files/git-daemon.socket | 9 +++++++++ dev-vcs/git/files/git-daemon.xinetd | 13 +++++++++++++ dev-vcs/git/files/git-daemon_at.service | 13 +++++++++++++ 5 files changed, 67 insertions(+) create mode 100644 dev-vcs/git/files/git-daemon-r1.initd create mode 100644 dev-vcs/git/files/git-daemon.confd create mode 100644 dev-vcs/git/files/git-daemon.socket create mode 100644 dev-vcs/git/files/git-daemon.xinetd create mode 100644 dev-vcs/git/files/git-daemon_at.service (limited to 'dev-vcs/git/files') diff --git a/dev-vcs/git/files/git-daemon-r1.initd b/dev-vcs/git/files/git-daemon-r1.initd new file mode 100644 index 00000000..339b6238 --- /dev/null +++ b/dev-vcs/git/files/git-daemon-r1.initd @@ -0,0 +1,13 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/files/git-daemon-r1.initd,v 1.2 2014/02/07 07:59:03 polynomial-c Exp $ + +pidfile="/run/git-daemon.pid" +command="/usr/bin/git" +command_args="daemon ${GITDAEMON_OPTS}" +start_stop_daemon_args="-b -m -p ${pidfile} -u ${GIT_USER:-nobody}:${GIT_GROUP:-nobody}" + +depend() { + use logger +} diff --git a/dev-vcs/git/files/git-daemon.confd b/dev-vcs/git/files/git-daemon.confd new file mode 100644 index 00000000..db77de5d --- /dev/null +++ b/dev-vcs/git/files/git-daemon.confd @@ -0,0 +1,19 @@ +# conf.d file for git-daemon +# +# Please check man 1 git-daemon for more information about the options +# git-daemon accepts. You MUST edit this to include your repositories you wish +# to serve. +# +# Some of the meaningful options are: +# --syslog --- Enables syslog logging +# --verbose --- Enables verbose logging +# --export-all --- Exports all repositories +# --port=XXXX --- Starts in port XXXX instead of 9418 +# +GITDAEMON_OPTS="--syslog --base-path=/var/git" + +# To run an anonymous git safely, the following user should be able to only +# read your Git repositories. It should not able able to write to anywhere on +# your system, esp. not the repositories. +GIT_USER="nobody" +GIT_GROUP="nobody" diff --git a/dev-vcs/git/files/git-daemon.socket b/dev-vcs/git/files/git-daemon.socket new file mode 100644 index 00000000..3dec01d2 --- /dev/null +++ b/dev-vcs/git/files/git-daemon.socket @@ -0,0 +1,9 @@ +[Unit] +Description=Git Activation Socket + +[Socket] +ListenStream=9418 +Accept=true + +[Install] +WantedBy=sockets.target diff --git a/dev-vcs/git/files/git-daemon.xinetd b/dev-vcs/git/files/git-daemon.xinetd new file mode 100644 index 00000000..02c938d4 --- /dev/null +++ b/dev-vcs/git/files/git-daemon.xinetd @@ -0,0 +1,13 @@ +service git-daemon +{ + disable = yes + socket_type = stream + wait = no + user = nobody + type = UNLISTED + protocol = tcp + log_on_failure += USERID + port = 9418 + server = /usr/bin/git + server_args = daemon --inetd --syslog --export-all --base-path=/var/git +} diff --git a/dev-vcs/git/files/git-daemon_at.service b/dev-vcs/git/files/git-daemon_at.service new file mode 100644 index 00000000..2a080d4e --- /dev/null +++ b/dev-vcs/git/files/git-daemon_at.service @@ -0,0 +1,13 @@ +[Unit] +Description=Git Repositories Server Daemon +Documentation=man:git-daemon(1) + +[Service] +User=nobody +Group=nobody +EnvironmentFile=/etc/conf.d/git-daemon +# Ignore non-zero exit status, access error makes git-daemon return them +ExecStart=-/usr/libexec/git-core/git-daemon --inetd --base-path=/var/git --verbose $GITDAEMON_OPTS +StandardInput=socket +StandardOutput=inherit +StandardError=journal -- cgit v1.2.3