Running subversion on Kamikaze
1. Build the subversion packages. They're located in menuconfig under: Network / subversion / <M> subversion-{libs,client,server}
2. Install the subversion server package. It installs some dependencies (apr, apr-util, libexpat, libiconv, libintl, libpthread, libxml2, neon, subversion-libs). Make sure you have enough free space.
ipkg install subversion-server
3. Create a new subversion repository
mkdir -p /srv
svnadmin create --fs-type fsfs /srv/svn
4. Configure and start subversion
4.1. Configure subversion. The path to the repository and the port on which subversion should listen on can be configured via UCI (/etc/config/subversion).
uci set subversion.cfg1.path="/srv/svn"
uci commit subversion
4.2. Starting subversion and enabling it on boot
/etc/init.d/subversion start
/etc/init.d/subversion enable
5. Check if subversion is running
root@OpenWrt:/# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN
[...]
root@OpenWrt:/# ps ax | grep svnserve
810 root 580 S svnserve -d --listen-port 3690 -r /srv/svn
6. On a Linux PC checkout the new subversion repository
ubuntu@ubuntu-laptop:~$ svn checkout svn://192.168.1.1/ router-repository/
Checked out revision 0.
ubuntu@ubuntu-laptop:~$
Have fun
(Last edited by forum2006 on 21 Jul 2007, 11:19)