2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
<!ENTITY cpio-download-http "http://ftp.gnu.org/pub/gnu/cpio/cpio-&cpio-version;.tar.gz">
|
|
|
|
<!ENTITY cpio-download-ftp "ftp://ftp.gnu.org/pub/gnu/cpio/cpio-&cpio-version;.tar.gz">
|
|
|
|
<!ENTITY cpio-md5sum "76b4145f33df088a5bade3bf4373d17d">
|
|
|
|
<!ENTITY cpio-size "561 KB">
|
|
|
|
<!ENTITY cpio-buildsize "5.3 MB">
|
2005-08-01 06:34:32 +08:00
|
|
|
<!ENTITY cpio-time "0.1 SBU">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2002-08-17 05:36:14 +08:00
|
|
|
<sect1 id="cpio" xreflabel="cpio-&cpio-version;">
|
2005-05-07 03:25:14 +08:00
|
|
|
<?dbhtml filename="cpio.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Cpio-&cpio-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="cpio">
|
|
|
|
<primary sortas="a-Cpio">Cpio</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
2005-05-22 19:27:41 +08:00
|
|
|
<sect2 role="package">
|
2005-05-07 03:25:14 +08:00
|
|
|
<title>Introduction to Cpio</title>
|
|
|
|
|
|
|
|
<para>The <application>cpio</application> package contains
|
|
|
|
tools for archiving.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&cpio-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&cpio-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &cpio-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &cpio-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &cpio-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &cpio-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2005-08-01 06:34:32 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Required Patch: <ulink
|
2005-08-01 22:13:05 +08:00
|
|
|
url="&patch-root;/cpio-&cpio-version;-security_fixes-1.patch"/></para>
|
2005-08-01 06:34:32 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Cpio</title>
|
|
|
|
|
2005-05-22 19:27:41 +08:00
|
|
|
<para>Install <application>cpio</application> by running the following
|
2005-05-07 03:25:14 +08:00
|
|
|
commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput>sed -i -e "s/invalid_arg/argmatch_invalid/" src/mt.c &&
|
2005-08-01 06:34:32 +08:00
|
|
|
patch -Np1 -i ../cpio-&cpio-version;-security_fixes-1.patch &&
|
2004-12-22 01:25:57 +08:00
|
|
|
./configure CPIO_MT_PROG=mt --prefix=/usr \
|
|
|
|
--bindir=/bin --libexecdir=/tmp \
|
|
|
|
--with-rmt=/usr/sbin/rmt &&
|
2005-06-13 02:06:48 +08:00
|
|
|
echo "#define HAVE_SETLOCALE 1" >> config.h &&
|
2005-07-26 13:31:15 +08:00
|
|
|
echo "#define HAVE_LSTAT 1" >> config.h &&
|
2005-05-07 03:25:14 +08:00
|
|
|
make</userinput></screen>
|
2005-03-28 12:32:09 +08:00
|
|
|
|
2005-06-13 02:06:48 +08:00
|
|
|
<para>To test the results, issue: <command>make check</command>.</para>
|
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
2005-03-28 12:32:09 +08:00
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2004-12-22 01:25:57 +08:00
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
</sect2>
|
2004-06-13 06:56:28 +08:00
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
2004-12-22 01:25:57 +08:00
|
|
|
|
2005-08-01 10:05:14 +08:00
|
|
|
<para><command>sed -i -e "s/invalid_arg/argmatch_invalid/"
|
|
|
|
src/mt.c</command>: This command fixes a build problem with the
|
|
|
|
<command>mt</command> program.</para>
|
2004-12-22 01:25:57 +08:00
|
|
|
|
2005-05-22 19:27:41 +08:00
|
|
|
<para><parameter>CPIO_MT_PROG=mt</parameter>: This parameter forces the
|
2005-05-07 03:25:14 +08:00
|
|
|
building and installation of the <command>mt</command> program.</para>
|
2004-12-22 01:25:57 +08:00
|
|
|
|
2005-05-22 19:27:41 +08:00
|
|
|
<para><parameter>--bindir=/bin</parameter>: This parameter installs
|
2005-08-01 10:05:14 +08:00
|
|
|
<command>cpio</command> to <filename class="directory">/bin</filename>
|
|
|
|
instead of <filename class="directory">/usr/bin</filename> as recommended
|
|
|
|
by the FHS guidelines.</para>
|
2004-12-22 01:25:57 +08:00
|
|
|
|
2005-05-22 19:27:41 +08:00
|
|
|
<para><parameter>--libexecdir=/tmp</parameter>: This parameter is used so
|
2005-08-01 10:05:14 +08:00
|
|
|
that <filename class='directory'>/usr/libexec</filename> is not
|
|
|
|
created.</para>
|
2004-12-22 01:25:57 +08:00
|
|
|
|
2005-08-01 10:05:14 +08:00
|
|
|
<para><parameter>--with-rmt=/usr/sbin/rmt</parameter>: This parameter
|
|
|
|
inhibits building the <command>rmt</command> program as it is already
|
|
|
|
installed by the <application>Tar</application> package in LFS.</para>
|
2004-12-22 01:25:57 +08:00
|
|
|
|
2005-08-01 10:05:14 +08:00
|
|
|
<para><command>echo "#define HAVE_SETLOCALE 1" >> config.h</command>: This
|
|
|
|
command specifies that the system <application>Libc</application>
|
|
|
|
implements the setlocale function since it is not detected by
|
|
|
|
<command>configure</command>.</para>
|
2005-06-13 02:06:48 +08:00
|
|
|
|
2005-08-01 10:05:14 +08:00
|
|
|
<para><command>echo "#define HAVE_LSTAT 1" >> config.h</command>: This
|
|
|
|
define fixes a bug that causes <command>cpio</command> to convert symlinks
|
|
|
|
into regular files during archive creation.</para>
|
2005-06-13 02:06:48 +08:00
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
</sect2>
|
2004-06-13 06:56:28 +08:00
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
2004-12-22 01:25:57 +08:00
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
2005-03-28 12:32:09 +08:00
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
<seglistitem>
|
|
|
|
<seg>cpio and mt</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2005-03-28 12:32:09 +08:00
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-03-28 12:32:09 +08:00
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
<varlistentry id="cpio-prog">
|
|
|
|
<term><command>cpio</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>copies files to and from archives.</para>
|
|
|
|
<indexterm zone="cpio cpio-prog">
|
|
|
|
<primary sortas="b-cpio">cpio</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-03-28 12:32:09 +08:00
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
<varlistentry id="mt">
|
|
|
|
<term><command>mt</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>controls magnetic tape drive operations.</para>
|
|
|
|
<indexterm zone="cpio mt">
|
|
|
|
<primary sortas="b-mt">mt</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-12-22 01:25:57 +08:00
|
|
|
|
2005-05-07 03:25:14 +08:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-08-17 05:36:14 +08:00
|
|
|
|
|
|
|
</sect1>
|