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