ports/devel/subversion-devel/files/svnserve.in
Edwin Groothuis 5e72fdf201 subversion-devel and subversion-freebsd ports required
For the upcoming migration of the FreeBSD src repository from
    CVS to subversion, we need two ports to be created: subversion-devel
    -> this port will track subversion 1.5, until it is released
    -> according the to the subversion developers, we cannot make
    pre-release versions of subversion part of any official
    distributions: http://svn.haxx.se/dev/archive-2008-05/1096.shtml
    but, we need to get something going for people to use and test
    the new FreeBSD svn repository -> should use www/serf port if
    possible see PR 124059

    subversion-freesbd -> this will be based on subversion-devel,
    but with have some private patches from Peter Wemm available
    at: http://people.freebsd.org/~peter/

PR:		ports/124060
Submitted by:	Craig Rodrigues <rodrigc@crodrigues.org>
2008-06-01 00:52:10 +00:00

37 lines
966 B
Bash

#!/bin/sh
#
# Derived from the following by Doug Barton:
# svnserve.sh for rc.d usage (c) 2005 Thomas E. Spanjaard.
#
# $FreeBSD: /tmp/pcvs/ports/devel/subversion-devel/files/Attic/svnserve.in,v 1.2 2008-06-01 00:52:10 edwin Exp $
# PROVIDE: svnserve
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable SVNServe:
#
# svnserve_enable="YES"
# # optional
# svnserve_flags="-d --listen-port=3690"
# svnserve_data="/usr/local/repositories"
# svnserve_user="svn"
# svnserve_group="svn"
. "%%RC_SUBR%%"
name=svnserve
rcvar=`set_rcvar`
load_rc_config $name
# Set some defaults
: svnserve_enable=${svnserve_enable="NO"}
: svnserve_flags=${svnserve_flags="-d --listen-port=3690"}
: svnserve_data=${svnserve_data="%%PREFIX%%/repositories"}
: svnserve_user=${svnserve_user="svn"}
: svnserve_group=${svnserve_group="svn"}
command=%%PREFIX%%/bin/svnserve%%SVNSERVE_BIN_EXT%%
command_args="-r ${svnserve_data}"
run_rc_command "$1"