[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 |
|
---|
[c88ffaa] | 7 | <!ENTITY unzip-download-http "http://www.mirrorservice.org/sites/ftp.info-zip.org/pub/infozip/src/unzip552.tar.gz">
|
---|
| 8 | <!ENTITY unzip-download-ftp "ftp://ftp.info-zip.org/pub/infozip/src/unzip552.tar.gz">
|
---|
| 9 | <!ENTITY unzip-md5sum "9d23919999d6eac9217d1f41472034a9">
|
---|
| 10 | <!ENTITY unzip-size "1.1 MB">
|
---|
| 11 | <!ENTITY unzip-buildsize "7.2 MB">
|
---|
| 12 | <!ENTITY unzip-time "0.09 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[5c5cdbc] | 15 | <sect1 id="unzip" xreflabel="UnZip-&unzip-version;">
|
---|
[c88ffaa] | 16 | <?dbhtml filename="unzip.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[56762b82] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">unzip-&unzip-version;.tar</keyword>
|
---|
| 23 | <keyword role="ftptdir">unzip</keyword>
|
---|
| 24 | </keywordset>
|
---|
[c88ffaa] | 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>UnZip-&unzip-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="unzip">
|
---|
| 30 | <primary sortas="a-UnZip">UnZip</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to UnZip</title>
|
---|
| 35 |
|
---|
[539ace5] | 36 | <para>The <application>UnZip</application> package contains
|
---|
| 37 | <filename>ZIP</filename> extraction utilities. These are useful for extracting
|
---|
[0619e6d] | 38 | files from <filename>ZIP</filename> archives. <filename>ZIP</filename>
|
---|
[539ace5] | 39 | archives are created with <application>PKZIP</application> or
|
---|
| 40 | <application>Info-ZIP</application> utilities primarily in a DOS
|
---|
[c88ffaa] | 41 | environment. </para>
|
---|
| 42 |
|
---|
| 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (HTTP): <ulink url="&unzip-download-http;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (FTP): <ulink url="&unzip-download-ftp;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download MD5 sum: &unzip-md5sum;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download size: &unzip-size;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated disk space required: &unzip-buildsize;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated build time: &unzip-time;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
| 64 |
|
---|
| 65 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 66 | <itemizedlist spacing='compact'>
|
---|
| 67 | <listitem>
|
---|
[539ace5] | 68 | <para>Required patch: <ulink
|
---|
[c88ffaa] | 69 | url="&patch-root;/unzip-&unzip-version;-fix_Makefile-1.patch"/></para>
|
---|
| 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
| 72 | <para>Required patch: <ulink
|
---|
| 73 | url="&patch-root;/unzip-&unzip-version;-fix_libz-1.patch"/></para>
|
---|
| 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>Recommended patch: <ulink
|
---|
| 77 | url="&patch-root;/unzip-&unzip-version;-dont_make_noise-1.patch"/></para>
|
---|
| 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
| 80 |
|
---|
| 81 | </sect2>
|
---|
| 82 |
|
---|
| 83 | <sect2 role="installation">
|
---|
| 84 | <title>Installation of UnZip</title>
|
---|
| 85 |
|
---|
| 86 | <para>Install <application>UnZip</application> by running the following
|
---|
| 87 | commands:</para>
|
---|
| 88 |
|
---|
| 89 | <screen><userinput>patch -Np1 -i ../unzip-&unzip-version;-fix_Makefile-1.patch &&
|
---|
[014d11ad] | 90 | patch -Np1 -i ../unzip-&unzip-version;-fix_libz-1.patch &&
|
---|
| 91 | patch -Np1 -i ../unzip-&unzip-version;-dont_make_noise-1.patch &&
|
---|
[c88ffaa] | 92 | cp -v unix/Makefile . &&
|
---|
[1ae85332] | 93 | make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK linux &&
|
---|
[c88ffaa] | 94 | make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK linux_shlibz</userinput></screen>
|
---|
| 95 |
|
---|
[bccbdaea] | 96 | <para>To test the results, issue: <command>LD_LIBRARY_PATH=$PWD
|
---|
[c88ffaa] | 97 | make check</command>.</para>
|
---|
| 98 |
|
---|
| 99 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 100 |
|
---|
| 101 | <screen role="root"><userinput>make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK install &&
|
---|
| 102 | cp -v -d libunzip.so* /usr/lib</userinput></screen>
|
---|
| 103 |
|
---|
| 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | <sect2 role="commands">
|
---|
| 107 | <title>Command Explanations</title>
|
---|
| 108 |
|
---|
| 109 | <para><command>make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK linux</command>:
|
---|
| 110 | This command overrides the <varname>prefix</varname> variable that is
|
---|
| 111 | set to <filename class="directory">/usr/local</filename> in the
|
---|
| 112 | <filename>Makefile</filename>, sets the <envar>LOCAL_UNZIP</envar>
|
---|
| 113 | environment variable to instruct <application>UnZip</application> to use
|
---|
| 114 | the shrinking algorithm based on the LZW compression
|
---|
| 115 | algorithm, and builds the executables for a Linux system.
|
---|
| 116 | The alternatives to 'linux' can be seen with a
|
---|
| 117 | <command>make list</command> command.</para>
|
---|
| 118 |
|
---|
| 119 | <para><command>make ... linux_shlibz</command>: Build shared
|
---|
[539ace5] | 120 | <filename>libunzip</filename> and link <application>UnZip</application> against
|
---|
[c88ffaa] | 121 | it and <application>zlib</application>.</para>
|
---|
| 122 |
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
| 125 | <sect2 role="content">
|
---|
| 126 | <title>Contents</title>
|
---|
| 127 |
|
---|
| 128 | <segmentedlist>
|
---|
| 129 | <segtitle>Installed Programs</segtitle>
|
---|
| 130 | <segtitle>Installed Library</segtitle>
|
---|
| 131 | <segtitle>Installed Directories</segtitle>
|
---|
| 132 |
|
---|
| 133 | <seglistitem>
|
---|
| 134 | <seg>funzip, unzip, unzipfsx, zipgrep, and zipinfo</seg>
|
---|
| 135 | <seg>libunzip.so</seg>
|
---|
| 136 | <seg>None</seg>
|
---|
| 137 | </seglistitem>
|
---|
| 138 | </segmentedlist>
|
---|
| 139 |
|
---|
| 140 | <variablelist>
|
---|
| 141 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 142 | <?dbfo list-presentation="list"?>
|
---|
| 143 | <?dbhtml list-presentation="table"?>
|
---|
| 144 |
|
---|
| 145 | <varlistentry id="funzip">
|
---|
| 146 | <term><command>funzip</command></term>
|
---|
| 147 | <listitem>
|
---|
[539ace5] | 148 | <para>allows the output of <command>unzip</command> commands to be
|
---|
[c88ffaa] | 149 | redirected.</para>
|
---|
| 150 | <indexterm zone="unzip funzip">
|
---|
| 151 | <primary sortas="b-funzip">funzip</primary>
|
---|
| 152 | </indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="unzip-prog">
|
---|
| 157 | <term><command>unzip</command></term>
|
---|
| 158 | <listitem>
|
---|
[0619e6d] | 159 | <para>lists, tests or extracts files from a <filename>ZIP</filename>
|
---|
[c88ffaa] | 160 | archive.</para>
|
---|
| 161 | <indexterm zone="unzip unzip-prog">
|
---|
| 162 | <primary sortas="b-unzip">unzip</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="unzipfsx">
|
---|
| 168 | <term><command>unzipfsx</command></term>
|
---|
| 169 | <listitem>
|
---|
[539ace5] | 170 | <para>is a self-extracting stub that can be prepended to a
|
---|
| 171 | <filename>ZIP</filename> archive. Files in this format allow the recipient to
|
---|
| 172 | decompress the archive without installing
|
---|
[c88ffaa] | 173 | <application>UnZip</application>.</para>
|
---|
| 174 | <indexterm zone="unzip unzipfsx">
|
---|
| 175 | <primary sortas="b-unzipfsx">unzipfsx</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="zipgrep">
|
---|
| 181 | <term><command>zipgrep</command></term>
|
---|
| 182 | <listitem>
|
---|
[539ace5] | 183 | <para>searches files in a <filename>ZIP</filename> archive for
|
---|
[c88ffaa] | 184 | lines matching a pattern.</para>
|
---|
| 185 | <indexterm zone="unzip zipgrep">
|
---|
| 186 | <primary sortas="b-zipgrep">zipgrep</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
| 190 |
|
---|
| 191 | <varlistentry id="zipinfo">
|
---|
| 192 | <term><command>zipinfo</command></term>
|
---|
| 193 | <listitem>
|
---|
[539ace5] | 194 | <para>produces technical information about the files in a
|
---|
| 195 | <filename>ZIP</filename> archive, including file access permissions,
|
---|
[c88ffaa] | 196 | encryption status, type of compression, etc.</para>
|
---|
| 197 | <indexterm zone="unzip zipinfo">
|
---|
| 198 | <primary sortas="b-zipinfo">zipinfo</primary>
|
---|
| 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 |
|
---|
| 203 | <varlistentry id="libunzip">
|
---|
| 204 | <term><filename class='libraryfile'>libunzip.so</filename></term>
|
---|
| 205 | <listitem>
|
---|
[539ace5] | 206 | <para>contains the API functions required by the
|
---|
[c88ffaa] | 207 | <application>UnZip</application> programs.</para>
|
---|
| 208 | <indexterm zone="unzip libunzip">
|
---|
| 209 | <primary sortas="c-libunzip">libunzip.so</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
| 214 | </variablelist>
|
---|
| 215 |
|
---|
| 216 | </sect2>
|
---|
[f45b1953] | 217 |
|
---|
| 218 | </sect1>
|
---|