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