| « Upgrade to Debian Lenny | Changes » |
Leopard Server SVN Upgrade
Someone at work was in need to use subversion for some projects. Therefore we checked and were surprised by Leopard Server which had svn already build in. So the next step was to upgrade the svn to the most recent version 1.5.5. You can check jettro's post how to do that quickly with the openCollabNet binaries, but it needs a small addition. In case your newly upgraded svn version should'nt only be used by only one user you shall include the path (export PATH=/usr/local/bin:$PATH) in /etc/profile and you're done. There is no need anymore to edit every .profile then.
After the installation and the creation of your repository (mkdir -p /Library/Subversion/Repository) add your newly created service to the LaunchDaemons. We therefore create the required plist with touch /Library/LaunchDaemons/tigris.subversion.svnserve.plist and insert the following code:
XML:
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label | |
<string>org.tigris.subversion.svnserve | |
<key>ProgramArguments | |
<array> | |
<string>/usr/local/bin/svnserve | |
<string>--inetd | |
<string>--root=/Library/Subversion/Repository | |
</array> | |
<key>RunAtLoad | |
<true/> | |
<key>ServiceDescription | |
<string>Subversion Standalone Server | |
<key>Sockets | |
<dict> | |
<key>Listeners | |
<array> | |
<dict> | |
<key>SockFamily | |
<string>IPv4 | |
<key>SockServiceName | |
<string>svn | |
<key>SockType | |
<string>stream | |
</dict> | |
</array> | |
</dict> | |
<key>inetdCompatibility | |
<dict> | |
<key>Wait | |
<false/> | |
</dict> | |
</dict> | |
</plist> |
Add the service, check if it's listed ...
launchctl load /Library/LaunchDaemons/tigris.subversion.svnserve.plist && launchctl list | grep tigris
and finally start it with:
launchctl start org.tigris.subversion.svnserve
Have fun!
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
