1 | The GNU General Public License (GPL)
|
---|
2 | Version 2, June 1991
|
---|
3 |
|
---|
4 | Copyright 1989, 1991 Free Software Foundation, Inc.
|
---|
5 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
6 | Everyone is permitted to copy and distribute verbatim
|
---|
7 | copies of this license document, but changing it is not
|
---|
8 | allowed.
|
---|
9 |
|
---|
10 | Preamble
|
---|
11 |
|
---|
12 | The licenses for most software are designed to take away
|
---|
13 | your freedom to share and change it. By contrast, the GNU
|
---|
14 | General Public License is intended to guarantee your freedom
|
---|
15 | to share and change free software--to make sure the software
|
---|
16 | is free for all its users. This General Public License
|
---|
17 | applies to most of the Free Software Foundation's software
|
---|
18 | and to any other program whose authors commit to using it.
|
---|
19 | (Some other Free Software Foundation software is covered by
|
---|
20 | the GNU Library General Public License instead.) You can
|
---|
21 | apply it to your programs, too.
|
---|
22 |
|
---|
23 | When we speak of free software, we are referring to freedom,
|
---|
24 | not price. Our General Public Licenses are designed to make
|
---|
25 | sure that you have the freedom to distribute copies of free
|
---|
26 | software (and charge for this service if you wish), that you
|
---|
27 | receive source code or can get it if you want it, that you
|
---|
28 | can change the software or use pieces of it in new free
|
---|
29 | programs; and that you know you can do these things.
|
---|
30 |
|
---|
31 | To protect your rights, we need to make restrictions that
|
---|
32 | forbid anyone to deny you these rights or to ask you to
|
---|
33 | surrender the rights. These restrictions translate to
|
---|
34 | certain responsibilities for you if you distribute copies of
|
---|
35 | the software, or if you modify it.
|
---|
36 |
|
---|
37 | For example, if you distribute copies of such a program,
|
---|
38 | whether gratis or for a fee, you must give the recipients
|
---|
39 | all the rights that you have. You must make sure that they,
|
---|
40 | too, receive or can get the source code. And you must show
|
---|
41 | them these terms so they know their rights.
|
---|
42 |
|
---|
43 | We protect your rights with two steps: (1) copyright the
|
---|
44 | software, and (2) offer you this license which gives you
|
---|
45 | legal permission to copy, distribute and/or modify the
|
---|
46 | software.
|
---|
47 |
|
---|
48 | Also, for each author's protection and ours, we want to make
|
---|
49 | certain that everyone understands that there is no warranty
|
---|
50 | for this free software. If the software is modified by
|
---|
51 | someone else and passed on, we want its recipients to know
|
---|
52 | that what they have is not the original, so that any
|
---|
53 | problems introduced by others will not reflect on the
|
---|
54 | original authors' reputations.
|
---|
55 |
|
---|
56 | Finally, any free program is threatened constantly by
|
---|
57 | software patents. We wish to avoid the danger that
|
---|
58 | redistributors of a free program will individually obtain
|
---|
59 | patent licenses, in effect making the program proprietary.
|
---|
60 | To prevent this, we have made it clear that any patent must
|
---|
61 | be licensed for everyone's free use or not licensed at all.
|
---|
62 |
|
---|
63 | The precise terms and conditions for copying, distribution
|
---|
64 | and modification follow.
|
---|
65 |
|
---|
66 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND
|
---|
67 | MODIFICATION
|
---|
68 |
|
---|
69 | 0. This License applies to any program or other work which
|
---|
70 | contains a notice placed by the copyright holder saying it
|
---|
71 | may be distributed under the terms of this General Public
|
---|
72 | License. The "Program", below, refers to any such program or
|
---|
73 | work, and a "work based on the Program" means either the
|
---|
74 | Program or any derivative work under copyright law: that is
|
---|
75 | to say, a work containing the Program or a portion of it,
|
---|
76 | either verbatim or with modifications and/or translated into
|
---|
77 | another language. (Hereinafter, translation is included
|
---|
78 | without limitation in the term "modification".) Each
|
---|
79 | licensee is addressed as "you".
|
---|
80 |
|
---|
81 | Activities other than copying, distribution and modification
|
---|
82 | are not covered by this License; they are outside its scope.
|
---|
83 | The act of running the Program is not restricted, and the
|
---|
84 | output from the Program is covered only if its contents
|
---|
85 | constitute a work based on the Program (independent of
|
---|
86 | having been made by running the Program). Whether that is
|
---|
87 | true depends on what the Program does.
|
---|
88 |
|
---|
89 | 1. You may copy and distribute verbatim copies of the
|
---|
90 | Program's source code as you receive it, in any medium,
|
---|
91 | provided that you conspicuously and appropriately publish on
|
---|
92 | each copy an appropriate copyright notice and disclaimer of
|
---|
93 | warranty; keep intact all the notices that refer to this
|
---|
94 | License and to the absence of any warranty; and give any
|
---|
95 | other recipients of the Program a copy of this License along
|
---|
96 | with the Program.
|
---|
97 |
|
---|
98 | You may charge a fee for the physical act of transferring a
|
---|
99 | copy, and you may at your option offer warranty protection
|
---|
100 | in exchange for a fee.
|
---|
101 |
|
---|
102 | 2. You may modify your copy or copies of the Program or any
|
---|
103 | portion of it, thus forming a work based on the Program, and
|
---|
104 | copy and distribute such modifications or work under the
|
---|
105 | terms of Section 1 above, provided that you also meet all of
|
---|
106 | these conditions:
|
---|
107 |
|
---|
108 | a) You must cause the modified files to carry prominent
|
---|
109 | notices stating that you changed the files and the date
|
---|
110 | of any change.
|
---|
111 |
|
---|
112 | b) You must cause any work that you distribute or
|
---|
113 | publish, that in whole or in part contains or is derived
|
---|
114 | from the Program or any part thereof, to be licensed as
|
---|
115 | a whole at no charge to all third parties under the
|
---|
116 | terms of this License.
|
---|
117 |
|
---|
118 | c) If the modified program normally reads commands
|
---|
119 | interactively when run, you must cause it, when started
|
---|
120 | running for such interactive use in the most ordinary
|
---|
121 | way, to print or display an announcement including an
|
---|
122 | appropriate copyright notice and a notice that there is
|
---|
123 | no warranty (or else, saying that you provide a
|
---|
124 | warranty) and that users may redistribute the program
|
---|
125 | under these conditions, and telling the user how to view
|
---|
126 | a copy of this License. (Exception: if the Program
|
---|
127 | itself is interactive but does not normally print such
|
---|
128 | an announcement, your work based on the Program is not
|
---|
129 | required to print an announcement.)
|
---|
130 |
|
---|
131 | These requirements apply to the modified work as a whole. If
|
---|
132 | identifiable sections of that work are not derived from the
|
---|
133 | Program, and can be reasonably considered independent and
|
---|
134 | separate works in themselves, then this License, and its
|
---|
135 | terms, do not apply to those sections when you distribute
|
---|
136 | them as separate works. But when you distribute the same
|
---|
137 | sections as part of a whole which is a work based on the
|
---|
138 | Program, the distribution of the whole must be on the terms
|
---|
139 | of this License, whose permissions for other licensees
|
---|
140 | extend to the entire whole, and thus to each and every part
|
---|
141 | regardless of who wrote it.
|
---|
142 |
|
---|
143 | Thus, it is not the intent of this section to claim rights
|
---|
144 | or contest your rights to work written entirely by you;
|
---|
145 | rather, the intent is to exercise the right to control the
|
---|
146 | distribution of derivative or collective works based on the
|
---|
147 | Program.
|
---|
148 |
|
---|
149 | In addition, mere aggregation of another work not based on
|
---|
150 | the Program with the Program (or with a work based on the
|
---|
151 | Program) on a volume of a storage or distribution medium
|
---|
152 | does not bring the other work under the scope of this
|
---|
153 | License.
|
---|
154 |
|
---|
155 | 3. You may copy and distribute the Program (or a work based
|
---|
156 | on it, under Section 2) in object code or executable form
|
---|
157 | under the terms of Sections 1 and 2 above provided that you
|
---|
158 | also do one of the following:
|
---|
159 |
|
---|
160 | a) Accompany it with the complete corresponding
|
---|
161 | machine-readable source code, which must be distributed
|
---|
162 | under the terms of Sections 1 and 2 above on a medium
|
---|
163 | customarily used for software interchange; or,
|
---|
164 |
|
---|
165 | b) Accompany it with a written offer, valid for at least
|
---|
166 | three years, to give any third party, for a charge no
|
---|
167 | more than your cost of physically performing source
|
---|
168 | distribution, a complete machine-readable copy of the
|
---|
169 | corresponding source code, to be distributed under the
|
---|
170 | terms of Sections 1 and 2 above on a medium customarily
|
---|
171 | used for software interchange; or,
|
---|
172 |
|
---|
173 | c) Accompany it with the information you received as to
|
---|
174 | the offer to distribute corresponding source code. (This
|
---|
175 | alternative is allowed only for noncommercial
|
---|
176 | distribution and only if you received the program in
|
---|
177 | object code or executable form with such an offer, in
|
---|
178 | accord with Subsection b above.)
|
---|
179 |
|
---|
180 | The source code for a work means the preferred form of the
|
---|
181 | work for making modifications to it. For an executable work,
|
---|
182 | complete source code means all the source code for all
|
---|
183 | modules it contains, plus any associated interface
|
---|
184 | definition files, plus the scripts used to control
|
---|
185 | compilation and installation of the executable. However, as
|
---|
186 | a special exception, the source code distributed need not
|
---|
187 | include anything that is normally distributed (in either
|
---|
188 | source or binary form) with the major components (compiler,
|
---|
189 | kernel, and so on) of the operating system on which the
|
---|
190 | executable runs, unless that component itself accompanies
|
---|
191 | the executable.
|
---|
192 |
|
---|
193 | If distribution of executable or object code is made by
|
---|
194 | offering access to copy from a designated place, then
|
---|
195 | offering equivalent access to copy the source code from the
|
---|
196 | same place counts as distribution of the source code, even
|
---|
197 | though third parties are not compelled to copy the source
|
---|
198 | along with the object code.
|
---|
199 |
|
---|
200 | 4. You may not copy, modify, sublicense, or distribute the
|
---|
201 | Program except as expressly provided under this License. Any
|
---|
202 | attempt otherwise to copy, modify, sublicense or distribute
|
---|
203 | the Program is void, and will automatically terminate your
|
---|
204 | rights under this License. However, parties who have
|
---|
205 | received copies, or rights, from you under this License will
|
---|
206 | not have their licenses terminated so long as such parties
|
---|
207 | remain in full compliance.
|
---|
208 |
|
---|
209 | 5. You are not required to accept this License, since you
|
---|
210 | have not signed it. However, nothing else grants you
|
---|
211 | permission to modify or distribute the Program or its
|
---|
212 | derivative works. These actions are prohibited by law if you
|
---|
213 | do not accept this License. Therefore, by modifying or
|
---|
214 | distributing the Program (or any work based on the Program),
|
---|
215 | you indicate your acceptance of this License to do so, and
|
---|
216 | all its terms and conditions for copying, distributing or
|
---|
217 | modifying the Program or works based on it.
|
---|
218 |
|
---|
219 | 6. Each time you redistribute the Program (or any work based
|
---|
220 | on the Program), the recipient automatically receives a
|
---|
221 | license from the original licensor to copy, distribute or
|
---|
222 | modify the Program subject to these terms and conditions.
|
---|
223 | You may not impose any further restrictions on the
|
---|
224 | recipients' exercise of the rights granted herein. You are
|
---|
225 | not responsible for enforcing compliance by third parties to
|
---|
226 | this License.
|
---|
227 |
|
---|
228 | 7. If, as a consequence of a court judgment or allegation of
|
---|
229 | patent infringement or for any other reason (not limited to
|
---|
230 | patent issues), conditions are imposed on you (whether by
|
---|
231 | court order, agreement or otherwise) that contradict the
|
---|
232 | conditions of this License, they do not excuse you from the
|
---|
233 | conditions of this License. If you cannot distribute so as
|
---|
234 | to satisfy simultaneously your obligations under this
|
---|
235 | License and any other pertinent obligations, then as a
|
---|
236 | consequence you may not distribute the Program at all. For
|
---|
237 | example, if a patent license would not permit royalty-free
|
---|
238 | redistribution of the Program by all those who receive
|
---|
239 | copies directly or indirectly through you, then the only way
|
---|
240 | you could satisfy both it and this License would be to
|
---|
241 | refrain entirely from distribution of the Program.
|
---|
242 |
|
---|
243 | If any portion of this section is held invalid or
|
---|
244 | unenforceable under any particular circumstance, the balance
|
---|
245 | of the section is intended to apply and the section as a
|
---|
246 | whole is intended to apply in other circumstances.
|
---|
247 |
|
---|
248 | It is not the purpose of this section to induce you to
|
---|
249 | infringe any patents or other property right claims or to
|
---|
250 | contest validity of any such claims; this section has the
|
---|
251 | sole purpose of protecting the integrity of the free
|
---|
252 | software distribution system, which is implemented by public
|
---|
253 | license practices. Many people have made generous
|
---|
254 | contributions to the wide range of software distributed
|
---|
255 | through that system in reliance on consistent application of
|
---|
256 | that system; it is up to the author/donor to decide if he or
|
---|
257 | she is willing to distribute software through any other
|
---|
258 | system and a licensee cannot impose that choice.
|
---|
259 |
|
---|
260 | This section is intended to make thoroughly clear what is
|
---|
261 | believed to be a consequence of the rest of this License.
|
---|
262 |
|
---|
263 | 8. If the distribution and/or use of the Program is
|
---|
264 | restricted in certain countries either by patents or by
|
---|
265 | copyrighted interfaces, the original copyright holder who
|
---|
266 | places the Program under this License may add an explicit
|
---|
267 | geographical distribution limitation excluding those
|
---|
268 | countries, so that distribution is permitted only in or
|
---|
269 | among countries not thus excluded. In such case, this
|
---|
270 | License incorporates the limitation as if written in the
|
---|
271 | body of this License.
|
---|
272 |
|
---|
273 | 9. The Free Software Foundation may publish revised and/or
|
---|
274 | new versions of the General Public License from time to
|
---|
275 | time. Such new versions will be similar in spirit to the
|
---|
276 | present version, but may differ in detail to address new
|
---|
277 | problems or concerns.
|
---|
278 |
|
---|
279 | Each version is given a distinguishing version number. If
|
---|
280 | the Program specifies a version number of this License which
|
---|
281 | applies to it and "any later version", you have the option
|
---|
282 | of following the terms and conditions either of that version
|
---|
283 | or of any later version published by the Free Software
|
---|
284 | Foundation. If the Program does not specify a version number
|
---|
285 | of this License, you may choose any version ever published
|
---|
286 | by the Free Software Foundation.
|
---|
287 |
|
---|
288 | 10. If you wish to incorporate parts of the Program into
|
---|
289 | other free programs whose distribution conditions are
|
---|
290 | different, write to the author to ask for permission. For
|
---|
291 | software which is copyrighted by the Free Software
|
---|
292 | Foundation, write to the Free Software Foundation; we
|
---|
293 | sometimes make exceptions for this. Our decision will be
|
---|
294 | guided by the two goals of preserving the free status of all
|
---|
295 | derivatives of our free software and of promoting the
|
---|
296 | sharing and reuse of software generally.
|
---|
297 |
|
---|
298 | NO WARRANTY
|
---|
299 |
|
---|
300 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS
|
---|
301 | NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
---|
302 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
|
---|
303 | COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM
|
---|
304 | "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
|
---|
305 | IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
---|
306 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
---|
307 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
|
---|
308 | OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
|
---|
309 | DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
---|
310 | REPAIR OR CORRECTION.
|
---|
311 |
|
---|
312 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED
|
---|
313 | TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY
|
---|
314 | WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED
|
---|
315 | ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
|
---|
316 | SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF
|
---|
317 | THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT
|
---|
318 | LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
|
---|
319 | LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
|
---|
320 | PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
|
---|
321 | HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
---|
322 | SUCH DAMAGES.
|
---|
323 |
|
---|
324 | END OF TERMS AND CONDITIONS
|
---|
325 |
|
---|
326 | How to Apply These Terms to Your New Programs
|
---|
327 |
|
---|
328 | If you develop a new program, and you want it to be of the
|
---|
329 | greatest possible use to the public, the best way to achieve
|
---|
330 | this is to make it free software which everyone can
|
---|
331 | redistribute and change under these terms.
|
---|
332 |
|
---|
333 | To do so, attach the following notices to the program. It is
|
---|
334 | safest to attach them to the start of each source file to
|
---|
335 | most effectively convey the exclusion of warranty; and each
|
---|
336 | file should have at least the "copyright" line and a pointer
|
---|
337 | to where the full notice is found.
|
---|
338 |
|
---|
339 | One line to give the program's name and a brief idea of
|
---|
340 | what it does. Copyright (C) <year> <name of author>
|
---|
341 |
|
---|
342 | This program is free software; you can redistribute it
|
---|
343 | and/or modify it under the terms of the GNU General
|
---|
344 | Public License as published by the Free Software
|
---|
345 | Foundation; either version 2 of the License, or (at your
|
---|
346 | option) any later version.
|
---|
347 |
|
---|
348 | This program is distributed in the hope that it will be
|
---|
349 | useful, but WITHOUT ANY WARRANTY; without even the
|
---|
350 | implied warranty of MERCHANTABILITY or FITNESS FOR A
|
---|
351 | PARTICULAR PURPOSE. See the GNU General Public License
|
---|
352 | for more details.
|
---|
353 |
|
---|
354 | You should have received a copy of the GNU General
|
---|
355 | Public License along with this program; if not, write to
|
---|
356 | the Free Software Foundation, Inc., 59 Temple Place,
|
---|
357 | Suite 330, Boston, MA 02111-1307 USA
|
---|
358 |
|
---|
359 | Also add information on how to contact you by electronic and
|
---|
360 | paper mail.
|
---|
361 |
|
---|
362 | If the program is interactive, make it output a short notice
|
---|
363 | like this when it starts in an interactive mode:
|
---|
364 |
|
---|
365 | Gnomovision version 69, Copyright (C) year name of
|
---|
366 | author Gnomovision comes with ABSOLUTELY NO WARRANTY;
|
---|
367 | for details type `show w'. This is free software, and
|
---|
368 | you are welcome to redistribute it under certain
|
---|
369 | conditions; type `show c' for details.
|
---|
370 |
|
---|
371 | The hypothetical commands `show w' and `show c' should show
|
---|
372 | the appropriate parts of the General Public License. Of
|
---|
373 | course, the commands you use may be called something other
|
---|
374 | than `show w' and `show c'; they could even be mouse-clicks
|
---|
375 | or menu items--whatever suits your program.
|
---|
376 |
|
---|
377 | You should also get your employer (if you work as a
|
---|
378 | programmer) or your school, if any, to sign a "copyright
|
---|
379 | disclaimer" for the program, if necessary. Here is a sample;
|
---|
380 | alter the names:
|
---|
381 |
|
---|
382 | Yoyodyne, Inc., hereby disclaims all copyright interest in
|
---|
383 | the program `Gnomovision' (which makes passes at
|
---|
384 | compilers) written by James Hacker.
|
---|
385 |
|
---|
386 | signature of Ty Coon, 1 April 1989
|
---|
387 | Ty Coon, President of Vice
|
---|
388 |
|
---|
389 | This General Public License does not permit incorporating
|
---|
390 | your program into proprietary programs. If your program is a
|
---|
391 | subroutine library, you may consider it more useful to
|
---|
392 | permit linking proprietary applications with the library. If
|
---|
393 | this is what you want to do, use the GNU Library General
|
---|
394 | Public License instead of this License.
|
---|
395 |
|
---|
396 |
|
---|
397 | "CLASSPATH" EXCEPTION TO THE GPL VERSION 2
|
---|
398 |
|
---|
399 |
|
---|
400 | Certain source files distributed by Sun Microsystems, Inc.
|
---|
401 | are subject to the following clarification and special
|
---|
402 | exception to the GPL, but only where Sun has expressly
|
---|
403 | included in the particular source file's header the words
|
---|
404 | "Sun designates this particular file as subject to the
|
---|
405 | "Classpath" exception as provided by Sun in the LICENSE file
|
---|
406 | that accompanied this code."
|
---|
407 |
|
---|
408 | Linking this library statically or dynamically with other
|
---|
409 | modules is making a combined work based on this library.
|
---|
410 | Thus, the terms and conditions of the GNU General Public
|
---|
411 | License cover the whole combination.
|
---|
412 |
|
---|
413 | As a special exception, the copyright holders of this
|
---|
414 | library give you permission to link this library with
|
---|
415 | independent modules to produce an executable, regardless of
|
---|
416 | the license terms of these independent modules, and to copy
|
---|
417 | and distribute the resulting executable under terms of your
|
---|
418 | choice, provided that you also meet, for each linked
|
---|
419 | independent module, the terms and conditions of the license
|
---|
420 | of that module. An independent module is a module which is
|
---|
421 | not derived from or based on this library. If you modify
|
---|
422 | this library, you may extend this exception to your version
|
---|
423 | of the library, but you are not obligated to do so. If you
|
---|
424 | do not wish to do so, delete this exception statement from
|
---|
425 | your version.
|
---|