Changeset 678c25bd for general/prog/svnserver.xml
- Timestamp:
- 05/30/2016 03:19:47 AM (8 years ago)
- Branches:
- systemd-13485
- Children:
- 130e7e1
- Parents:
- aac14ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/svnserver.xml
raac14ed r678c25bd 21 21 <para>This section will describe how to set up, administer and secure 22 22 a <application>Subversion</application> server.</para> 23 24 <!-- <note>25 <para>The default build instructions for26 <application>Subversion</application> disabled the27 <application>Berkeley DB</application> repository back-end due to the28 errors encountered in the test suite while building the29 <xref linkend="subversion"/> package. This should not present a30 functionality issue as the FSFS repository back-end is now the default,31 and recommended by the <application>Subversion</application> development32 team.</para>33 34 <para>If you have existing repositories based on a35 <application>Berkeley DB</application> back-end and you followed the36 BLFS instructions for building <application>Subversion</application>,37 you'll need to dump the databases, create new repositories using the38 FSFS back-end, then then reload the data into the new repositories.39 Instructions for performing these operations can be found at <ulink40 url="http://svnbook.red-bean.com/en/1.1/ch05s03.html#svn-ch-5-sect-3.5"/>.41 </para>42 </note> -->43 23 44 24 <bridgehead renderas="sect3">Subversion Server Dependencies</bridgehead> … … 112 92 <title>2. Create a Subversion repository.</title> 113 93 114 <para>With subversion-1.1.0 and greater, a new type of repository 115 data-store is available, FSFS. There is a tradeoff for speed with 116 the new backend, however, the repository can now be placed on a 117 network mount, and any corruption does not require an admin to 118 recover the repository. For more information and comparison between 119 FSFS and BDB, see <ulink 120 url="http://svnbook.red-bean.com/svnbook-1.1/ch05.html#svn-ch-5-sect-1.2.A"/>. 94 <para> 95 There are several ways to set up a subversion repository. It is 96 recommended to have a look at the <ulink 97 url="http://svnbook.red-bean.com/nightly/en/svn.reposadmin.html">SVN 98 Book</ulink> corresponding chapter. A basic repository can be set up 99 with the instructions below. 121 100 </para> 122 101 … … 126 105 <screen role="root"><userinput>install -v -m 0755 -d /srv/svn && 127 106 install -v -m 0755 -o svn -g svn -d /srv/svn/repositories && 128 svnadmin create --fs-type fsfs/srv/svn/repositories/svntest</userinput></screen>107 svnadmin create /srv/svn/repositories/svntest</userinput></screen> 129 108 130 109 <para>Now that the repository is created, it should be populated with 131 withsomething useful. You'll need to have a predefined directory110 something useful. You'll need to have a predefined directory 132 111 layout set up exactly as you want your repository to look. For 133 112 example, here is a sample BLFS layout setup with a root of … … 226 205 <sect3 id="svnserver-init"> 227 206 <title>4. Starting the Server</title> 228 <!--229 <para>There are a couple of ways to start <command>svnserve</command>.230 The most common way is to start it as an <command>inetd</command> or231 <command>xinetd</command> process. Alternately, you can use a232 bootscript to start the service at startup.</para>233 234 <note>235 <para>If you do not wish to provide anonymous access to your svn236 repositories or use <command>svnserve</command>'s built-in237 authentication, you do not need to run238 <command>svnserve</command>.</para>239 </note>240 241 <para>If you use <command>inetd</command>, add a line to242 <filename>/etc/inetd.conf</filename> using the following243 commands:</para>244 245 <indexterm zone="svnserver svnserver-init">246 <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>247 </indexterm>248 249 <screen role="root"><userinput>cat >> /etc/inetd.conf << "EOF"250 <literal>svn stream tcp nowait svn /usr/bin/svnserve svnserve -i</literal>251 EOF</userinput></screen>252 253 <para>If you use <command>xinetd</command>, the following command will254 create the <application>Subversion</application> server file as255 <filename>/etc/xinetd.d/svn</filename>:</para>256 257 <indexterm zone="svnserver svnserver-init ">258 <primary sortas="e-etc-xinetd.d-svn">/etc/xinetd.d/svn</primary>259 </indexterm>260 261 <screen role="root"><userinput>cat >> /etc/xinetd.d/svn << "EOF"262 <literal># Begin /etc/xinetd.d/svn263 264 service svn265 {266 port = 3690267 socket_type = stream268 protocol = tcp269 wait = no270 user = svn271 server = /usr/bin/svnserve272 server_args = -i -r /srv/svn/repositories273 }274 275 # End /etc/xinetd.d/svn</literal>276 EOF</userinput></screen> -->277 207 278 208 <para>
Note:
See TracChangeset
for help on using the changeset viewer.