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
Provenance
- Commit
8bf317e- Tree
830c6c2- Author
Rob Terhaar <rob@atlanticdynamic.com>- Committer
Steve Francia <steve.francia@gmail.com>- Parent
4c05eb1
1 file changed+299 added−53 removed
modified:cobra/cmd/licenses.go+299 added-53 removed
423 unmodified lines424 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.425 `,426 }427 428+ Licenses["gpl2"] = License{429+ Name: "GNU General Public License 3.0",430+ PossibleMatches: []string{"gpl2", "gnu gpl2"},431+ Header: `{{ .copyright }}432+433+ {{ .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.437+438+ {{ .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.442+443+ 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 1991447+448+ 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.452+453+ Preamble454+455+ The licenses for most software are designed to take away your456+freedom to share and change it. By contrast, the GNU General Public457+License is intended to guarantee your freedom to share and change free458+software--to make sure the software is free for all its users. This459+General Public License applies to most of the Free Software460+Foundation's software and to any other program whose authors commit to461+using it. (Some other Free Software Foundation software is covered by462+the GNU Lesser General Public License instead.) You can apply it to463+your programs, too.464+465+ When we speak of free software, we are referring to freedom, not466+price. Our General Public Licenses are designed to make sure that you467+have the freedom to distribute copies of free software (and charge for468+this service if you wish), that you receive source code or can get it469+if you want it, that you can change the software or use pieces of it470+in new free programs; and that you know you can do these things.471+472+ To protect your rights, we need to make restrictions that forbid473+anyone to deny you these rights or to ask you to surrender the rights.474+These restrictions translate to certain responsibilities for you if you475+distribute copies of the software, or if you modify it.476+477+ For example, if you distribute copies of such a program, whether478+gratis or for a fee, you must give the recipients all the rights that479+you have. You must make sure that they, too, receive or can get the480+source code. And you must show them these terms so they know their481+rights.482+483+ We protect your rights with two steps: (1) copyright the software, and484+(2) offer you this license which gives you legal permission to copy,485+distribute and/or modify the software.486+487+ Also, for each author's protection and ours, we want to make certain488+that everyone understands that there is no warranty for this free489+software. If the software is modified by someone else and passed on, we490+want its recipients to know that what they have is not the original, so491+that any problems introduced by others will not reflect on the original492+authors' reputations.493+494+ Finally, any free program is threatened constantly by software495+patents. We wish to avoid the danger that redistributors of a free496+program will individually obtain patent licenses, in effect making the497+program proprietary. To prevent this, we have made it clear that any498+patent must be licensed for everyone's free use or not licensed at all.499+500+ The precise terms and conditions for copying, distribution and501+modification follow.502+503+ GNU GENERAL PUBLIC LICENSE504+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION505+506+ 0. This License applies to any program or other work which contains507+a notice placed by the copyright holder saying it may be distributed508+under the terms of this General Public License. The "Program", below,509+refers to any such program or work, and a "work based on the Program"510+means either the Program or any derivative work under copyright law:511+that is to say, a work containing the Program or a portion of it,512+either verbatim or with modifications and/or translated into another513+language. (Hereinafter, translation is included without limitation in514+the term "modification".) Each licensee is addressed as "you".515+516+Activities other than copying, distribution and modification are not517+covered by this License; they are outside its scope. The act of518+running the Program is not restricted, and the output from the Program519+is covered only if its contents constitute a work based on the520+Program (independent of having been made by running the Program).521+Whether that is true depends on what the Program does.522+523+ 1. You may copy and distribute verbatim copies of the Program's524+source code as you receive it, in any medium, provided that you525+conspicuously and appropriately publish on each copy an appropriate526+copyright notice and disclaimer of warranty; keep intact all the527+notices that refer to this License and to the absence of any warranty;528+and give any other recipients of the Program a copy of this License529+along with the Program.530+531+You may charge a fee for the physical act of transferring a copy, and532+you may at your option offer warranty protection in exchange for a fee.533+534+ 2. You may modify your copy or copies of the Program or any portion535+of it, thus forming a work based on the Program, and copy and536+distribute such modifications or work under the terms of Section 1537+above, provided that you also meet all of these conditions:538+539+ a) You must cause the modified files to carry prominent notices540+ stating that you changed the files and the date of any change.541+542+ 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.546+547+ 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.)557+558+These requirements apply to the modified work as a whole. If559+identifiable sections of that work are not derived from the Program,560+and can be reasonably considered independent and separate works in561+themselves, then this License, and its terms, do not apply to those562+sections when you distribute them as separate works. But when you563+distribute the same sections as part of a whole which is a work based564+on the Program, the distribution of the whole must be on the terms of565+this License, whose permissions for other licensees extend to the566+entire whole, and thus to each and every part regardless of who wrote it.567+568+Thus, it is not the intent of this section to claim rights or contest569+your rights to work written entirely by you; rather, the intent is to570+exercise the right to control the distribution of derivative or571+collective works based on the Program.572+573+In addition, mere aggregation of another work not based on the Program574+with the Program (or with a work based on the Program) on a volume of575+a storage or distribution medium does not bring the other work under576+the scope of this License.577+578+ 3. You may copy and distribute the Program (or a work based on it,579+under Section 2) in object code or executable form under the terms of580+Sections 1 and 2 above provided that you also do one of the following:581+582+ 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,585+586+ 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,592+593+ 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.)598+599+The source code for a work means the preferred form of the work for600+making modifications to it. For an executable work, complete source601+code means all the source code for all modules it contains, plus any602+associated interface definition files, plus the scripts used to603+control compilation and installation of the executable. However, as a604+special exception, the source code distributed need not include605+anything that is normally distributed (in either source or binary606+form) with the major components (compiler, kernel, and so on) of the607+operating system on which the executable runs, unless that component608+itself accompanies the executable.609+610+If distribution of executable or object code is made by offering611+access to copy from a designated place, then offering equivalent612+access to copy the source code from the same place counts as613+distribution of the source code, even though third parties are not614+compelled to copy the source along with the object code.615+616+ 4. You may not copy, modify, sublicense, or distribute the Program617+except as expressly provided under this License. Any attempt618+otherwise to copy, modify, sublicense or distribute the Program is619+void, and will automatically terminate your rights under this License.620+However, parties who have received copies, or rights, from you under621+this License will not have their licenses terminated so long as such622+parties remain in full compliance.623+624+ 5. You are not required to accept this License, since you have not625+signed it. However, nothing else grants you permission to modify or626+distribute the Program or its derivative works. These actions are627+prohibited by law if you do not accept this License. Therefore, by628+modifying or distributing the Program (or any work based on the629+Program), you indicate your acceptance of this License to do so, and630+all its terms and conditions for copying, distributing or modifying631+the Program or works based on it.632+633+ 6. Each time you redistribute the Program (or any work based on the634+Program), the recipient automatically receives a license from the635+original licensor to copy, distribute or modify the Program subject to636+these terms and conditions. You may not impose any further637+restrictions on the recipients' exercise of the rights granted herein.638+You are not responsible for enforcing compliance by third parties to639+this License.640+641+ 7. If, as a consequence of a court judgment or allegation of patent642+infringement or for any other reason (not limited to patent issues),643+conditions are imposed on you (whether by court order, agreement or644+otherwise) that contradict the conditions of this License, they do not645+excuse you from the conditions of this License. If you cannot646+distribute so as to satisfy simultaneously your obligations under this647+License and any other pertinent obligations, then as a consequence you648+may not distribute the Program at all. For example, if a patent649+license would not permit royalty-free redistribution of the Program by650+all those who receive copies directly or indirectly through you, then651+the only way you could satisfy both it and this License would be to652+refrain entirely from distribution of the Program.653+654+If any portion of this section is held invalid or unenforceable under655+any particular circumstance, the balance of the section is intended to656+apply and the section as a whole is intended to apply in other657+circumstances.658+659+It is not the purpose of this section to induce you to infringe any660+patents or other property right claims or to contest validity of any661+such claims; this section has the sole purpose of protecting the662+integrity of the free software distribution system, which is663+implemented by public license practices. Many people have made664+generous contributions to the wide range of software distributed665+through that system in reliance on consistent application of that666+system; it is up to the author/donor to decide if he or she is willing667+to distribute software through any other system and a licensee cannot668+impose that choice.669+670+This section is intended to make thoroughly clear what is believed to671+be a consequence of the rest of this License.672+673+ 8. If the distribution and/or use of the Program is restricted in674+certain countries either by patents or by copyrighted interfaces, the675+original copyright holder who places the Program under this License676+may add an explicit geographical distribution limitation excluding677+those countries, so that distribution is permitted only in or among678+countries not thus excluded. In such case, this License incorporates679+the limitation as if written in the body of this License.680+681+ 9. The Free Software Foundation may publish revised and/or new versions682+of the General Public License from time to time. Such new versions will683+be similar in spirit to the present version, but may differ in detail to684+address new problems or concerns.685+686+Each version is given a distinguishing version number. If the Program687+specifies a version number of this License which applies to it and "any688+later version", you have the option of following the terms and conditions689+either of that version or of any later version published by the Free690+Software Foundation. If the Program does not specify a version number of691+this License, you may choose any version ever published by the Free Software692+Foundation.693+694+ 10. If you wish to incorporate parts of the Program into other free695+programs whose distribution conditions are different, write to the author696+to ask for permission. For software which is copyrighted by the Free697+Software Foundation, write to the Free Software Foundation; we sometimes698+make exceptions for this. Our decision will be guided by the two goals699+of preserving the free status of all derivatives of our free software and700+of promoting the sharing and reuse of software generally.701+702+ NO WARRANTY703+704+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY705+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN706+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES707+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED708+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF709+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS710+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE711+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,712+REPAIR OR CORRECTION.713+714+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING715+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR716+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,717+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING718+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED719+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY720+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER721+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE722+POSSIBILITY OF SUCH DAMAGES.723+724+ 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 lines1364 Program, unless a warranty or assumption of liability accompanies a1365 copy of the Program in return for a fee.1366 1367 END OF TERMS AND CONDITIONS1069-1070- How to Apply These Terms to Your New Programs1071-1072- If you develop a new program, and you want it to be of the greatest1073-possible use to the public, the best way to achieve this is to make it1074-free software which everyone can redistribute and change under these terms.1075-1076- To do so, attach the following notices to the program. It is safest1077-to attach them to the start of each source file to most effectively1078-state the exclusion of warranty; and each file should have at least1079-the "copyright" line and a pointer to where the full notice is found.1080-1081- <one line to give the program's name and a brief idea of what it does.>1082- Copyright (C) <year> <name of author>1083-1084- 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.1088-1089- 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.1093-1094- You should have received a copy of the GNU General Public License1095- along with this program. If not, see <http://www.gnu.org/licenses/>.1096-1097-Also add information on how to contact you by electronic and paper mail.1098-1099- If the program does terminal interaction, make it output a short1100-notice like this when it starts in an interactive mode:1101-1102- <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.1106-1107-The hypothetical commands 'show w' and 'show c' should show the appropriate1108-parts of the General Public License. Of course, your program's commands1109-might be different; for a GUI interface, you would use an "about box".1110-1111- You should also get your employer (if you work as a programmer) or school,1112-if any, to sign a "copyright disclaimer" for the program, if necessary.1113-For more information on this, and how to apply and follow the GNU GPL, see1114-<http://www.gnu.org/licenses/>.1115-1116- The GNU General Public License does not permit incorporating your program1117-into proprietary programs. If your program is a subroutine library, you1118-may consider it more useful to permit linking proprietary applications with1119-the library. If this is what you want to do, use the GNU Lesser General1120-Public License instead of this License. But first, please read1121-<http://www.gnu.org/philosophy/why-not-lgpl.html>.1368 `,1369 }1370 1371 // Licenses["apache20"] = License{8 unmodified lines