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>
|
---|
19 | <Limit CHECKOUT DELETE GET MERGE PROPFIND PUT OPTIONS REPORT>
|
---|
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>
|
---|
30 | RewriteEngine On
|
---|
31 | RewriteCond %{REQUEST_METHOD} !^(CHECKOUT|DELETE|GET|MERGE|PROPFIND|PUT|OPTIONS|REPORT)$
|
---|
32 | RewriteRule /svn/repos(.*) http://svn.cross-lfs.org/svn/repos$1 [P]
|
---|
33 | ProxyPassReverse http://svn.cross-lfs.org/svn/repos
|
---|
34 | </Location>
|
---|
35 |
|
---|
36 |
|
---|
37 | Follow the BLFS instructions to install rsync daemon
|
---|
38 |
|
---|
39 | You will need to setup rsyncd to allow files to be transferred in
|
---|
40 | after a commit.
|
---|
41 |
|
---|
42 | Here is a our /etc/rsyncd.conf
|
---|
43 |
|
---|
44 | ---start
|
---|
45 | motd file = /home/rsync/welcome.msg
|
---|
46 | use chroot = yes
|
---|
47 |
|
---|
48 | uid = rsync
|
---|
49 | gid = rsync
|
---|
50 |
|
---|
51 | [clfs]
|
---|
52 | path = /srv/svn/cross-lfs
|
---|
53 | comment = CLFS svn rsync module
|
---|
54 | uid = apache
|
---|
55 | read only = no
|
---|
56 | list = yes
|
---|
57 | hosts allow = 209.172.44.8
|
---|
58 | secrets file = /etc/rsyncd.secrets
|
---|
59 | ---end
|
---|
60 |
|
---|
61 | Here is an the /etc/rsyncd.secrets
|
---|
62 |
|
---|
63 | ---start
|
---|
64 | clfs:clfs
|
---|
65 | ---end
|
---|
66 |
|
---|
67 | After you get that setup you will need to run the following commands
|
---|
68 | to make your repo active.
|
---|
69 |
|
---|
70 | install -d /srv/svn
|
---|
71 | svnadmin create cross-lfs
|
---|
72 | chown apache:root cross-lfs -R
|
---|
73 |
|
---|
74 | rsync -avz cross-lfs.org::clfs /srv/svn/cross-lfs/db
|
---|