[e4845ad] | 1 | The following port needs to open on your firewall.
|
---|
[d9f6c44] | 2 | 80/tcp
|
---|
[e4845ad] | 3 |
|
---|
[3833b22] | 4 | The Following modules will need to be added to your apache, you
|
---|
| 5 | will need to make sure your apache was compiled with --enable-proxy.
|
---|
| 6 | If it has not, you will need to recompile it.
|
---|
[e4845ad] | 7 |
|
---|
| 8 | LoadModule proxy_module lib/apache/mod_proxy.so
|
---|
| 9 | LoadModule proxy_http_module lib/apache/mod_proxy_http.so
|
---|
| 10 |
|
---|
| 11 | Along with the svn ones.
|
---|
| 12 |
|
---|
| 13 | LoadModule dav_svn_module lib/apache/mod_dav_svn.so
|
---|
| 14 | LoadModule authz_svn_module lib/apache/mod_authz_svn.so
|
---|
| 15 |
|
---|
| 16 | Copy from your subversion tarballs tools/xslt/svnindex.* to your
|
---|
| 17 | /srv/www/htdocs directory.
|
---|
| 18 |
|
---|
| 19 | Apache 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] | 41 | Create a cross-lfs Repo locally
|
---|
[e4845ad] | 42 |
|
---|
[d9f6c44] | 43 | Change into the directory where you want to create the repo at,
|
---|
| 44 | normally this is /srv/svn. The run the following command.
|
---|
[e4845ad] | 45 |
|
---|
[d9f6c44] | 46 | svnadmin create cross-lfs
|
---|
[e4845ad] | 47 |
|
---|
[d9f6c44] | 48 | --
|
---|
| 49 | Create pre-revprop-change
|
---|
[e4845ad] | 50 |
|
---|
[d9f6c44] | 51 | Now change into the /srv/svn/cross-lfs and run the follow commands
|
---|
| 52 | to create pre-revprop-change
|
---|
[e4845ad] | 53 |
|
---|
[d9f6c44] | 54 | cat > hooks/pre-revprop-change << "EOF"
|
---|
| 55 | #!/bin/sh
|
---|
| 56 | EOF
|
---|
| 57 | chmod 755 hooks/pre-revprop-change
|
---|
[e4845ad] | 58 |
|
---|
[d9f6c44] | 59 | --
|
---|
| 60 | Make sure apache has full access, this assumes your are in /srv/svn
|
---|
[e4845ad] | 61 |
|
---|
[d9f6c44] | 62 | chown {myapacheuser}:root * -R
|
---|
[e4845ad] | 63 |
|
---|
[d9f6c44] | 64 | --
|
---|
| 65 | Intialize the Repo via syncsnc
|
---|
[e4845ad] | 66 |
|
---|
[d9f6c44] | 67 | svnsync init http://{myapacheip}/svn/repos/cross-lfs http://svn.cross-lfs.org/svn/repos/cross-lfs
|
---|
| 68 |
|
---|
| 69 | --
|
---|
| 70 | Do the Initial Sync
|
---|
[e4845ad] | 71 |
|
---|
[d9f6c44] | 72 | svnsync sync http://{myapacheip}/svn/repos/cross-lfs
|
---|