source: svn_mirroring.txt@ 07114c98

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

Updated svn_mirroring.txt

  • Property mode set to 100644
File size: 2.0 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, you
5will need to make sure your apache was compiled with --enable-proxy.
6If it has not, you will need to recompile it.
7
8LoadModule proxy_module lib/apache/mod_proxy.so
9LoadModule proxy_http_module lib/apache/mod_proxy_http.so
10
11Along with the svn ones.
12
13LoadModule dav_svn_module lib/apache/mod_dav_svn.so
14LoadModule authz_svn_module lib/apache/mod_authz_svn.so
15
16Copy from your subversion tarballs tools/xslt/svnindex.* to your
17/srv/www/htdocs directory.
18
19Apache httpd.conf file
20<Location /svn/repos>
21 <Limit CHECKOUT DELETE GET MERGE PROPFIND PUT OPTIONS REPORT>
22 DAV svn
23 SVNParentPath /srv/svn
24 SVNIndexXSLT /svnindex.xsl
25 AuthzSVNAccessFile /etc/svn/svn_auths
26 Satisfy Any
27 Require valid-user
28 AuthType Basic
29 AuthName "Subversion Repository"
30 AuthUserFile /etc/svn/svn_users
31 </Limit>
32 <LimitExcept CHECKOUT DELETE GET MERGE PROFIND PUT OPTIONS REPORT>
33 ProxyPass http://svn.cross-lfs.org/svn/repos
34 ProxyPassReverse http://svn.cross-lfs.org/svn/repos
35</LimitExcept>
36</Location>
37</Location>
38
39
40Follow the BLFS instructions to install rsync daemon
41
42You will need to setup rsyncd to allow files to be transferred in
43after a commit.
44
45Here is a our /etc/rsyncd.conf. You will need to change the uid = apache to
46what ever user is running apache.
47
48---start
49motd file = /home/rsync/welcome.msg
50use chroot = yes
51
52uid = rsync
53gid = rsync
54
55[clfs]
56 path = /srv/svn/cross-lfs
57 comment = CLFS svn rsync module
58 read only = no
59 list = yes
60 uid = apache
61 hosts allow = 209.172.44.8
62 secrets file = /etc/rsyncd.secrets
63---end
64
65Here is an the /etc/rsyncd.secrets
66
67---start
68clfs:clfs
69---end
70
71After you get that setup you will need to run the following commands
72to make your repo active. You will need to change the apache:root to
73whatever user is running apache.
74
75install -d /srv/svn
76svnadmin create cross-lfs
77chown apache:root cross-lfs -R
78
79rsync -avz cross-lfs.org::clfs /srv/svn/cross-lfs/db
Note: See TracBrowser for help on using the repository browser.