From: Frank Brehm Date: Tue, 20 Dec 2016 13:15:53 +0000 (+0100) Subject: committing changes in /etc after emerge run X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=a0d775a325a0a73d4287c9ebc92166bff840cca7;p=config%2Fberta%2Fetc.git committing changes in /etc after emerge run Package changes: +dev-vcs/subversion-1.9.4 --- diff --git a/.etckeeper b/.etckeeper index 3f3a39e..46dbead 100755 --- a/.etckeeper +++ b/.etckeeper @@ -70,6 +70,7 @@ maybe chmod 0644 'conf.d/rsyslog' maybe chmod 0644 'conf.d/snmpd' maybe chmod 0644 'conf.d/snmptrapd' maybe chmod 0644 'conf.d/sshd' +maybe chmod 0644 'conf.d/svnserve' maybe chmod 0644 'conf.d/swap' maybe chmod 0644 'conf.d/tmpfiles' maybe chmod 0644 'conf.d/udev' @@ -270,6 +271,7 @@ maybe chmod 0755 'init.d/savecache' maybe chmod 0755 'init.d/snmpd' maybe chmod 0755 'init.d/snmptrapd' maybe chmod 0755 'init.d/sshd' +maybe chmod 0755 'init.d/svnserve' maybe chmod 0755 'init.d/swap' maybe chmod 0755 'init.d/swclock' maybe chmod 0755 'init.d/sysctl' @@ -556,6 +558,7 @@ maybe chmod 0755 'xdg' maybe chmod 0755 'xdg/systemd' maybe chmod 0755 'xinetd.d' maybe chmod 0644 'xinetd.d/rsyncd' +maybe chmod 0644 'xinetd.d/svnserve' maybe chmod 0755 'xml' maybe chmod 0644 'xml/.keep' maybe chmod 0644 'xml/.keep_app-text_docbook-xml-dtd-4.1.2' diff --git a/conf.d/svnserve b/conf.d/svnserve new file mode 100644 index 0000000..83997ce --- /dev/null +++ b/conf.d/svnserve @@ -0,0 +1,10 @@ +# The commented variables in this file are the defaults that are used +# in the init-script. You don't need to uncomment them except to +# customize them to different values. + +# Options for svnserve +#SVNSERVE_OPTS="--root=/var/svn" + +# User and group as which to run svnserve +#SVNSERVE_USER="svn" +#SVNSERVE_GROUP="svnusers" diff --git a/init.d/svnserve b/init.d/svnserve new file mode 100755 index 0000000..8c1e21a --- /dev/null +++ b/init.d/svnserve @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +description="svn server" +pidfile="/var/run/svnserve.pid" +command="/usr/bin/svnserve" +command_args="--foreground --daemon ${SVNSERVE_OPTS:---root=/var/svn}" +command_background="true" +start_stop_daemon_args="-u ${SVNSERVE_USER:-svn} -g ${SVNSERVE_GROUP:-svnusers}" + +depend() { + need net +} + +start_pre() { + # Ensure that we run from a readable working dir, and that we do not + # lock filesystems when being run from such a location. + cd / +} diff --git a/xinetd.d/svnserve b/xinetd.d/svnserve new file mode 100644 index 0000000..7803465 --- /dev/null +++ b/xinetd.d/svnserve @@ -0,0 +1,14 @@ +service svn +{ + socket_type = stream + wait = no + user = svn + group = svnusers + umask = 002 + protocol = tcp + log_on_failure += USERID HOST + port = 3690 + server = /usr/bin/svnserve + server_args = -i + disable = yes +}