source: svn_mirroring.txt @ e4845ad

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since e4845ad was e4845ad, checked in by Jim Gifford <clfs@…>, 16 years ago

Added svn_mirrroring document

  • Property mode set to 100644
File size: 1.7 KB
Line 
1The following port needs to open on your firewall.
2873/tcp
3
4The Following modules will need to be added to your apache
5
6LoadModule proxy_module lib/apache/mod_proxy.so
7LoadModule proxy_http_module lib/apache/mod_proxy_http.so
8
9Along with the svn ones.
10
11LoadModule dav_svn_module     lib/apache/mod_dav_svn.so
12LoadModule authz_svn_module   lib/apache/mod_authz_svn.so
13
14Copy from your subversion tarballs tools/xslt/svnindex.* to your
15/srv/www/htdocs directory.
16
17Apache httpd.conf file
18<Location /svn/repos>
19  <Limit CHECKOUT DELETE GET PROPFIND PUT OPTIONS REPORT>
20        DAV svn
21        SVNParentPath /srv/svn
22        SVNIndexXSLT /svnindex.xsl
23        AuthzSVNAccessFile /etc/svn/svn_auths
24        Satisfy Any
25        Require valid-user
26        AuthType Basic
27        AuthName "Subversion Repository"
28        AuthUserFile /etc/svn/svn_users
29  </Limit>
30   RewriteEngine On
31   RewriteCond %{REQUEST_METHOD} !^(GET|PROPFIND|OPTIONS|REPORT)$
32   RewriteRule /svn/repos(.*) http://svn.cross-lfs.org/svn/repos$1 [P]
33   ProxyPassReverse http://svn.cross-lfs.org/svn/repos
34</Location>
35
36
37Follow the BLFS instructions to install rsync daemon
38
39You will need to setup rsyncd to allow files to be transferred in
40after a commit.
41
42Here is a our /etc/rsyncd.conf
43
44---start
45motd file = /home/rsync/welcome.msg
46use chroot = yes
47
48uid = rsync
49gid = rsync
50
51[clfs]
52        path = /srv/svn/cross-lfs
53        comment = CLFS svn rsync module
54        read only = no
55        list = yes
56        hosts allow = 209.172.44.8
57        secrets file = /etc/rsyncd.secrets
58---end
59
60Here is an the /etc/rsyncd.secrets
61
62---start
63clfs:clfs
64---end
65
66After you get that setup you will need to run the following commands
67to make your repo active.
68
69install -d /srv/svn
70svnadmin create cross-lfs
71chown apache:root cross-lfs -R
72
73rsync -avz cross-lfs.org::clfs /srv/svn/cross-lfs/db
Note: See TracBrowser for help on using the repository browser.