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 cvs-download-http "http://ftp.gnu.org/non-gnu/cvs/source/stable/&cvs-version;/cvs-&cvs-version;.tar.bz2">
|
---|
8 | <!ENTITY cvs-download-ftp "ftp://ftp.gnu.org/non-gnu/cvs/source/stable/&cvs-version;/cvs-&cvs-version;.tar.bz2">
|
---|
9 | <!ENTITY cvs-md5sum "0213ea514e231559d6ff8f80a34117f0">
|
---|
10 | <!ENTITY cvs-size "2.9 MB">
|
---|
11 | <!ENTITY cvs-buildsize "32.3 MB">
|
---|
12 | <!ENTITY cvs-time "0.3 SBU (additional ~20 SBU to run the test suite)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="cvs" xreflabel="CVS-&cvs-version;">
|
---|
16 | <?dbhtml filename="cvs.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>CVS-&cvs-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="cvs">
|
---|
26 | <primary sortas="a-CVS">CVS</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to CVS</title>
|
---|
31 |
|
---|
32 | <para><application>CVS</application> is the Concurrent Versions System.
|
---|
33 | This is a version control system useful for projects using a central
|
---|
34 | repository to hold files and then track all changes made to those files.
|
---|
35 | These instructions install the client used to manipulate the repository,
|
---|
36 | creation of a repository is covered at <xref linkend="cvsserver"/>.</para>
|
---|
37 |
|
---|
38 | &lfs75_checked;
|
---|
39 |
|
---|
40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
41 | <itemizedlist spacing="compact">
|
---|
42 | <listitem>
|
---|
43 | <para>Download (HTTP): <ulink url="&cvs-download-http;"/></para>
|
---|
44 | </listitem>
|
---|
45 | <listitem>
|
---|
46 | <para>Download (FTP): <ulink url="&cvs-download-ftp;"/></para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>Download MD5 sum: &cvs-md5sum;</para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download size: &cvs-size;</para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Estimated disk space required: &cvs-buildsize;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Estimated build time: &cvs-time;</para>
|
---|
59 | </listitem>
|
---|
60 | </itemizedlist>
|
---|
61 |
|
---|
62 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
63 | <itemizedlist spacing='compact'>
|
---|
64 | <listitem>
|
---|
65 | <para>Recommended patch: <ulink
|
---|
66 | url="&patch-root;/cvs-&cvs-version;-zlib-1.patch"/></para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect3">CVS Dependencies</bridgehead>
|
---|
71 |
|
---|
72 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
73 | <para role="optional"><!-- <xref linkend="gdbm"/>, -->
|
---|
74 | <xref linkend="tcsh"/>,
|
---|
75 | <xref linkend="openssh"/>,
|
---|
76 | <ulink url="ftp://ftp.pdc.kth.se/pub/krb/src/">krb4</ulink>,
|
---|
77 | <xref linkend="mitkrb"/>
|
---|
78 | (for the GSSAPI libraries),
|
---|
79 | <xref linkend="gs"/><!-- or <xref linkend="espgs"/> -->, and
|
---|
80 | an <xref linkend="server-mail"/> (that provides a
|
---|
81 | <command>sendmail</command> command)</para>
|
---|
82 |
|
---|
83 | <para><application>CVS</application> will invoke a default text editor to
|
---|
84 | create a commit message if the <parameter>-m "Commit message"</parameter>
|
---|
85 | parameter was not used when changes are committed to a repository.
|
---|
86 | <application>CVS</application> looks for the following text editors, in the
|
---|
87 | order shown below, during configuration to determine the default. This
|
---|
88 | default can always be overridden by the <envar>CVSEDITOR</envar> or
|
---|
89 | <envar>EDITOR</envar> environment variables and can be specified directly
|
---|
90 | by passing the <option>--with-editor=<replaceable><desired text
|
---|
91 | editor></replaceable></option> parameter to the
|
---|
92 | <command>configure</command> script.</para>
|
---|
93 |
|
---|
94 | <itemizedlist spacing='compact'>
|
---|
95 | <listitem>
|
---|
96 | <para><xref linkend="vim"/></para>
|
---|
97 | </listitem>
|
---|
98 | <listitem>
|
---|
99 | <para><xref linkend="emacs"/></para>
|
---|
100 | </listitem>
|
---|
101 | <listitem>
|
---|
102 | <para><xref linkend="nano"/></para>
|
---|
103 | </listitem>
|
---|
104 | <listitem>
|
---|
105 | <para><xref linkend="re-alpine"/> (for Pico)</para>
|
---|
106 | </listitem>
|
---|
107 | </itemizedlist>
|
---|
108 |
|
---|
109 |
|
---|
110 | <para condition="html" role="usernotes">User Notes:
|
---|
111 | <ulink url="&blfs-wiki;/cvs"/></para>
|
---|
112 |
|
---|
113 | </sect2>
|
---|
114 |
|
---|
115 | <sect2 role="installation">
|
---|
116 | <title>Installation of CVS</title>
|
---|
117 |
|
---|
118 | <para>By default <application>CVS</application> is statically linked
|
---|
119 | against the <application>Zlib</application> library included in its source
|
---|
120 | tree. This makes it exposed to possible security vulnerabilities in that
|
---|
121 | library. If you want to modify <application>CVS</application> to use the
|
---|
122 | system shared <application>Zlib</application> library, apply the following
|
---|
123 | patch:</para>
|
---|
124 |
|
---|
125 | <screen><userinput>patch -Np1 -i ../cvs-&cvs-version;-zlib-1.patch</userinput></screen>
|
---|
126 |
|
---|
127 | <para>Now fix some conflicts with newer libraries and programs:</para>
|
---|
128 |
|
---|
129 | <screen><userinput>sed -i -e 's/getline /get_line /' lib/getline.{c,h} &&
|
---|
130 | sed -i -e 's/^@sp$/& 1/' doc/cvs.texinfo &&
|
---|
131 | touch doc/*.pdf</userinput></screen>
|
---|
132 |
|
---|
133 | <para>Install <application>CVS</application> by running
|
---|
134 | the following commands:</para>
|
---|
135 |
|
---|
136 | <screen><userinput>./configure --prefix=/usr --docdir=/usr/share/doc/cvs-&cvs-version; &&
|
---|
137 | make</userinput></screen>
|
---|
138 |
|
---|
139 | <para>If you wish to create HTML or text docs from the
|
---|
140 | documentation source files, issue the following command:</para>
|
---|
141 |
|
---|
142 | <screen><userinput>make -C doc html txt</userinput></screen>
|
---|
143 |
|
---|
144 | <para>To test the results, issue: <command>make check</command>. This will
|
---|
145 | take quite a while. If you don't have <command>rsh</command> configured for
|
---|
146 | access to the host you are building on (or you didn't pass the
|
---|
147 | <option>--with-rsh=</option> parameter to the <command>configure</command>
|
---|
148 | script, some tests may fail. If you passed the
|
---|
149 | <option>--with-rsh=ssh</option> parameter to enable <command>ssh</command>
|
---|
150 | as the default remote shell program, you'll need to issue the following
|
---|
151 | command so that the tests will complete without any failures:</para>
|
---|
152 |
|
---|
153 | <screen><userinput>sed -e 's/rsh};/ssh};/' \
|
---|
154 | -e 's/g=rw,o=r$/g=r,o=r/' \
|
---|
155 | -i src/sanity.sh</userinput></screen>
|
---|
156 |
|
---|
157 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
158 |
|
---|
159 | <screen role='root'><userinput>make install &&
|
---|
160 | make -C doc install-pdf &&
|
---|
161 | install -v -m644 FAQ README /usr/share/doc/cvs-&cvs-version;</userinput></screen>
|
---|
162 |
|
---|
163 | <para>If you created any additional documentation, install it by issuing
|
---|
164 | the following commands as the
|
---|
165 | <systemitem class="username">root</systemitem> user:</para>
|
---|
166 |
|
---|
167 | <screen role='root'><userinput>install -v -m644 doc/*.txt /usr/share/doc/cvs-&cvs-version; &&
|
---|
168 | install -v -m755 -d /usr/share/doc/cvs-&cvs-version;/html/cvs{,client} &&
|
---|
169 | install -v -m644 doc/cvs.html/* \
|
---|
170 | /usr/share/doc/cvs-&cvs-version;/html/cvs &&
|
---|
171 | install -v -m644 doc/cvsclient.html/* \
|
---|
172 | /usr/share/doc/cvs-&cvs-version;/html/cvsclient</userinput></screen>
|
---|
173 |
|
---|
174 | </sect2>
|
---|
175 |
|
---|
176 | <sect2 role="configuration">
|
---|
177 | <title>Configuring CVS</title>
|
---|
178 |
|
---|
179 | <sect3 id="cvs-config">
|
---|
180 | <title>Config Files</title>
|
---|
181 |
|
---|
182 | <para><filename>~/.cvsrc</filename>, <filename>~/.cvswrappers</filename>,
|
---|
183 | and <filename>~/.cvspass</filename>.</para>
|
---|
184 |
|
---|
185 | <indexterm zone="cvs cvs-config">
|
---|
186 | <primary sortas="e-AA.cvsrc">~/.cvsrc</primary>
|
---|
187 | </indexterm>
|
---|
188 |
|
---|
189 | <indexterm zone="cvs cvs-config">
|
---|
190 | <primary sortas="e-AA.cvswrappers">~/.cvswrappers</primary>
|
---|
191 | </indexterm>
|
---|
192 |
|
---|
193 | <indexterm zone="cvs cvs-config">
|
---|
194 | <primary sortas="e-AA.cvspass">~/.cvspass</primary>
|
---|
195 | </indexterm>
|
---|
196 |
|
---|
197 | </sect3>
|
---|
198 |
|
---|
199 | <sect3>
|
---|
200 | <title>Configuration Information</title>
|
---|
201 |
|
---|
202 | <para><filename>~/.cvsrc</filename> is the main
|
---|
203 | <application>CVS</application> configuration file.
|
---|
204 | This file is used by users to specify defaults for different
|
---|
205 | <command>cvs</command> commands. For example, to make all
|
---|
206 | <command>cvs diff</command> commands run with <option>-u</option>, a user
|
---|
207 | would add <option>diff -u</option> to their <filename>.cvsrc</filename>
|
---|
208 | file.</para>
|
---|
209 |
|
---|
210 | <para><filename>~/.cvswrappers</filename> specifies wrappers to be used in
|
---|
211 | addition to those specified in the <filename>CVSROOT/cvswrappers</filename>
|
---|
212 | file in the repository.</para>
|
---|
213 |
|
---|
214 | <para><filename>~/.cvspass</filename> contains passwords used to complete
|
---|
215 | logins to servers.</para>
|
---|
216 |
|
---|
217 | </sect3>
|
---|
218 |
|
---|
219 | </sect2>
|
---|
220 |
|
---|
221 | <sect2 role="content">
|
---|
222 | <title>Contents</title>
|
---|
223 |
|
---|
224 | <segmentedlist>
|
---|
225 | <segtitle>Installed Programs</segtitle>
|
---|
226 | <segtitle>Installed Libraries</segtitle>
|
---|
227 | <segtitle>Installed Directories</segtitle>
|
---|
228 |
|
---|
229 | <seglistitem>
|
---|
230 | <seg>cvs, cvsbug, and rcs2log</seg>
|
---|
231 | <seg>None</seg>
|
---|
232 | <seg>/usr/share/cvs and /usr/share/doc/cvs-&cvs-version;</seg>
|
---|
233 | </seglistitem>
|
---|
234 | </segmentedlist>
|
---|
235 |
|
---|
236 | <variablelist>
|
---|
237 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
238 | <?dbfo list-presentation="list"?>
|
---|
239 | <?dbhtml list-presentation="table"?>
|
---|
240 |
|
---|
241 | <varlistentry id="cvs-prog">
|
---|
242 | <term><command>cvs</command></term>
|
---|
243 | <listitem>
|
---|
244 | <para>is the main program file for the concurrent versions system.</para>
|
---|
245 | <indexterm zone="cvs cvs-prog">
|
---|
246 | <primary sortas="b-cvs">cvs</primary>
|
---|
247 | </indexterm>
|
---|
248 | </listitem>
|
---|
249 | </varlistentry>
|
---|
250 |
|
---|
251 | <varlistentry id="cvsbug">
|
---|
252 | <term><command>cvsbug</command></term>
|
---|
253 | <listitem>
|
---|
254 | <para>is used to send problem reports about <application>CVS</application>
|
---|
255 | to a central support site.</para>
|
---|
256 | <indexterm zone="cvs cvsbug">
|
---|
257 | <primary sortas="b-cvsbug">cvsbug</primary>
|
---|
258 | </indexterm>
|
---|
259 | </listitem>
|
---|
260 | </varlistentry>
|
---|
261 |
|
---|
262 | <varlistentry id="rcs2log">
|
---|
263 | <term><command>rcs2log</command></term>
|
---|
264 | <listitem>
|
---|
265 | <para>is a symlink to the contributed RCS to Change Log
|
---|
266 | generator.</para>
|
---|
267 | <indexterm zone="cvs rcs2log">
|
---|
268 | <primary sortas="b-rcs2log">rcs2log</primary>
|
---|
269 | </indexterm>
|
---|
270 | </listitem>
|
---|
271 | </varlistentry>
|
---|
272 | </variablelist>
|
---|
273 |
|
---|
274 | </sect2>
|
---|
275 |
|
---|
276 | </sect1>
|
---|