[e4845ad] | 1 | The following port needs to open on your firewall. |
---|
| 2 | 873/tcp |
---|
| 3 | |
---|
| 4 | The Following modules will need to be added to your apache |
---|
| 5 | |
---|
| 6 | LoadModule proxy_module lib/apache/mod_proxy.so |
---|
| 7 | LoadModule proxy_http_module lib/apache/mod_proxy_http.so |
---|
| 8 | |
---|
| 9 | Along with the svn ones. |
---|
| 10 | |
---|
| 11 | LoadModule dav_svn_module lib/apache/mod_dav_svn.so |
---|
| 12 | LoadModule authz_svn_module lib/apache/mod_authz_svn.so |
---|
| 13 | |
---|
| 14 | Copy from your subversion tarballs tools/xslt/svnindex.* to your |
---|
| 15 | /srv/www/htdocs directory. |
---|
| 16 | |
---|
| 17 | Apache httpd.conf file |
---|
| 18 | <Location /svn/repos> |
---|
[99504e5] | 19 | <Limit CHECKOUT DELETE GET MERGE PROPFIND PUT OPTIONS REPORT> |
---|
[e4845ad] | 20 | DAV svn |
---|
| 21 | SVNParentPath /srv/svn |
---|
| 22 | SVNIndexXSLT /svnindex.xsl |
---|
| 23 | AuthzSVNAccessFile /etc/svn/svn_auths |
---|
| 24 | Satisfy Any |
---|
| 25 | Require valid-user |
---|
| 26 | AuthType Basic |
---|
| 27 | AuthName "Subversion Repository" |
---|
| 28 | AuthUserFile /etc/svn/svn_users |
---|
| 29 | </Limit> |
---|
[9ba102b] | 30 | <LimitExcept CHECKOUT GET MERGE PROFIND PUT OPTIONS REPORT> |
---|
| 31 | ProxyPass http://svn.cross-lfs.org/svn/repos |
---|
| 32 | ProxyPassReverse http://svn.cross-lfs.org/svn/repos |
---|
| 33 | </LimitExcept> |
---|
| 34 | </Location> |
---|
[e4845ad] | 35 | </Location> |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | Follow the BLFS instructions to install rsync daemon |
---|
| 39 | |
---|
| 40 | You will need to setup rsyncd to allow files to be transferred in |
---|
| 41 | after a commit. |
---|
| 42 | |
---|
| 43 | Here is a our /etc/rsyncd.conf |
---|
| 44 | |
---|
| 45 | ---start |
---|
| 46 | motd file = /home/rsync/welcome.msg |
---|
| 47 | use chroot = yes |
---|
| 48 | |
---|
| 49 | uid = rsync |
---|
| 50 | gid = rsync |
---|
| 51 | |
---|
| 52 | [clfs] |
---|
| 53 | path = /srv/svn/cross-lfs |
---|
| 54 | comment = CLFS svn rsync module |
---|
| 55 | read only = no |
---|
| 56 | list = yes |
---|
[9ba102b] | 57 | uid = apache |
---|
[e4845ad] | 58 | hosts allow = 209.172.44.8 |
---|
| 59 | secrets file = /etc/rsyncd.secrets |
---|
| 60 | ---end |
---|
| 61 | |
---|
| 62 | Here is an the /etc/rsyncd.secrets |
---|
| 63 | |
---|
| 64 | ---start |
---|
| 65 | clfs:clfs |
---|
| 66 | ---end |
---|
| 67 | |
---|
| 68 | After you get that setup you will need to run the following commands |
---|
| 69 | to make your repo active. |
---|
| 70 | |
---|
| 71 | install -d /srv/svn |
---|
| 72 | svnadmin create cross-lfs |
---|
| 73 | chown apache:root cross-lfs -R |
---|
| 74 | |
---|
| 75 | rsync -avz cross-lfs.org::clfs /srv/svn/cross-lfs/db |
---|