[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[35f3cb4] | 7 | <!ENTITY cpio-download-http "http://ftp.gnu.org/pub/gnu/cpio/cpio-&cpio-version;.tar.gz">
|
---|
[a2ae800] | 8 | <!ENTITY cpio-download-ftp "ftp://ftp.gnu.org/pub/gnu/cpio/cpio-&cpio-version;.tar.gz">
|
---|
| 9 | <!ENTITY cpio-md5sum "76b4145f33df088a5bade3bf4373d17d">
|
---|
| 10 | <!ENTITY cpio-size "561 KB">
|
---|
| 11 | <!ENTITY cpio-buildsize "5.3 MB">
|
---|
| 12 | <!ENTITY cpio-time "0.1 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[1df9017f] | 15 | <sect1 id="cpio" xreflabel="cpio-&cpio-version;">
|
---|
[35f3cb4] | 16 | <?dbhtml filename="cpio.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[a2ae800] | 23 | <title>cpio-&cpio-version;</title>
|
---|
[35f3cb4] | 24 |
|
---|
| 25 | <indexterm zone="cpio">
|
---|
| 26 | <primary sortas="a-Cpio">Cpio</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
[4e82a189] | 29 | <sect2 role="package">
|
---|
[a2ae800] | 30 | <title>Introduction to cpio</title>
|
---|
[35f3cb4] | 31 |
|
---|
| 32 | <para>The <application>cpio</application> package contains
|
---|
| 33 | tools for archiving.</para>
|
---|
| 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>Download (HTTP): <ulink url="&cpio-download-http;"/></para>
|
---|
| 39 | </listitem>
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (FTP): <ulink url="&cpio-download-ftp;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download MD5 sum: &cpio-md5sum;</para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download size: &cpio-size;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Estimated disk space required: &cpio-buildsize;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated build time: &cpio-time;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | </itemizedlist>
|
---|
| 56 |
|
---|
[82941804] | 57 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 58 | <itemizedlist spacing="compact">
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Required Patch: <ulink
|
---|
[dbacbd80] | 61 | url="&patch-root;/cpio-&cpio-version;-security_fixes-1.patch"/></para>
|
---|
[82941804] | 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
| 64 |
|
---|
[1039de3] | 65 | <para condition="html" role="usernotes">User Notes:
|
---|
| 66 | <ulink url="&blfs-wiki;/cpio"/></para>
|
---|
| 67 |
|
---|
[35f3cb4] | 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2 role="installation">
|
---|
[a2ae800] | 71 | <title>Installation of cpio</title>
|
---|
[35f3cb4] | 72 |
|
---|
[4e82a189] | 73 | <para>Install <application>cpio</application> by running the following
|
---|
[35f3cb4] | 74 | commands:</para>
|
---|
| 75 |
|
---|
[a2ae800] | 76 | <screen><userinput>sed -i "s/invalid_arg/argmatch_invalid/" src/mt.c &&
|
---|
[82941804] | 77 | patch -Np1 -i ../cpio-&cpio-version;-security_fixes-1.patch &&
|
---|
[0882c90] | 78 | ./configure CPIO_MT_PROG=mt --prefix=/usr \
|
---|
| 79 | --bindir=/bin --libexecdir=/tmp \
|
---|
| 80 | --with-rmt=/usr/sbin/rmt &&
|
---|
[49625cbc] | 81 | echo "#define HAVE_SETLOCALE 1" >> config.h &&
|
---|
[cc7e9e2] | 82 | echo "#define HAVE_LSTAT 1" >> config.h &&
|
---|
[35f3cb4] | 83 | make</userinput></screen>
|
---|
[6587e936] | 84 |
|
---|
[f2cae5f] | 85 | <para>If you have <xref linkend="tetex"/> installed and wish to create
|
---|
| 86 | alternate forms of the documentation, issue the any or all of the following
|
---|
| 87 | commands:</para>
|
---|
| 88 |
|
---|
| 89 | <screen><userinput>make -C doc pdf &&
|
---|
| 90 | make -C doc ps &&
|
---|
| 91 | texi2html -o doc/cpio.html doc/cpio.texi &&
|
---|
| 92 | makeinfo --plaintext -o doc/cpio.txt doc/cpio.texi</userinput></screen>
|
---|
| 93 |
|
---|
[bccbdaea] | 94 | <para>To test the results, issue:</para>
|
---|
[a2ae800] | 95 |
|
---|
| 96 | <screen><userinput>sed -i 's/static const char/const char/' tests/genfile.c &&
|
---|
[b56f868b] | 97 | make check</userinput></screen>
|
---|
[bccbdaea] | 98 |
|
---|
[35f3cb4] | 99 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[6587e936] | 100 |
|
---|
[35f3cb4] | 101 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[0882c90] | 102 |
|
---|
[f2cae5f] | 103 | <para>If you built any of the alternate forms of documentation, install it
|
---|
| 104 | by issuing the following commands as the
|
---|
| 105 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 106 |
|
---|
| 107 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/cpio-&cpio-version; &&
|
---|
| 108 | install -v -m644 doc/cpio.{pdf,ps,dvi,html,txt} \
|
---|
| 109 | /usr/share/doc/cpio-&cpio-version;</userinput></screen>
|
---|
| 110 |
|
---|
[35f3cb4] | 111 | </sect2>
|
---|
[52d29f7] | 112 |
|
---|
[35f3cb4] | 113 | <sect2 role="commands">
|
---|
| 114 | <title>Command Explanations</title>
|
---|
[0882c90] | 115 |
|
---|
[a2ae800] | 116 | <para><command>sed -i "s/invalid_arg/argmatch_invalid/"
|
---|
[5ee44e37] | 117 | src/mt.c</command>: This command fixes a build problem with the
|
---|
| 118 | <command>mt</command> program.</para>
|
---|
[bccbdaea] | 119 |
|
---|
[4e82a189] | 120 | <para><parameter>CPIO_MT_PROG=mt</parameter>: This parameter forces the
|
---|
[35f3cb4] | 121 | building and installation of the <command>mt</command> program.</para>
|
---|
[0882c90] | 122 |
|
---|
[4e82a189] | 123 | <para><parameter>--bindir=/bin</parameter>: This parameter installs
|
---|
[5ee44e37] | 124 | <command>cpio</command> to <filename class="directory">/bin</filename>
|
---|
| 125 | instead of <filename class="directory">/usr/bin</filename> as recommended
|
---|
| 126 | by the FHS guidelines.</para>
|
---|
[0882c90] | 127 |
|
---|
[4e82a189] | 128 | <para><parameter>--libexecdir=/tmp</parameter>: This parameter is used so
|
---|
[5ee44e37] | 129 | that <filename class='directory'>/usr/libexec</filename> is not
|
---|
| 130 | created.</para>
|
---|
[0882c90] | 131 |
|
---|
[5ee44e37] | 132 | <para><parameter>--with-rmt=/usr/sbin/rmt</parameter>: This parameter
|
---|
| 133 | inhibits building the <command>rmt</command> program as it is already
|
---|
| 134 | installed by the <application>Tar</application> package in LFS.</para>
|
---|
[0882c90] | 135 |
|
---|
[5ee44e37] | 136 | <para><command>echo "#define HAVE_SETLOCALE 1" >> config.h</command>: This
|
---|
| 137 | command specifies that the system <application>Libc</application>
|
---|
| 138 | implements the setlocale function since it is not detected by
|
---|
| 139 | <command>configure</command>.</para>
|
---|
[bccbdaea] | 140 |
|
---|
[5ee44e37] | 141 | <para><command>echo "#define HAVE_LSTAT 1" >> config.h</command>: This
|
---|
| 142 | define fixes a bug that causes <command>cpio</command> to convert symlinks
|
---|
| 143 | into regular files during archive creation.</para>
|
---|
[bccbdaea] | 144 |
|
---|
[a2ae800] | 145 | <para><command>sed -i 's/static const ...</command>: This command fixes
|
---|
| 146 | a build problem when compiling the tests with GCC-&gcc-version;.</para>
|
---|
[49625cbc] | 147 |
|
---|
[35f3cb4] | 148 | </sect2>
|
---|
[52d29f7] | 149 |
|
---|
[35f3cb4] | 150 | <sect2 role="content">
|
---|
| 151 | <title>Contents</title>
|
---|
[0882c90] | 152 |
|
---|
[35f3cb4] | 153 | <segmentedlist>
|
---|
| 154 | <segtitle>Installed Programs</segtitle>
|
---|
| 155 | <segtitle>Installed Libraries</segtitle>
|
---|
| 156 | <segtitle>Installed Directories</segtitle>
|
---|
[6587e936] | 157 |
|
---|
[35f3cb4] | 158 | <seglistitem>
|
---|
| 159 | <seg>cpio and mt</seg>
|
---|
| 160 | <seg>None</seg>
|
---|
| 161 | <seg>None</seg>
|
---|
| 162 | </seglistitem>
|
---|
| 163 | </segmentedlist>
|
---|
[6587e936] | 164 |
|
---|
[35f3cb4] | 165 | <variablelist>
|
---|
| 166 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 167 | <?dbfo list-presentation="list"?>
|
---|
| 168 | <?dbhtml list-presentation="table"?>
|
---|
[6587e936] | 169 |
|
---|
[35f3cb4] | 170 | <varlistentry id="cpio-prog">
|
---|
| 171 | <term><command>cpio</command></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>copies files to and from archives.</para>
|
---|
| 174 | <indexterm zone="cpio cpio-prog">
|
---|
| 175 | <primary sortas="b-cpio">cpio</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
[6587e936] | 179 |
|
---|
[35f3cb4] | 180 | <varlistentry id="mt">
|
---|
| 181 | <term><command>mt</command></term>
|
---|
| 182 | <listitem>
|
---|
| 183 | <para>controls magnetic tape drive operations.</para>
|
---|
| 184 | <indexterm zone="cpio mt">
|
---|
| 185 | <primary sortas="b-mt">mt</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
[0882c90] | 189 |
|
---|
[35f3cb4] | 190 | </variablelist>
|
---|
| 191 |
|
---|
| 192 | </sect2>
|
---|
[1df9017f] | 193 |
|
---|
| 194 | </sect1>
|
---|