Subversion on OSX
Now I know why sotto has the list-style-type set to none. If you click through you can see the whole post. For some reason the decimal on the list items is causing the collapsing of post to get confused.
OK so I finally got around to putting Subversion on my mac.
here are the steps I used to get the thing up and running
- Use fink to install svn
- $fink install svn (or svn-ssl)
- $fink install svn-client (or svn-client-ssl)
- Next setup svn as a service
- Create a file
/etc/xinetd.d/svn - fill it with the following content
- add svn to the /etc/services file (if its not already there)
- Add an svn user and group
- restart xinetd
- create a svn repository
- Access your repo with
svn import mydirectory svn://localhost/$REPOS_NAME
This should install the shared libs for you. Also note that the fink command uses sudo to do its stuff so it will prompt you for your password (assuming your account is in the admin group). Here is the result of listing the svn stuff that ink knows about. Notice that I have the ssl versions of svn stuff installed (the lower case 'i' in the right most column means the package is installed).
$ fink list svn Information about 1496 packages read in 2 seconds. cvs2svn 1.0.0-12 CVS to SVN (subversion) conversion tool cvs2svn-ssl 1.0.0-12 CVS to SVN (subversion) conversion tool (with SSL) libapache2-mod-svn 1.0.0-12 Compelling replacement for CVS - mod_svn libapache2-ssl-mod-svn 1.0.0-12 Compelling replacement for CVS - mod_svn (with SSL) svn 1.0.0-12 Compelling replacement for CVS - svnserve, tools svn-client 1.0.0-12 Compelling replacement for CVS - Client i svn-client-ssl 1.0.0-12 Compelling replacement for CVS - Client (with SSL) svn-dev 1.0.0-12 Compelling replacement for CVS - Development headers and libraries svn-shlibs 1.0.0-12 Compelling replacement for CVS - Shared libraries i svn-ssl 1.0.0-12 Compelling replacement for CVS - svnserve, tools (with SSL) svn-ssl-dev 1.0.0-12 Compelling replacement for CVS - Development headers and libraries (with SSL) i svn-ssl-shlibs 1.0.0-12 Compelling replacement for CVS - Shared libraries (with SSL) svn-ssl-swig-pm581 1.0.0-12 Compelling replacement for CVS - Swig Perl bindings (with SSL) svn-ssl-swig-py23 1.0.0-12 Compelling replacement for CVS - Swig Python bindings (with SSL) svn-swig-pm581 1.0.0-12 Compelling replacement for CVS - Swig Perl bindings svn-swig-py23 1.0.0-12 Compelling replacement for CVS - Swig Python bindings
service svn { disable = no socket_type = stream protocol = tcp wait = no user = svn port = 3690 server = /sw/bin/svnserve server_args = -i -r /usr/local/svnrepos }
The -r in server_args specifies the root directory where repositories will live.
svn 3690/udp # Subversion svn 3690/tcp # Subversion
$ sudo mkdir /usr/local/svnrepos $ sudo nicl . -create /groups/svn passwd "*" $ sudo nicl . -append /groups/svn gid 3690 $ sudo nicl . -append /groups/svn users svn $ sudo nicl . -create /users/svn $ sudo nicl . -append /users/svn gid 3690 $ sudo nicl . -append /users/svn uid 3690 $ sudo nicl . -append /users/svn shell /bin/bash $ sudo nicl . -append /users/svn home /usr/local/svnrepos $ sudo nicl . -append /users/svn realname "Subversion" $ sudo chown svn:svn /usr/local/svnrepos
This assumes that 3690 is not an existing gid & uid, if it is you should change accordingly on your machine.
$ ps -aex | grep xinetd $ kill -HUP the process # identified for xinetd
$ svnadmin create $REPOS_NAME

