source: general/sysutils/cpio.xml@ 8aeb474

10.0 10.1 11.0 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 8aeb474 was 8aeb474, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

General cleanup. Mostly removing obsolete comments.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10680 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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.bz2">
8 <!ENTITY cpio-download-ftp "ftp://ftp.gnu.org/pub/gnu/cpio/cpio-&cpio-version;.tar.bz2">
9 <!ENTITY cpio-md5sum "20fc912915c629e809f80b96b2e75d7d">
10 <!ENTITY cpio-size "1 MB">
11 <!ENTITY cpio-buildsize "13 MB">
12 <!ENTITY cpio-time "0.3 SBU">
13]>
14
15<sect1 id="cpio" xreflabel="cpio-&cpio-version;">
16 <?dbhtml filename="cpio.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>cpio-&cpio-version;</title>
24
25 <indexterm zone="cpio">
26 <primary sortas="a-Cpio">Cpio</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to cpio</title>
31
32 <para>The <application>cpio</application> package contains
33 tools for archiving.</para>
34
35 &lfs72_checked;
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>Download (HTTP): <ulink url="&cpio-download-http;"/></para>
41 </listitem>
42 <listitem>
43 <para>Download (FTP): <ulink url="&cpio-download-ftp;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download MD5 sum: &cpio-md5sum;</para>
47 </listitem>
48 <listitem>
49 <para>Download size: &cpio-size;</para>
50 </listitem>
51 <listitem>
52 <para>Estimated disk space required: &cpio-buildsize;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated build time: &cpio-time;</para>
56 </listitem>
57 </itemizedlist>
58
59 <para condition="html" role="usernotes">User Notes:
60 <ulink url="&blfs-wiki;/cpio"/></para>
61
62 </sect2>
63
64 <sect2 role="installation">
65 <title>Installation of cpio</title>
66
67 <para>Install <application>cpio</application> by running the following
68 commands:</para>
69
70<screen><userinput>sed -i -e '/gets is a/d' gnu/stdio.in.h &amp;&amp;
71./configure --prefix=/usr \
72 --bindir=/bin \
73 --libexecdir=/tmp \
74 --enable-mt \
75 --with-rmt=/usr/sbin/rmt &amp;&amp;
76make &amp;&amp;
77makeinfo --html -o doc/html doc/cpio.texi &amp;&amp;
78makeinfo --html --no-split -o doc/cpio.html doc/cpio.texi &amp;&amp;
79makeinfo --plaintext -o doc/cpio.txt doc/cpio.texi</userinput></screen>
80
81 <para>If you have <xref linkend="texlive"/>
82 installed and wish to create PDF or Postscript documentation, issue one or
83 both of the following commands:</para>
84
85<screen><userinput>make -C doc pdf &amp;&amp;
86make -C doc ps</userinput></screen>
87
88 <para>To test the results, issue: <command>make check</command>.</para>
89
90 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
91
92<screen role="root"><userinput>make install &amp;&amp;
93install -v -m755 -d /usr/share/doc/cpio-&cpio-version;/html &amp;&amp;
94install -v -m644 doc/html/* \
95 /usr/share/doc/cpio-&cpio-version;/html &amp;&amp;
96install -v -m644 doc/cpio.{html,txt} \
97 /usr/share/doc/cpio-&cpio-version;</userinput></screen>
98
99 <para>If you built PDF or Postscript documentation, install it
100 by issuing the following commands as the
101 <systemitem class="username">root</systemitem> user:</para>
102
103<screen role="root"><userinput>install -v -m644 doc/cpio.{pdf,ps,dvi} \
104 /usr/share/doc/cpio-&cpio-version;</userinput></screen>
105
106 </sect2>
107
108 <sect2 role="commands">
109 <title>Command Explanations</title>
110
111 <para><parameter>sed -i -e '/gets is a/d' gnu/stdio.in.h &amp;&amp;</parameter>:
112 This fixes an incompatability with <application>glibc-2.16.0</application>.
113 </para>
114
115 <para><parameter>--bindir=/bin</parameter>: This parameter installs
116 <command>cpio</command> to <filename class="directory">/bin</filename>
117 instead of <filename class="directory">/usr/bin</filename> as recommended
118 by the FHS guidelines.</para>
119
120 <para><parameter>--libexecdir=/tmp</parameter>: This parameter is used so
121 that <filename class='directory'>/usr/libexec</filename> is not
122 created.</para>
123
124 <para><parameter>--enable-mt</parameter>: This parameter forces the
125 building and installation of the <command>mt</command> program.</para>
126
127 <para><parameter>--with-rmt=/usr/sbin/rmt</parameter>: This parameter
128 inhibits building the <command>rmt</command> program as it is already
129 installed by the <application>Tar</application> package in LFS.</para>
130
131 </sect2>
132
133 <sect2 role="content">
134 <title>Contents</title>
135
136 <segmentedlist>
137 <segtitle>Installed Programs</segtitle>
138 <segtitle>Installed Libraries</segtitle>
139 <segtitle>Installed Directories</segtitle>
140
141 <seglistitem>
142 <seg>cpio and mt</seg>
143 <seg>None</seg>
144 <seg>/usr/share/doc/cpio-&cpio-version;</seg>
145 </seglistitem>
146 </segmentedlist>
147
148 <variablelist>
149 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
150 <?dbfo list-presentation="list"?>
151 <?dbhtml list-presentation="table"?>
152
153 <varlistentry id="cpio-prog">
154 <term><command>cpio</command></term>
155 <listitem>
156 <para>copies files to and from archives.</para>
157 <indexterm zone="cpio cpio-prog">
158 <primary sortas="b-cpio">cpio</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="mt">
164 <term><command>mt</command></term>
165 <listitem>
166 <para>controls magnetic tape drive operations.</para>
167 <indexterm zone="cpio mt">
168 <primary sortas="b-mt">mt</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 </variablelist>
174
175 </sect2>
176
177</sect1>
Note: See TracBrowser for help on using the repository browser.