1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY subversion-download-http "http://archive.apache.org/dist/subversion/subversion-&subversion-version;.tar.bz2">
|
---|
8 | <!ENTITY subversion-download-ftp " ">
|
---|
9 | <!ENTITY subversion-md5sum "8a4fa74385df85a9702141b6b68b8307">
|
---|
10 | <!ENTITY subversion-size "5.7 MB">
|
---|
11 |
|
---|
12 | <!ENTITY subversion-buildsize "153 MB (additional 119 MB to install all bindings and 750 MB to run all test suites)">
|
---|
13 | <!ENTITY subversion-time "1.6 SBU (add 2.7 SBU for bindings and 7.1 SBU to run test suites)">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="subversion" xreflabel="Subversion-&subversion-version;">
|
---|
17 | <?dbhtml filename="subversion.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>Subversion-&subversion-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="subversion">
|
---|
27 | <primary sortas="a-Subversion">Subversion</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to Subversion</title>
|
---|
32 |
|
---|
33 | <para><application>Subversion</application> is a version control
|
---|
34 | system that is designed to be a compelling replacement for
|
---|
35 | <application>CVS</application> in the open source community. It
|
---|
36 | extends and enhances <application>CVS</application>' feature set,
|
---|
37 | while maintaining a similar interface for those already familiar with
|
---|
38 | <application>CVS</application>. These instructions install the client
|
---|
39 | and server software used to manipulate a
|
---|
40 | <application>Subversion</application> repository. Creation of a repository
|
---|
41 | is covered at <xref linkend="svnserver"/>.</para>
|
---|
42 |
|
---|
43 | &lfs70_checked;
|
---|
44 |
|
---|
45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
46 | <itemizedlist spacing="compact">
|
---|
47 | <listitem>
|
---|
48 | <para>Download (HTTP): <ulink url="&subversion-download-http;"/></para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download (FTP): <ulink url="&subversion-download-ftp;"/></para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Download MD5 sum: &subversion-md5sum;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Download size: &subversion-size;</para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>Estimated disk space required: &subversion-buildsize;</para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>Estimated build time: &subversion-time;</para>
|
---|
64 | </listitem>
|
---|
65 | </itemizedlist>
|
---|
66 |
|
---|
67 | <bridgehead renderas="sect3">Subversion Dependencies</bridgehead>
|
---|
68 |
|
---|
69 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
70 | <para role="required"><xref linkend="sqlite"/>, and
|
---|
71 | <xref linkend="apache"/> (for the
|
---|
72 | <application>APR</application> only) or
|
---|
73 | <ulink url="http://apr.apache.org/">Apache Portable Runtime</ulink></para>
|
---|
74 |
|
---|
75 | <para>If you require the <application>Berkeley DB</application> back-end
|
---|
76 | hooks in <application>Subversion</application> to build or support BDB
|
---|
77 | based repositories, you must have <application>Berkeley DB</application>
|
---|
78 | linked into the <application>APR-util</application> library. There is
|
---|
79 | information in the <xref linkend="apache"/> instructions that shows the
|
---|
80 | required parameters to pass to the <command>configure</command> script when
|
---|
81 | building any of the <application>APR-util</application> packages.</para>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
84 | <para role="optional"><xref linkend="python2"/> (required to run the test suite),
|
---|
85 | <xref linkend="db"/>,
|
---|
86 | <xref linkend="sqlite"/>,
|
---|
87 | <xref linkend="cyrus-sasl"/>,
|
---|
88 | <xref linkend="openssl"/>,
|
---|
89 | <xref linkend="dbus-glib"/>,
|
---|
90 | <xref linkend="gnome-keyring"/>,
|
---|
91 | KWallet from KDE4,
|
---|
92 | <xref linkend="apache"/> (if you have <application>Apache Portable
|
---|
93 | Runtime</application> installed), and
|
---|
94 | <xref linkend="neon"/> or
|
---|
95 | <ulink url="http://code.google.com/p/serf/">serf</ulink></para>
|
---|
96 |
|
---|
97 | <bridgehead renderas="sect4">Optional to Build the Java Bindings</bridgehead>
|
---|
98 | <para role="optional">One of <xref linkend="icedtea6"/>,
|
---|
99 | <xref linkend="jdk"/>,
|
---|
100 | <ulink url="http://www.inet.no/dante/">Dante</ulink>, or
|
---|
101 | <ulink url="http://oss.software.ibm.com/developerworks/opensource/jikes/">Jikes</ulink>,
|
---|
102 | and <xref linkend="junit"/> (to test the Java bindings)</para>
|
---|
103 |
|
---|
104 | <bridgehead renderas="sect4">Optional to Build the SWIG Bindings</bridgehead>
|
---|
105 | <para role="optional"><ulink url="http://www.swig.org">SWIG</ulink>**,
|
---|
106 | <xref linkend="python2"/>, and
|
---|
107 | <xref linkend="ruby"/></para>
|
---|
108 |
|
---|
109 | <para condition="html" role="usernotes">User Notes:
|
---|
110 | <ulink url="&blfs-wiki;/subversion"/></para>
|
---|
111 |
|
---|
112 | </sect2>
|
---|
113 |
|
---|
114 | <sect2 role="installation">
|
---|
115 | <title>Installation of Subversion</title>
|
---|
116 |
|
---|
117 | <para>Install <application>Subversion</application> by running the
|
---|
118 | following commands:</para>
|
---|
119 |
|
---|
120 | <screen><userinput>./configure --prefix=/usr &&
|
---|
121 | make</userinput></screen>
|
---|
122 |
|
---|
123 | <para>If you have <xref linkend="doxygen"/> installed and you wish to
|
---|
124 | build the API documentation, issue:
|
---|
125 | <command>doxygen doc/doxygen.conf</command>.</para>
|
---|
126 |
|
---|
127 | <para>If you passed the <option>--enable-javahl</option> parameter to
|
---|
128 | <command>configure</command> and wish to build the Java bindings, issue
|
---|
129 | the following command:</para>
|
---|
130 |
|
---|
131 | <screen><userinput>make javahl</userinput></screen>
|
---|
132 |
|
---|
133 | <para>If you have the necessary dependencies installed and you wish to
|
---|
134 | build the <application>Perl</application>,
|
---|
135 | <application>Python</application> and/or
|
---|
136 | <application>Ruby</application> bindings, issue any or all of the following
|
---|
137 | commands:</para>
|
---|
138 |
|
---|
139 | <screen><userinput>make swig-pl &&
|
---|
140 | make swig-py &&
|
---|
141 | make swig-rb</userinput></screen>
|
---|
142 |
|
---|
143 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
144 |
|
---|
145 | <para>To test the results of the Java bindings build, issue
|
---|
146 | <command>make check-javahl</command>. Note you must have the
|
---|
147 | <application>JUnit</application> testing framework installed.</para>
|
---|
148 |
|
---|
149 | <para>To test the results of any or all of the
|
---|
150 | <application>SWIG</application> bindings, you can use the following
|
---|
151 | commands:</para>
|
---|
152 |
|
---|
153 | <screen><userinput>make check-swig-pl &&
|
---|
154 | make check-swig-py &&
|
---|
155 | make check-swig-rb</userinput></screen>
|
---|
156 |
|
---|
157 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
158 |
|
---|
159 | <screen role='root'><userinput>make install &&
|
---|
160 | install -v -m755 -d /usr/share/doc/subversion-&subversion-version; &&
|
---|
161 | cp -v -R doc/* \
|
---|
162 | /usr/share/doc/subversion-&subversion-version;</userinput></screen>
|
---|
163 |
|
---|
164 | <para>If you built the Java bindings, issue the following command
|
---|
165 | as the <systemitem class="username">root</systemitem> user to install
|
---|
166 | them:</para>
|
---|
167 |
|
---|
168 | <screen role='root'><userinput>make install-javahl</userinput></screen>
|
---|
169 |
|
---|
170 | <para>If you built any of the <application>SWIG</application> bindings,
|
---|
171 | issue any or all of the following commands as the
|
---|
172 | <systemitem class="username">root</systemitem> user to install them:</para>
|
---|
173 |
|
---|
174 | <screen role='root'><userinput>make install-swig-pl &&
|
---|
175 | make install-swig-py &&
|
---|
176 | make install-swig-rb</userinput></screen>
|
---|
177 |
|
---|
178 | <para>In order for <application>Python</application> to automatically
|
---|
179 | discover the bindings, add
|
---|
180 | <filename class='directory'>/usr/lib/svn-python</filename> to the
|
---|
181 | <envar>PYTHONPATH</envar> environment variable to the system or
|
---|
182 | personal profiles.</para>
|
---|
183 |
|
---|
184 | </sect2>
|
---|
185 |
|
---|
186 | <sect2 role="commands">
|
---|
187 | <title>Command Explanations</title>
|
---|
188 |
|
---|
189 | <para><option>--with-apr=<replaceable><prefix></replaceable>
|
---|
190 | --with-apr-util=<replaceable><prefix></replaceable></option>:
|
---|
191 | These options should be used if you wish to use the system-installed
|
---|
192 | version of the <application>APR</application>. Ensure you identify the
|
---|
193 | correct installation prefix.</para>
|
---|
194 |
|
---|
195 | <para><option>--with-apxs=/usr/sbin/apxs</option>: This option should be
|
---|
196 | used to identify the system-installed version of the
|
---|
197 | <command>apxs</command> command installed during the
|
---|
198 | <application>Apache HTTPD</application> installation as
|
---|
199 | <command>apxs</command> might not be in an unprivileged user's
|
---|
200 | <envar>PATH</envar> and won't be properly discovered.</para>
|
---|
201 |
|
---|
202 | </sect2>
|
---|
203 |
|
---|
204 | <sect2 role="configuration">
|
---|
205 | <title>Configuring Subversion</title>
|
---|
206 |
|
---|
207 | <sect3 id="subversion-config">
|
---|
208 | <title>Config Files</title>
|
---|
209 |
|
---|
210 | <para><filename>~/.subversion/config</filename> and
|
---|
211 | <filename>/etc/subversion/config</filename></para>
|
---|
212 |
|
---|
213 | <indexterm zone="subversion subversion-config">
|
---|
214 | <primary sortas="e-AA.subversion/config">~/.subversion/config</primary>
|
---|
215 | </indexterm>
|
---|
216 |
|
---|
217 | <indexterm zone="subversion subversion-config">
|
---|
218 | <primary sortas="e-etc-subversion-config">/etc/subversion/config</primary>
|
---|
219 | </indexterm>
|
---|
220 |
|
---|
221 | </sect3>
|
---|
222 |
|
---|
223 | <sect3>
|
---|
224 | <title>Configuration Information</title>
|
---|
225 |
|
---|
226 | <para><filename>/etc/subversion/config</filename> is the
|
---|
227 | <application>Subversion</application> system-wide configuration file.
|
---|
228 | This file is used to specify defaults for different
|
---|
229 | <command>svn</command> commands.</para>
|
---|
230 |
|
---|
231 | <para><filename>~/.subversion/config</filename> is the user's personal
|
---|
232 | configuration file. It is used to override the system-wide defaults
|
---|
233 | set in <filename>/etc/subversion/config</filename>.</para>
|
---|
234 |
|
---|
235 | </sect3>
|
---|
236 |
|
---|
237 | </sect2>
|
---|
238 |
|
---|
239 | <sect2 role="content">
|
---|
240 | <title>Contents</title>
|
---|
241 |
|
---|
242 | <segmentedlist>
|
---|
243 | <segtitle>Installed Programs</segtitle>
|
---|
244 | <segtitle>Installed Libraries</segtitle>
|
---|
245 | <segtitle>Installed Directories</segtitle>
|
---|
246 |
|
---|
247 | <seglistitem>
|
---|
248 | <seg>svn, svnadmin, svndumpfilter, svnlook, svnserve, svnsync and
|
---|
249 | svnversion</seg>
|
---|
250 | <seg>libsvn*.{so,a} and optionally, a Java library, the mod_dav_svn.so,
|
---|
251 | and mod_authz_svn.so <application>Apache HTTP</application>
|
---|
252 | DSO modules and various <application>Perl</application>,
|
---|
253 | <application>Python</application> and <application>Ruby</application>
|
---|
254 | modules</seg>
|
---|
255 | <seg>/usr/include/subversion-1,
|
---|
256 | /usr/lib/perl5/site_perl/&lfs-perl-version;/i686-linux/auto/SVN (optional),
|
---|
257 | /usr/lib/perl5/site_perl/&lfs-perl-version;/i686-linux/SVN (optional),
|
---|
258 | /usr/lib/ruby/site_ruby/x.x/i686-linux/svn (optional),
|
---|
259 | /usr/lib/svn-javahl (optional),
|
---|
260 | /usr/lib/svn-python (optional) and
|
---|
261 | /usr/share/doc/subversion-&subversion-version;</seg>
|
---|
262 | </seglistitem>
|
---|
263 | </segmentedlist>
|
---|
264 |
|
---|
265 | <variablelist>
|
---|
266 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
267 | <?dbfo list-presentation="list"?>
|
---|
268 | <?dbhtml list-presentation="table"?>
|
---|
269 |
|
---|
270 | <varlistentry id="svn">
|
---|
271 | <term><command>svn</command></term>
|
---|
272 | <listitem>
|
---|
273 | <para>is a command-line client program used to access
|
---|
274 | <application>Subversion</application> repositories.</para>
|
---|
275 | <indexterm zone="subversion svn">
|
---|
276 | <primary sortas="b-svn">svn</primary>
|
---|
277 | </indexterm>
|
---|
278 | </listitem>
|
---|
279 | </varlistentry>
|
---|
280 |
|
---|
281 | <varlistentry id="svnadmin">
|
---|
282 | <term><command>svnadmin</command></term>
|
---|
283 | <listitem>
|
---|
284 | <para>is a tool for creating, tweaking or repairing a
|
---|
285 | <application>Subversion</application> repository.</para>
|
---|
286 | <indexterm zone="subversion svnadmin">
|
---|
287 | <primary sortas="b-svnadmin">svnadmin</primary>
|
---|
288 | </indexterm>
|
---|
289 | </listitem>
|
---|
290 | </varlistentry>
|
---|
291 |
|
---|
292 | <varlistentry id="svndumpfilter">
|
---|
293 | <term><command>svndumpfilter</command></term>
|
---|
294 | <listitem>
|
---|
295 | <para>is a program for filtering <application>Subversion</application>
|
---|
296 | repository dumpfile format streams.</para>
|
---|
297 | <indexterm zone="subversion svndumpfilter">
|
---|
298 | <primary sortas="b-svndumpfilter">svndumpfilter</primary>
|
---|
299 | </indexterm>
|
---|
300 | </listitem>
|
---|
301 | </varlistentry>
|
---|
302 |
|
---|
303 | <varlistentry id="svnlook">
|
---|
304 | <term><command>svnlook</command></term>
|
---|
305 | <listitem>
|
---|
306 | <para>is a tool for inspecting a
|
---|
307 | <application>Subversion</application> repository.</para>
|
---|
308 | <indexterm zone="subversion svnlook">
|
---|
309 | <primary sortas="b-svnlook">svnlook</primary>
|
---|
310 | </indexterm>
|
---|
311 | </listitem>
|
---|
312 | </varlistentry>
|
---|
313 |
|
---|
314 | <varlistentry id="svnserve">
|
---|
315 | <term><command>svnserve</command></term>
|
---|
316 | <listitem>
|
---|
317 | <para>is a custom standalone server program, able to run as a
|
---|
318 | daemon process or invoked by SSH.</para>
|
---|
319 | <indexterm zone="subversion svnserve">
|
---|
320 | <primary sortas="b-svnserve">svnserve</primary>
|
---|
321 | </indexterm>
|
---|
322 | </listitem>
|
---|
323 | </varlistentry>
|
---|
324 |
|
---|
325 | <varlistentry id="svnversion">
|
---|
326 | <term><command>svnversion</command></term>
|
---|
327 | <listitem>
|
---|
328 | <para>is used to report the version number and state of a
|
---|
329 | working <application>Subversion</application> repository copy.</para>
|
---|
330 | <indexterm zone="subversion svnversion">
|
---|
331 | <primary sortas="b-svnversion">svnversion</primary>
|
---|
332 | </indexterm>
|
---|
333 | </listitem>
|
---|
334 | </varlistentry>
|
---|
335 |
|
---|
336 | <varlistentry id="neon-config-svn">
|
---|
337 | <term><command>neon-config</command></term>
|
---|
338 | <listitem>
|
---|
339 | <para>is a script which provides information about an installed
|
---|
340 | copy of the <application>neon</application> library.</para>
|
---|
341 | <indexterm zone="subversion neon-config">
|
---|
342 | <primary sortas="b-neon-config">neon-config</primary>
|
---|
343 | </indexterm>
|
---|
344 | </listitem>
|
---|
345 | </varlistentry>
|
---|
346 |
|
---|
347 | <varlistentry id="libsvn_star">
|
---|
348 | <term><filename class='libraryfile'>libsvn_*.{so,a}</filename></term>
|
---|
349 | <listitem>
|
---|
350 | <para>are the support libraries used by the
|
---|
351 | <application>Subversion</application> programs.</para>
|
---|
352 | <indexterm zone="subversion libsvn_star">
|
---|
353 | <primary sortas="c-libsvn_star">libsvn_*.{so,a}</primary>
|
---|
354 | </indexterm>
|
---|
355 | </listitem>
|
---|
356 | </varlistentry>
|
---|
357 |
|
---|
358 | <varlistentry id="libneon-svn">
|
---|
359 | <term><filename class='libraryfile'>libneon.{so,a}</filename></term>
|
---|
360 | <listitem>
|
---|
361 | <para>is used as a high-level interface to common
|
---|
362 | HTTP and WebDAV methods.</para>
|
---|
363 | <indexterm zone="subversion libneon">
|
---|
364 | <primary sortas="c-libneon">libneon.{so,a}</primary>
|
---|
365 | </indexterm>
|
---|
366 | </listitem>
|
---|
367 | </varlistentry>
|
---|
368 |
|
---|
369 | <varlistentry id="mod_authz_svn">
|
---|
370 | <term><filename class='libraryfile'>mod_authz_svn.so</filename></term>
|
---|
371 | <listitem>
|
---|
372 | <para>is a plug-in module for the <application>Apache</application>
|
---|
373 | HTTP server, used to authenticate users to a
|
---|
374 | <application>Subversion</application> repository over the Internet or an
|
---|
375 | intranet.</para>
|
---|
376 | <indexterm zone="subversion mod_authz_svn">
|
---|
377 | <primary sortas="c-mod_authz_svn">mod_authz_svn.so</primary>
|
---|
378 | </indexterm>
|
---|
379 | </listitem>
|
---|
380 | </varlistentry>
|
---|
381 |
|
---|
382 | <varlistentry id="mod_dav_svn">
|
---|
383 | <term><filename class='libraryfile'>mod_dav_svn.so</filename></term>
|
---|
384 | <listitem>
|
---|
385 | <para>is a plug-in module for the <application>Apache</application>
|
---|
386 | HTTP server, used to make a
|
---|
387 | <application>Subversion</application> repository available to others over the
|
---|
388 | Internet or an intranet.</para>
|
---|
389 | <indexterm zone="subversion mod_dav_svn">
|
---|
390 | <primary sortas="c-mod_authz_svn">mod_dav_svn.so</primary>
|
---|
391 | </indexterm>
|
---|
392 | </listitem>
|
---|
393 | </varlistentry>
|
---|
394 |
|
---|
395 | </variablelist>
|
---|
396 |
|
---|
397 | </sect2>
|
---|
398 |
|
---|
399 | </sect1>
|
---|