|
Lines 1753-1758
Link Here
|
| 1753 |
cvs-crypto</programlisting> |
1753 |
cvs-crypto</programlisting> |
| 1754 |
</listitem> |
1754 |
</listitem> |
| 1755 |
</itemizedlist> |
1755 |
</itemizedlist> |
|
|
1756 |
<sect3> |
| 1757 |
<title>The refuse file</title> |
| 1758 |
|
| 1759 |
<para>As mentioned above, <application>CVSup</application> uses |
| 1760 |
a <emphasis>pull method</emphasis>. Basically, this means that |
| 1761 |
you connect to the <application>CVSup</application> server, and |
| 1762 |
it says, <quote>Here's what you can download from |
| 1763 |
me...</quote>, and your client responds <quote>OK, I'll take |
| 1764 |
this, this, this, and this.</quote> In the default |
| 1765 |
configuration, the <application>CVSup</application> client will |
| 1766 |
take every file associated with the collection and tag you |
| 1767 |
chose in the configuration file. However, this is not always |
| 1768 |
what you want, especially if you are synching the doc, ports, or |
| 1769 |
www trees — most people can't read four or five |
| 1770 |
languages, and therefore they don't need to download the |
| 1771 |
language-specific files. If you are |
| 1772 |
<application>CVSup</application>ing the ports collection, you |
| 1773 |
can get around this by specifying each collection individually |
| 1774 |
(eg <emphasis>ports-astrology</emphasis>, |
| 1775 |
<emphasis>ports-biology</emphasis>, etc instead of simply |
| 1776 |
saying <emphasis>ports-all</emphasis>). However, since the doc |
| 1777 |
and www trees do not have language-specific collections, you |
| 1778 |
must use one of <application>CVSup</application>'s many nify |
| 1779 |
features; the <emphasis>refuse file</emphasis>.</para> |
| 1780 |
|
| 1781 |
<para>The <emphasis>refuse file</emphasis> essentially tells |
| 1782 |
<application>CVSup</application> that it should not take every |
| 1783 |
single file from a collection; in other words, it tells the |
| 1784 |
client to <emphasis>refuse</emphasis> certain files from the |
| 1785 |
server. The refuse file can be found (or, if you do not yet |
| 1786 |
have one, should be placed) in |
| 1787 |
<filename><replaceable>base</replaceable>/sup/refuse</filename>. |
| 1788 |
<replaceable>base</replaceable> is defined in your supfile; by |
| 1789 |
default, <replaceable>base</replaceable> is |
| 1790 |
<filename>/usr/sup</filename>, which means that by default the |
| 1791 |
refuse file is in <filename>/usr/sup/refuse</filename>.</para> |
| 1792 |
|
| 1793 |
<para>The refuse file has a very simple format; it simply |
| 1794 |
contains the names of files or directories that you do not wish |
| 1795 |
to to download. For example, since I cannot speak any languages |
| 1796 |
except for English and some German, and I do not feel the need |
| 1797 |
to use German applications, I have the following in my |
| 1798 |
<emphasis>refuse file</emphasis>:</para> |
| 1799 |
|
| 1800 |
<screen> |
| 1801 |
ports/chinese |
| 1802 |
ports/german |
| 1803 |
ports/japanese |
| 1804 |
ports/korean |
| 1805 |
ports/russian |
| 1806 |
ports/vietnamese |
| 1807 |
doc/es_ES.ISO_8859-1 |
| 1808 |
doc/ja_JP.eucJP</screen> |
| 1809 |
|
| 1810 |
<para>and so forth for the other languages. Note that the name |
| 1811 |
of the repository is the first <quote>directory</quote> in the |
| 1812 |
<emphasis>refuse file</emphasis>.</para> |
| 1813 |
|
| 1814 |
<para>With this very useful feature, those users who are on |
| 1815 |
slow links or pay by the minute for their Internet connection |
| 1816 |
will be able to save valuable time as they will no longer need |
| 1817 |
to download files that they will never use. For more |
| 1818 |
information on <emphasis>refuse files</emphasis> and other neat |
| 1819 |
features of <application>CVSup</application>, please view its |
| 1820 |
manpage.</para> |
| 1821 |
</sect3> |
| 1756 |
</sect2> |
1822 |
</sect2> |
| 1757 |
|
1823 |
|
| 1758 |
<sect2> |
1824 |
<sect2> |