[57f7cfa] | 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 |
|
---|
[5b38e37] | 7 | <!ENTITY libarchive-download-http "http://www.libarchive.org/downloads/libarchive-&libarchive-version;.tar.gz">
|
---|
[57f7cfa] | 8 | <!ENTITY libarchive-download-ftp " ">
|
---|
[5b38e37] | 9 | <!ENTITY libarchive-md5sum "efad5a503f66329bb9d2f4308b5de98a">
|
---|
| 10 | <!ENTITY libarchive-size "4.4 MB">
|
---|
| 11 | <!ENTITY libarchive-buildsize "60 MB">
|
---|
[40a4d44] | 12 | <!ENTITY libarchive-time "0.5 SBU">
|
---|
[57f7cfa] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libarchive" xreflabel="libarchive-&libarchive-version;">
|
---|
| 16 | <?dbhtml filename="libarchive.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libarchive-&libarchive-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libarchive">
|
---|
| 26 | <primary sortas="a-libarchive">libarchive</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libarchive</title>
|
---|
| 31 |
|
---|
[5b38e37] | 32 | <para>
|
---|
| 33 | The <application>libarchive</application> library provides a single
|
---|
| 34 | interface for reading/writing various compression formats.
|
---|
| 35 | </para>
|
---|
[57f7cfa] | 36 |
|
---|
[4b92d8d] | 37 | &lfs79_checked;
|
---|
[57f7cfa] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[5b38e37] | 42 | <para>
|
---|
[56605b9] | 43 | Download (HTTP): <ulink url="&libarchive-download-http;"/>
|
---|
| 44 | </para>
|
---|
[57f7cfa] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[5b38e37] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&libarchive-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[57f7cfa] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[5b38e37] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &libarchive-md5sum;
|
---|
| 54 | </para>
|
---|
[57f7cfa] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[5b38e37] | 57 | <para>
|
---|
| 58 | Download size: &libarchive-size;
|
---|
| 59 | </para>
|
---|
[57f7cfa] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[5b38e37] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &libarchive-buildsize;
|
---|
| 64 | </para>
|
---|
[57f7cfa] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[5b38e37] | 67 | <para>
|
---|
| 68 | Estimated build time: &libarchive-time;
|
---|
| 69 | </para>
|
---|
[57f7cfa] | 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
[ddc02883] | 73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 74 | <itemizedlist spacing="compact">
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>
|
---|
| 77 | Required patch:
|
---|
| 78 | <ulink
|
---|
| 79 | url="&patch-root;/libarchive-&libarchive-version;-upstream_fixes-1.patch"/>
|
---|
| 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
| 83 |
|
---|
[57f7cfa] | 84 | <bridgehead renderas="sect3">libarchive Dependencies</bridgehead>
|
---|
| 85 |
|
---|
[af822af] | 86 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 87 | <para role="optional">
|
---|
[56605b9] | 88 | <xref linkend="libxml2"/>,
|
---|
[652b18b] | 89 | <xref linkend="lzo"/>, and
|
---|
[9efe5ae3] | 90 | <xref linkend="nettle"/> or
|
---|
[5b38e37] | 91 | <xref linkend="openssl"/>
|
---|
[57f7cfa] | 92 | </para>
|
---|
| 93 |
|
---|
| 94 | <para condition="html" role="usernotes">User Notes:
|
---|
[5b38e37] | 95 | <ulink url="&blfs-wiki;/libarchive"/>
|
---|
| 96 | </para>
|
---|
[57f7cfa] | 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 role="installation">
|
---|
| 100 | <title>Installation of libarchive</title>
|
---|
| 101 |
|
---|
[5b38e37] | 102 | <para>
|
---|
| 103 | Install <application>libarchive</application> by running the following
|
---|
| 104 | commands:
|
---|
| 105 | </para>
|
---|
[57f7cfa] | 106 |
|
---|
[ddc02883] | 107 | <screen><userinput>patch -Np1 -i ../libarchive-&libarchive-version;-upstream_fixes-1.patch &&
|
---|
| 108 |
|
---|
[473f4358] | 109 | ./configure --prefix=/usr --disable-static &&
|
---|
[ddc02883] | 110 |
|
---|
[57f7cfa] | 111 | make</userinput></screen>
|
---|
| 112 |
|
---|
[5b38e37] | 113 | <para>
|
---|
[dfff8213] | 114 | To test the results, issue: <command>make check</command>.
|
---|
[5b38e37] | 115 | </para>
|
---|
[b88be39] | 116 |
|
---|
[5b38e37] | 117 | <para>
|
---|
| 118 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 119 | </para>
|
---|
[57f7cfa] | 120 |
|
---|
| 121 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 122 |
|
---|
[40a4d44] | 123 | </sect2>
|
---|
[0d7900a] | 124 |
|
---|
[5b38e37] | 125 | <sect2 role="commands">
|
---|
[40a4d44] | 126 | <title>Command Explanations</title>
|
---|
| 127 |
|
---|
[5b38e37] | 128 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 129 | href="../../xincludes/static-libraries.xml"/>
|
---|
[40a4d44] | 130 |
|
---|
[9efe5ae3] | 131 | <para>
|
---|
| 132 | <option>--without-xml2</option>: This switch sets expat for xar archive
|
---|
| 133 | format support instead of preferred libxml2 if both packages are installed.
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
| 136 | <para>
|
---|
| 137 | <option>--without-nettle</option>: This switch sets OpenSSL for crypto
|
---|
| 138 | support instead of preferred Nettle if both packages are installed.
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
[57f7cfa] | 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2 role="content">
|
---|
| 144 | <title>Contents</title>
|
---|
| 145 |
|
---|
| 146 | <segmentedlist>
|
---|
[fd27868] | 147 | <segtitle>Installed Programs</segtitle>
|
---|
[40a4d44] | 148 | <segtitle>Installed Libraries</segtitle>
|
---|
[fd27868] | 149 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 150 |
|
---|
| 151 | <seglistitem>
|
---|
[5b38e37] | 152 | <seg>
|
---|
| 153 | bsdcpio and bsdtar
|
---|
| 154 | </seg>
|
---|
| 155 | <seg>
|
---|
| 156 | libarchive.so
|
---|
| 157 | </seg>
|
---|
| 158 | <seg>
|
---|
| 159 | None
|
---|
| 160 | </seg>
|
---|
[57f7cfa] | 161 | </seglistitem>
|
---|
| 162 | </segmentedlist>
|
---|
| 163 |
|
---|
| 164 | <variablelist>
|
---|
| 165 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 166 | <?dbfo list-presentation="list"?>
|
---|
| 167 | <?dbhtml list-presentation="table"?>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="bsdcpio">
|
---|
| 170 | <term><command>bsdcpio</command></term>
|
---|
| 171 | <listitem>
|
---|
[5b38e37] | 172 | <para>
|
---|
| 173 | is a tool similar to <command>cpio</command>.
|
---|
| 174 | </para>
|
---|
[57f7cfa] | 175 | <indexterm zone="libarchive bsdcpio">
|
---|
| 176 | <primary sortas="b-bsdcpio">bsdcpio</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
[40a4d44] | 181 | <varlistentry id="bsdtar">
|
---|
| 182 | <term><command>bsdtar</command></term>
|
---|
| 183 | <listitem>
|
---|
[5b38e37] | 184 | <para>
|
---|
| 185 | is a tool similar to GNU <command>tar</command>.
|
---|
| 186 | </para>
|
---|
[40a4d44] | 187 | <indexterm zone="libarchive bsdtar">
|
---|
| 188 | <primary sortas="b-bsdtar">bsdtar</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
[0d7900a] | 192 |
|
---|
[5b38e37] | 193 | <varlistentry id="libarchive-lib">
|
---|
| 194 | <term><filename class="libraryfile">libarchive.so</filename></term>
|
---|
| 195 | <listitem>
|
---|
| 196 | <para>
|
---|
| 197 | is a library that can create and read several streaming
|
---|
| 198 | archive formats.
|
---|
| 199 | </para>
|
---|
| 200 | <indexterm zone="libarchive libarchive-lib">
|
---|
| 201 | <primary sortas="c-libarchive">libarchive.so</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
[57f7cfa] | 206 | </variablelist>
|
---|
| 207 |
|
---|
| 208 | </sect2>
|
---|
| 209 |
|
---|
| 210 | </sect1>
|
---|