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 | <LimitExcept CHECKOUT DELETE 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>
|
---|
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. You will need to change the uid = apache to
|
---|
44 | what ever user is running apache.
|
---|
45 |
|
---|
46 | ---start
|
---|
47 | motd file = /home/rsync/welcome.msg
|
---|
48 | use chroot = yes
|
---|
49 |
|
---|
50 | uid = rsync
|
---|
51 | gid = rsync
|
---|
52 |
|
---|
53 | [clfs]
|
---|
54 | path = /srv/svn/cross-lfs
|
---|
55 | comment = CLFS svn rsync module
|
---|
56 | read only = no
|
---|
57 | list = yes
|
---|
58 | uid = apache
|
---|
59 | hosts allow = 209.172.44.8
|
---|
60 | secrets file = /etc/rsyncd.secrets
|
---|
61 | ---end
|
---|
62 |
|
---|
63 | Here is an the /etc/rsyncd.secrets
|
---|
64 |
|
---|
65 | ---start
|
---|
66 | clfs:clfs
|
---|
67 | ---end
|
---|
68 |
|
---|
69 | After you get that setup you will need to run the following commands
|
---|
70 | to make your repo active. You will need to change the apache:root to
|
---|
71 | whatever user is running apache.
|
---|
72 |
|
---|
73 | install -d /srv/svn
|
---|
74 | svnadmin create cross-lfs
|
---|
75 | chown apache:root cross-lfs -R
|
---|
76 |
|
---|
77 | rsync -avz cross-lfs.org::clfs /srv/svn/cross-lfs/db
|
---|