Dominique Jacquel wrote:
Hi,
I have just installed 3.8 from the CD :-) and FTPed all packages from
ftp.kd85.com. It all went well but I am having a strange problem with
subversion. svnserve does not seem to bind to inet but only to inet6.
Yes, this is known. By default svnserve will only listen on IPv6 on OpenBSD.
The workaround is to supply an IPv4 address to the --listen-host option
to svnserve. To listen on all IPv4:
$ svnserve -d --listen-host 0.0.0.0 -r /my/repos
I do a simple
sudo svnserve -d -r /my/repos
You don't need root privileges to run svnserve. You
may add to /etc/rc.local something like
if [ -x /usr/local/bin/svnserve ]; then
if [ X"${svnserve_flags}" != X"NO" ]; then
echo -n 'svnserve '; /usr/bin/sudo -u _svnserve
/usr/local/bin/svnserve ${svnserve_flags}
fi
fi
And in /etc/rc.conf.local add:
svnserve_flags="--listen-host 0.0.0.0 -d -r /my/repos"
The user _svnserve you may add as follows (change as appropiate):
$ sudo useradd -u980 -g=uid -c"svnserve daemon" -d/my/repos -s/sbin/nologin
_svnserve
I am running 3.7 and 3.8 inside Vmware and this problem only appears in
3.8. Under 3.7, svnserve is quite happy to respond through IPv4. Have I
missed something here? How do I force svnserve to use IPv4 as well
as/instead of IPv6?
The Subversion team added IPv6 support....
You may run both IPv6 and IPv4 svnserve at the same time. Just give
an IPv6 adress to listen-host to one svnserve process, and an IPv4 adress to
the another svnserve process.
/Sigfred