rendered paste body# /etc/config/subversion
config subversion config
option SVN_REPO_PATH '/development/svn'
option SVN_PORT 3690
# /etc/init.d/svnserve
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
config_load "subversion"
config_get svn_repo_path config SVN_REPO_PATH
config_get svn_port config SVN_PORT
start () {
if [ ! -d ${svn_repo_path} ]; then
echo "The subversion repository (${svn_repo_path}) does not exist."
echo "Create a new repository and/or change svn_repo_path in /etc/config/subversion"
echo
echo "Create a new subversion repository with:"
echo " mkdir -p /var/local"
echo " svnadmin create --fs-type fsfs /var/local/svn/"
echo
echo "Changing the svn_repo_path with (default path is: /var/local/svn):"
echo " uci set subversion.config.SVN_REPO_PATH="/var/local/svn""
echo " uci commit"
exit 1
fi
svnserve -d --listen-port ${svn_port} -r ${svn_repo_path}
}
stop() {
killall -9 svnserve
}
root@OpenWrt:/#