source: svn_mirroring.txt@ 0bf331c

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

Updating svn mirror for Subversion 1.4.0

  • Property mode set to 100644
File size: 1.8 KB
Line 
1The following port needs to open on your firewall.
280/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--SVN Setup
40
41Create a cross-lfs Repo locally
42
43Change into the directory where you want to create the repo at,
44normally this is /srv/svn. The run the following command.
45
46svnadmin create cross-lfs
47
48--
49Create pre-revprop-change
50
51Now change into the /srv/svn/cross-lfs and run the follow commands
52to create pre-revprop-change
53
54cat > hooks/pre-revprop-change << "EOF"
55#!/bin/sh
56EOF
57chmod 755 hooks/pre-revprop-change
58
59--
60Make sure apache has full access, this assumes your are in /srv/svn
61
62chown {myapacheuser}:root * -R
63
64--
65Intialize the Repo via syncsnc
66
67svnsync init http://{myapacheip}/svn/repos/cross-lfs http://svn.cross-lfs.org/svn/repos/cross-lfs
68
69--
70Do the Initial Sync
71
72svnsync sync http://{myapacheip}/svn/repos/cross-lfs
Note: See TracBrowser for help on using the repository browser.