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