source: svn_mirroring.txt @ 88684c8

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 88684c8 was 99504e5, checked in by Jim Gifford <clfs@…>, 18 years ago

Update to svn_mirroring.txt

  • 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 MERGE 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} !^(CHECKOUT|DELETE|GET|MERGE|PROPFIND|PUT|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        uid = apache
55        read only = no
56        list = yes
57        hosts allow = 209.172.44.8
58        secrets file = /etc/rsyncd.secrets
59---end
60
61Here is an the /etc/rsyncd.secrets
62
63---start
64clfs:clfs
65---end
66
67After you get that setup you will need to run the following commands
68to make your repo active.
69
70install -d /srv/svn
71svnadmin create cross-lfs
72chown apache:root cross-lfs -R
73
74rsync -avz cross-lfs.org::clfs /srv/svn/cross-lfs/db
Note: See TracBrowser for help on using the repository browser.