[d47e7ea9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[d47e7ea9] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[5d678ec] | 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">
|
---|
[a3146e1] | 9 | <!ENTITY cvs-md5sum "0213ea514e231559d6ff8f80a34117f0">
|
---|
[07a1a61] | 10 | <!ENTITY cvs-size "2.9 MB">
|
---|
| 11 | <!ENTITY cvs-buildsize "32.3 MB">
|
---|
[5d678ec] | 12 | <!ENTITY cvs-time "0.3 SBU (additional ~20 SBU to run the test suite)">
|
---|
[d47e7ea9] | 13 | ]>
|
---|
| 14 |
|
---|
[9635613] | 15 | <sect1 id="cvs" xreflabel="CVS-&cvs-version;">
|
---|
[b3497e4] | 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>
|
---|
[bab92281] | 24 |
|
---|
[b3497e4] | 25 | <indexterm zone="cvs">
|
---|
| 26 | <primary sortas="a-CVS">CVS</primary>
|
---|
| 27 | </indexterm>
|
---|
[bab92281] | 28 |
|
---|
[b3497e4] | 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to CVS</title>
|
---|
| 31 |
|
---|
[919683dc] | 32 | <para><application>CVS</application> is the Concurrent Versions System.
|
---|
[f9461f8] | 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>
|
---|
[bab92281] | 37 |
|
---|
[aed3e6ec] | 38 | &lfs77_checked;
|
---|
[4a962e9d] | 39 |
|
---|
[b3497e4] | 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>
|
---|
[dc6715a] | 58 | <para>Estimated build time: &cvs-time;</para>
|
---|
| 59 | </listitem>
|
---|
[b3497e4] | 60 | </itemizedlist>
|
---|
[bab92281] | 61 |
|
---|
[b3497e4] | 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>
|
---|
[bab92281] | 69 |
|
---|
[b3497e4] | 70 | <bridgehead renderas="sect3">CVS Dependencies</bridgehead>
|
---|
[bab92281] | 71 |
|
---|
[b3497e4] | 72 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[7bff1b2] | 73 | <para role="optional"><!-- <xref linkend="gdbm"/>, -->
|
---|
[17e6d48] | 74 | <xref linkend="tcsh"/>,
|
---|
[07a1a61] | 75 | <xref linkend="openssh"/>,
|
---|
[31d6e38] | 76 | <ulink url="ftp://ftp.pdc.kth.se/pub/krb/src/">krb4</ulink>,
|
---|
[7fdeb26] | 77 | <xref linkend="mitkrb"/>
|
---|
[b136a6d] | 78 | (for the GSSAPI libraries),
|
---|
[aa8ef3bc] | 79 | <xref linkend="gs"/><!-- or <xref linkend="espgs"/> -->, and
|
---|
[7f5c97e] | 80 | an <xref linkend="server-mail"/> (that provides a
|
---|
[5d678ec] | 81 | <command>sendmail</command> command)</para>
|
---|
[b3497e4] | 82 |
|
---|
[07a1a61] | 83 | <para><application>CVS</application> will invoke a default text editor to
|
---|
| 84 | create a commit message if the <parameter>-m "Commit message"</parameter>
|
---|
[104733c] | 85 | parameter was not used when changes are committed to a repository.
|
---|
[07a1a61] | 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>
|
---|
[1066772] | 105 | <para><xref linkend="re-alpine"/> (for Pico)</para>
|
---|
[07a1a61] | 106 | </listitem>
|
---|
| 107 | </itemizedlist>
|
---|
| 108 |
|
---|
| 109 |
|
---|
[061ec9d] | 110 | <para condition="html" role="usernotes">User Notes:
|
---|
| 111 | <ulink url="&blfs-wiki;/cvs"/></para>
|
---|
| 112 |
|
---|
[b3497e4] | 113 | </sect2>
|
---|
| 114 |
|
---|
| 115 | <sect2 role="installation">
|
---|
| 116 | <title>Installation of CVS</title>
|
---|
| 117 |
|
---|
[f9461f8] | 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>
|
---|
[b3497e4] | 124 |
|
---|
| 125 | <screen><userinput>patch -Np1 -i ../cvs-&cvs-version;-zlib-1.patch</userinput></screen>
|
---|
| 126 |
|
---|
[8f29aa2] | 127 | <para>Now fix some conflicts with newer libraries and programs:</para>
|
---|
[cc4dfdf] | 128 |
|
---|
[f82ac3f] | 129 | <screen><userinput>sed -i -e 's/getline /get_line /' lib/getline.{c,h} &&
|
---|
[a55a187] | 130 | sed -i -e 's/^@sp$/& 1/' doc/cvs.texinfo &&
|
---|
| 131 | touch doc/*.pdf</userinput></screen>
|
---|
[cc4dfdf] | 132 |
|
---|
[339fbfb9] | 133 | <para>Install <application>CVS</application> by running
|
---|
[b3497e4] | 134 | the following commands:</para>
|
---|
| 135 |
|
---|
[a55a187] | 136 | <screen><userinput>./configure --prefix=/usr --docdir=/usr/share/doc/cvs-&cvs-version; &&
|
---|
[b136a6d] | 137 | make</userinput></screen>
|
---|
| 138 |
|
---|
[a55a187] | 139 | <para>If you wish to create HTML or text docs from the
|
---|
[f1e103a] | 140 | documentation source files, issue the following command:</para>
|
---|
[07a1a61] | 141 |
|
---|
[cc4dfdf] | 142 | <screen><userinput>make -C doc html txt</userinput></screen>
|
---|
[f9461f8] | 143 |
|
---|
[5d678ec] | 144 | <para>To test the results, issue: <command>make check</command>. This will
|
---|
[07a1a61] | 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>
|
---|
[b136a6d] | 156 |
|
---|
| 157 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 158 |
|
---|
| 159 | <screen role='root'><userinput>make install &&
|
---|
[a55a187] | 160 | make -C doc install-pdf &&
|
---|
| 161 | install -v -m644 FAQ README /usr/share/doc/cvs-&cvs-version;</userinput></screen>
|
---|
[f9461f8] | 162 |
|
---|
| 163 | <para>If you created any additional documentation, install it by issuing
|
---|
[07a1a61] | 164 | the following commands as the
|
---|
[f9461f8] | 165 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 166 |
|
---|
[2c7ec575] | 167 | <screen role='root'><userinput>install -v -m644 doc/*.txt /usr/share/doc/cvs-&cvs-version; &&
|
---|
[cc4dfdf] | 168 | install -v -m755 -d /usr/share/doc/cvs-&cvs-version;/html/cvs{,client} &&
|
---|
[07a1a61] | 169 | install -v -m644 doc/cvs.html/* \
|
---|
[cc4dfdf] | 170 | /usr/share/doc/cvs-&cvs-version;/html/cvs &&
|
---|
[07a1a61] | 171 | install -v -m644 doc/cvsclient.html/* \
|
---|
[cc4dfdf] | 172 | /usr/share/doc/cvs-&cvs-version;/html/cvsclient</userinput></screen>
|
---|
[b3497e4] | 173 |
|
---|
| 174 | </sect2>
|
---|
| 175 |
|
---|
| 176 | <sect2 role="configuration">
|
---|
| 177 | <title>Configuring CVS</title>
|
---|
[bab92281] | 178 |
|
---|
[b3497e4] | 179 | <sect3 id="cvs-config">
|
---|
| 180 | <title>Config Files</title>
|
---|
[bab92281] | 181 |
|
---|
[b3497e4] | 182 | <para><filename>~/.cvsrc</filename>, <filename>~/.cvswrappers</filename>,
|
---|
| 183 | and <filename>~/.cvspass</filename>.</para>
|
---|
[bab92281] | 184 |
|
---|
[b3497e4] | 185 | <indexterm zone="cvs cvs-config">
|
---|
| 186 | <primary sortas="e-AA.cvsrc">~/.cvsrc</primary>
|
---|
| 187 | </indexterm>
|
---|
[bab92281] | 188 |
|
---|
[b3497e4] | 189 | <indexterm zone="cvs cvs-config">
|
---|
| 190 | <primary sortas="e-AA.cvswrappers">~/.cvswrappers</primary>
|
---|
| 191 | </indexterm>
|
---|
[bab92281] | 192 |
|
---|
[b3497e4] | 193 | <indexterm zone="cvs cvs-config">
|
---|
| 194 | <primary sortas="e-AA.cvspass">~/.cvspass</primary>
|
---|
| 195 | </indexterm>
|
---|
[bab92281] | 196 |
|
---|
[b3497e4] | 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.
|
---|
[339fbfb9] | 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>
|
---|
[b3497e4] | 209 |
|
---|
[17e6d48] | 210 | <para><filename>~/.cvswrappers</filename> specifies wrappers to be used in
|
---|
[bab92281] | 211 | addition to those specified in the <filename>CVSROOT/cvswrappers</filename>
|
---|
[b3497e4] | 212 | file in the repository.</para>
|
---|
[bab92281] | 213 |
|
---|
[07a1a61] | 214 | <para><filename>~/.cvspass</filename> contains passwords used to complete
|
---|
[b3497e4] | 215 | logins to servers.</para>
|
---|
[bab92281] | 216 |
|
---|
[b3497e4] | 217 | </sect3>
|
---|
| 218 |
|
---|
| 219 | </sect2>
|
---|
| 220 |
|
---|
| 221 | <sect2 role="content">
|
---|
| 222 | <title>Contents</title>
|
---|
[bab92281] | 223 |
|
---|
[b3497e4] | 224 | <segmentedlist>
|
---|
| 225 | <segtitle>Installed Programs</segtitle>
|
---|
| 226 | <segtitle>Installed Libraries</segtitle>
|
---|
| 227 | <segtitle>Installed Directories</segtitle>
|
---|
[bab92281] | 228 |
|
---|
[b3497e4] | 229 | <seglistitem>
|
---|
| 230 | <seg>cvs, cvsbug, and rcs2log</seg>
|
---|
| 231 | <seg>None</seg>
|
---|
[b136a6d] | 232 | <seg>/usr/share/cvs and /usr/share/doc/cvs-&cvs-version;</seg>
|
---|
[b3497e4] | 233 | </seglistitem>
|
---|
| 234 | </segmentedlist>
|
---|
[bab92281] | 235 |
|
---|
[b3497e4] | 236 | <variablelist>
|
---|
| 237 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 238 | <?dbfo list-presentation="list"?>
|
---|
| 239 | <?dbhtml list-presentation="table"?>
|
---|
[bab92281] | 240 |
|
---|
[b3497e4] | 241 | <varlistentry id="cvs-prog">
|
---|
| 242 | <term><command>cvs</command></term>
|
---|
| 243 | <listitem>
|
---|
[919683dc] | 244 | <para>is the main program file for the concurrent versions system.</para>
|
---|
[b3497e4] | 245 | <indexterm zone="cvs cvs-prog">
|
---|
| 246 | <primary sortas="b-cvs">cvs</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
[bab92281] | 250 |
|
---|
[b3497e4] | 251 | <varlistentry id="cvsbug">
|
---|
| 252 | <term><command>cvsbug</command></term>
|
---|
| 253 | <listitem>
|
---|
[bab92281] | 254 | <para>is used to send problem reports about <application>CVS</application>
|
---|
[b3497e4] | 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>
|
---|
[bab92281] | 261 |
|
---|
[b3497e4] | 262 | <varlistentry id="rcs2log">
|
---|
| 263 | <term><command>rcs2log</command></term>
|
---|
| 264 | <listitem>
|
---|
[17e6d48] | 265 | <para>is a symlink to the contributed RCS to Change Log
|
---|
[b136a6d] | 266 | generator.</para>
|
---|
[b3497e4] | 267 | <indexterm zone="cvs rcs2log">
|
---|
| 268 | <primary sortas="b-rcs2log">rcs2log</primary>
|
---|
| 269 | </indexterm>
|
---|
| 270 | </listitem>
|
---|
| 271 | </varlistentry>
|
---|
| 272 | </variablelist>
|
---|
[bab92281] | 273 |
|
---|
[b3497e4] | 274 | </sect2>
|
---|
[bab92281] | 275 |
|
---|
[f45b1953] | 276 | </sect1>
|
---|