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