[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY unzip-download-http "http://www.mirror.ac.uk/sites/ftp.info-zip.org/pub/infozip/src/unzip551.tar.gz">
|
---|
| 8 | <!ENTITY unzip-download-ftp "ftp://ftp.info-zip.org/pub/infozip/src/unzip551.tar.gz">
|
---|
| 9 | <!ENTITY unzip-size "1.1 MB">
|
---|
| 10 | <!ENTITY unzip-buildsize "6.5 MB">
|
---|
| 11 | <!ENTITY unzip-time "0.11 SBU">
|
---|
| 12 |
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[5c5cdbc] | 15 | <sect1 id="unzip" xreflabel="UnZip-&unzip-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[7f72cbf] | 20 | <?dbhtml filename="unzip.html"?>
|
---|
[5c5cdbc] | 21 | <title>UnZip-&unzip-version;</title>
|
---|
[f45b1953] | 22 |
|
---|
[52d29f7] | 23 | <sect2>
|
---|
| 24 | <title>Introduction to <application>UnZip</application></title>
|
---|
[014d11ad] | 25 |
|
---|
[5b5ecb9] | 26 | <para>The <application>UnZip</application> package contains
|
---|
| 27 | <filename>ZIP</filename> extraction utilities. These are useful for extracting
|
---|
| 28 | files from <filename>ZIP</filename> archives. <filename>ZIP</filename> archives
|
---|
| 29 | are created with <application>PKZIP</application> or
|
---|
| 30 | <application>Info-ZIP</application> utilities primarily in a
|
---|
| 31 | <acronym>DOS</acronym> environment.
|
---|
[52d29f7] | 32 | </para>
|
---|
[014d11ad] | 33 |
|
---|
[52d29f7] | 34 | <sect3><title>Package information</title>
|
---|
| 35 | <itemizedlist spacing='compact'>
|
---|
| 36 | <listitem><para>Download (HTTP): <ulink
|
---|
| 37 | url="&unzip-download-http;"/></para></listitem>
|
---|
| 38 | <listitem><para>Download (FTP): <ulink
|
---|
| 39 | url="&unzip-download-ftp;"/></para></listitem>
|
---|
| 40 | <listitem><para>Download size: &unzip-size;</para></listitem>
|
---|
| 41 | <listitem><para>Estimated Disk space required:
|
---|
| 42 | &unzip-buildsize;</para></listitem>
|
---|
| 43 | <listitem><para>Estimated build time:
|
---|
| 44 | &unzip-time;</para></listitem></itemizedlist>
|
---|
| 45 | </sect3>
|
---|
[014d11ad] | 46 |
|
---|
[52d29f7] | 47 | <sect3><title>Additional downloads</title>
|
---|
| 48 | <itemizedlist spacing='compact'>
|
---|
[07b157f4] | 49 | <listitem><para>Required Patch: <ulink
|
---|
[4a9b381] | 50 | url="&patch-root;/unzip-&unzip-version;-fix_Makefile-1.patch"/></para>
|
---|
| 51 | </listitem>
|
---|
[07b157f4] | 52 | <listitem><para>Required Patch: <ulink
|
---|
[4a9b381] | 53 | url="&patch-root;/unzip-&unzip-version;-fix_libz-1.patch"/></para>
|
---|
| 54 | </listitem>
|
---|
[07b157f4] | 55 | <listitem><para>Recommended Patch: <ulink
|
---|
[4a9b381] | 56 | url="&patch-root;/unzip-&unzip-version;-dont_make_noise-1.patch"/></para>
|
---|
| 57 | </listitem></itemizedlist>
|
---|
[52d29f7] | 58 | </sect3>
|
---|
[014d11ad] | 59 |
|
---|
[52d29f7] | 60 | </sect2>
|
---|
| 61 |
|
---|
| 62 | <sect2>
|
---|
| 63 | <title>Installation of <application>UnZip</application></title>
|
---|
[014d11ad] | 64 |
|
---|
[52d29f7] | 65 | <para>Install <application>UnZip</application> by running the following
|
---|
| 66 | commands:</para>
|
---|
[014d11ad] | 67 |
|
---|
| 68 | <screen><userinput><command>patch -Np1 -i ../unzip-&unzip-version;-fix_Makefile-1.patch &&
|
---|
| 69 | patch -Np1 -i ../unzip-&unzip-version;-fix_libz-1.patch &&
|
---|
| 70 | patch -Np1 -i ../unzip-&unzip-version;-dont_make_noise-1.patch &&
|
---|
[52d29f7] | 71 | cp unix/Makefile . &&
|
---|
[1ae85332] | 72 | make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK linux &&
|
---|
| 73 | make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK linux_shlibz &&
|
---|
| 74 | make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK install &&
|
---|
[5b5ecb9] | 75 | install -m 755 -o root -g root libunzip.so* /usr/lib</command></userinput></screen>
|
---|
[014d11ad] | 76 |
|
---|
[52d29f7] | 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2>
|
---|
| 80 | <title>Command explanations</title>
|
---|
[014d11ad] | 81 |
|
---|
[1ae85332] | 82 | <para><command>make prefix=/usr LOCAL_UNZIP=-DUSE_UNSHRINK linux</command>:
|
---|
| 83 | This command overrides the <varname>prefix</varname> variable that is
|
---|
| 84 | set to <filename class="directory">/usr/local</filename> in the
|
---|
| 85 | <filename>Makefile</filename>, sets the <envar>LOCAL_UNZIP</envar>
|
---|
| 86 | environment variable to instruct <application>UnZip</application> to use
|
---|
| 87 | the shrinking algorithm based on the <acronym>LZW</acronym> compression
|
---|
| 88 | algorithm, and builds the executables for a Linux system.
|
---|
| 89 | The alternatives to 'linux' can be seen with a
|
---|
[4a9b381] | 90 | <command>make list</command> command.</para>
|
---|
[014d11ad] | 91 |
|
---|
[1ae85332] | 92 | <para><command>make ... linux_shlibz</command>: Build shared
|
---|
[014d11ad] | 93 | <filename>libunzip</filename> and link <application>UnZip</application> against
|
---|
[52d29f7] | 94 | it and <application>zlib</application>.</para>
|
---|
[014d11ad] | 95 |
|
---|
[52d29f7] | 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2>
|
---|
| 99 | <title>Contents</title>
|
---|
[014d11ad] | 100 |
|
---|
[4a9b381] | 101 | <para>The <application>UnZip</application> package contains
|
---|
| 102 | <command>unzip</command>, <command>funzip</command>, <command>unzipfsx</command>,
|
---|
| 103 | <command>zipgrep</command>, <command>zipinfo</command> and the
|
---|
[bcd89599] | 104 | <filename class="libraryfile">libunzip</filename> library.</para>
|
---|
[014d11ad] | 105 |
|
---|
[52d29f7] | 106 | </sect2>
|
---|
[014d11ad] | 107 |
|
---|
[52d29f7] | 108 | <sect2><title>Description</title>
|
---|
[014d11ad] | 109 |
|
---|
[52d29f7] | 110 | <sect3><title>unzip</title>
|
---|
| 111 | <para><command>unzip</command> lists, tests or extracts files from a
|
---|
| 112 | <filename>ZIP</filename> archive.</para></sect3>
|
---|
[014d11ad] | 113 |
|
---|
[52d29f7] | 114 | <sect3><title>funzip</title>
|
---|
| 115 | <para><command>funzip</command> allows the output of <command>unzip</command>
|
---|
| 116 | commands to be redirected.</para></sect3>
|
---|
[014d11ad] | 117 |
|
---|
[52d29f7] | 118 | <sect3><title>unzipfsx</title>
|
---|
| 119 | <para><command>unzipfsx</command> is the self-extracting stub that can be
|
---|
| 120 | prepended to a <filename>ZIP</filename> archive. Files in this format allow
|
---|
| 121 | the recipient to decompress the archive without installing
|
---|
| 122 | <application>UnZip</application>.</para></sect3>
|
---|
[014d11ad] | 123 |
|
---|
[52d29f7] | 124 | <sect3><title>zipgrep</title>
|
---|
| 125 | <para><command>zipgrep</command> is a grep for <filename>ZIP</filename>
|
---|
| 126 | archives.</para></sect3>
|
---|
[014d11ad] | 127 |
|
---|
[52d29f7] | 128 | <sect3><title>zipinfo</title>
|
---|
[014d11ad] | 129 | <para><command>zipinfo</command> produces technical information about the files
|
---|
[52d29f7] | 130 | in a <filename>ZIP</filename> archive, including file access permissions,
|
---|
| 131 | encryption status, type of compression, etc.</para></sect3>
|
---|
[014d11ad] | 132 |
|
---|
[52d29f7] | 133 | </sect2>
|
---|
[f45b1953] | 134 |
|
---|
| 135 | </sect1>
|
---|