source: svn_mirroring.txt@ 13e4dba9

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 13e4dba9 was 13e4dba9, checked in by Jim Gifford <clfs@…>, 18 years ago

Updates to svn mirroring document

  • Property mode set to 100644
File size: 1.9 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 <LimitExcept CHECKOUT DELETE GET MERGE PROFIND PUT OPTIONS REPORT>
31 ProxyPass http://svn.cross-lfs.org/svn/repos
32 ProxyPassReverse http://svn.cross-lfs.org/svn/repos
33</LimitExcept>
34</Location>
35</Location>
36
37
38Follow the BLFS instructions to install rsync daemon
39
40You will need to setup rsyncd to allow files to be transferred in
41after a commit.
42
43Here is a our /etc/rsyncd.conf. You will need to change the uid = apache to
44what ever user is running apache.
45
46---start
47motd file = /home/rsync/welcome.msg
48use chroot = yes
49
50uid = rsync
51gid = rsync
52
53[clfs]
54 path = /srv/svn/cross-lfs
55 comment = CLFS svn rsync module
56 read only = no
57 list = yes
58 uid = apache
59 hosts allow = 209.172.44.8
60 secrets file = /etc/rsyncd.secrets
61---end
62
63Here is an the /etc/rsyncd.secrets
64
65---start
66clfs:clfs
67---end
68
69After you get that setup you will need to run the following commands
70to make your repo active. You will need to change the apache:root to
71whatever user is running apache.
72
73install -d /srv/svn
74svnadmin create cross-lfs
75chown apache:root cross-lfs -R
76
77rsync -avz cross-lfs.org::clfs /srv/svn/cross-lfs/db
Note: See TracBrowser for help on using the repository browser.