source: general/sysutils/cpio.xml@ bc3bb455

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since bc3bb455 was a42c273, checked in by Pierre Labastie <pieere@…>, 5 years ago

First round of remap attributes; the "doc" ones + a few "test". Rewrote some
parts so that doc that can be installed with recommended deps is in main
instructions. Also, move doc instructions in <command> tags to <screen>.

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

  • Property mode set to 100644
File size: 5.7 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 "&gnu-http;/cpio/cpio-&cpio-version;.tar.bz2">
8 <!ENTITY cpio-download-ftp "&gnu-ftp;/cpio/cpio-&cpio-version;.tar.bz2">
9 <!ENTITY cpio-md5sum "93eea9f07c0058c097891c73e4955456">
10 <!ENTITY cpio-size "1.2 MB">
11 <!ENTITY cpio-buildsize "18 MB (with tests and docs)">
12 <!ENTITY cpio-time "0.3 SBU (with tests and docs)">
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 &lfs84_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 <bridgehead renderas="sect3">CPIO Dependencies</bridgehead>
60
61 <bridgehead renderas="sect4">Optional</bridgehead>
62 <para role="optional">
63 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
64 </para>
65
66 <para condition="html" role="usernotes">User Notes:
67 <ulink url="&blfs-wiki;/cpio"/></para>
68
69 </sect2>
70
71 <sect2 role="installation">
72 <title>Installation of cpio</title>
73
74 <para>Install <application>cpio</application> by running the following
75 commands:</para>
76
77<screen><userinput>./configure --prefix=/usr \
78 --bindir=/bin \
79 --enable-mt \
80 --with-rmt=/usr/libexec/rmt &amp;&amp;
81make &amp;&amp;
82makeinfo --html -o doc/html doc/cpio.texi &amp;&amp;
83makeinfo --html --no-split -o doc/cpio.html doc/cpio.texi &amp;&amp;
84makeinfo --plaintext -o doc/cpio.txt doc/cpio.texi</userinput></screen>
85
86 <para>If you have <xref linkend="texlive"/>
87 installed and wish to create PDF or Postscript documentation, issue one or
88 both of the following commands:</para>
89
90<screen remap="doc"><userinput>make -C doc pdf &amp;&amp;
91make -C doc ps</userinput></screen>
92
93 <para>To test the results, issue: <command>make check</command>.</para>
94
95 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
96
97<screen role="root"><userinput>make install &amp;&amp;
98install -v -m755 -d /usr/share/doc/cpio-&cpio-version;/html &amp;&amp;
99install -v -m644 doc/html/* \
100 /usr/share/doc/cpio-&cpio-version;/html &amp;&amp;
101install -v -m644 doc/cpio.{html,txt} \
102 /usr/share/doc/cpio-&cpio-version;</userinput></screen>
103
104 <para>If you built PDF or Postscript documentation, install it
105 by issuing the following commands as the
106 <systemitem class="username">root</systemitem> user:</para>
107
108<screen role="root"
109 remap="doc"><userinput>install -v -m644 doc/cpio.{pdf,ps,dvi} \
110 /usr/share/doc/cpio-&cpio-version;</userinput></screen>
111
112 </sect2>
113
114 <sect2 role="commands">
115 <title>Command Explanations</title>
116
117 <para><parameter>--bindir=/bin</parameter>: This parameter installs
118 <command>cpio</command> to <filename class="directory">/bin</filename>
119 instead of <filename class="directory">/usr/bin</filename> as recommended
120 by the FHS guidelines.</para>
121
122 <para><parameter>--enable-mt</parameter>: This parameter forces the
123 building and installation of the <command>mt</command> program.</para>
124
125 <para><parameter>--with-rmt=/usr/libexec/rmt</parameter>: This parameter
126 inhibits building the <command>rmt</command> program as it is already
127 installed by the <application>Tar</application> package in LFS.</para>
128
129 </sect2>
130
131 <sect2 role="content">
132 <title>Contents</title>
133
134 <segmentedlist>
135 <segtitle>Installed Programs</segtitle>
136 <segtitle>Installed Libraries</segtitle>
137 <segtitle>Installed Directories</segtitle>
138
139 <seglistitem>
140 <seg>cpio and mt</seg>
141 <seg>None</seg>
142 <seg>/usr/share/doc/cpio-&cpio-version;</seg>
143 </seglistitem>
144 </segmentedlist>
145
146 <variablelist>
147 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
148 <?dbfo list-presentation="list"?>
149 <?dbhtml list-presentation="table"?>
150
151 <varlistentry id="cpio-prog">
152 <term><command>cpio</command></term>
153 <listitem>
154 <para>copies files to and from archives.</para>
155 <indexterm zone="cpio cpio-prog">
156 <primary sortas="b-cpio">cpio</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="mt">
162 <term><command>mt</command></term>
163 <listitem>
164 <para>controls magnetic tape drive operations.</para>
165 <indexterm zone="cpio mt">
166 <primary sortas="b-mt">mt</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 </variablelist>
172
173 </sect2>
174
175</sect1>
Note: See TracBrowser for help on using the repository browser.