| [e4845ad] | 1 | The following port needs to open on your firewall. | 
|---|
|  | 2 | 873/tcp | 
|---|
|  | 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 |  | 
|---|
|  | 39 |  | 
|---|
|  | 40 | Follow the BLFS instructions to install rsync daemon | 
|---|
|  | 41 |  | 
|---|
|  | 42 | You will need to setup rsyncd to allow files to be transferred in | 
|---|
|  | 43 | after a commit. | 
|---|
|  | 44 |  | 
|---|
| [13e4dba9] | 45 | Here is a our /etc/rsyncd.conf. You will need to change the uid = apache to | 
|---|
|  | 46 | what ever user is running apache. | 
|---|
| [e4845ad] | 47 |  | 
|---|
|  | 48 | ---start | 
|---|
|  | 49 | motd file = /home/rsync/welcome.msg | 
|---|
|  | 50 | use chroot = yes | 
|---|
|  | 51 |  | 
|---|
|  | 52 | uid = rsync | 
|---|
|  | 53 | gid = rsync | 
|---|
|  | 54 |  | 
|---|
|  | 55 | [clfs] | 
|---|
|  | 56 | path = /srv/svn/cross-lfs | 
|---|
|  | 57 | comment = CLFS svn rsync module | 
|---|
|  | 58 | read only = no | 
|---|
|  | 59 | list = yes | 
|---|
| [9ba102b] | 60 | uid = apache | 
|---|
| [e4845ad] | 61 | hosts allow = 209.172.44.8 | 
|---|
|  | 62 | secrets file = /etc/rsyncd.secrets | 
|---|
|  | 63 | ---end | 
|---|
|  | 64 |  | 
|---|
|  | 65 | Here is an the /etc/rsyncd.secrets | 
|---|
|  | 66 |  | 
|---|
|  | 67 | ---start | 
|---|
|  | 68 | clfs:clfs | 
|---|
|  | 69 | ---end | 
|---|
|  | 70 |  | 
|---|
|  | 71 | After you get that setup you will need to run the following commands | 
|---|
| [13e4dba9] | 72 | to make your repo active. You will need to change the apache:root to | 
|---|
|  | 73 | whatever user is running apache. | 
|---|
| [e4845ad] | 74 |  | 
|---|
|  | 75 | install -d /srv/svn | 
|---|
|  | 76 | svnadmin create cross-lfs | 
|---|
|  | 77 | chown apache:root cross-lfs -R | 
|---|
|  | 78 |  | 
|---|
|  | 79 | rsync -avz cross-lfs.org::clfs /srv/svn/cross-lfs/db | 
|---|