http://wiki.ham9000.com/index.php?title=Synology_CS407_Hacks

http://subversion.tigris.org
<h2><span class=”mw-headline”>Subversion service</span></h2>
After following the above two steps (getting bootstrap working, and ssh working), you can now install subversion. To reduce processor power, I setup my subversion service to only run when required. To do this, you must configure the inetd daemon to spawn subversion when desired.
<ul>
<li style=”list-style:none;”></li>
<li>Create a folder share for your subversion repository (I created /volume1/svn)</li>
<li style=”list-style:none;”></li>
<li>SSH as root into your Synology box</li>
<li style=”list-style:none;”></li>
<li>Type the following</li>
<li>$ ipkg install svn</li>
<li>To get subversion to start up via the inetd daemon, edit the following</li>
</ul>
<pre>$ vi /etc/inetd.conf</pre>
<ul>
<li style=”list-style:none;”></li>
<li>Add the following to the end of the file:</li>
<li style=”list-style:none;”></li>
</ul>
<pre>svn stream tcp nowait svnowner /opt/bin/svnserve svnserve -i -r /volume1/svn</pre>
<ul>
<li style=”list-style:none;”></li>
<li>Edit the services file to include subversion</li>
<li style=”list-style:none;”></li>
</ul>
<pre>$ vi /etc/services</pre>
<ul>
<li style=”list-style:none;”></li>
<li>Add the following 2 lines:</li>
<li style=”list-style:none;”></li>
</ul>
<pre>svn 3690/tcp # Subversion
svn 3690/udp # Subversion</pre>
<ul>
<li style=”list-style:none;”></li>
<li>Reboot your box</li>
<li style=”list-style:none;”></li>
</ul>
<pre>$ reboot</pre>
<!–more–>
<h2><span class=”mw-headline”>Setting up Subversion</span></h2>
<ul>
<li style=”list-style:none;”></li>
<li>SSH into your Synology box as root and execute the following:</li>
<li style=”list-style:none;”></li>
</ul>
<pre>$ su svnowner</pre>
<ul>
<li style=”list-style:none;”></li>
<li>Create a folder for you subversion repository, for this example I’ll use <em>/volume1/svn</em></li>
<li style=”list-style:none;”></li>
<li>Now type in the following commands</li>
<li style=”list-style:none;”></li>
</ul>
<pre>$ cd /volume1/svn
$ svnadmin create MyDepot</pre>
<ul>
<li style=”list-style:none;”></li>
<li>This will create a repository named <strong>MyDepot</strong></li>
<li style=”list-style:none;”></li>
<li>A directory named <strong>MyDepot</strong> will be created under <em>/volume1/svn</em></li>
<li style=”list-style:none;”></li>
<li>Now set repository permissions</li>
<li style=”list-style:none;”></li>
<li>Under <em>/volume1/svn/MyDepot/conf you will find repository configuration files</em></li>
<li style=”list-style:none;”></li>
<li>Edit the <em>svnserve.conf</em> file via vi and set up a test user/password pair</li>
<li style=”list-style:none;”></li>
</ul>
<pre>[users]
myuser = mypassword

[general]
anon-access = none
auth-access = write
password-db = passwd
realm = I am your first repository!</pre>
<ul>
<li style=”list-style:none;”></li>
<li>These settings will disable anonymous access, if you want to change it up, check out the subversion <a class=”external text” title=”http://subversion.tigris.org/faq.html” href=”http://subversion.tigris.org/faq.html” rel=”nofollow”>faq</a></li>
<li style=”list-style:none;”></li>
<li>You should now be ready to test out your new repository!
<ul>
<li style=”list-style:none;”></li>
<li>Here I am going to assume that you have the proper client software, in my case I am using a mac terminal.</li>
<li style=”list-style:none;”></li>
<li>Any linux/unix based systems will be very similar</li>
<li style=”list-style:none;”></li>
<li>Sorry window users, I haven’t tried this on my windows machine yet</li>
<li style=”list-style:none;”></li>
</ul>
</li>
<li style=”list-style:none;”></li>
<li>Type the following</li>
<li style=”list-style:none;”></li>
</ul>
<pre>$ svn co svn://&lt;IP of SynologyBox&gt;/MyDepot test_folder</pre>
<ul>
<li style=”list-style:none;”></li>
<li>You will then be asked for the password, so enter in the user/password you set in the svnserve.conf:</li>
<li style=”list-style:none;”></li>
</ul>
<pre>user myuser and password mypassword</pre>
<ul>
<li style=”list-style:none;”></li>
<li>You now have a Subversion depot that you can use</li>
<li style=”list-style:none;”></li>
</ul>
<h2>Subversion client</h2>
Subclipse is an Eclipse Team Provider plug-in providinhg support for Subversion within the Eclipse IDE.

http://subclipse.tigris.org/