source: svn_mirroring.txt@ 0af6afa

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0af6afa 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
RevLine 
[e4845ad]1The following port needs to open on your firewall.
[d9f6c44]280/tcp
[e4845ad]3
[3833b22]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.
[e4845ad]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>
[99504e5]21 <Limit CHECKOUT DELETE GET MERGE PROPFIND PUT OPTIONS REPORT>
[e4845ad]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>
[20c2c29]32 <LimitExcept CHECKOUT DELETE GET MERGE PROFIND PUT OPTIONS REPORT>
[9ba102b]33 ProxyPass http://svn.cross-lfs.org/svn/repos
34 ProxyPassReverse http://svn.cross-lfs.org/svn/repos
35</LimitExcept>
36</Location>
[e4845ad]37</Location>
38
[d9f6c44]39--SVN Setup
[e4845ad]40
[d9f6c44]41Create a cross-lfs Repo locally
[e4845ad]42
[d9f6c44]43Change into the directory where you want to create the repo at,
44normally this is /srv/svn. The run the following command.
[e4845ad]45
[d9f6c44]46svnadmin create cross-lfs
[e4845ad]47
[d9f6c44]48--
49Create pre-revprop-change
[e4845ad]50
[d9f6c44]51Now change into the /srv/svn/cross-lfs and run the follow commands
52to create pre-revprop-change
[e4845ad]53
[d9f6c44]54cat > hooks/pre-revprop-change << "EOF"
55#!/bin/sh
56EOF
57chmod 755 hooks/pre-revprop-change
[e4845ad]58
[d9f6c44]59--
60Make sure apache has full access, this assumes your are in /srv/svn
[e4845ad]61
[d9f6c44]62chown {myapacheuser}:root * -R
[e4845ad]63
[d9f6c44]64--
65Intialize the Repo via syncsnc
[e4845ad]66
[d9f6c44]67svnsync init http://{myapacheip}/svn/repos/cross-lfs http://svn.cross-lfs.org/svn/repos/cross-lfs
68
69--
70Do the Initial Sync
[e4845ad]71
[d9f6c44]72svnsync sync http://{myapacheip}/svn/repos/cross-lfs
Note: See TracBrowser for help on using the repository browser.