November 17, 2006

Setting up Subversion on OS X

Setting up Subversion repository server, using its svnserve daemon, is a piece of cake:

  • Get .dmg download from Subversion official website and install it.
  • Create a user which would own Subversion repository files, or use existing www user.
  • Create the repository. I created mine under /var/svn:
    sudo mkdir /var/svn
    sudo svnadmin create /var/svn/repo
    find /var/svn/repo | xargs sudo chown www:www
  • Edit /var/svn/repo/conf/passwd to set up users and passwords.
  • And a bit the trickier part - set it up to run under launchd. For that, create org.tigris.subversion.svnserve.plist file in /Library/LaunchDaemons. The template is at TextSnippets site.
  • Punch a hole in firewall for port 3690 if you want access from other machines.
Posted by Vadim at 9:51 AM