Server Installation/Subversion: Unterschied zwischen den Versionen
Erscheinungsbild
Inhalt gelöscht Inhalt hinzugefügt
Keine Bearbeitungszusammenfassung |
|||
| (4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
Status: '''Abgeschaltet''' (Migration Git 2017, Backup unter on_attic) |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
(Noch TODO) |
|||
* Installation svnserve |
* Installation svnserve |
||
| Zeile 47: | Zeile 47: | ||
$config->useEnscript(); |
$config->useEnscript(); |
||
?> |
?> |
||
* /usr/share/websvn/robots.txt |
|||
User-agent: * |
|||
Disallow: / |
|||
* /usr/share/websvn/templates/calm/index.tmpl |
* /usr/share/websvn/templates/calm/index.tmpl |
||
Aktuelle Version vom 23. November 2017, 15:53 Uhr
Status: Abgeschaltet (Migration Git 2017, Backup unter on_attic)
Software zum Betrieb von Opennet DEV SVN Versionsverwaltung.
Installation
- Installation svnserve
- Betrieb via xinetd /etc/xinetd.d/svn
- Installation websvn /etc/websvn/svn_deb_conf.inc
- Einbindung apache /etc/apache2/conf.d/websvn
- WebSVN Template Anpassung /usr/share/websvn/templates/calm/index.tmpl
- FW Anpassung (ferm)
- Repository Pfad /var/svn/
Konfiguration
- /etc/xinetd.d/svn
service svn
{
socket_type = stream
protocol = tcp
user = svn
wait = no
disable = no
server = /usr/bin/svnserve
server_args = -i --root /var/svn --config-file /etc/subversion/svnserve.conf
port = 3690
flags = IPv6
}
- /etc/subversion/svnserve.conf
[general] password-db = /etc/subversion/passwd realm = opennet # anonymous users aren't allowed anon-access = read # authenticated users can both read and write auth-access = write
- /etc/websvn/svn_deb_conf.inc
<?php
// please edit /etc/websvn/config.php
// or use dpkg-reconfigure websvn
$config->parentPath("/var/svn");
$config->setEnscriptPath("/usr/bin");
$config->setSedPath("/bin");
$config->useEnscript();
?>
- /usr/share/websvn/robots.txt
User-agent: * Disallow: /
- /usr/share/websvn/templates/calm/index.tmpl
..... Opennet Initiative e.V. - Subversion WebSVN Service .....
Betrieb
- User anlegen: /etc/subversion/passwd erweitern (Klartext Username / Password)
- Repository anlegen: svnadmin create /var/svn/on_<projectname>
- Rechte setzen: chown -R svn:svn /var/svn/on_<projectname>
- Zugriffstest: svn co svn://svn.opennet-initiative.de/on_<projectname>
- Checkintest: svn add <filename> && svn commit --message "<my commit message>"