User Tools

Site Tools


misc:subversion

Links

Infrastruktur

Installation/Konfiguration

  • Pakete subversion/svnserve und libapache2-svn installieren
  • mkdir /srv/svn/repos
  • svnadmin create /srv/svn/repos
  • Temporär Verzeichnisse anlegen:
    • mkdir myproject
    • mkdir myproject/trunk
    • mkdir myproject/branches
    • mkdir myproject/tags
  • svn import . file:///srv/svn/repos -m “initial”
  • oder “remote”:

svn mkdir -m 'new project area' http://suse/svn/myproject
svn mkdir -m 'new project area' http://suse/svn/myproject/branches
svn mkdir -m 'new project area' http://suse/svn/myproject/tags
svn mkdir -m 'new project area' http://suse/svn/myproject/trunk

Subversion lightweight server

  • Start: svnserve –daemon –root /srv/svn/repos
  • Standardport: 3690
  • Url: svn:// oder svn+sll://
  • Konfiguration in <repos>/conf/svnserve.conf

WebDAV Konfiguration (http)

  • Module moddavsvn, modauthzsvn aktivieren (/etc/sysconfig/apache2 bei openSUSE)
  • debian: apt-get install libapache2-svn
  • Module moddav auch nötig * mkdir /srv/svn/useraccess
  • htpasswd2 -cm /srv/svn/user_access/passwdfile <username>
    • -cm : Neues Passwortfile anlegen und User anlegen
    • -m : Passwort für User anlegen
    • -D : User löschen
  • Restart apache2
  • suse:/srv/svn # chown -R wwwrun:www repos/
  • suse:/srv/svn # chmod -R 770 repos/
<Location /svn >
   DAV svn
   SVNPath /srv/svn/repos
 
   # Limit write permission to list of valid users.
   <LimitExcept GET PROPFIND OPTIONS REPORT>
      # Require SSL connection for password protection.
      # SSLRequireSSL
 
      AuthType Basic
      AuthName "Subversion Authorization Realm"
      AuthUserFile /srv/svn/user_access/passwdfile
      Require valid-user
   </LimitExcept>
</Location>

Subclipse

Konkurrenz

misc/subversion.txt · Last modified: 2012/10/12 18:57 by hgoebl