source: general/sysutils/zip.xml@ 0f667d5

12.2 lazarus trunk xry111/for-12.3
Last change on this file since 0f667d5 was 9c8dbc39, checked in by Xi Ruoyao <xry111@…>, 6 weeks ago

zip: Simplify the instruction

"generic_gcc" is just a shorthand of "CC=gcc generic", so it's simpler
to just call "generic" directly when we want to override CC. Thus we no
longer need to use a sed.

  • Property mode set to 100644
File size: 5.4 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[8dfc5c3]7 <!ENTITY zip-download-http "&sourceforge-dl;/infozip/zip30.tar.gz">
[e1e58be]8 <!ENTITY zip-download-ftp " ">
[8dfc5c3]9 <!ENTITY zip-md5sum "7b74551e63f8ee6aab6fbc86676c0d37">
10 <!ENTITY zip-size "1.1 MB">
11 <!ENTITY zip-buildsize "6.4 MB">
12 <!ENTITY zip-time "0.1 SBU">
[52d29f7]13]>
14
[5c5cdbc]15<sect1 id="zip" xreflabel="Zip-&zip-version;">
[d0006cd8]16 <?dbhtml filename="zip.html"?>
17
18
19 <title>Zip-&zip-version;</title>
20
21 <indexterm zone="zip">
22 <primary sortas="a-Zip">Zip</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Zip</title>
27
[b1532549]28 <para>
29 The <application>Zip</application> package contains
30 <application>Zip</application> utilities. These
31 are useful for compressing files into <filename>ZIP</filename>
32 archives.
33 </para>
[a8d3d55a]34
[99c90fa]35 &lfs121_checked;
[d0006cd8]36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
[b1532549]40 <para>
41 Download (HTTP): <ulink url="&zip-download-http;"/>
42 </para>
[d0006cd8]43 </listitem>
44 <listitem>
[b1532549]45 <para>
46 Download (FTP): <ulink url="&zip-download-ftp;"/>
47 </para>
[d0006cd8]48 </listitem>
49 <listitem>
[b1532549]50 <para>
51 Download MD5 sum: &zip-md5sum;
52 </para>
[d0006cd8]53 </listitem>
54 <listitem>
[b1532549]55 <para>
56 Download size: &zip-size;
57 </para>
[d0006cd8]58 </listitem>
59 <listitem>
[b1532549]60 <para>
61 Estimated disk space required: &zip-buildsize;
62 </para>
[d0006cd8]63 </listitem>
64 <listitem>
[b1532549]65 <para>
66 Estimated build time: &zip-time;
67 </para>
[d0006cd8]68 </listitem>
69 </itemizedlist>
70
71 </sect2>
72
73 <sect2 role="installation">
74 <title>Installation of Zip</title>
75
[b1532549]76 <para>
77 Install <application>Zip</application> by running the following
78 commands:
79 </para>
[d0006cd8]80
[9c8dbc39]81<screen><userinput>make -f unix/Makefile generic CC="gcc -std=gnu89"</userinput></screen>
[d0006cd8]82
[b1532549]83 <para>
84 This package does not come with a test suite.
85 </para>
[d0006cd8]86
[b1532549]87 <para>
88 Now, as the <systemitem class="username">root</systemitem> user:
89 </para>
[d0006cd8]90
[fc6725ee]91<screen role="root"><userinput>make prefix=/usr MANDIR=/usr/share/man/man1 -f unix/Makefile install</userinput></screen>
[d0006cd8]92
93 </sect2>
94
95 <sect2 role="commands">
96 <title>Command Explanations</title>
97
[b1532549]98 <para>
[9c8dbc39]99 <parameter>CC="gcc -std=gnu89"</parameter>: This parameter
100 overrides the <varname>CC</varname> variable that is set to
101 <command>cc</command> in the <filename>unix/Makefile</filename> file.
102 On LFS <command>cc</command> is a symlink to <command>gcc</command>,
103 and it uses <option>-std=gnu17</option> (ISO 9899:2017 with GNU
104 extensions) as the default but Zip is a <quote>legacy</quote> package
105 where some grammar constructs are invalid in ISO 9899:1999 and newer
106 standards.
107 </para>
108
109 <para>
110 <parameter>prefix=/usr</parameter>: This parameter
111 overrides the <varname>prefix</varname> variable that is set to
[b1532549]112 <filename class='directory'>/usr/local</filename> in the
[9c8dbc39]113 <filename>unix/Makefile</filename> file.
[b1532549]114 </para>
[d0006cd8]115
116 </sect2>
117
118 <sect2 role="content">
119 <title>Contents</title>
120
121 <segmentedlist>
122 <segtitle>Installed Programs</segtitle>
123 <segtitle>Installed Libraries</segtitle>
124 <segtitle>Installed Directories</segtitle>
125
126 <seglistitem>
127 <seg>zip, zipcloak, zipnote, and zipsplit</seg>
128 <seg>None</seg>
129 <seg>None</seg>
130 </seglistitem>
131 </segmentedlist>
132
133 <variablelist>
134 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
135 <?dbfo list-presentation="list"?>
136 <?dbhtml list-presentation="table"?>
137
138 <varlistentry id="zip-prog">
139 <term><command>zip</command></term>
140 <listitem>
[b1532549]141 <para>
[4c24eb0a]142 compresses files into a <filename>ZIP</filename> archive
[b1532549]143 </para>
[d0006cd8]144 <indexterm zone="zip zip-prog">
145 <primary sortas="b-zip">zip</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 <varlistentry id="zipcloak">
151 <term><command>zipcloak</command></term>
152 <listitem>
[b1532549]153 <para>
154 is a utility to encrypt and decrypt a <filename>ZIP</filename>
[4c24eb0a]155 archive
[b1532549]156 </para>
[d0006cd8]157 <indexterm zone="zip zipcloak">
158 <primary sortas="b-zipcloak">zipcloak</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="zipnote">
164 <term><command>zipnote</command></term>
165 <listitem>
[b1532549]166 <para>
167 reads or writes comments stored in a <filename>ZIP</filename>
[4c24eb0a]168 file
[b1532549]169 </para>
[d0006cd8]170 <indexterm zone="zip zipnote">
171 <primary sortas="b-zipnote">zipnote</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="zipsplit">
177 <term><command>zipsplit</command></term>
178 <listitem>
[b1532549]179 <para>
180 is a utility to split <filename>ZIP</filename> files into
[4c24eb0a]181 smaller files
[b1532549]182 </para>
[d0006cd8]183 <indexterm zone="zip zipsplit">
184 <primary sortas="b-zipsplit">zipsplit</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 </variablelist>
190
191 </sect2>
[f45b1953]192
193</sect1>
Note: See TracBrowser for help on using the repository browser.