[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY cpio-download-http "http://ftp.gnu.org/pub/gnu/cpio/cpio-&cpio-version;.tar.gz">
|
---|
| 8 | <!ENTITY cpio-download-ftp "ftp://ftp.gnu.org/pub/gnu/cpio/cpio-&cpio-version;.tar.gz">
|
---|
[0882c90] | 9 | <!ENTITY cpio-size "448 KB">
|
---|
| 10 | <!ENTITY cpio-buildsize "5.4 MB">
|
---|
| 11 | <!ENTITY cpio-time "0.12 SBU">
|
---|
[52d29f7] | 12 | ]>
|
---|
| 13 |
|
---|
[1df9017f] | 14 | <sect1 id="cpio" xreflabel="cpio-&cpio-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[7f72cbf] | 19 | <?dbhtml filename="cpio.html"?>
|
---|
[1df9017f] | 20 | <title>cpio-&cpio-version;</title>
|
---|
| 21 |
|
---|
[52d29f7] | 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application>cpio</application></title>
|
---|
[0882c90] | 24 |
|
---|
[52d29f7] | 25 | <para>The <application>cpio</application> package contains
|
---|
| 26 | tools for archiving.</para>
|
---|
[0882c90] | 27 |
|
---|
[52d29f7] | 28 | <sect3><title>Package information</title>
|
---|
| 29 | <itemizedlist spacing='compact'>
|
---|
| 30 | <listitem><para>Download (HTTP): <ulink
|
---|
| 31 | url="&cpio-download-http;"/></para></listitem>
|
---|
| 32 | <listitem><para>Download (FTP): <ulink
|
---|
| 33 | url="&cpio-download-ftp;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download size: &cpio-size;</para></listitem>
|
---|
[0882c90] | 35 | <listitem><para>Estimated disk space required:
|
---|
[52d29f7] | 36 | &cpio-buildsize;</para></listitem>
|
---|
| 37 | <listitem><para>Estimated build time:
|
---|
| 38 | &cpio-time;</para></listitem></itemizedlist>
|
---|
| 39 | </sect3>
|
---|
[0882c90] | 40 |
|
---|
[52d29f7] | 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | <sect2>
|
---|
| 44 | <title>Installation of <application>cpio</application></title>
|
---|
[0882c90] | 45 |
|
---|
[52d29f7] | 46 | <para>Install <application>cpio</application> by running the following commands:
|
---|
| 47 | </para>
|
---|
[0882c90] | 48 |
|
---|
| 49 | <screen><userinput><command>sed -i -e "s/invalid_arg/argmatch_invalid/" src/mt.c &&
|
---|
| 50 | ./configure CPIO_MT_PROG=mt --prefix=/usr \
|
---|
| 51 | --bindir=/bin --libexecdir=/tmp \
|
---|
| 52 | --with-rmt=/usr/sbin/rmt &&
|
---|
[52d29f7] | 53 | make &&
|
---|
[0882c90] | 54 | make install</command></userinput></screen>
|
---|
| 55 |
|
---|
[52d29f7] | 56 | </sect2>
|
---|
| 57 |
|
---|
| 58 | <sect2>
|
---|
| 59 | <title>Command explanations</title>
|
---|
[0882c90] | 60 |
|
---|
| 61 | <para><command>sed -i -e "s/invalid_arg/argmatch_invalid/" src/mt.c</command>:
|
---|
| 62 | This command fixes a build problem in the <command>mt</command> program.</para>
|
---|
| 63 |
|
---|
| 64 | <para><parameter>CPIO_MT_PROG=mt</parameter>: This parameter forces the
|
---|
| 65 | building and installation of the <command>mt</command> program.</para>
|
---|
| 66 |
|
---|
| 67 | <para><parameter>--bindir=/bin</parameter>: This parameter installs
|
---|
| 68 | <command>cpio</command> to <filename class="directory">/bin</filename> instead
|
---|
| 69 | of <filename class="directory">/usr/bin</filename> as per
|
---|
[52d29f7] | 70 | <acronym>FHS</acronym> guidelines.</para>
|
---|
[0882c90] | 71 |
|
---|
| 72 | <para><parameter>--libexecdir=/tmp</parameter>: This parameter is used so
|
---|
| 73 | that <filename class='directory'>/usr/libexec</filename> is not created.</para>
|
---|
| 74 |
|
---|
| 75 | <para><parameter>--with-rmt=/usr/sbin/rmt</parameter>: This parameter inhibits
|
---|
| 76 | building the <command>rmt</command> program as it is already installed by the
|
---|
| 77 | <application>tar</application> package in <acronym>LFS</acronym>.</para>
|
---|
| 78 |
|
---|
[52d29f7] | 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2>
|
---|
| 82 | <title>Contents</title>
|
---|
[0882c90] | 83 |
|
---|
| 84 | <para>The <application>cpio</application> package contains
|
---|
| 85 | <command>cpio</command> and <command>mt</command>.</para>
|
---|
| 86 |
|
---|
[52d29f7] | 87 | </sect2>
|
---|
[0882c90] | 88 |
|
---|
[52d29f7] | 89 | <sect2><title>Description</title>
|
---|
[0882c90] | 90 |
|
---|
[52d29f7] | 91 | <sect3><title>cpio</title>
|
---|
[0882c90] | 92 | <para><command>cpio</command> copies files to and from archives.</para></sect3>
|
---|
| 93 |
|
---|
[52d29f7] | 94 | <sect3><title>mt</title>
|
---|
[0882c90] | 95 | <para><command>mt</command> controls magnetic tape drive
|
---|
| 96 | operations.</para></sect3>
|
---|
| 97 |
|
---|
[52d29f7] | 98 | </sect2>
|
---|
[1df9017f] | 99 |
|
---|
| 100 | </sect1>
|
---|
| 101 |
|
---|