1*07039215SMartin Mares GNU GENERAL PUBLIC LICENSE 2*07039215SMartin Mares Version 2, June 1991 3*07039215SMartin Mares 4*07039215SMartin Mares Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5*07039215SMartin Mares 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6*07039215SMartin Mares Everyone is permitted to copy and distribute verbatim copies 7*07039215SMartin Mares of this license document, but changing it is not allowed. 8*07039215SMartin Mares 9*07039215SMartin Mares Preamble 10*07039215SMartin Mares 11*07039215SMartin Mares The licenses for most software are designed to take away your 12*07039215SMartin Maresfreedom to share and change it. By contrast, the GNU General Public 13*07039215SMartin MaresLicense is intended to guarantee your freedom to share and change free 14*07039215SMartin Maressoftware--to make sure the software is free for all its users. This 15*07039215SMartin MaresGeneral Public License applies to most of the Free Software 16*07039215SMartin MaresFoundation's software and to any other program whose authors commit to 17*07039215SMartin Maresusing it. (Some other Free Software Foundation software is covered by 18*07039215SMartin Maresthe GNU Lesser General Public License instead.) You can apply it to 19*07039215SMartin Maresyour programs, too. 20*07039215SMartin Mares 21*07039215SMartin Mares When we speak of free software, we are referring to freedom, not 22*07039215SMartin Maresprice. Our General Public Licenses are designed to make sure that you 23*07039215SMartin Mareshave the freedom to distribute copies of free software (and charge for 24*07039215SMartin Maresthis service if you wish), that you receive source code or can get it 25*07039215SMartin Maresif you want it, that you can change the software or use pieces of it 26*07039215SMartin Maresin new free programs; and that you know you can do these things. 27*07039215SMartin Mares 28*07039215SMartin Mares To protect your rights, we need to make restrictions that forbid 29*07039215SMartin Maresanyone to deny you these rights or to ask you to surrender the rights. 30*07039215SMartin MaresThese restrictions translate to certain responsibilities for you if you 31*07039215SMartin Maresdistribute copies of the software, or if you modify it. 32*07039215SMartin Mares 33*07039215SMartin Mares For example, if you distribute copies of such a program, whether 34*07039215SMartin Maresgratis or for a fee, you must give the recipients all the rights that 35*07039215SMartin Maresyou have. You must make sure that they, too, receive or can get the 36*07039215SMartin Maressource code. And you must show them these terms so they know their 37*07039215SMartin Maresrights. 38*07039215SMartin Mares 39*07039215SMartin Mares We protect your rights with two steps: (1) copyright the software, and 40*07039215SMartin Mares(2) offer you this license which gives you legal permission to copy, 41*07039215SMartin Maresdistribute and/or modify the software. 42*07039215SMartin Mares 43*07039215SMartin Mares Also, for each author's protection and ours, we want to make certain 44*07039215SMartin Maresthat everyone understands that there is no warranty for this free 45*07039215SMartin Maressoftware. If the software is modified by someone else and passed on, we 46*07039215SMartin Mareswant its recipients to know that what they have is not the original, so 47*07039215SMartin Maresthat any problems introduced by others will not reflect on the original 48*07039215SMartin Maresauthors' reputations. 49*07039215SMartin Mares 50*07039215SMartin Mares Finally, any free program is threatened constantly by software 51*07039215SMartin Marespatents. We wish to avoid the danger that redistributors of a free 52*07039215SMartin Maresprogram will individually obtain patent licenses, in effect making the 53*07039215SMartin Maresprogram proprietary. To prevent this, we have made it clear that any 54*07039215SMartin Marespatent must be licensed for everyone's free use or not licensed at all. 55*07039215SMartin Mares 56*07039215SMartin Mares The precise terms and conditions for copying, distribution and 57*07039215SMartin Maresmodification follow. 58*07039215SMartin Mares 59*07039215SMartin Mares GNU GENERAL PUBLIC LICENSE 60*07039215SMartin Mares TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*07039215SMartin Mares 62*07039215SMartin Mares 0. This License applies to any program or other work which contains 63*07039215SMartin Maresa notice placed by the copyright holder saying it may be distributed 64*07039215SMartin Maresunder the terms of this General Public License. The "Program", below, 65*07039215SMartin Maresrefers to any such program or work, and a "work based on the Program" 66*07039215SMartin Maresmeans either the Program or any derivative work under copyright law: 67*07039215SMartin Maresthat is to say, a work containing the Program or a portion of it, 68*07039215SMartin Mareseither verbatim or with modifications and/or translated into another 69*07039215SMartin Mareslanguage. (Hereinafter, translation is included without limitation in 70*07039215SMartin Maresthe term "modification".) Each licensee is addressed as "you". 71*07039215SMartin Mares 72*07039215SMartin MaresActivities other than copying, distribution and modification are not 73*07039215SMartin Marescovered by this License; they are outside its scope. The act of 74*07039215SMartin Maresrunning the Program is not restricted, and the output from the Program 75*07039215SMartin Maresis covered only if its contents constitute a work based on the 76*07039215SMartin MaresProgram (independent of having been made by running the Program). 77*07039215SMartin MaresWhether that is true depends on what the Program does. 78*07039215SMartin Mares 79*07039215SMartin Mares 1. You may copy and distribute verbatim copies of the Program's 80*07039215SMartin Maressource code as you receive it, in any medium, provided that you 81*07039215SMartin Maresconspicuously and appropriately publish on each copy an appropriate 82*07039215SMartin Marescopyright notice and disclaimer of warranty; keep intact all the 83*07039215SMartin Maresnotices that refer to this License and to the absence of any warranty; 84*07039215SMartin Maresand give any other recipients of the Program a copy of this License 85*07039215SMartin Maresalong with the Program. 86*07039215SMartin Mares 87*07039215SMartin MaresYou may charge a fee for the physical act of transferring a copy, and 88*07039215SMartin Maresyou may at your option offer warranty protection in exchange for a fee. 89*07039215SMartin Mares 90*07039215SMartin Mares 2. You may modify your copy or copies of the Program or any portion 91*07039215SMartin Maresof it, thus forming a work based on the Program, and copy and 92*07039215SMartin Maresdistribute such modifications or work under the terms of Section 1 93*07039215SMartin Maresabove, provided that you also meet all of these conditions: 94*07039215SMartin Mares 95*07039215SMartin Mares a) You must cause the modified files to carry prominent notices 96*07039215SMartin Mares stating that you changed the files and the date of any change. 97*07039215SMartin Mares 98*07039215SMartin Mares b) You must cause any work that you distribute or publish, that in 99*07039215SMartin Mares whole or in part contains or is derived from the Program or any 100*07039215SMartin Mares part thereof, to be licensed as a whole at no charge to all third 101*07039215SMartin Mares parties under the terms of this License. 102*07039215SMartin Mares 103*07039215SMartin Mares c) If the modified program normally reads commands interactively 104*07039215SMartin Mares when run, you must cause it, when started running for such 105*07039215SMartin Mares interactive use in the most ordinary way, to print or display an 106*07039215SMartin Mares announcement including an appropriate copyright notice and a 107*07039215SMartin Mares notice that there is no warranty (or else, saying that you provide 108*07039215SMartin Mares a warranty) and that users may redistribute the program under 109*07039215SMartin Mares these conditions, and telling the user how to view a copy of this 110*07039215SMartin Mares License. (Exception: if the Program itself is interactive but 111*07039215SMartin Mares does not normally print such an announcement, your work based on 112*07039215SMartin Mares the Program is not required to print an announcement.) 113*07039215SMartin Mares 114*07039215SMartin MaresThese requirements apply to the modified work as a whole. If 115*07039215SMartin Maresidentifiable sections of that work are not derived from the Program, 116*07039215SMartin Maresand can be reasonably considered independent and separate works in 117*07039215SMartin Maresthemselves, then this License, and its terms, do not apply to those 118*07039215SMartin Maressections when you distribute them as separate works. But when you 119*07039215SMartin Maresdistribute the same sections as part of a whole which is a work based 120*07039215SMartin Mareson the Program, the distribution of the whole must be on the terms of 121*07039215SMartin Maresthis License, whose permissions for other licensees extend to the 122*07039215SMartin Maresentire whole, and thus to each and every part regardless of who wrote it. 123*07039215SMartin Mares 124*07039215SMartin MaresThus, it is not the intent of this section to claim rights or contest 125*07039215SMartin Maresyour rights to work written entirely by you; rather, the intent is to 126*07039215SMartin Maresexercise the right to control the distribution of derivative or 127*07039215SMartin Marescollective works based on the Program. 128*07039215SMartin Mares 129*07039215SMartin MaresIn addition, mere aggregation of another work not based on the Program 130*07039215SMartin Mareswith the Program (or with a work based on the Program) on a volume of 131*07039215SMartin Maresa storage or distribution medium does not bring the other work under 132*07039215SMartin Maresthe scope of this License. 133*07039215SMartin Mares 134*07039215SMartin Mares 3. You may copy and distribute the Program (or a work based on it, 135*07039215SMartin Maresunder Section 2) in object code or executable form under the terms of 136*07039215SMartin MaresSections 1 and 2 above provided that you also do one of the following: 137*07039215SMartin Mares 138*07039215SMartin Mares a) Accompany it with the complete corresponding machine-readable 139*07039215SMartin Mares source code, which must be distributed under the terms of Sections 140*07039215SMartin Mares 1 and 2 above on a medium customarily used for software interchange; or, 141*07039215SMartin Mares 142*07039215SMartin Mares b) Accompany it with a written offer, valid for at least three 143*07039215SMartin Mares years, to give any third party, for a charge no more than your 144*07039215SMartin Mares cost of physically performing source distribution, a complete 145*07039215SMartin Mares machine-readable copy of the corresponding source code, to be 146*07039215SMartin Mares distributed under the terms of Sections 1 and 2 above on a medium 147*07039215SMartin Mares customarily used for software interchange; or, 148*07039215SMartin Mares 149*07039215SMartin Mares c) Accompany it with the information you received as to the offer 150*07039215SMartin Mares to distribute corresponding source code. (This alternative is 151*07039215SMartin Mares allowed only for noncommercial distribution and only if you 152*07039215SMartin Mares received the program in object code or executable form with such 153*07039215SMartin Mares an offer, in accord with Subsection b above.) 154*07039215SMartin Mares 155*07039215SMartin MaresThe source code for a work means the preferred form of the work for 156*07039215SMartin Maresmaking modifications to it. For an executable work, complete source 157*07039215SMartin Marescode means all the source code for all modules it contains, plus any 158*07039215SMartin Maresassociated interface definition files, plus the scripts used to 159*07039215SMartin Marescontrol compilation and installation of the executable. However, as a 160*07039215SMartin Maresspecial exception, the source code distributed need not include 161*07039215SMartin Maresanything that is normally distributed (in either source or binary 162*07039215SMartin Maresform) with the major components (compiler, kernel, and so on) of the 163*07039215SMartin Maresoperating system on which the executable runs, unless that component 164*07039215SMartin Maresitself accompanies the executable. 165*07039215SMartin Mares 166*07039215SMartin MaresIf distribution of executable or object code is made by offering 167*07039215SMartin Maresaccess to copy from a designated place, then offering equivalent 168*07039215SMartin Maresaccess to copy the source code from the same place counts as 169*07039215SMartin Maresdistribution of the source code, even though third parties are not 170*07039215SMartin Marescompelled to copy the source along with the object code. 171*07039215SMartin Mares 172*07039215SMartin Mares 4. You may not copy, modify, sublicense, or distribute the Program 173*07039215SMartin Maresexcept as expressly provided under this License. Any attempt 174*07039215SMartin Maresotherwise to copy, modify, sublicense or distribute the Program is 175*07039215SMartin Maresvoid, and will automatically terminate your rights under this License. 176*07039215SMartin MaresHowever, parties who have received copies, or rights, from you under 177*07039215SMartin Maresthis License will not have their licenses terminated so long as such 178*07039215SMartin Maresparties remain in full compliance. 179*07039215SMartin Mares 180*07039215SMartin Mares 5. You are not required to accept this License, since you have not 181*07039215SMartin Maressigned it. However, nothing else grants you permission to modify or 182*07039215SMartin Maresdistribute the Program or its derivative works. These actions are 183*07039215SMartin Maresprohibited by law if you do not accept this License. Therefore, by 184*07039215SMartin Maresmodifying or distributing the Program (or any work based on the 185*07039215SMartin MaresProgram), you indicate your acceptance of this License to do so, and 186*07039215SMartin Maresall its terms and conditions for copying, distributing or modifying 187*07039215SMartin Maresthe Program or works based on it. 188*07039215SMartin Mares 189*07039215SMartin Mares 6. Each time you redistribute the Program (or any work based on the 190*07039215SMartin MaresProgram), the recipient automatically receives a license from the 191*07039215SMartin Maresoriginal licensor to copy, distribute or modify the Program subject to 192*07039215SMartin Maresthese terms and conditions. You may not impose any further 193*07039215SMartin Maresrestrictions on the recipients' exercise of the rights granted herein. 194*07039215SMartin MaresYou are not responsible for enforcing compliance by third parties to 195*07039215SMartin Maresthis License. 196*07039215SMartin Mares 197*07039215SMartin Mares 7. If, as a consequence of a court judgment or allegation of patent 198*07039215SMartin Maresinfringement or for any other reason (not limited to patent issues), 199*07039215SMartin Maresconditions are imposed on you (whether by court order, agreement or 200*07039215SMartin Maresotherwise) that contradict the conditions of this License, they do not 201*07039215SMartin Maresexcuse you from the conditions of this License. If you cannot 202*07039215SMartin Maresdistribute so as to satisfy simultaneously your obligations under this 203*07039215SMartin MaresLicense and any other pertinent obligations, then as a consequence you 204*07039215SMartin Maresmay not distribute the Program at all. For example, if a patent 205*07039215SMartin Mareslicense would not permit royalty-free redistribution of the Program by 206*07039215SMartin Maresall those who receive copies directly or indirectly through you, then 207*07039215SMartin Maresthe only way you could satisfy both it and this License would be to 208*07039215SMartin Maresrefrain entirely from distribution of the Program. 209*07039215SMartin Mares 210*07039215SMartin MaresIf any portion of this section is held invalid or unenforceable under 211*07039215SMartin Maresany particular circumstance, the balance of the section is intended to 212*07039215SMartin Maresapply and the section as a whole is intended to apply in other 213*07039215SMartin Marescircumstances. 214*07039215SMartin Mares 215*07039215SMartin MaresIt is not the purpose of this section to induce you to infringe any 216*07039215SMartin Marespatents or other property right claims or to contest validity of any 217*07039215SMartin Maressuch claims; this section has the sole purpose of protecting the 218*07039215SMartin Maresintegrity of the free software distribution system, which is 219*07039215SMartin Maresimplemented by public license practices. Many people have made 220*07039215SMartin Maresgenerous contributions to the wide range of software distributed 221*07039215SMartin Maresthrough that system in reliance on consistent application of that 222*07039215SMartin Maressystem; it is up to the author/donor to decide if he or she is willing 223*07039215SMartin Maresto distribute software through any other system and a licensee cannot 224*07039215SMartin Maresimpose that choice. 225*07039215SMartin Mares 226*07039215SMartin MaresThis section is intended to make thoroughly clear what is believed to 227*07039215SMartin Maresbe a consequence of the rest of this License. 228*07039215SMartin Mares 229*07039215SMartin Mares 8. If the distribution and/or use of the Program is restricted in 230*07039215SMartin Marescertain countries either by patents or by copyrighted interfaces, the 231*07039215SMartin Maresoriginal copyright holder who places the Program under this License 232*07039215SMartin Maresmay add an explicit geographical distribution limitation excluding 233*07039215SMartin Maresthose countries, so that distribution is permitted only in or among 234*07039215SMartin Marescountries not thus excluded. In such case, this License incorporates 235*07039215SMartin Maresthe limitation as if written in the body of this License. 236*07039215SMartin Mares 237*07039215SMartin Mares 9. The Free Software Foundation may publish revised and/or new versions 238*07039215SMartin Maresof the General Public License from time to time. Such new versions will 239*07039215SMartin Maresbe similar in spirit to the present version, but may differ in detail to 240*07039215SMartin Maresaddress new problems or concerns. 241*07039215SMartin Mares 242*07039215SMartin MaresEach version is given a distinguishing version number. If the Program 243*07039215SMartin Maresspecifies a version number of this License which applies to it and "any 244*07039215SMartin Mareslater version", you have the option of following the terms and conditions 245*07039215SMartin Mareseither of that version or of any later version published by the Free 246*07039215SMartin MaresSoftware Foundation. If the Program does not specify a version number of 247*07039215SMartin Maresthis License, you may choose any version ever published by the Free Software 248*07039215SMartin MaresFoundation. 249*07039215SMartin Mares 250*07039215SMartin Mares 10. If you wish to incorporate parts of the Program into other free 251*07039215SMartin Maresprograms whose distribution conditions are different, write to the author 252*07039215SMartin Maresto ask for permission. For software which is copyrighted by the Free 253*07039215SMartin MaresSoftware Foundation, write to the Free Software Foundation; we sometimes 254*07039215SMartin Maresmake exceptions for this. Our decision will be guided by the two goals 255*07039215SMartin Maresof preserving the free status of all derivatives of our free software and 256*07039215SMartin Maresof promoting the sharing and reuse of software generally. 257*07039215SMartin Mares 258*07039215SMartin Mares NO WARRANTY 259*07039215SMartin Mares 260*07039215SMartin Mares 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*07039215SMartin MaresFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*07039215SMartin MaresOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*07039215SMartin MaresPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*07039215SMartin MaresOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*07039215SMartin MaresMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*07039215SMartin MaresTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*07039215SMartin MaresPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*07039215SMartin MaresREPAIR OR CORRECTION. 269*07039215SMartin Mares 270*07039215SMartin Mares 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*07039215SMartin MaresWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*07039215SMartin MaresREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*07039215SMartin MaresINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*07039215SMartin MaresOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*07039215SMartin MaresTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*07039215SMartin MaresYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*07039215SMartin MaresPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*07039215SMartin MaresPOSSIBILITY OF SUCH DAMAGES. 279*07039215SMartin Mares 280*07039215SMartin Mares END OF TERMS AND CONDITIONS 281*07039215SMartin Mares 282*07039215SMartin Mares How to Apply These Terms to Your New Programs 283*07039215SMartin Mares 284*07039215SMartin Mares If you develop a new program, and you want it to be of the greatest 285*07039215SMartin Marespossible use to the public, the best way to achieve this is to make it 286*07039215SMartin Maresfree software which everyone can redistribute and change under these terms. 287*07039215SMartin Mares 288*07039215SMartin Mares To do so, attach the following notices to the program. It is safest 289*07039215SMartin Maresto attach them to the start of each source file to most effectively 290*07039215SMartin Maresconvey the exclusion of warranty; and each file should have at least 291*07039215SMartin Maresthe "copyright" line and a pointer to where the full notice is found. 292*07039215SMartin Mares 293*07039215SMartin Mares <one line to give the program's name and a brief idea of what it does.> 294*07039215SMartin Mares Copyright (C) <year> <name of author> 295*07039215SMartin Mares 296*07039215SMartin Mares This program is free software; you can redistribute it and/or modify 297*07039215SMartin Mares it under the terms of the GNU General Public License as published by 298*07039215SMartin Mares the Free Software Foundation; either version 2 of the License, or 299*07039215SMartin Mares (at your option) any later version. 300*07039215SMartin Mares 301*07039215SMartin Mares This program is distributed in the hope that it will be useful, 302*07039215SMartin Mares but WITHOUT ANY WARRANTY; without even the implied warranty of 303*07039215SMartin Mares MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*07039215SMartin Mares GNU General Public License for more details. 305*07039215SMartin Mares 306*07039215SMartin Mares You should have received a copy of the GNU General Public License along 307*07039215SMartin Mares with this program; if not, write to the Free Software Foundation, Inc., 308*07039215SMartin Mares 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309*07039215SMartin Mares 310*07039215SMartin MaresAlso add information on how to contact you by electronic and paper mail. 311*07039215SMartin Mares 312*07039215SMartin MaresIf the program is interactive, make it output a short notice like this 313*07039215SMartin Mareswhen it starts in an interactive mode: 314*07039215SMartin Mares 315*07039215SMartin Mares Gnomovision version 69, Copyright (C) year name of author 316*07039215SMartin Mares Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317*07039215SMartin Mares This is free software, and you are welcome to redistribute it 318*07039215SMartin Mares under certain conditions; type `show c' for details. 319*07039215SMartin Mares 320*07039215SMartin MaresThe hypothetical commands `show w' and `show c' should show the appropriate 321*07039215SMartin Maresparts of the General Public License. Of course, the commands you use may 322*07039215SMartin Maresbe called something other than `show w' and `show c'; they could even be 323*07039215SMartin Maresmouse-clicks or menu items--whatever suits your program. 324*07039215SMartin Mares 325*07039215SMartin MaresYou should also get your employer (if you work as a programmer) or your 326*07039215SMartin Maresschool, if any, to sign a "copyright disclaimer" for the program, if 327*07039215SMartin Maresnecessary. Here is a sample; alter the names: 328*07039215SMartin Mares 329*07039215SMartin Mares Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330*07039215SMartin Mares `Gnomovision' (which makes passes at compilers) written by James Hacker. 331*07039215SMartin Mares 332*07039215SMartin Mares <signature of Ty Coon>, 1 April 1989 333*07039215SMartin Mares Ty Coon, President of Vice 334*07039215SMartin Mares 335*07039215SMartin MaresThis General Public License does not permit incorporating your program into 336*07039215SMartin Maresproprietary programs. If your program is a subroutine library, you may 337*07039215SMartin Maresconsider it more useful to permit linking proprietary applications with the 338*07039215SMartin Mareslibrary. If this is what you want to do, use the GNU Lesser General 339*07039215SMartin MaresPublic License instead of this License. 340