source: general/sysutils/cpio.xml@ 49625cbc

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 49625cbc was 49625cbc, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Update cpio instructions for LSB compliance; update firewalling instructions to make scripts executable

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

  • Property mode set to 100644
File size: 4.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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-md5sum "76b4145f33df088a5bade3bf4373d17d">
10 <!ENTITY cpio-size "561 KB">
11 <!ENTITY cpio-buildsize "5.3 MB">
12 <!ENTITY cpio-time "0.12 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 <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
57 </sect2>
58
59 <sect2 role="installation">
60 <title>Installation of Cpio</title>
61
62 <para>Install <application>cpio</application> by running the following
63 commands:</para>
64
65<screen><userinput>sed -i -e "s/invalid_arg/argmatch_invalid/" src/mt.c &amp;&amp;
66./configure CPIO_MT_PROG=mt --prefix=/usr \
67 --bindir=/bin --libexecdir=/tmp \
68 --with-rmt=/usr/sbin/rmt &amp;&amp;
69echo "#define HAVE_SETLOCALE 1" >> config.h &amp;&amp;
70make</userinput></screen>
71
72 <para>To test the results, issue: <command>make check</command>.</para>
73
74 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
75
76<screen role="root"><userinput>make install</userinput></screen>
77
78 </sect2>
79
80 <sect2 role="commands">
81 <title>Command Explanations</title>
82
83 <para><command>sed -i -e "s/invalid_arg/argmatch_invalid/" src/mt.c</command>:
84 This command fixes a build problem in the <command>mt</command> program.</para>
85
86 <para><parameter>CPIO_MT_PROG=mt</parameter>: This parameter forces the
87 building and installation of the <command>mt</command> program.</para>
88
89 <para><parameter>--bindir=/bin</parameter>: This parameter installs
90 <command>cpio</command> to <filename class="directory">/bin</filename> instead
91 of <filename class="directory">/usr/bin</filename> as recommended by the
92 FHS guidelines.</para>
93
94 <para><parameter>--libexecdir=/tmp</parameter>: This parameter is used so
95 that <filename class='directory'>/usr/libexec</filename> is not created.</para>
96
97 <para><parameter>--with-rmt=/usr/sbin/rmt</parameter>: This parameter inhibits
98 building the <command>rmt</command> program as it is already installed by the
99 <application>tar</application> package in LFS.</para>
100
101 <para><command>echo "#define HAVE_SETLOCALE 1" >> config.h</command>:
102 This command fixes a build problem to ensure proper LSB functionality.</para>
103
104
105 </sect2>
106
107 <sect2 role="content">
108 <title>Contents</title>
109
110 <segmentedlist>
111 <segtitle>Installed Programs</segtitle>
112 <segtitle>Installed Libraries</segtitle>
113 <segtitle>Installed Directories</segtitle>
114
115 <seglistitem>
116 <seg>cpio and mt</seg>
117 <seg>None</seg>
118 <seg>None</seg>
119 </seglistitem>
120 </segmentedlist>
121
122 <variablelist>
123 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
124 <?dbfo list-presentation="list"?>
125 <?dbhtml list-presentation="table"?>
126
127 <varlistentry id="cpio-prog">
128 <term><command>cpio</command></term>
129 <listitem>
130 <para>copies files to and from archives.</para>
131 <indexterm zone="cpio cpio-prog">
132 <primary sortas="b-cpio">cpio</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
137 <varlistentry id="mt">
138 <term><command>mt</command></term>
139 <listitem>
140 <para>controls magnetic tape drive operations.</para>
141 <indexterm zone="cpio mt">
142 <primary sortas="b-mt">mt</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 </variablelist>
148
149 </sect2>
150
151</sect1>
152
Note: See TracBrowser for help on using the repository browser.