1*3d36ee2eSJeremy Kerrlibmctp is released under a dual Apache-2.0 OR GPLv2+ license. The 2*3d36ee2eSJeremy Kerrtexts of both licences is included below. 3*3d36ee2eSJeremy Kerr 4*3d36ee2eSJeremy Kerr------------------------------------------------------------------------------- 5ebf9b4eeSJeremy Kerr Apache License 6ebf9b4eeSJeremy Kerr Version 2.0, January 2004 7ebf9b4eeSJeremy Kerr http://www.apache.org/licenses/ 8ebf9b4eeSJeremy Kerr 9ebf9b4eeSJeremy Kerr TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 10ebf9b4eeSJeremy Kerr 11ebf9b4eeSJeremy Kerr 1. Definitions. 12ebf9b4eeSJeremy Kerr 13ebf9b4eeSJeremy Kerr "License" shall mean the terms and conditions for use, reproduction, 14ebf9b4eeSJeremy Kerr and distribution as defined by Sections 1 through 9 of this document. 15ebf9b4eeSJeremy Kerr 16ebf9b4eeSJeremy Kerr "Licensor" shall mean the copyright owner or entity authorized by 17ebf9b4eeSJeremy Kerr the copyright owner that is granting the License. 18ebf9b4eeSJeremy Kerr 19ebf9b4eeSJeremy Kerr "Legal Entity" shall mean the union of the acting entity and all 20ebf9b4eeSJeremy Kerr other entities that control, are controlled by, or are under common 21ebf9b4eeSJeremy Kerr control with that entity. For the purposes of this definition, 22ebf9b4eeSJeremy Kerr "control" means (i) the power, direct or indirect, to cause the 23ebf9b4eeSJeremy Kerr direction or management of such entity, whether by contract or 24ebf9b4eeSJeremy Kerr otherwise, or (ii) ownership of fifty percent (50%) or more of the 25ebf9b4eeSJeremy Kerr outstanding shares, or (iii) beneficial ownership of such entity. 26ebf9b4eeSJeremy Kerr 27ebf9b4eeSJeremy Kerr "You" (or "Your") shall mean an individual or Legal Entity 28ebf9b4eeSJeremy Kerr exercising permissions granted by this License. 29ebf9b4eeSJeremy Kerr 30ebf9b4eeSJeremy Kerr "Source" form shall mean the preferred form for making modifications, 31ebf9b4eeSJeremy Kerr including but not limited to software source code, documentation 32ebf9b4eeSJeremy Kerr source, and configuration files. 33ebf9b4eeSJeremy Kerr 34ebf9b4eeSJeremy Kerr "Object" form shall mean any form resulting from mechanical 35ebf9b4eeSJeremy Kerr transformation or translation of a Source form, including but 36ebf9b4eeSJeremy Kerr not limited to compiled object code, generated documentation, 37ebf9b4eeSJeremy Kerr and conversions to other media types. 38ebf9b4eeSJeremy Kerr 39ebf9b4eeSJeremy Kerr "Work" shall mean the work of authorship, whether in Source or 40ebf9b4eeSJeremy Kerr Object form, made available under the License, as indicated by a 41ebf9b4eeSJeremy Kerr copyright notice that is included in or attached to the work 42ebf9b4eeSJeremy Kerr (an example is provided in the Appendix below). 43ebf9b4eeSJeremy Kerr 44ebf9b4eeSJeremy Kerr "Derivative Works" shall mean any work, whether in Source or Object 45ebf9b4eeSJeremy Kerr form, that is based on (or derived from) the Work and for which the 46ebf9b4eeSJeremy Kerr editorial revisions, annotations, elaborations, or other modifications 47ebf9b4eeSJeremy Kerr represent, as a whole, an original work of authorship. For the purposes 48ebf9b4eeSJeremy Kerr of this License, Derivative Works shall not include works that remain 49ebf9b4eeSJeremy Kerr separable from, or merely link (or bind by name) to the interfaces of, 50ebf9b4eeSJeremy Kerr the Work and Derivative Works thereof. 51ebf9b4eeSJeremy Kerr 52ebf9b4eeSJeremy Kerr "Contribution" shall mean any work of authorship, including 53ebf9b4eeSJeremy Kerr the original version of the Work and any modifications or additions 54ebf9b4eeSJeremy Kerr to that Work or Derivative Works thereof, that is intentionally 55ebf9b4eeSJeremy Kerr submitted to Licensor for inclusion in the Work by the copyright owner 56ebf9b4eeSJeremy Kerr or by an individual or Legal Entity authorized to submit on behalf of 57ebf9b4eeSJeremy Kerr the copyright owner. For the purposes of this definition, "submitted" 58ebf9b4eeSJeremy Kerr means any form of electronic, verbal, or written communication sent 59ebf9b4eeSJeremy Kerr to the Licensor or its representatives, including but not limited to 60ebf9b4eeSJeremy Kerr communication on electronic mailing lists, source code control systems, 61ebf9b4eeSJeremy Kerr and issue tracking systems that are managed by, or on behalf of, the 62ebf9b4eeSJeremy Kerr Licensor for the purpose of discussing and improving the Work, but 63ebf9b4eeSJeremy Kerr excluding communication that is conspicuously marked or otherwise 64ebf9b4eeSJeremy Kerr designated in writing by the copyright owner as "Not a Contribution." 65ebf9b4eeSJeremy Kerr 66ebf9b4eeSJeremy Kerr "Contributor" shall mean Licensor and any individual or Legal Entity 67ebf9b4eeSJeremy Kerr on behalf of whom a Contribution has been received by Licensor and 68ebf9b4eeSJeremy Kerr subsequently incorporated within the Work. 69ebf9b4eeSJeremy Kerr 70ebf9b4eeSJeremy Kerr 2. Grant of Copyright License. Subject to the terms and conditions of 71ebf9b4eeSJeremy Kerr this License, each Contributor hereby grants to You a perpetual, 72ebf9b4eeSJeremy Kerr worldwide, non-exclusive, no-charge, royalty-free, irrevocable 73ebf9b4eeSJeremy Kerr copyright license to reproduce, prepare Derivative Works of, 74ebf9b4eeSJeremy Kerr publicly display, publicly perform, sublicense, and distribute the 75ebf9b4eeSJeremy Kerr Work and such Derivative Works in Source or Object form. 76ebf9b4eeSJeremy Kerr 77ebf9b4eeSJeremy Kerr 3. Grant of Patent License. Subject to the terms and conditions of 78ebf9b4eeSJeremy Kerr this License, each Contributor hereby grants to You a perpetual, 79ebf9b4eeSJeremy Kerr worldwide, non-exclusive, no-charge, royalty-free, irrevocable 80ebf9b4eeSJeremy Kerr (except as stated in this section) patent license to make, have made, 81ebf9b4eeSJeremy Kerr use, offer to sell, sell, import, and otherwise transfer the Work, 82ebf9b4eeSJeremy Kerr where such license applies only to those patent claims licensable 83ebf9b4eeSJeremy Kerr by such Contributor that are necessarily infringed by their 84ebf9b4eeSJeremy Kerr Contribution(s) alone or by combination of their Contribution(s) 85ebf9b4eeSJeremy Kerr with the Work to which such Contribution(s) was submitted. If You 86ebf9b4eeSJeremy Kerr institute patent litigation against any entity (including a 87ebf9b4eeSJeremy Kerr cross-claim or counterclaim in a lawsuit) alleging that the Work 88ebf9b4eeSJeremy Kerr or a Contribution incorporated within the Work constitutes direct 89ebf9b4eeSJeremy Kerr or contributory patent infringement, then any patent licenses 90ebf9b4eeSJeremy Kerr granted to You under this License for that Work shall terminate 91ebf9b4eeSJeremy Kerr as of the date such litigation is filed. 92ebf9b4eeSJeremy Kerr 93ebf9b4eeSJeremy Kerr 4. Redistribution. You may reproduce and distribute copies of the 94ebf9b4eeSJeremy Kerr Work or Derivative Works thereof in any medium, with or without 95ebf9b4eeSJeremy Kerr modifications, and in Source or Object form, provided that You 96ebf9b4eeSJeremy Kerr meet the following conditions: 97ebf9b4eeSJeremy Kerr 98ebf9b4eeSJeremy Kerr (a) You must give any other recipients of the Work or 99ebf9b4eeSJeremy Kerr Derivative Works a copy of this License; and 100ebf9b4eeSJeremy Kerr 101ebf9b4eeSJeremy Kerr (b) You must cause any modified files to carry prominent notices 102ebf9b4eeSJeremy Kerr stating that You changed the files; and 103ebf9b4eeSJeremy Kerr 104ebf9b4eeSJeremy Kerr (c) You must retain, in the Source form of any Derivative Works 105ebf9b4eeSJeremy Kerr that You distribute, all copyright, patent, trademark, and 106ebf9b4eeSJeremy Kerr attribution notices from the Source form of the Work, 107ebf9b4eeSJeremy Kerr excluding those notices that do not pertain to any part of 108ebf9b4eeSJeremy Kerr the Derivative Works; and 109ebf9b4eeSJeremy Kerr 110ebf9b4eeSJeremy Kerr (d) If the Work includes a "NOTICE" text file as part of its 111ebf9b4eeSJeremy Kerr distribution, then any Derivative Works that You distribute must 112ebf9b4eeSJeremy Kerr include a readable copy of the attribution notices contained 113ebf9b4eeSJeremy Kerr within such NOTICE file, excluding those notices that do not 114ebf9b4eeSJeremy Kerr pertain to any part of the Derivative Works, in at least one 115ebf9b4eeSJeremy Kerr of the following places: within a NOTICE text file distributed 116ebf9b4eeSJeremy Kerr as part of the Derivative Works; within the Source form or 117ebf9b4eeSJeremy Kerr documentation, if provided along with the Derivative Works; or, 118ebf9b4eeSJeremy Kerr within a display generated by the Derivative Works, if and 119ebf9b4eeSJeremy Kerr wherever such third-party notices normally appear. The contents 120ebf9b4eeSJeremy Kerr of the NOTICE file are for informational purposes only and 121ebf9b4eeSJeremy Kerr do not modify the License. You may add Your own attribution 122ebf9b4eeSJeremy Kerr notices within Derivative Works that You distribute, alongside 123ebf9b4eeSJeremy Kerr or as an addendum to the NOTICE text from the Work, provided 124ebf9b4eeSJeremy Kerr that such additional attribution notices cannot be construed 125ebf9b4eeSJeremy Kerr as modifying the License. 126ebf9b4eeSJeremy Kerr 127ebf9b4eeSJeremy Kerr You may add Your own copyright statement to Your modifications and 128ebf9b4eeSJeremy Kerr may provide additional or different license terms and conditions 129ebf9b4eeSJeremy Kerr for use, reproduction, or distribution of Your modifications, or 130ebf9b4eeSJeremy Kerr for any such Derivative Works as a whole, provided Your use, 131ebf9b4eeSJeremy Kerr reproduction, and distribution of the Work otherwise complies with 132ebf9b4eeSJeremy Kerr the conditions stated in this License. 133ebf9b4eeSJeremy Kerr 134ebf9b4eeSJeremy Kerr 5. Submission of Contributions. Unless You explicitly state otherwise, 135ebf9b4eeSJeremy Kerr any Contribution intentionally submitted for inclusion in the Work 136ebf9b4eeSJeremy Kerr by You to the Licensor shall be under the terms and conditions of 137ebf9b4eeSJeremy Kerr this License, without any additional terms or conditions. 138ebf9b4eeSJeremy Kerr Notwithstanding the above, nothing herein shall supersede or modify 139ebf9b4eeSJeremy Kerr the terms of any separate license agreement you may have executed 140ebf9b4eeSJeremy Kerr with Licensor regarding such Contributions. 141ebf9b4eeSJeremy Kerr 142ebf9b4eeSJeremy Kerr 6. Trademarks. This License does not grant permission to use the trade 143ebf9b4eeSJeremy Kerr names, trademarks, service marks, or product names of the Licensor, 144ebf9b4eeSJeremy Kerr except as required for reasonable and customary use in describing the 145ebf9b4eeSJeremy Kerr origin of the Work and reproducing the content of the NOTICE file. 146ebf9b4eeSJeremy Kerr 147ebf9b4eeSJeremy Kerr 7. Disclaimer of Warranty. Unless required by applicable law or 148ebf9b4eeSJeremy Kerr agreed to in writing, Licensor provides the Work (and each 149ebf9b4eeSJeremy Kerr Contributor provides its Contributions) on an "AS IS" BASIS, 150ebf9b4eeSJeremy Kerr WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 151ebf9b4eeSJeremy Kerr implied, including, without limitation, any warranties or conditions 152ebf9b4eeSJeremy Kerr of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 153ebf9b4eeSJeremy Kerr PARTICULAR PURPOSE. You are solely responsible for determining the 154ebf9b4eeSJeremy Kerr appropriateness of using or redistributing the Work and assume any 155ebf9b4eeSJeremy Kerr risks associated with Your exercise of permissions under this License. 156ebf9b4eeSJeremy Kerr 157ebf9b4eeSJeremy Kerr 8. Limitation of Liability. In no event and under no legal theory, 158ebf9b4eeSJeremy Kerr whether in tort (including negligence), contract, or otherwise, 159ebf9b4eeSJeremy Kerr unless required by applicable law (such as deliberate and grossly 160ebf9b4eeSJeremy Kerr negligent acts) or agreed to in writing, shall any Contributor be 161ebf9b4eeSJeremy Kerr liable to You for damages, including any direct, indirect, special, 162ebf9b4eeSJeremy Kerr incidental, or consequential damages of any character arising as a 163ebf9b4eeSJeremy Kerr result of this License or out of the use or inability to use the 164ebf9b4eeSJeremy Kerr Work (including but not limited to damages for loss of goodwill, 165ebf9b4eeSJeremy Kerr work stoppage, computer failure or malfunction, or any and all 166ebf9b4eeSJeremy Kerr other commercial damages or losses), even if such Contributor 167ebf9b4eeSJeremy Kerr has been advised of the possibility of such damages. 168ebf9b4eeSJeremy Kerr 169ebf9b4eeSJeremy Kerr 9. Accepting Warranty or Additional Liability. While redistributing 170ebf9b4eeSJeremy Kerr the Work or Derivative Works thereof, You may choose to offer, 171ebf9b4eeSJeremy Kerr and charge a fee for, acceptance of support, warranty, indemnity, 172ebf9b4eeSJeremy Kerr or other liability obligations and/or rights consistent with this 173ebf9b4eeSJeremy Kerr License. However, in accepting such obligations, You may act only 174ebf9b4eeSJeremy Kerr on Your own behalf and on Your sole responsibility, not on behalf 175ebf9b4eeSJeremy Kerr of any other Contributor, and only if You agree to indemnify, 176ebf9b4eeSJeremy Kerr defend, and hold each Contributor harmless for any liability 177ebf9b4eeSJeremy Kerr incurred by, or claims asserted against, such Contributor by reason 178ebf9b4eeSJeremy Kerr of your accepting any such warranty or additional liability. 179ebf9b4eeSJeremy Kerr 180ebf9b4eeSJeremy Kerr END OF TERMS AND CONDITIONS 181ebf9b4eeSJeremy Kerr 182ebf9b4eeSJeremy Kerr APPENDIX: How to apply the Apache License to your work. 183ebf9b4eeSJeremy Kerr 184ebf9b4eeSJeremy Kerr To apply the Apache License to your work, attach the following 185ebf9b4eeSJeremy Kerr boilerplate notice, with the fields enclosed by brackets "{}" 186ebf9b4eeSJeremy Kerr replaced with your own identifying information. (Don't include 187ebf9b4eeSJeremy Kerr the brackets!) The text should be enclosed in the appropriate 188ebf9b4eeSJeremy Kerr comment syntax for the file format. We also recommend that a 189ebf9b4eeSJeremy Kerr file or class name and description of purpose be included on the 190ebf9b4eeSJeremy Kerr same "printed page" as the copyright notice for easier 191ebf9b4eeSJeremy Kerr identification within third-party archives. 192ebf9b4eeSJeremy Kerr 193ebf9b4eeSJeremy Kerr Copyright {yyyy} {name of copyright owner} 194ebf9b4eeSJeremy Kerr 195ebf9b4eeSJeremy Kerr Licensed under the Apache License, Version 2.0 (the "License"); 196ebf9b4eeSJeremy Kerr you may not use this file except in compliance with the License. 197ebf9b4eeSJeremy Kerr You may obtain a copy of the License at 198ebf9b4eeSJeremy Kerr 199ebf9b4eeSJeremy Kerr http://www.apache.org/licenses/LICENSE-2.0 200ebf9b4eeSJeremy Kerr 201ebf9b4eeSJeremy Kerr Unless required by applicable law or agreed to in writing, software 202ebf9b4eeSJeremy Kerr distributed under the License is distributed on an "AS IS" BASIS, 203ebf9b4eeSJeremy Kerr WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 204ebf9b4eeSJeremy Kerr See the License for the specific language governing permissions and 205ebf9b4eeSJeremy Kerr limitations under the License. 206ebf9b4eeSJeremy Kerr 207*3d36ee2eSJeremy Kerr------------------------------------------------------------------------------- 208*3d36ee2eSJeremy Kerr 209*3d36ee2eSJeremy Kerr GNU GENERAL PUBLIC LICENSE 210*3d36ee2eSJeremy Kerr Version 2, June 1991 211*3d36ee2eSJeremy Kerr 212*3d36ee2eSJeremy Kerr Copyright (C) 1989, 1991 Free Software Foundation, Inc., 213*3d36ee2eSJeremy Kerr 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 214*3d36ee2eSJeremy Kerr Everyone is permitted to copy and distribute verbatim copies 215*3d36ee2eSJeremy Kerr of this license document, but changing it is not allowed. 216*3d36ee2eSJeremy Kerr 217*3d36ee2eSJeremy Kerr Preamble 218*3d36ee2eSJeremy Kerr 219*3d36ee2eSJeremy Kerr The licenses for most software are designed to take away your 220*3d36ee2eSJeremy Kerrfreedom to share and change it. By contrast, the GNU General Public 221*3d36ee2eSJeremy KerrLicense is intended to guarantee your freedom to share and change free 222*3d36ee2eSJeremy Kerrsoftware--to make sure the software is free for all its users. This 223*3d36ee2eSJeremy KerrGeneral Public License applies to most of the Free Software 224*3d36ee2eSJeremy KerrFoundation's software and to any other program whose authors commit to 225*3d36ee2eSJeremy Kerrusing it. (Some other Free Software Foundation software is covered by 226*3d36ee2eSJeremy Kerrthe GNU Lesser General Public License instead.) You can apply it to 227*3d36ee2eSJeremy Kerryour programs, too. 228*3d36ee2eSJeremy Kerr 229*3d36ee2eSJeremy Kerr When we speak of free software, we are referring to freedom, not 230*3d36ee2eSJeremy Kerrprice. Our General Public Licenses are designed to make sure that you 231*3d36ee2eSJeremy Kerrhave the freedom to distribute copies of free software (and charge for 232*3d36ee2eSJeremy Kerrthis service if you wish), that you receive source code or can get it 233*3d36ee2eSJeremy Kerrif you want it, that you can change the software or use pieces of it 234*3d36ee2eSJeremy Kerrin new free programs; and that you know you can do these things. 235*3d36ee2eSJeremy Kerr 236*3d36ee2eSJeremy Kerr To protect your rights, we need to make restrictions that forbid 237*3d36ee2eSJeremy Kerranyone to deny you these rights or to ask you to surrender the rights. 238*3d36ee2eSJeremy KerrThese restrictions translate to certain responsibilities for you if you 239*3d36ee2eSJeremy Kerrdistribute copies of the software, or if you modify it. 240*3d36ee2eSJeremy Kerr 241*3d36ee2eSJeremy Kerr For example, if you distribute copies of such a program, whether 242*3d36ee2eSJeremy Kerrgratis or for a fee, you must give the recipients all the rights that 243*3d36ee2eSJeremy Kerryou have. You must make sure that they, too, receive or can get the 244*3d36ee2eSJeremy Kerrsource code. And you must show them these terms so they know their 245*3d36ee2eSJeremy Kerrrights. 246*3d36ee2eSJeremy Kerr 247*3d36ee2eSJeremy Kerr We protect your rights with two steps: (1) copyright the software, and 248*3d36ee2eSJeremy Kerr(2) offer you this license which gives you legal permission to copy, 249*3d36ee2eSJeremy Kerrdistribute and/or modify the software. 250*3d36ee2eSJeremy Kerr 251*3d36ee2eSJeremy Kerr Also, for each author's protection and ours, we want to make certain 252*3d36ee2eSJeremy Kerrthat everyone understands that there is no warranty for this free 253*3d36ee2eSJeremy Kerrsoftware. If the software is modified by someone else and passed on, we 254*3d36ee2eSJeremy Kerrwant its recipients to know that what they have is not the original, so 255*3d36ee2eSJeremy Kerrthat any problems introduced by others will not reflect on the original 256*3d36ee2eSJeremy Kerrauthors' reputations. 257*3d36ee2eSJeremy Kerr 258*3d36ee2eSJeremy Kerr Finally, any free program is threatened constantly by software 259*3d36ee2eSJeremy Kerrpatents. We wish to avoid the danger that redistributors of a free 260*3d36ee2eSJeremy Kerrprogram will individually obtain patent licenses, in effect making the 261*3d36ee2eSJeremy Kerrprogram proprietary. To prevent this, we have made it clear that any 262*3d36ee2eSJeremy Kerrpatent must be licensed for everyone's free use or not licensed at all. 263*3d36ee2eSJeremy Kerr 264*3d36ee2eSJeremy Kerr The precise terms and conditions for copying, distribution and 265*3d36ee2eSJeremy Kerrmodification follow. 266*3d36ee2eSJeremy Kerr 267*3d36ee2eSJeremy Kerr GNU GENERAL PUBLIC LICENSE 268*3d36ee2eSJeremy Kerr TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 269*3d36ee2eSJeremy Kerr 270*3d36ee2eSJeremy Kerr 0. This License applies to any program or other work which contains 271*3d36ee2eSJeremy Kerra notice placed by the copyright holder saying it may be distributed 272*3d36ee2eSJeremy Kerrunder the terms of this General Public License. The "Program", below, 273*3d36ee2eSJeremy Kerrrefers to any such program or work, and a "work based on the Program" 274*3d36ee2eSJeremy Kerrmeans either the Program or any derivative work under copyright law: 275*3d36ee2eSJeremy Kerrthat is to say, a work containing the Program or a portion of it, 276*3d36ee2eSJeremy Kerreither verbatim or with modifications and/or translated into another 277*3d36ee2eSJeremy Kerrlanguage. (Hereinafter, translation is included without limitation in 278*3d36ee2eSJeremy Kerrthe term "modification".) Each licensee is addressed as "you". 279*3d36ee2eSJeremy Kerr 280*3d36ee2eSJeremy KerrActivities other than copying, distribution and modification are not 281*3d36ee2eSJeremy Kerrcovered by this License; they are outside its scope. The act of 282*3d36ee2eSJeremy Kerrrunning the Program is not restricted, and the output from the Program 283*3d36ee2eSJeremy Kerris covered only if its contents constitute a work based on the 284*3d36ee2eSJeremy KerrProgram (independent of having been made by running the Program). 285*3d36ee2eSJeremy KerrWhether that is true depends on what the Program does. 286*3d36ee2eSJeremy Kerr 287*3d36ee2eSJeremy Kerr 1. You may copy and distribute verbatim copies of the Program's 288*3d36ee2eSJeremy Kerrsource code as you receive it, in any medium, provided that you 289*3d36ee2eSJeremy Kerrconspicuously and appropriately publish on each copy an appropriate 290*3d36ee2eSJeremy Kerrcopyright notice and disclaimer of warranty; keep intact all the 291*3d36ee2eSJeremy Kerrnotices that refer to this License and to the absence of any warranty; 292*3d36ee2eSJeremy Kerrand give any other recipients of the Program a copy of this License 293*3d36ee2eSJeremy Kerralong with the Program. 294*3d36ee2eSJeremy Kerr 295*3d36ee2eSJeremy KerrYou may charge a fee for the physical act of transferring a copy, and 296*3d36ee2eSJeremy Kerryou may at your option offer warranty protection in exchange for a fee. 297*3d36ee2eSJeremy Kerr 298*3d36ee2eSJeremy Kerr 2. You may modify your copy or copies of the Program or any portion 299*3d36ee2eSJeremy Kerrof it, thus forming a work based on the Program, and copy and 300*3d36ee2eSJeremy Kerrdistribute such modifications or work under the terms of Section 1 301*3d36ee2eSJeremy Kerrabove, provided that you also meet all of these conditions: 302*3d36ee2eSJeremy Kerr 303*3d36ee2eSJeremy Kerr a) You must cause the modified files to carry prominent notices 304*3d36ee2eSJeremy Kerr stating that you changed the files and the date of any change. 305*3d36ee2eSJeremy Kerr 306*3d36ee2eSJeremy Kerr b) You must cause any work that you distribute or publish, that in 307*3d36ee2eSJeremy Kerr whole or in part contains or is derived from the Program or any 308*3d36ee2eSJeremy Kerr part thereof, to be licensed as a whole at no charge to all third 309*3d36ee2eSJeremy Kerr parties under the terms of this License. 310*3d36ee2eSJeremy Kerr 311*3d36ee2eSJeremy Kerr c) If the modified program normally reads commands interactively 312*3d36ee2eSJeremy Kerr when run, you must cause it, when started running for such 313*3d36ee2eSJeremy Kerr interactive use in the most ordinary way, to print or display an 314*3d36ee2eSJeremy Kerr announcement including an appropriate copyright notice and a 315*3d36ee2eSJeremy Kerr notice that there is no warranty (or else, saying that you provide 316*3d36ee2eSJeremy Kerr a warranty) and that users may redistribute the program under 317*3d36ee2eSJeremy Kerr these conditions, and telling the user how to view a copy of this 318*3d36ee2eSJeremy Kerr License. (Exception: if the Program itself is interactive but 319*3d36ee2eSJeremy Kerr does not normally print such an announcement, your work based on 320*3d36ee2eSJeremy Kerr the Program is not required to print an announcement.) 321*3d36ee2eSJeremy Kerr 322*3d36ee2eSJeremy KerrThese requirements apply to the modified work as a whole. If 323*3d36ee2eSJeremy Kerridentifiable sections of that work are not derived from the Program, 324*3d36ee2eSJeremy Kerrand can be reasonably considered independent and separate works in 325*3d36ee2eSJeremy Kerrthemselves, then this License, and its terms, do not apply to those 326*3d36ee2eSJeremy Kerrsections when you distribute them as separate works. But when you 327*3d36ee2eSJeremy Kerrdistribute the same sections as part of a whole which is a work based 328*3d36ee2eSJeremy Kerron the Program, the distribution of the whole must be on the terms of 329*3d36ee2eSJeremy Kerrthis License, whose permissions for other licensees extend to the 330*3d36ee2eSJeremy Kerrentire whole, and thus to each and every part regardless of who wrote it. 331*3d36ee2eSJeremy Kerr 332*3d36ee2eSJeremy KerrThus, it is not the intent of this section to claim rights or contest 333*3d36ee2eSJeremy Kerryour rights to work written entirely by you; rather, the intent is to 334*3d36ee2eSJeremy Kerrexercise the right to control the distribution of derivative or 335*3d36ee2eSJeremy Kerrcollective works based on the Program. 336*3d36ee2eSJeremy Kerr 337*3d36ee2eSJeremy KerrIn addition, mere aggregation of another work not based on the Program 338*3d36ee2eSJeremy Kerrwith the Program (or with a work based on the Program) on a volume of 339*3d36ee2eSJeremy Kerra storage or distribution medium does not bring the other work under 340*3d36ee2eSJeremy Kerrthe scope of this License. 341*3d36ee2eSJeremy Kerr 342*3d36ee2eSJeremy Kerr 3. You may copy and distribute the Program (or a work based on it, 343*3d36ee2eSJeremy Kerrunder Section 2) in object code or executable form under the terms of 344*3d36ee2eSJeremy KerrSections 1 and 2 above provided that you also do one of the following: 345*3d36ee2eSJeremy Kerr 346*3d36ee2eSJeremy Kerr a) Accompany it with the complete corresponding machine-readable 347*3d36ee2eSJeremy Kerr source code, which must be distributed under the terms of Sections 348*3d36ee2eSJeremy Kerr 1 and 2 above on a medium customarily used for software interchange; or, 349*3d36ee2eSJeremy Kerr 350*3d36ee2eSJeremy Kerr b) Accompany it with a written offer, valid for at least three 351*3d36ee2eSJeremy Kerr years, to give any third party, for a charge no more than your 352*3d36ee2eSJeremy Kerr cost of physically performing source distribution, a complete 353*3d36ee2eSJeremy Kerr machine-readable copy of the corresponding source code, to be 354*3d36ee2eSJeremy Kerr distributed under the terms of Sections 1 and 2 above on a medium 355*3d36ee2eSJeremy Kerr customarily used for software interchange; or, 356*3d36ee2eSJeremy Kerr 357*3d36ee2eSJeremy Kerr c) Accompany it with the information you received as to the offer 358*3d36ee2eSJeremy Kerr to distribute corresponding source code. (This alternative is 359*3d36ee2eSJeremy Kerr allowed only for noncommercial distribution and only if you 360*3d36ee2eSJeremy Kerr received the program in object code or executable form with such 361*3d36ee2eSJeremy Kerr an offer, in accord with Subsection b above.) 362*3d36ee2eSJeremy Kerr 363*3d36ee2eSJeremy KerrThe source code for a work means the preferred form of the work for 364*3d36ee2eSJeremy Kerrmaking modifications to it. For an executable work, complete source 365*3d36ee2eSJeremy Kerrcode means all the source code for all modules it contains, plus any 366*3d36ee2eSJeremy Kerrassociated interface definition files, plus the scripts used to 367*3d36ee2eSJeremy Kerrcontrol compilation and installation of the executable. However, as a 368*3d36ee2eSJeremy Kerrspecial exception, the source code distributed need not include 369*3d36ee2eSJeremy Kerranything that is normally distributed (in either source or binary 370*3d36ee2eSJeremy Kerrform) with the major components (compiler, kernel, and so on) of the 371*3d36ee2eSJeremy Kerroperating system on which the executable runs, unless that component 372*3d36ee2eSJeremy Kerritself accompanies the executable. 373*3d36ee2eSJeremy Kerr 374*3d36ee2eSJeremy KerrIf distribution of executable or object code is made by offering 375*3d36ee2eSJeremy Kerraccess to copy from a designated place, then offering equivalent 376*3d36ee2eSJeremy Kerraccess to copy the source code from the same place counts as 377*3d36ee2eSJeremy Kerrdistribution of the source code, even though third parties are not 378*3d36ee2eSJeremy Kerrcompelled to copy the source along with the object code. 379*3d36ee2eSJeremy Kerr 380*3d36ee2eSJeremy Kerr 4. You may not copy, modify, sublicense, or distribute the Program 381*3d36ee2eSJeremy Kerrexcept as expressly provided under this License. Any attempt 382*3d36ee2eSJeremy Kerrotherwise to copy, modify, sublicense or distribute the Program is 383*3d36ee2eSJeremy Kerrvoid, and will automatically terminate your rights under this License. 384*3d36ee2eSJeremy KerrHowever, parties who have received copies, or rights, from you under 385*3d36ee2eSJeremy Kerrthis License will not have their licenses terminated so long as such 386*3d36ee2eSJeremy Kerrparties remain in full compliance. 387*3d36ee2eSJeremy Kerr 388*3d36ee2eSJeremy Kerr 5. You are not required to accept this License, since you have not 389*3d36ee2eSJeremy Kerrsigned it. However, nothing else grants you permission to modify or 390*3d36ee2eSJeremy Kerrdistribute the Program or its derivative works. These actions are 391*3d36ee2eSJeremy Kerrprohibited by law if you do not accept this License. Therefore, by 392*3d36ee2eSJeremy Kerrmodifying or distributing the Program (or any work based on the 393*3d36ee2eSJeremy KerrProgram), you indicate your acceptance of this License to do so, and 394*3d36ee2eSJeremy Kerrall its terms and conditions for copying, distributing or modifying 395*3d36ee2eSJeremy Kerrthe Program or works based on it. 396*3d36ee2eSJeremy Kerr 397*3d36ee2eSJeremy Kerr 6. Each time you redistribute the Program (or any work based on the 398*3d36ee2eSJeremy KerrProgram), the recipient automatically receives a license from the 399*3d36ee2eSJeremy Kerroriginal licensor to copy, distribute or modify the Program subject to 400*3d36ee2eSJeremy Kerrthese terms and conditions. You may not impose any further 401*3d36ee2eSJeremy Kerrrestrictions on the recipients' exercise of the rights granted herein. 402*3d36ee2eSJeremy KerrYou are not responsible for enforcing compliance by third parties to 403*3d36ee2eSJeremy Kerrthis License. 404*3d36ee2eSJeremy Kerr 405*3d36ee2eSJeremy Kerr 7. If, as a consequence of a court judgment or allegation of patent 406*3d36ee2eSJeremy Kerrinfringement or for any other reason (not limited to patent issues), 407*3d36ee2eSJeremy Kerrconditions are imposed on you (whether by court order, agreement or 408*3d36ee2eSJeremy Kerrotherwise) that contradict the conditions of this License, they do not 409*3d36ee2eSJeremy Kerrexcuse you from the conditions of this License. If you cannot 410*3d36ee2eSJeremy Kerrdistribute so as to satisfy simultaneously your obligations under this 411*3d36ee2eSJeremy KerrLicense and any other pertinent obligations, then as a consequence you 412*3d36ee2eSJeremy Kerrmay not distribute the Program at all. For example, if a patent 413*3d36ee2eSJeremy Kerrlicense would not permit royalty-free redistribution of the Program by 414*3d36ee2eSJeremy Kerrall those who receive copies directly or indirectly through you, then 415*3d36ee2eSJeremy Kerrthe only way you could satisfy both it and this License would be to 416*3d36ee2eSJeremy Kerrrefrain entirely from distribution of the Program. 417*3d36ee2eSJeremy Kerr 418*3d36ee2eSJeremy KerrIf any portion of this section is held invalid or unenforceable under 419*3d36ee2eSJeremy Kerrany particular circumstance, the balance of the section is intended to 420*3d36ee2eSJeremy Kerrapply and the section as a whole is intended to apply in other 421*3d36ee2eSJeremy Kerrcircumstances. 422*3d36ee2eSJeremy Kerr 423*3d36ee2eSJeremy KerrIt is not the purpose of this section to induce you to infringe any 424*3d36ee2eSJeremy Kerrpatents or other property right claims or to contest validity of any 425*3d36ee2eSJeremy Kerrsuch claims; this section has the sole purpose of protecting the 426*3d36ee2eSJeremy Kerrintegrity of the free software distribution system, which is 427*3d36ee2eSJeremy Kerrimplemented by public license practices. Many people have made 428*3d36ee2eSJeremy Kerrgenerous contributions to the wide range of software distributed 429*3d36ee2eSJeremy Kerrthrough that system in reliance on consistent application of that 430*3d36ee2eSJeremy Kerrsystem; it is up to the author/donor to decide if he or she is willing 431*3d36ee2eSJeremy Kerrto distribute software through any other system and a licensee cannot 432*3d36ee2eSJeremy Kerrimpose that choice. 433*3d36ee2eSJeremy Kerr 434*3d36ee2eSJeremy KerrThis section is intended to make thoroughly clear what is believed to 435*3d36ee2eSJeremy Kerrbe a consequence of the rest of this License. 436*3d36ee2eSJeremy Kerr 437*3d36ee2eSJeremy Kerr 8. If the distribution and/or use of the Program is restricted in 438*3d36ee2eSJeremy Kerrcertain countries either by patents or by copyrighted interfaces, the 439*3d36ee2eSJeremy Kerroriginal copyright holder who places the Program under this License 440*3d36ee2eSJeremy Kerrmay add an explicit geographical distribution limitation excluding 441*3d36ee2eSJeremy Kerrthose countries, so that distribution is permitted only in or among 442*3d36ee2eSJeremy Kerrcountries not thus excluded. In such case, this License incorporates 443*3d36ee2eSJeremy Kerrthe limitation as if written in the body of this License. 444*3d36ee2eSJeremy Kerr 445*3d36ee2eSJeremy Kerr 9. The Free Software Foundation may publish revised and/or new versions 446*3d36ee2eSJeremy Kerrof the General Public License from time to time. Such new versions will 447*3d36ee2eSJeremy Kerrbe similar in spirit to the present version, but may differ in detail to 448*3d36ee2eSJeremy Kerraddress new problems or concerns. 449*3d36ee2eSJeremy Kerr 450*3d36ee2eSJeremy KerrEach version is given a distinguishing version number. If the Program 451*3d36ee2eSJeremy Kerrspecifies a version number of this License which applies to it and "any 452*3d36ee2eSJeremy Kerrlater version", you have the option of following the terms and conditions 453*3d36ee2eSJeremy Kerreither of that version or of any later version published by the Free 454*3d36ee2eSJeremy KerrSoftware Foundation. If the Program does not specify a version number of 455*3d36ee2eSJeremy Kerrthis License, you may choose any version ever published by the Free Software 456*3d36ee2eSJeremy KerrFoundation. 457*3d36ee2eSJeremy Kerr 458*3d36ee2eSJeremy Kerr 10. If you wish to incorporate parts of the Program into other free 459*3d36ee2eSJeremy Kerrprograms whose distribution conditions are different, write to the author 460*3d36ee2eSJeremy Kerrto ask for permission. For software which is copyrighted by the Free 461*3d36ee2eSJeremy KerrSoftware Foundation, write to the Free Software Foundation; we sometimes 462*3d36ee2eSJeremy Kerrmake exceptions for this. Our decision will be guided by the two goals 463*3d36ee2eSJeremy Kerrof preserving the free status of all derivatives of our free software and 464*3d36ee2eSJeremy Kerrof promoting the sharing and reuse of software generally. 465*3d36ee2eSJeremy Kerr 466*3d36ee2eSJeremy Kerr NO WARRANTY 467*3d36ee2eSJeremy Kerr 468*3d36ee2eSJeremy Kerr 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 469*3d36ee2eSJeremy KerrFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 470*3d36ee2eSJeremy KerrOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 471*3d36ee2eSJeremy KerrPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 472*3d36ee2eSJeremy KerrOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 473*3d36ee2eSJeremy KerrMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 474*3d36ee2eSJeremy KerrTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 475*3d36ee2eSJeremy KerrPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 476*3d36ee2eSJeremy KerrREPAIR OR CORRECTION. 477*3d36ee2eSJeremy Kerr 478*3d36ee2eSJeremy Kerr 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 479*3d36ee2eSJeremy KerrWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 480*3d36ee2eSJeremy KerrREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 481*3d36ee2eSJeremy KerrINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 482*3d36ee2eSJeremy KerrOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 483*3d36ee2eSJeremy KerrTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 484*3d36ee2eSJeremy KerrYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 485*3d36ee2eSJeremy KerrPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 486*3d36ee2eSJeremy KerrPOSSIBILITY OF SUCH DAMAGES. 487*3d36ee2eSJeremy Kerr 488*3d36ee2eSJeremy Kerr END OF TERMS AND CONDITIONS 489*3d36ee2eSJeremy Kerr 490*3d36ee2eSJeremy Kerr How to Apply These Terms to Your New Programs 491*3d36ee2eSJeremy Kerr 492*3d36ee2eSJeremy Kerr If you develop a new program, and you want it to be of the greatest 493*3d36ee2eSJeremy Kerrpossible use to the public, the best way to achieve this is to make it 494*3d36ee2eSJeremy Kerrfree software which everyone can redistribute and change under these terms. 495*3d36ee2eSJeremy Kerr 496*3d36ee2eSJeremy Kerr To do so, attach the following notices to the program. It is safest 497*3d36ee2eSJeremy Kerrto attach them to the start of each source file to most effectively 498*3d36ee2eSJeremy Kerrconvey the exclusion of warranty; and each file should have at least 499*3d36ee2eSJeremy Kerrthe "copyright" line and a pointer to where the full notice is found. 500*3d36ee2eSJeremy Kerr 501*3d36ee2eSJeremy Kerr <one line to give the program's name and a brief idea of what it does.> 502*3d36ee2eSJeremy Kerr Copyright (C) <year> <name of author> 503*3d36ee2eSJeremy Kerr 504*3d36ee2eSJeremy Kerr This program is free software; you can redistribute it and/or modify 505*3d36ee2eSJeremy Kerr it under the terms of the GNU General Public License as published by 506*3d36ee2eSJeremy Kerr the Free Software Foundation; either version 2 of the License, or 507*3d36ee2eSJeremy Kerr (at your option) any later version. 508*3d36ee2eSJeremy Kerr 509*3d36ee2eSJeremy Kerr This program is distributed in the hope that it will be useful, 510*3d36ee2eSJeremy Kerr but WITHOUT ANY WARRANTY; without even the implied warranty of 511*3d36ee2eSJeremy Kerr MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 512*3d36ee2eSJeremy Kerr GNU General Public License for more details. 513*3d36ee2eSJeremy Kerr 514*3d36ee2eSJeremy Kerr You should have received a copy of the GNU General Public License along 515*3d36ee2eSJeremy Kerr with this program; if not, write to the Free Software Foundation, Inc., 516*3d36ee2eSJeremy Kerr 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 517*3d36ee2eSJeremy Kerr 518*3d36ee2eSJeremy KerrAlso add information on how to contact you by electronic and paper mail. 519*3d36ee2eSJeremy Kerr 520*3d36ee2eSJeremy KerrIf the program is interactive, make it output a short notice like this 521*3d36ee2eSJeremy Kerrwhen it starts in an interactive mode: 522*3d36ee2eSJeremy Kerr 523*3d36ee2eSJeremy Kerr Gnomovision version 69, Copyright (C) year name of author 524*3d36ee2eSJeremy Kerr Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 525*3d36ee2eSJeremy Kerr This is free software, and you are welcome to redistribute it 526*3d36ee2eSJeremy Kerr under certain conditions; type `show c' for details. 527*3d36ee2eSJeremy Kerr 528*3d36ee2eSJeremy KerrThe hypothetical commands `show w' and `show c' should show the appropriate 529*3d36ee2eSJeremy Kerrparts of the General Public License. Of course, the commands you use may 530*3d36ee2eSJeremy Kerrbe called something other than `show w' and `show c'; they could even be 531*3d36ee2eSJeremy Kerrmouse-clicks or menu items--whatever suits your program. 532*3d36ee2eSJeremy Kerr 533*3d36ee2eSJeremy KerrYou should also get your employer (if you work as a programmer) or your 534*3d36ee2eSJeremy Kerrschool, if any, to sign a "copyright disclaimer" for the program, if 535*3d36ee2eSJeremy Kerrnecessary. Here is a sample; alter the names: 536*3d36ee2eSJeremy Kerr 537*3d36ee2eSJeremy Kerr Yoyodyne, Inc., hereby disclaims all copyright interest in the program 538*3d36ee2eSJeremy Kerr `Gnomovision' (which makes passes at compilers) written by James Hacker. 539*3d36ee2eSJeremy Kerr 540*3d36ee2eSJeremy Kerr <signature of Ty Coon>, 1 April 1989 541*3d36ee2eSJeremy Kerr Ty Coon, President of Vice 542*3d36ee2eSJeremy Kerr 543*3d36ee2eSJeremy KerrThis General Public License does not permit incorporating your program into 544*3d36ee2eSJeremy Kerrproprietary programs. If your program is a subroutine library, you may 545*3d36ee2eSJeremy Kerrconsider it more useful to permit linking proprietary applications with the 546*3d36ee2eSJeremy Kerrlibrary. If this is what you want to do, use the GNU Lesser General 547*3d36ee2eSJeremy KerrPublic License instead of this License. 548