Skip to content
Myr

add gpl2 license

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Rob Terhaar · committed by Steve Francia · parent 4c05eb1 · Browse files · 1 file+299 added−53 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+299 added−53 removed

  • other:+299 added−53 removed

1 file+299 added−53 removed

modified:cobra/cmd/licenses.go+299 added-53 removed
423 unmodified lines
424OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.425`,426 }427428 Licenses["gpl2"] = License{429 Name: "GNU General Public License 3.0",430 PossibleMatches: []string{"gpl2", "gnu gpl2"},431 Header: `{{ .copyright }}432433 {{ .appName }} is free software; you can redistribute it and/or434 modify it under the terms of the GNU General Public License435 as published by the Free Software Foundation; either version 2436 of the License, or (at your option) any later version.437438 {{ .appName }} is distributed in the hope that it will be useful,439 but WITHOUT ANY WARRANTY; without even the implied warranty of440 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the441 GNU General Public License for more details.442443 You should have received a copy of the GNU Lesser General Public License444 along with {{ .appName }}. If not, see <http://www.gnu.org/licenses/>.`,445 Text: ` GNU GENERAL PUBLIC LICENSE446 Version 2, June 1991447448 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,449 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA450 Everyone is permitted to copy and distribute verbatim copies451 of this license document, but changing it is not allowed.452453 Preamble454455 The licenses for most software are designed to take away your456freedom to share and change it. By contrast, the GNU General Public457License is intended to guarantee your freedom to share and change free458software--to make sure the software is free for all its users. This459General Public License applies to most of the Free Software460Foundation's software and to any other program whose authors commit to461using it. (Some other Free Software Foundation software is covered by462the GNU Lesser General Public License instead.) You can apply it to463your programs, too.464465 When we speak of free software, we are referring to freedom, not466price. Our General Public Licenses are designed to make sure that you467have the freedom to distribute copies of free software (and charge for468this service if you wish), that you receive source code or can get it469if you want it, that you can change the software or use pieces of it470in new free programs; and that you know you can do these things.471472 To protect your rights, we need to make restrictions that forbid473anyone to deny you these rights or to ask you to surrender the rights.474These restrictions translate to certain responsibilities for you if you475distribute copies of the software, or if you modify it.476477 For example, if you distribute copies of such a program, whether478gratis or for a fee, you must give the recipients all the rights that479you have. You must make sure that they, too, receive or can get the480source code. And you must show them these terms so they know their481rights.482483 We protect your rights with two steps: (1) copyright the software, and484(2) offer you this license which gives you legal permission to copy,485distribute and/or modify the software.486487 Also, for each author's protection and ours, we want to make certain488that everyone understands that there is no warranty for this free489software. If the software is modified by someone else and passed on, we490want its recipients to know that what they have is not the original, so491that any problems introduced by others will not reflect on the original492authors' reputations.493494 Finally, any free program is threatened constantly by software495patents. We wish to avoid the danger that redistributors of a free496program will individually obtain patent licenses, in effect making the497program proprietary. To prevent this, we have made it clear that any498patent must be licensed for everyone's free use or not licensed at all.499500 The precise terms and conditions for copying, distribution and501modification follow.502503 GNU GENERAL PUBLIC LICENSE504 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION505506 0. This License applies to any program or other work which contains507a notice placed by the copyright holder saying it may be distributed508under the terms of this General Public License. The "Program", below,509refers to any such program or work, and a "work based on the Program"510means either the Program or any derivative work under copyright law:511that is to say, a work containing the Program or a portion of it,512either verbatim or with modifications and/or translated into another513language. (Hereinafter, translation is included without limitation in514the term "modification".) Each licensee is addressed as "you".515516Activities other than copying, distribution and modification are not517covered by this License; they are outside its scope. The act of518running the Program is not restricted, and the output from the Program519is covered only if its contents constitute a work based on the520Program (independent of having been made by running the Program).521Whether that is true depends on what the Program does.522523 1. You may copy and distribute verbatim copies of the Program's524source code as you receive it, in any medium, provided that you525conspicuously and appropriately publish on each copy an appropriate526copyright notice and disclaimer of warranty; keep intact all the527notices that refer to this License and to the absence of any warranty;528and give any other recipients of the Program a copy of this License529along with the Program.530531You may charge a fee for the physical act of transferring a copy, and532you may at your option offer warranty protection in exchange for a fee.533534 2. You may modify your copy or copies of the Program or any portion535of it, thus forming a work based on the Program, and copy and536distribute such modifications or work under the terms of Section 1537above, provided that you also meet all of these conditions:538539 a) You must cause the modified files to carry prominent notices540 stating that you changed the files and the date of any change.541542 b) You must cause any work that you distribute or publish, that in543 whole or in part contains or is derived from the Program or any544 part thereof, to be licensed as a whole at no charge to all third545 parties under the terms of this License.546547 c) If the modified program normally reads commands interactively548 when run, you must cause it, when started running for such549 interactive use in the most ordinary way, to print or display an550 announcement including an appropriate copyright notice and a551 notice that there is no warranty (or else, saying that you provide552 a warranty) and that users may redistribute the program under553 these conditions, and telling the user how to view a copy of this554 License. (Exception: if the Program itself is interactive but555 does not normally print such an announcement, your work based on556 the Program is not required to print an announcement.)557558These requirements apply to the modified work as a whole. If559identifiable sections of that work are not derived from the Program,560and can be reasonably considered independent and separate works in561themselves, then this License, and its terms, do not apply to those562sections when you distribute them as separate works. But when you563distribute the same sections as part of a whole which is a work based564on the Program, the distribution of the whole must be on the terms of565this License, whose permissions for other licensees extend to the566entire whole, and thus to each and every part regardless of who wrote it.567568Thus, it is not the intent of this section to claim rights or contest569your rights to work written entirely by you; rather, the intent is to570exercise the right to control the distribution of derivative or571collective works based on the Program.572573In addition, mere aggregation of another work not based on the Program574with the Program (or with a work based on the Program) on a volume of575a storage or distribution medium does not bring the other work under576the scope of this License.577578 3. You may copy and distribute the Program (or a work based on it,579under Section 2) in object code or executable form under the terms of580Sections 1 and 2 above provided that you also do one of the following:581582 a) Accompany it with the complete corresponding machine-readable583 source code, which must be distributed under the terms of Sections584 1 and 2 above on a medium customarily used for software interchange; or,585586 b) Accompany it with a written offer, valid for at least three587 years, to give any third party, for a charge no more than your588 cost of physically performing source distribution, a complete589 machine-readable copy of the corresponding source code, to be590 distributed under the terms of Sections 1 and 2 above on a medium591 customarily used for software interchange; or,592593 c) Accompany it with the information you received as to the offer594 to distribute corresponding source code. (This alternative is595 allowed only for noncommercial distribution and only if you596 received the program in object code or executable form with such597 an offer, in accord with Subsection b above.)598599The source code for a work means the preferred form of the work for600making modifications to it. For an executable work, complete source601code means all the source code for all modules it contains, plus any602associated interface definition files, plus the scripts used to603control compilation and installation of the executable. However, as a604special exception, the source code distributed need not include605anything that is normally distributed (in either source or binary606form) with the major components (compiler, kernel, and so on) of the607operating system on which the executable runs, unless that component608itself accompanies the executable.609610If distribution of executable or object code is made by offering611access to copy from a designated place, then offering equivalent612access to copy the source code from the same place counts as613distribution of the source code, even though third parties are not614compelled to copy the source along with the object code.615616 4. You may not copy, modify, sublicense, or distribute the Program617except as expressly provided under this License. Any attempt618otherwise to copy, modify, sublicense or distribute the Program is619void, and will automatically terminate your rights under this License.620However, parties who have received copies, or rights, from you under621this License will not have their licenses terminated so long as such622parties remain in full compliance.623624 5. You are not required to accept this License, since you have not625signed it. However, nothing else grants you permission to modify or626distribute the Program or its derivative works. These actions are627prohibited by law if you do not accept this License. Therefore, by628modifying or distributing the Program (or any work based on the629Program), you indicate your acceptance of this License to do so, and630all its terms and conditions for copying, distributing or modifying631the Program or works based on it.632633 6. Each time you redistribute the Program (or any work based on the634Program), the recipient automatically receives a license from the635original licensor to copy, distribute or modify the Program subject to636these terms and conditions. You may not impose any further637restrictions on the recipients' exercise of the rights granted herein.638You are not responsible for enforcing compliance by third parties to639this License.640641 7. If, as a consequence of a court judgment or allegation of patent642infringement or for any other reason (not limited to patent issues),643conditions are imposed on you (whether by court order, agreement or644otherwise) that contradict the conditions of this License, they do not645excuse you from the conditions of this License. If you cannot646distribute so as to satisfy simultaneously your obligations under this647License and any other pertinent obligations, then as a consequence you648may not distribute the Program at all. For example, if a patent649license would not permit royalty-free redistribution of the Program by650all those who receive copies directly or indirectly through you, then651the only way you could satisfy both it and this License would be to652refrain entirely from distribution of the Program.653654If any portion of this section is held invalid or unenforceable under655any particular circumstance, the balance of the section is intended to656apply and the section as a whole is intended to apply in other657circumstances.658659It is not the purpose of this section to induce you to infringe any660patents or other property right claims or to contest validity of any661such claims; this section has the sole purpose of protecting the662integrity of the free software distribution system, which is663implemented by public license practices. Many people have made664generous contributions to the wide range of software distributed665through that system in reliance on consistent application of that666system; it is up to the author/donor to decide if he or she is willing667to distribute software through any other system and a licensee cannot668impose that choice.669670This section is intended to make thoroughly clear what is believed to671be a consequence of the rest of this License.672673 8. If the distribution and/or use of the Program is restricted in674certain countries either by patents or by copyrighted interfaces, the675original copyright holder who places the Program under this License676may add an explicit geographical distribution limitation excluding677those countries, so that distribution is permitted only in or among678countries not thus excluded. In such case, this License incorporates679the limitation as if written in the body of this License.680681 9. The Free Software Foundation may publish revised and/or new versions682of the General Public License from time to time. Such new versions will683be similar in spirit to the present version, but may differ in detail to684address new problems or concerns.685686Each version is given a distinguishing version number. If the Program687specifies a version number of this License which applies to it and "any688later version", you have the option of following the terms and conditions689either of that version or of any later version published by the Free690Software Foundation. If the Program does not specify a version number of691this License, you may choose any version ever published by the Free Software692Foundation.693694 10. If you wish to incorporate parts of the Program into other free695programs whose distribution conditions are different, write to the author696to ask for permission. For software which is copyrighted by the Free697Software Foundation, write to the Free Software Foundation; we sometimes698make exceptions for this. Our decision will be guided by the two goals699of preserving the free status of all derivatives of our free software and700of promoting the sharing and reuse of software generally.701702 NO WARRANTY703704 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY705FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN706OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES707PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED708OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF709MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS710TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE711PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,712REPAIR OR CORRECTION.713714 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING715WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR716REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,717INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING718OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED719TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY720YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER721PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE722POSSIBILITY OF SUCH DAMAGES.723724 END OF TERMS AND CONDITIONS725`,726 }727 Licenses["gpl3"] = License{728 Name: "GNU General Public License 3.0",729 PossibleMatches: []string{"gpl3", "gpl", "gnu gpl3", "gnu gpl"},730 Header: `{{ .copyright }}
633 unmodified lines
1364Program, unless a warranty or assumption of liability accompanies a1365copy of the Program in return for a fee.13661367 END OF TERMS AND CONDITIONS10691070 How to Apply These Terms to Your New Programs10711072 If you develop a new program, and you want it to be of the greatest1073possible use to the public, the best way to achieve this is to make it1074free software which everyone can redistribute and change under these terms.10751076 To do so, attach the following notices to the program. It is safest1077to attach them to the start of each source file to most effectively1078state the exclusion of warranty; and each file should have at least1079the "copyright" line and a pointer to where the full notice is found.10801081 <one line to give the program's name and a brief idea of what it does.>1082 Copyright (C) <year> <name of author>10831084 This program is free software: you can redistribute it and/or modify1085 it under the terms of the GNU General Public License as published by1086 the Free Software Foundation, either version 3 of the License, or1087 (at your option) any later version.10881089 This program is distributed in the hope that it will be useful,1090 but WITHOUT ANY WARRANTY; without even the implied warranty of1091 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1092 GNU General Public License for more details.10931094 You should have received a copy of the GNU General Public License1095 along with this program. If not, see <http://www.gnu.org/licenses/>.10961097Also add information on how to contact you by electronic and paper mail.10981099 If the program does terminal interaction, make it output a short1100notice like this when it starts in an interactive mode:11011102 <program> Copyright (C) <year> <name of author>1103 This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.1104 This is free software, and you are welcome to redistribute it1105 under certain conditions; type 'show c' for details.11061107The hypothetical commands 'show w' and 'show c' should show the appropriate1108parts of the General Public License. Of course, your program's commands1109might be different; for a GUI interface, you would use an "about box".11101111 You should also get your employer (if you work as a programmer) or school,1112if any, to sign a "copyright disclaimer" for the program, if necessary.1113For more information on this, and how to apply and follow the GNU GPL, see1114<http://www.gnu.org/licenses/>.11151116 The GNU General Public License does not permit incorporating your program1117into proprietary programs. If your program is a subroutine library, you1118may consider it more useful to permit linking proprietary applications with1119the library. If this is what you want to do, use the GNU Lesser General1120Public License instead of this License. But first, please read1121<http://www.gnu.org/philosophy/why-not-lgpl.html>.1368`,1369 }13701371 // Licenses["apache20"] = License{
8 unmodified lines