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">
|
---|
9 | <!ENTITY cpio-size "448 KB">
|
---|
10 | <!ENTITY cpio-buildsize "5.4 MB">
|
---|
11 | <!ENTITY cpio-time "0.12 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="cpio" xreflabel="cpio-&cpio-version;">
|
---|
15 | <sect1info>
|
---|
16 | <othername>$LastChangedBy$</othername>
|
---|
17 | <date>$Date$</date>
|
---|
18 | </sect1info>
|
---|
19 | <?dbhtml filename="cpio.html"?>
|
---|
20 | <title>cpio-&cpio-version;</title>
|
---|
21 |
|
---|
22 | <sect2>
|
---|
23 | <title>Introduction to <application>cpio</application></title>
|
---|
24 |
|
---|
25 | <para>The <application>cpio</application> package contains
|
---|
26 | tools for archiving.</para>
|
---|
27 |
|
---|
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>
|
---|
35 | <listitem><para>Estimated disk space required:
|
---|
36 | &cpio-buildsize;</para></listitem>
|
---|
37 | <listitem><para>Estimated build time:
|
---|
38 | &cpio-time;</para></listitem></itemizedlist>
|
---|
39 | </sect3>
|
---|
40 |
|
---|
41 | </sect2>
|
---|
42 |
|
---|
43 | <sect2>
|
---|
44 | <title>Installation of <application>cpio</application></title>
|
---|
45 |
|
---|
46 | <para>Install <application>cpio</application> by running the following commands:
|
---|
47 | </para>
|
---|
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 &&
|
---|
53 | make &&
|
---|
54 | make install</command></userinput></screen>
|
---|
55 |
|
---|
56 | </sect2>
|
---|
57 |
|
---|
58 | <sect2>
|
---|
59 | <title>Command explanations</title>
|
---|
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
|
---|
70 | <acronym>FHS</acronym> guidelines.</para>
|
---|
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 |
|
---|
79 | </sect2>
|
---|
80 |
|
---|
81 | <sect2>
|
---|
82 | <title>Contents</title>
|
---|
83 |
|
---|
84 | <para>The <application>cpio</application> package contains
|
---|
85 | <command>cpio</command> and <command>mt</command>.</para>
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 | <sect2><title>Description</title>
|
---|
90 |
|
---|
91 | <sect3><title>cpio</title>
|
---|
92 | <para><command>cpio</command> copies files to and from archives.</para></sect3>
|
---|
93 |
|
---|
94 | <sect3><title>mt</title>
|
---|
95 | <para><command>mt</command> controls magnetic tape drive
|
---|
96 | operations.</para></sect3>
|
---|
97 |
|
---|
98 | </sect2>
|
---|
99 |
|
---|
100 | </sect1>
|
---|
101 |
|
---|