Skip to content
Myr

Refactor licenses to many files (#323)

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

authored by Mark D. Blackwell · committed by Albert Nigmatzianov · parent f58a8d6 · Browse files · 7 files+1436 added−1315 removed
This commit

State

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

Diff stats

7 files+1436 added−1315 removed

  • other:+1436 added−1315 removed

7 files+1436 added−1315 removed

added:cobra/cmd/license_apache_2.go+238 added
1// Copyright © 2015 Steve Francia <spf@spf13.com>.2//3// Licensed under the Apache License, Version 2.0 (the "License");4// you may not use this file except in compliance with the License.5// You may obtain a copy of the License at6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314// Parts inspired by https://github.com/ryanuber/go-license1516package cmd1718func initApache2() {19 Licenses["apache"] = License{20 Name: "Apache 2.0",21 PossibleMatches: []string{"apache", "apache20", "apache 2.0", "apache2.0", "apache-2.0"},22 Header: `23// Licensed under the Apache License, Version 2.0 (the "License");24// you may not use this file except in compliance with the License.25// You may obtain a copy of the License at26//27// http://www.apache.org/licenses/LICENSE-2.028//29// Unless required by applicable law or agreed to in writing, software30// distributed under the License is distributed on an "AS IS" BASIS,31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.32// See the License for the specific language governing permissions and33// limitations under the License.`,34 Text: `35 Apache License36 Version 2.0, January 200437 http://www.apache.org/licenses/3839 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION4041 1. Definitions.4243 "License" shall mean the terms and conditions for use, reproduction,44 and distribution as defined by Sections 1 through 9 of this document.4546 "Licensor" shall mean the copyright owner or entity authorized by47 the copyright owner that is granting the License.4849 "Legal Entity" shall mean the union of the acting entity and all50 other entities that control, are controlled by, or are under common51 control with that entity. For the purposes of this definition,52 "control" means (i) the power, direct or indirect, to cause the53 direction or management of such entity, whether by contract or54 otherwise, or (ii) ownership of fifty percent (50%) or more of the55 outstanding shares, or (iii) beneficial ownership of such entity.5657 "You" (or "Your") shall mean an individual or Legal Entity58 exercising permissions granted by this License.5960 "Source" form shall mean the preferred form for making modifications,61 including but not limited to software source code, documentation62 source, and configuration files.6364 "Object" form shall mean any form resulting from mechanical65 transformation or translation of a Source form, including but66 not limited to compiled object code, generated documentation,67 and conversions to other media types.6869 "Work" shall mean the work of authorship, whether in Source or70 Object form, made available under the License, as indicated by a71 copyright notice that is included in or attached to the work72 (an example is provided in the Appendix below).7374 "Derivative Works" shall mean any work, whether in Source or Object75 form, that is based on (or derived from) the Work and for which the76 editorial revisions, annotations, elaborations, or other modifications77 represent, as a whole, an original work of authorship. For the purposes78 of this License, Derivative Works shall not include works that remain79 separable from, or merely link (or bind by name) to the interfaces of,80 the Work and Derivative Works thereof.8182 "Contribution" shall mean any work of authorship, including83 the original version of the Work and any modifications or additions84 to that Work or Derivative Works thereof, that is intentionally85 submitted to Licensor for inclusion in the Work by the copyright owner86 or by an individual or Legal Entity authorized to submit on behalf of87 the copyright owner. For the purposes of this definition, "submitted"88 means any form of electronic, verbal, or written communication sent89 to the Licensor or its representatives, including but not limited to90 communication on electronic mailing lists, source code control systems,91 and issue tracking systems that are managed by, or on behalf of, the92 Licensor for the purpose of discussing and improving the Work, but93 excluding communication that is conspicuously marked or otherwise94 designated in writing by the copyright owner as "Not a Contribution."9596 "Contributor" shall mean Licensor and any individual or Legal Entity97 on behalf of whom a Contribution has been received by Licensor and98 subsequently incorporated within the Work.99100 2. Grant of Copyright License. Subject to the terms and conditions of101 this License, each Contributor hereby grants to You a perpetual,102 worldwide, non-exclusive, no-charge, royalty-free, irrevocable103 copyright license to reproduce, prepare Derivative Works of,104 publicly display, publicly perform, sublicense, and distribute the105 Work and such Derivative Works in Source or Object form.106107 3. Grant of Patent License. Subject to the terms and conditions of108 this License, each Contributor hereby grants to You a perpetual,109 worldwide, non-exclusive, no-charge, royalty-free, irrevocable110 (except as stated in this section) patent license to make, have made,111 use, offer to sell, sell, import, and otherwise transfer the Work,112 where such license applies only to those patent claims licensable113 by such Contributor that are necessarily infringed by their114 Contribution(s) alone or by combination of their Contribution(s)115 with the Work to which such Contribution(s) was submitted. If You116 institute patent litigation against any entity (including a117 cross-claim or counterclaim in a lawsuit) alleging that the Work118 or a Contribution incorporated within the Work constitutes direct119 or contributory patent infringement, then any patent licenses120 granted to You under this License for that Work shall terminate121 as of the date such litigation is filed.122123 4. Redistribution. You may reproduce and distribute copies of the124 Work or Derivative Works thereof in any medium, with or without125 modifications, and in Source or Object form, provided that You126 meet the following conditions:127128 (a) You must give any other recipients of the Work or129 Derivative Works a copy of this License; and130131 (b) You must cause any modified files to carry prominent notices132 stating that You changed the files; and133134 (c) You must retain, in the Source form of any Derivative Works135 that You distribute, all copyright, patent, trademark, and136 attribution notices from the Source form of the Work,137 excluding those notices that do not pertain to any part of138 the Derivative Works; and139140 (d) If the Work includes a "NOTICE" text file as part of its141 distribution, then any Derivative Works that You distribute must142 include a readable copy of the attribution notices contained143 within such NOTICE file, excluding those notices that do not144 pertain to any part of the Derivative Works, in at least one145 of the following places: within a NOTICE text file distributed146 as part of the Derivative Works; within the Source form or147 documentation, if provided along with the Derivative Works; or,148 within a display generated by the Derivative Works, if and149 wherever such third-party notices normally appear. The contents150 of the NOTICE file are for informational purposes only and151 do not modify the License. You may add Your own attribution152 notices within Derivative Works that You distribute, alongside153 or as an addendum to the NOTICE text from the Work, provided154 that such additional attribution notices cannot be construed155 as modifying the License.156157 You may add Your own copyright statement to Your modifications and158 may provide additional or different license terms and conditions159 for use, reproduction, or distribution of Your modifications, or160 for any such Derivative Works as a whole, provided Your use,161 reproduction, and distribution of the Work otherwise complies with162 the conditions stated in this License.163164 5. Submission of Contributions. Unless You explicitly state otherwise,165 any Contribution intentionally submitted for inclusion in the Work166 by You to the Licensor shall be under the terms and conditions of167 this License, without any additional terms or conditions.168 Notwithstanding the above, nothing herein shall supersede or modify169 the terms of any separate license agreement you may have executed170 with Licensor regarding such Contributions.171172 6. Trademarks. This License does not grant permission to use the trade173 names, trademarks, service marks, or product names of the Licensor,174 except as required for reasonable and customary use in describing the175 origin of the Work and reproducing the content of the NOTICE file.176177 7. Disclaimer of Warranty. Unless required by applicable law or178 agreed to in writing, Licensor provides the Work (and each179 Contributor provides its Contributions) on an "AS IS" BASIS,180 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or181 implied, including, without limitation, any warranties or conditions182 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A183 PARTICULAR PURPOSE. You are solely responsible for determining the184 appropriateness of using or redistributing the Work and assume any185 risks associated with Your exercise of permissions under this License.186187 8. Limitation of Liability. In no event and under no legal theory,188 whether in tort (including negligence), contract, or otherwise,189 unless required by applicable law (such as deliberate and grossly190 negligent acts) or agreed to in writing, shall any Contributor be191 liable to You for damages, including any direct, indirect, special,192 incidental, or consequential damages of any character arising as a193 result of this License or out of the use or inability to use the194 Work (including but not limited to damages for loss of goodwill,195 work stoppage, computer failure or malfunction, or any and all196 other commercial damages or losses), even if such Contributor197 has been advised of the possibility of such damages.198199 9. Accepting Warranty or Additional Liability. While redistributing200 the Work or Derivative Works thereof, You may choose to offer,201 and charge a fee for, acceptance of support, warranty, indemnity,202 or other liability obligations and/or rights consistent with this203 License. However, in accepting such obligations, You may act only204 on Your own behalf and on Your sole responsibility, not on behalf205 of any other Contributor, and only if You agree to indemnify,206 defend, and hold each Contributor harmless for any liability207 incurred by, or claims asserted against, such Contributor by reason208 of your accepting any such warranty or additional liability.209210 END OF TERMS AND CONDITIONS211212 APPENDIX: How to apply the Apache License to your work.213214 To apply the Apache License to your work, attach the following215 boilerplate notice, with the fields enclosed by brackets "[]"216 replaced with your own identifying information. (Don't include217 the brackets!) The text should be enclosed in the appropriate218 comment syntax for the file format. We also recommend that a219 file or class name and description of purpose be included on the220 same "printed page" as the copyright notice for easier221 identification within third-party archives.222223 Copyright [yyyy] [name of copyright owner]224225 Licensed under the Apache License, Version 2.0 (the "License");226 you may not use this file except in compliance with the License.227 You may obtain a copy of the License at228229 http://www.apache.org/licenses/LICENSE-2.0230231 Unless required by applicable law or agreed to in writing, software232 distributed under the License is distributed on an "AS IS" BASIS,233 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.234 See the License for the specific language governing permissions and235 limitations under the License.236`,237 }238}
added:cobra/cmd/license_bsd_clause_2.go+71 added
1// Copyright © 2015 Steve Francia <spf@spf13.com>.2//3// Licensed under the Apache License, Version 2.0 (the "License");4// you may not use this file except in compliance with the License.5// You may obtain a copy of the License at6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314// Parts inspired by https://github.com/ryanuber/go-license1516package cmd1718func initBsdClause2() {19 Licenses["freebsd"] = License{20 Name: "Simplified BSD License",21 PossibleMatches: []string{"freebsd", "simpbsd", "simple bsd", "2 clause bsd"},22 Header: `23All rights reserved.2425Redistribution and use in source and binary forms, with or without26modification, are permitted provided that the following conditions are met:27281. Redistributions of source code must retain the above copyright notice,29 this list of conditions and the following disclaimer.30312. Redistributions in binary form must reproduce the above copyright notice,32 this list of conditions and the following disclaimer in the documentation33 and/or other materials provided with the distribution.3435THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"36AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE37IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE38ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE39LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR40CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF41SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS42INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN43CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)44ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE45POSSIBILITY OF SUCH DAMAGE.`,46 Text: `{{ .copyright }}47All rights reserved.4849Redistribution and use in source and binary forms, with or without50modification, are permitted provided that the following conditions are met:51521. Redistributions of source code must retain the above copyright notice,53 this list of conditions and the following disclaimer.54552. Redistributions in binary form must reproduce the above copyright notice,56 this list of conditions and the following disclaimer in the documentation57 and/or other materials provided with the distribution.5859THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"60AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE61IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE62DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE63FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL64DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR65SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER66CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,67OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE68OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.69`,70 }71}
added:cobra/cmd/license_bsd_clause_3.go+79 added
1// Copyright © 2015 Steve Francia <spf@spf13.com>.2//3// Licensed under the Apache License, Version 2.0 (the "License");4// you may not use this file except in compliance with the License.5// You may obtain a copy of the License at6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314// Parts inspired by https://github.com/ryanuber/go-license1516package cmd1718func initBsdClause3() {19 Licenses["bsd"] = License{20 Name: "NewBSD",21 PossibleMatches: []string{"bsd", "newbsd", "3 clause bsd"},22 Header: `23All rights reserved.2425Redistribution and use in source and binary forms, with or without26modification, are permitted provided that the following conditions are met:27281. Redistributions of source code must retain the above copyright notice,29 this list of conditions and the following disclaimer.30312. Redistributions in binary form must reproduce the above copyright notice,32 this list of conditions and the following disclaimer in the documentation33 and/or other materials provided with the distribution.34353. Neither the name of the copyright holder nor the names of its contributors36 may be used to endorse or promote products derived from this software37 without specific prior written permission.3839THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"40AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE41IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE42ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE43LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR44CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF45SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS46INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN47CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)48ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE49POSSIBILITY OF SUCH DAMAGE.`,50 Text: `{{ .copyright }}51All rights reserved.5253Redistribution and use in source and binary forms, with or without54modification, are permitted provided that the following conditions are met:55561. Redistributions of source code must retain the above copyright notice,57 this list of conditions and the following disclaimer.58592. Redistributions in binary form must reproduce the above copyright notice,60 this list of conditions and the following disclaimer in the documentation61 and/or other materials provided with the distribution.62633. Neither the name of the copyright holder nor the names of its contributors64 may be used to endorse or promote products derived from this software65 without specific prior written permission.6667THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"68AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE69IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE70DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE71FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL72DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR73SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER74CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,75OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE76OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.77`,78 }79}
added:cobra/cmd/license_gpl_2.go+318 added
1// Copyright © 2015 Steve Francia <spf@spf13.com>.2//3// Licensed under the Apache License, Version 2.0 (the "License");4// you may not use this file except in compliance with the License.5// You may obtain a copy of the License at6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314// Parts inspired by https://github.com/ryanuber/go-license1516package cmd1718func initGpl2() {19 Licenses["gpl2"] = License{20 Name: "GNU General Public License 2.0",21 PossibleMatches: []string{"gpl2", "gnu gpl2"},22 Header: `{{ .copyright }}2324 {{ .appName }} is free software; you can redistribute it and/or25 modify it under the terms of the GNU General Public License26 as published by the Free Software Foundation; either version 227 of the License, or (at your option) any later version.2829 {{ .appName }} is distributed in the hope that it will be useful,30 but WITHOUT ANY WARRANTY; without even the implied warranty of31 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the32 GNU General Public License for more details.3334 You should have received a copy of the GNU Lesser General Public License35 along with {{ .appName }}. If not, see <http://www.gnu.org/licenses/>.`,36 Text: ` GNU GENERAL PUBLIC LICENSE37 Version 2, June 19913839 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,40 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA41 Everyone is permitted to copy and distribute verbatim copies42 of this license document, but changing it is not allowed.4344 Preamble4546 The licenses for most software are designed to take away your47freedom to share and change it. By contrast, the GNU General Public48License is intended to guarantee your freedom to share and change free49software--to make sure the software is free for all its users. This50General Public License applies to most of the Free Software51Foundation's software and to any other program whose authors commit to52using it. (Some other Free Software Foundation software is covered by53the GNU Lesser General Public License instead.) You can apply it to54your programs, too.5556 When we speak of free software, we are referring to freedom, not57price. Our General Public Licenses are designed to make sure that you58have the freedom to distribute copies of free software (and charge for59this service if you wish), that you receive source code or can get it60if you want it, that you can change the software or use pieces of it61in new free programs; and that you know you can do these things.6263 To protect your rights, we need to make restrictions that forbid64anyone to deny you these rights or to ask you to surrender the rights.65These restrictions translate to certain responsibilities for you if you66distribute copies of the software, or if you modify it.6768 For example, if you distribute copies of such a program, whether69gratis or for a fee, you must give the recipients all the rights that70you have. You must make sure that they, too, receive or can get the71source code. And you must show them these terms so they know their72rights.7374 We protect your rights with two steps: (1) copyright the software, and75(2) offer you this license which gives you legal permission to copy,76distribute and/or modify the software.7778 Also, for each author's protection and ours, we want to make certain79that everyone understands that there is no warranty for this free80software. If the software is modified by someone else and passed on, we81want its recipients to know that what they have is not the original, so82that any problems introduced by others will not reflect on the original83authors' reputations.8485 Finally, any free program is threatened constantly by software86patents. We wish to avoid the danger that redistributors of a free87program will individually obtain patent licenses, in effect making the88program proprietary. To prevent this, we have made it clear that any89patent must be licensed for everyone's free use or not licensed at all.9091 The precise terms and conditions for copying, distribution and92modification follow.9394 GNU GENERAL PUBLIC LICENSE95 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION9697 0. This License applies to any program or other work which contains98a notice placed by the copyright holder saying it may be distributed99under the terms of this General Public License. The "Program", below,100refers to any such program or work, and a "work based on the Program"101means either the Program or any derivative work under copyright law:102that is to say, a work containing the Program or a portion of it,103either verbatim or with modifications and/or translated into another104language. (Hereinafter, translation is included without limitation in105the term "modification".) Each licensee is addressed as "you".106107Activities other than copying, distribution and modification are not108covered by this License; they are outside its scope. The act of109running the Program is not restricted, and the output from the Program110is covered only if its contents constitute a work based on the111Program (independent of having been made by running the Program).112Whether that is true depends on what the Program does.113114 1. You may copy and distribute verbatim copies of the Program's115source code as you receive it, in any medium, provided that you116conspicuously and appropriately publish on each copy an appropriate117copyright notice and disclaimer of warranty; keep intact all the118notices that refer to this License and to the absence of any warranty;119and give any other recipients of the Program a copy of this License120along with the Program.121122You may charge a fee for the physical act of transferring a copy, and123you may at your option offer warranty protection in exchange for a fee.124125 2. You may modify your copy or copies of the Program or any portion126of it, thus forming a work based on the Program, and copy and127distribute such modifications or work under the terms of Section 1128above, provided that you also meet all of these conditions:129130 a) You must cause the modified files to carry prominent notices131 stating that you changed the files and the date of any change.132133 b) You must cause any work that you distribute or publish, that in134 whole or in part contains or is derived from the Program or any135 part thereof, to be licensed as a whole at no charge to all third136 parties under the terms of this License.137138 c) If the modified program normally reads commands interactively139 when run, you must cause it, when started running for such140 interactive use in the most ordinary way, to print or display an141 announcement including an appropriate copyright notice and a142 notice that there is no warranty (or else, saying that you provide143 a warranty) and that users may redistribute the program under144 these conditions, and telling the user how to view a copy of this145 License. (Exception: if the Program itself is interactive but146 does not normally print such an announcement, your work based on147 the Program is not required to print an announcement.)148149These requirements apply to the modified work as a whole. If150identifiable sections of that work are not derived from the Program,151and can be reasonably considered independent and separate works in152themselves, then this License, and its terms, do not apply to those153sections when you distribute them as separate works. But when you154distribute the same sections as part of a whole which is a work based155on the Program, the distribution of the whole must be on the terms of156this License, whose permissions for other licensees extend to the157entire whole, and thus to each and every part regardless of who wrote it.158159Thus, it is not the intent of this section to claim rights or contest160your rights to work written entirely by you; rather, the intent is to161exercise the right to control the distribution of derivative or162collective works based on the Program.163164In addition, mere aggregation of another work not based on the Program165with the Program (or with a work based on the Program) on a volume of166a storage or distribution medium does not bring the other work under167the scope of this License.168169 3. You may copy and distribute the Program (or a work based on it,170under Section 2) in object code or executable form under the terms of171Sections 1 and 2 above provided that you also do one of the following:172173 a) Accompany it with the complete corresponding machine-readable174 source code, which must be distributed under the terms of Sections175 1 and 2 above on a medium customarily used for software interchange; or,176177 b) Accompany it with a written offer, valid for at least three178 years, to give any third party, for a charge no more than your179 cost of physically performing source distribution, a complete180 machine-readable copy of the corresponding source code, to be181 distributed under the terms of Sections 1 and 2 above on a medium182 customarily used for software interchange; or,183184 c) Accompany it with the information you received as to the offer185 to distribute corresponding source code. (This alternative is186 allowed only for noncommercial distribution and only if you187 received the program in object code or executable form with such188 an offer, in accord with Subsection b above.)189190The source code for a work means the preferred form of the work for191making modifications to it. For an executable work, complete source192code means all the source code for all modules it contains, plus any193associated interface definition files, plus the scripts used to194control compilation and installation of the executable. However, as a195special exception, the source code distributed need not include196anything that is normally distributed (in either source or binary197form) with the major components (compiler, kernel, and so on) of the198operating system on which the executable runs, unless that component199itself accompanies the executable.200201If distribution of executable or object code is made by offering202access to copy from a designated place, then offering equivalent203access to copy the source code from the same place counts as204distribution of the source code, even though third parties are not205compelled to copy the source along with the object code.206207 4. You may not copy, modify, sublicense, or distribute the Program208except as expressly provided under this License. Any attempt209otherwise to copy, modify, sublicense or distribute the Program is210void, and will automatically terminate your rights under this License.211However, parties who have received copies, or rights, from you under212this License will not have their licenses terminated so long as such213parties remain in full compliance.214215 5. You are not required to accept this License, since you have not216signed it. However, nothing else grants you permission to modify or217distribute the Program or its derivative works. These actions are218prohibited by law if you do not accept this License. Therefore, by219modifying or distributing the Program (or any work based on the220Program), you indicate your acceptance of this License to do so, and221all its terms and conditions for copying, distributing or modifying222the Program or works based on it.223224 6. Each time you redistribute the Program (or any work based on the225Program), the recipient automatically receives a license from the226original licensor to copy, distribute or modify the Program subject to227these terms and conditions. You may not impose any further228restrictions on the recipients' exercise of the rights granted herein.229You are not responsible for enforcing compliance by third parties to230this License.231232 7. If, as a consequence of a court judgment or allegation of patent233infringement or for any other reason (not limited to patent issues),234conditions are imposed on you (whether by court order, agreement or235otherwise) that contradict the conditions of this License, they do not236excuse you from the conditions of this License. If you cannot237distribute so as to satisfy simultaneously your obligations under this238License and any other pertinent obligations, then as a consequence you239may not distribute the Program at all. For example, if a patent240license would not permit royalty-free redistribution of the Program by241all those who receive copies directly or indirectly through you, then242the only way you could satisfy both it and this License would be to243refrain entirely from distribution of the Program.244245If any portion of this section is held invalid or unenforceable under246any particular circumstance, the balance of the section is intended to247apply and the section as a whole is intended to apply in other248circumstances.249250It is not the purpose of this section to induce you to infringe any251patents or other property right claims or to contest validity of any252such claims; this section has the sole purpose of protecting the253integrity of the free software distribution system, which is254implemented by public license practices. Many people have made255generous contributions to the wide range of software distributed256through that system in reliance on consistent application of that257system; it is up to the author/donor to decide if he or she is willing258to distribute software through any other system and a licensee cannot259impose that choice.260261This section is intended to make thoroughly clear what is believed to262be a consequence of the rest of this License.263264 8. If the distribution and/or use of the Program is restricted in265certain countries either by patents or by copyrighted interfaces, the266original copyright holder who places the Program under this License267may add an explicit geographical distribution limitation excluding268those countries, so that distribution is permitted only in or among269countries not thus excluded. In such case, this License incorporates270the limitation as if written in the body of this License.271272 9. The Free Software Foundation may publish revised and/or new versions273of the General Public License from time to time. Such new versions will274be similar in spirit to the present version, but may differ in detail to275address new problems or concerns.276277Each version is given a distinguishing version number. If the Program278specifies a version number of this License which applies to it and "any279later version", you have the option of following the terms and conditions280either of that version or of any later version published by the Free281Software Foundation. If the Program does not specify a version number of282this License, you may choose any version ever published by the Free Software283Foundation.284285 10. If you wish to incorporate parts of the Program into other free286programs whose distribution conditions are different, write to the author287to ask for permission. For software which is copyrighted by the Free288Software Foundation, write to the Free Software Foundation; we sometimes289make exceptions for this. Our decision will be guided by the two goals290of preserving the free status of all derivatives of our free software and291of promoting the sharing and reuse of software generally.292293 NO WARRANTY294295 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY296FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN297OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES298PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED299OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF300MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS301TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE302PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,303REPAIR OR CORRECTION.304305 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING306WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR307REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,308INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING309OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED310TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY311YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER312PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE313POSSIBILITY OF SUCH DAMAGES.314315 END OF TERMS AND CONDITIONS316`,317 }318}
added:cobra/cmd/license_gpl_3.go+661 added
1// Copyright © 2015 Steve Francia <spf@spf13.com>.2//3// Licensed under the Apache License, Version 2.0 (the "License");4// you may not use this file except in compliance with the License.5// You may obtain a copy of the License at6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314// Parts inspired by https://github.com/ryanuber/go-license1516package cmd1718func initGpl3() {19 Licenses["gpl3"] = License{20 Name: "GNU General Public License 3.0",21 PossibleMatches: []string{"gpl3", "gpl", "gnu gpl3", "gnu gpl"},22 Header: `23This file is part of {{ .appName }}.2425{{ .appName }} is free software: you can redistribute it and/or modify26it under the terms of the GNU Lesser General Public License as published by27the Free Software Foundation, either version 3 of the License, or28(at your option) any later version.2930{{ .appName }} is distributed in the hope that it will be useful,31but WITHOUT ANY WARRANTY; without even the implied warranty of32MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the33GNU Lesser General Public License for more details.3435You should have received a copy of the GNU Lesser General Public License36along with {{ .appName }}. If not, see <http://www.gnu.org/licenses/>.37 `,38 Text: ` GNU GENERAL PUBLIC LICENSE39 Version 3, 29 June 20074041 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>42 Everyone is permitted to copy and distribute verbatim copies43 of this license document, but changing it is not allowed.4445 Preamble4647 The GNU General Public License is a free, copyleft license for48software and other kinds of works.4950 The licenses for most software and other practical works are designed51to take away your freedom to share and change the works. By contrast,52the GNU General Public License is intended to guarantee your freedom to53share and change all versions of a program--to make sure it remains free54software for all its users. We, the Free Software Foundation, use the55GNU General Public License for most of our software; it applies also to56any other work released this way by its authors. You can apply it to57your programs, too.5859 When we speak of free software, we are referring to freedom, not60price. Our General Public Licenses are designed to make sure that you61have the freedom to distribute copies of free software (and charge for62them if you wish), that you receive source code or can get it if you63want it, that you can change the software or use pieces of it in new64free programs, and that you know you can do these things.6566 To protect your rights, we need to prevent others from denying you67these rights or asking you to surrender the rights. Therefore, you have68certain responsibilities if you distribute copies of the software, or if69you modify it: responsibilities to respect the freedom of others.7071 For example, if you distribute copies of such a program, whether72gratis or for a fee, you must pass on to the recipients the same73freedoms that you received. You must make sure that they, too, receive74or can get the source code. And you must show them these terms so they75know their rights.7677 Developers that use the GNU GPL protect your rights with two steps:78(1) assert copyright on the software, and (2) offer you this License79giving you legal permission to copy, distribute and/or modify it.8081 For the developers' and authors' protection, the GPL clearly explains82that there is no warranty for this free software. For both users' and83authors' sake, the GPL requires that modified versions be marked as84changed, so that their problems will not be attributed erroneously to85authors of previous versions.8687 Some devices are designed to deny users access to install or run88modified versions of the software inside them, although the manufacturer89can do so. This is fundamentally incompatible with the aim of90protecting users' freedom to change the software. The systematic91pattern of such abuse occurs in the area of products for individuals to92use, which is precisely where it is most unacceptable. Therefore, we93have designed this version of the GPL to prohibit the practice for those94products. If such problems arise substantially in other domains, we95stand ready to extend this provision to those domains in future versions96of the GPL, as needed to protect the freedom of users.9798 Finally, every program is threatened constantly by software patents.99States should not allow patents to restrict development and use of100software on general-purpose computers, but in those that do, we wish to101avoid the special danger that patents applied to a free program could102make it effectively proprietary. To prevent this, the GPL assures that103patents cannot be used to render the program non-free.104105 The precise terms and conditions for copying, distribution and106modification follow.107108 TERMS AND CONDITIONS109110 0. Definitions.111112 "This License" refers to version 3 of the GNU General Public License.113114 "Copyright" also means copyright-like laws that apply to other kinds of115works, such as semiconductor masks.116117 "The Program" refers to any copyrightable work licensed under this118License. Each licensee is addressed as "you". "Licensees" and119"recipients" may be individuals or organizations.120121 To "modify" a work means to copy from or adapt all or part of the work122in a fashion requiring copyright permission, other than the making of an123exact copy. The resulting work is called a "modified version" of the124earlier work or a work "based on" the earlier work.125126 A "covered work" means either the unmodified Program or a work based127on the Program.128129 To "propagate" a work means to do anything with it that, without130permission, would make you directly or secondarily liable for131infringement under applicable copyright law, except executing it on a132computer or modifying a private copy. Propagation includes copying,133distribution (with or without modification), making available to the134public, and in some countries other activities as well.135136 To "convey" a work means any kind of propagation that enables other137parties to make or receive copies. Mere interaction with a user through138a computer network, with no transfer of a copy, is not conveying.139140 An interactive user interface displays "Appropriate Legal Notices"141to the extent that it includes a convenient and prominently visible142feature that (1) displays an appropriate copyright notice, and (2)143tells the user that there is no warranty for the work (except to the144extent that warranties are provided), that licensees may convey the145work under this License, and how to view a copy of this License. If146the interface presents a list of user commands or options, such as a147menu, a prominent item in the list meets this criterion.148149 1. Source Code.150151 The "source code" for a work means the preferred form of the work152for making modifications to it. "Object code" means any non-source153form of a work.154155 A "Standard Interface" means an interface that either is an official156standard defined by a recognized standards body, or, in the case of157interfaces specified for a particular programming language, one that158is widely used among developers working in that language.159160 The "System Libraries" of an executable work include anything, other161than the work as a whole, that (a) is included in the normal form of162packaging a Major Component, but which is not part of that Major163Component, and (b) serves only to enable use of the work with that164Major Component, or to implement a Standard Interface for which an165implementation is available to the public in source code form. A166"Major Component", in this context, means a major essential component167(kernel, window system, and so on) of the specific operating system168(if any) on which the executable work runs, or a compiler used to169produce the work, or an object code interpreter used to run it.170171 The "Corresponding Source" for a work in object code form means all172the source code needed to generate, install, and (for an executable173work) run the object code and to modify the work, including scripts to174control those activities. However, it does not include the work's175System Libraries, or general-purpose tools or generally available free176programs which are used unmodified in performing those activities but177which are not part of the work. For example, Corresponding Source178includes interface definition files associated with source files for179the work, and the source code for shared libraries and dynamically180linked subprograms that the work is specifically designed to require,181such as by intimate data communication or control flow between those182subprograms and other parts of the work.183184 The Corresponding Source need not include anything that users185can regenerate automatically from other parts of the Corresponding186Source.187188 The Corresponding Source for a work in source code form is that189same work.190191 2. Basic Permissions.192193 All rights granted under this License are granted for the term of194copyright on the Program, and are irrevocable provided the stated195conditions are met. This License explicitly affirms your unlimited196permission to run the unmodified Program. The output from running a197covered work is covered by this License only if the output, given its198content, constitutes a covered work. This License acknowledges your199rights of fair use or other equivalent, as provided by copyright law.200201 You may make, run and propagate covered works that you do not202convey, without conditions so long as your license otherwise remains203in force. You may convey covered works to others for the sole purpose204of having them make modifications exclusively for you, or provide you205with facilities for running those works, provided that you comply with206the terms of this License in conveying all material for which you do207not control copyright. Those thus making or running the covered works208for you must do so exclusively on your behalf, under your direction209and control, on terms that prohibit them from making any copies of210your copyrighted material outside their relationship with you.211212 Conveying under any other circumstances is permitted solely under213the conditions stated below. Sublicensing is not allowed; section 10214makes it unnecessary.215216 3. Protecting Users' Legal Rights From Anti-Circumvention Law.217218 No covered work shall be deemed part of an effective technological219measure under any applicable law fulfilling obligations under article22011 of the WIPO copyright treaty adopted on 20 December 1996, or221similar laws prohibiting or restricting circumvention of such222measures.223224 When you convey a covered work, you waive any legal power to forbid225circumvention of technological measures to the extent such circumvention226is effected by exercising rights under this License with respect to227the covered work, and you disclaim any intention to limit operation or228modification of the work as a means of enforcing, against the work's229users, your or third parties' legal rights to forbid circumvention of230technological measures.231232 4. Conveying Verbatim Copies.233234 You may convey verbatim copies of the Program's source code as you235receive it, in any medium, provided that you conspicuously and236appropriately publish on each copy an appropriate copyright notice;237keep intact all notices stating that this License and any238non-permissive terms added in accord with section 7 apply to the code;239keep intact all notices of the absence of any warranty; and give all240recipients a copy of this License along with the Program.241242 You may charge any price or no price for each copy that you convey,243and you may offer support or warranty protection for a fee.244245 5. Conveying Modified Source Versions.246247 You may convey a work based on the Program, or the modifications to248produce it from the Program, in the form of source code under the249terms of section 4, provided that you also meet all of these conditions:250251 a) The work must carry prominent notices stating that you modified252 it, and giving a relevant date.253254 b) The work must carry prominent notices stating that it is255 released under this License and any conditions added under section256 7. This requirement modifies the requirement in section 4 to257 "keep intact all notices".258259 c) You must license the entire work, as a whole, under this260 License to anyone who comes into possession of a copy. This261 License will therefore apply, along with any applicable section 7262 additional terms, to the whole of the work, and all its parts,263 regardless of how they are packaged. This License gives no264 permission to license the work in any other way, but it does not265 invalidate such permission if you have separately received it.266267 d) If the work has interactive user interfaces, each must display268 Appropriate Legal Notices; however, if the Program has interactive269 interfaces that do not display Appropriate Legal Notices, your270 work need not make them do so.271272 A compilation of a covered work with other separate and independent273works, which are not by their nature extensions of the covered work,274and which are not combined with it such as to form a larger program,275in or on a volume of a storage or distribution medium, is called an276"aggregate" if the compilation and its resulting copyright are not277used to limit the access or legal rights of the compilation's users278beyond what the individual works permit. Inclusion of a covered work279in an aggregate does not cause this License to apply to the other280parts of the aggregate.281282 6. Conveying Non-Source Forms.283284 You may convey a covered work in object code form under the terms285of sections 4 and 5, provided that you also convey the286machine-readable Corresponding Source under the terms of this License,287in one of these ways:288289 a) Convey the object code in, or embodied in, a physical product290 (including a physical distribution medium), accompanied by the291 Corresponding Source fixed on a durable physical medium292 customarily used for software interchange.293294 b) Convey the object code in, or embodied in, a physical product295 (including a physical distribution medium), accompanied by a296 written offer, valid for at least three years and valid for as297 long as you offer spare parts or customer support for that product298 model, to give anyone who possesses the object code either (1) a299 copy of the Corresponding Source for all the software in the300 product that is covered by this License, on a durable physical301 medium customarily used for software interchange, for a price no302 more than your reasonable cost of physically performing this303 conveying of source, or (2) access to copy the304 Corresponding Source from a network server at no charge.305306 c) Convey individual copies of the object code with a copy of the307 written offer to provide the Corresponding Source. This308 alternative is allowed only occasionally and noncommercially, and309 only if you received the object code with such an offer, in accord310 with subsection 6b.311312 d) Convey the object code by offering access from a designated313 place (gratis or for a charge), and offer equivalent access to the314 Corresponding Source in the same way through the same place at no315 further charge. You need not require recipients to copy the316 Corresponding Source along with the object code. If the place to317 copy the object code is a network server, the Corresponding Source318 may be on a different server (operated by you or a third party)319 that supports equivalent copying facilities, provided you maintain320 clear directions next to the object code saying where to find the321 Corresponding Source. Regardless of what server hosts the322 Corresponding Source, you remain obligated to ensure that it is323 available for as long as needed to satisfy these requirements.324325 e) Convey the object code using peer-to-peer transmission, provided326 you inform other peers where the object code and Corresponding327 Source of the work are being offered to the general public at no328 charge under subsection 6d.329330 A separable portion of the object code, whose source code is excluded331from the Corresponding Source as a System Library, need not be332included in conveying the object code work.333334 A "User Product" is either (1) a "consumer product", which means any335tangible personal property which is normally used for personal, family,336or household purposes, or (2) anything designed or sold for incorporation337into a dwelling. In determining whether a product is a consumer product,338doubtful cases shall be resolved in favor of coverage. For a particular339product received by a particular user, "normally used" refers to a340typical or common use of that class of product, regardless of the status341of the particular user or of the way in which the particular user342actually uses, or expects or is expected to use, the product. A product343is a consumer product regardless of whether the product has substantial344commercial, industrial or non-consumer uses, unless such uses represent345the only significant mode of use of the product.346347 "Installation Information" for a User Product means any methods,348procedures, authorization keys, or other information required to install349and execute modified versions of a covered work in that User Product from350a modified version of its Corresponding Source. The information must351suffice to ensure that the continued functioning of the modified object352code is in no case prevented or interfered with solely because353modification has been made.354355 If you convey an object code work under this section in, or with, or356specifically for use in, a User Product, and the conveying occurs as357part of a transaction in which the right of possession and use of the358User Product is transferred to the recipient in perpetuity or for a359fixed term (regardless of how the transaction is characterized), the360Corresponding Source conveyed under this section must be accompanied361by the Installation Information. But this requirement does not apply362if neither you nor any third party retains the ability to install363modified object code on the User Product (for example, the work has364been installed in ROM).365366 The requirement to provide Installation Information does not include a367requirement to continue to provide support service, warranty, or updates368for a work that has been modified or installed by the recipient, or for369the User Product in which it has been modified or installed. Access to a370network may be denied when the modification itself materially and371adversely affects the operation of the network or violates the rules and372protocols for communication across the network.373374 Corresponding Source conveyed, and Installation Information provided,375in accord with this section must be in a format that is publicly376documented (and with an implementation available to the public in377source code form), and must require no special password or key for378unpacking, reading or copying.379380 7. Additional Terms.381382 "Additional permissions" are terms that supplement the terms of this383License by making exceptions from one or more of its conditions.384Additional permissions that are applicable to the entire Program shall385be treated as though they were included in this License, to the extent386that they are valid under applicable law. If additional permissions387apply only to part of the Program, that part may be used separately388under those permissions, but the entire Program remains governed by389this License without regard to the additional permissions.390391 When you convey a copy of a covered work, you may at your option392remove any additional permissions from that copy, or from any part of393it. (Additional permissions may be written to require their own394removal in certain cases when you modify the work.) You may place395additional permissions on material, added by you to a covered work,396for which you have or can give appropriate copyright permission.397398 Notwithstanding any other provision of this License, for material you399add to a covered work, you may (if authorized by the copyright holders of400that material) supplement the terms of this License with terms:401402 a) Disclaiming warranty or limiting liability differently from the403 terms of sections 15 and 16 of this License; or404405 b) Requiring preservation of specified reasonable legal notices or406 author attributions in that material or in the Appropriate Legal407 Notices displayed by works containing it; or408409 c) Prohibiting misrepresentation of the origin of that material, or410 requiring that modified versions of such material be marked in411 reasonable ways as different from the original version; or412413 d) Limiting the use for publicity purposes of names of licensors or414 authors of the material; or415416 e) Declining to grant rights under trademark law for use of some417 trade names, trademarks, or service marks; or418419 f) Requiring indemnification of licensors and authors of that420 material by anyone who conveys the material (or modified versions of421 it) with contractual assumptions of liability to the recipient, for422 any liability that these contractual assumptions directly impose on423 those licensors and authors.424425 All other non-permissive additional terms are considered "further426restrictions" within the meaning of section 10. If the Program as you427received it, or any part of it, contains a notice stating that it is428governed by this License along with a term that is a further429restriction, you may remove that term. If a license document contains430a further restriction but permits relicensing or conveying under this431License, you may add to a covered work material governed by the terms432of that license document, provided that the further restriction does433not survive such relicensing or conveying.434435 If you add terms to a covered work in accord with this section, you436must place, in the relevant source files, a statement of the437additional terms that apply to those files, or a notice indicating438where to find the applicable terms.439440 Additional terms, permissive or non-permissive, may be stated in the441form of a separately written license, or stated as exceptions;442the above requirements apply either way.443444 8. Termination.445446 You may not propagate or modify a covered work except as expressly447provided under this License. Any attempt otherwise to propagate or448modify it is void, and will automatically terminate your rights under449this License (including any patent licenses granted under the third450paragraph of section 11).451452 However, if you cease all violation of this License, then your453license from a particular copyright holder is reinstated (a)454provisionally, unless and until the copyright holder explicitly and455finally terminates your license, and (b) permanently, if the copyright456holder fails to notify you of the violation by some reasonable means457prior to 60 days after the cessation.458459 Moreover, your license from a particular copyright holder is460reinstated permanently if the copyright holder notifies you of the461violation by some reasonable means, this is the first time you have462received notice of violation of this License (for any work) from that463copyright holder, and you cure the violation prior to 30 days after464your receipt of the notice.465466 Termination of your rights under this section does not terminate the467licenses of parties who have received copies or rights from you under468this License. If your rights have been terminated and not permanently469reinstated, you do not qualify to receive new licenses for the same470material under section 10.471472 9. Acceptance Not Required for Having Copies.473474 You are not required to accept this License in order to receive or475run a copy of the Program. Ancillary propagation of a covered work476occurring solely as a consequence of using peer-to-peer transmission477to receive a copy likewise does not require acceptance. However,478nothing other than this License grants you permission to propagate or479modify any covered work. These actions infringe copyright if you do480not accept this License. Therefore, by modifying or propagating a481covered work, you indicate your acceptance of this License to do so.482483 10. Automatic Licensing of Downstream Recipients.484485 Each time you convey a covered work, the recipient automatically486receives a license from the original licensors, to run, modify and487propagate that work, subject to this License. You are not responsible488for enforcing compliance by third parties with this License.489490 An "entity transaction" is a transaction transferring control of an491organization, or substantially all assets of one, or subdividing an492organization, or merging organizations. If propagation of a covered493work results from an entity transaction, each party to that494transaction who receives a copy of the work also receives whatever495licenses to the work the party's predecessor in interest had or could496give under the previous paragraph, plus a right to possession of the497Corresponding Source of the work from the predecessor in interest, if498the predecessor has it or can get it with reasonable efforts.499500 You may not impose any further restrictions on the exercise of the501rights granted or affirmed under this License. For example, you may502not impose a license fee, royalty, or other charge for exercise of503rights granted under this License, and you may not initiate litigation504(including a cross-claim or counterclaim in a lawsuit) alleging that505any patent claim is infringed by making, using, selling, offering for506sale, or importing the Program or any portion of it.507508 11. Patents.509510 A "contributor" is a copyright holder who authorizes use under this511License of the Program or a work on which the Program is based. The512work thus licensed is called the contributor's "contributor version".513514 A contributor's "essential patent claims" are all patent claims515owned or controlled by the contributor, whether already acquired or516hereafter acquired, that would be infringed by some manner, permitted517by this License, of making, using, or selling its contributor version,518but do not include claims that would be infringed only as a519consequence of further modification of the contributor version. For520purposes of this definition, "control" includes the right to grant521patent sublicenses in a manner consistent with the requirements of522this License.523524 Each contributor grants you a non-exclusive, worldwide, royalty-free525patent license under the contributor's essential patent claims, to526make, use, sell, offer for sale, import and otherwise run, modify and527propagate the contents of its contributor version.528529 In the following three paragraphs, a "patent license" is any express530agreement or commitment, however denominated, not to enforce a patent531(such as an express permission to practice a patent or covenant not to532sue for patent infringement). To "grant" such a patent license to a533party means to make such an agreement or commitment not to enforce a534patent against the party.535536 If you convey a covered work, knowingly relying on a patent license,537and the Corresponding Source of the work is not available for anyone538to copy, free of charge and under the terms of this License, through a539publicly available network server or other readily accessible means,540then you must either (1) cause the Corresponding Source to be so541available, or (2) arrange to deprive yourself of the benefit of the542patent license for this particular work, or (3) arrange, in a manner543consistent with the requirements of this License, to extend the patent544license to downstream recipients. "Knowingly relying" means you have545actual knowledge that, but for the patent license, your conveying the546covered work in a country, or your recipient's use of the covered work547in a country, would infringe one or more identifiable patents in that548country that you have reason to believe are valid.549550 If, pursuant to or in connection with a single transaction or551arrangement, you convey, or propagate by procuring conveyance of, a552covered work, and grant a patent license to some of the parties553receiving the covered work authorizing them to use, propagate, modify554or convey a specific copy of the covered work, then the patent license555you grant is automatically extended to all recipients of the covered556work and works based on it.557558 A patent license is "discriminatory" if it does not include within559the scope of its coverage, prohibits the exercise of, or is560conditioned on the non-exercise of one or more of the rights that are561specifically granted under this License. You may not convey a covered562work if you are a party to an arrangement with a third party that is563in the business of distributing software, under which you make payment564to the third party based on the extent of your activity of conveying565the work, and under which the third party grants, to any of the566parties who would receive the covered work from you, a discriminatory567patent license (a) in connection with copies of the covered work568conveyed by you (or copies made from those copies), or (b) primarily569for and in connection with specific products or compilations that570contain the covered work, unless you entered into that arrangement,571or that patent license was granted, prior to 28 March 2007.572573 Nothing in this License shall be construed as excluding or limiting574any implied license or other defenses to infringement that may575otherwise be available to you under applicable patent law.576577 12. No Surrender of Others' Freedom.578579 If conditions are imposed on you (whether by court order, agreement or580otherwise) that contradict the conditions of this License, they do not581excuse you from the conditions of this License. If you cannot convey a582covered work so as to satisfy simultaneously your obligations under this583License and any other pertinent obligations, then as a consequence you may584not convey it at all. For example, if you agree to terms that obligate you585to collect a royalty for further conveying from those to whom you convey586the Program, the only way you could satisfy both those terms and this587License would be to refrain entirely from conveying the Program.588589 13. Use with the GNU Affero General Public License.590591 Notwithstanding any other provision of this License, you have592permission to link or combine any covered work with a work licensed593under version 3 of the GNU Affero General Public License into a single594combined work, and to convey the resulting work. The terms of this595License will continue to apply to the part which is the covered work,596but the special requirements of the GNU Affero General Public License,597section 13, concerning interaction through a network will apply to the598combination as such.599600 14. Revised Versions of this License.601602 The Free Software Foundation may publish revised and/or new versions of603the GNU General Public License from time to time. Such new versions will604be similar in spirit to the present version, but may differ in detail to605address new problems or concerns.606607 Each version is given a distinguishing version number. If the608Program specifies that a certain numbered version of the GNU General609Public License "or any later version" applies to it, you have the610option of following the terms and conditions either of that numbered611version or of any later version published by the Free Software612Foundation. If the Program does not specify a version number of the613GNU General Public License, you may choose any version ever published614by the Free Software Foundation.615616 If the Program specifies that a proxy can decide which future617versions of the GNU General Public License can be used, that proxy's618public statement of acceptance of a version permanently authorizes you619to choose that version for the Program.620621 Later license versions may give you additional or different622permissions. However, no additional obligations are imposed on any623author or copyright holder as a result of your choosing to follow a624later version.625626 15. Disclaimer of Warranty.627628 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY629APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT630HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY631OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,632THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR633PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM634IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF635ALL NECESSARY SERVICING, REPAIR OR CORRECTION.636637 16. Limitation of Liability.638639 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING640WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS641THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY642GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE643USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF644DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD645PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),646EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF647SUCH DAMAGES.648649 17. Interpretation of Sections 15 and 16.650651 If the disclaimer of warranty and limitation of liability provided652above cannot be given local legal effect according to their terms,653reviewing courts shall apply local law that most closely approximates654an absolute waiver of all civil liability in connection with the655Program, unless a warranty or assumption of liability accompanies a656copy of the Program in return for a fee.657658 END OF TERMS AND CONDITIONS659`,660 }661}
added:cobra/cmd/license_mit.go+63 added
1// Copyright © 2015 Steve Francia <spf@spf13.com>.2//3// Licensed under the Apache License, Version 2.0 (the "License");4// you may not use this file except in compliance with the License.5// You may obtain a copy of the License at6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314// Parts inspired by https://github.com/ryanuber/go-license1516package cmd1718func initMit() {19 Licenses["mit"] = License{20 Name: "Mit",21 PossibleMatches: []string{"mit"},22 Header: `23Permission is hereby granted, free of charge, to any person obtaining a copy24of this software and associated documentation files (the "Software"), to deal25in the Software without restriction, including without limitation the rights26to use, copy, modify, merge, publish, distribute, sublicense, and/or sell27copies of the Software, and to permit persons to whom the Software is28furnished to do so, subject to the following conditions:2930The above copyright notice and this permission notice shall be included in31all copies or substantial portions of the Software.3233THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR34IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,35FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE36AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER37LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,38OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN39THE SOFTWARE.`,40 Text: `The MIT License (MIT)4142{{ .copyright }}4344Permission is hereby granted, free of charge, to any person obtaining a copy45of this software and associated documentation files (the "Software"), to deal46in the Software without restriction, including without limitation the rights47to use, copy, modify, merge, publish, distribute, sublicense, and/or sell48copies of the Software, and to permit persons to whom the Software is49furnished to do so, subject to the following conditions:5051The above copyright notice and this permission notice shall be included in52all copies or substantial portions of the Software.5354THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR55IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,56FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE57AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER58LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,59OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN60THE SOFTWARE.61`,62 }63}
modified:cobra/cmd/licenses.go+6 added-1315 removed
50 unmodified lines
5152 // Allows a user to use config for a custom license.53 Licenses["custom"] = License{"Custom", []string{}, "", ""}5455 Licenses["apache"] = License{56 Name: "Apache 2.0",57 PossibleMatches: []string{"apache", "apache20", "apache 2.0", "apache2.0", "apache-2.0"},58 Header: `59// Licensed under the Apache License, Version 2.0 (the "License");60// you may not use this file except in compliance with the License.61// You may obtain a copy of the License at62//63// http://www.apache.org/licenses/LICENSE-2.064//65// Unless required by applicable law or agreed to in writing, software66// distributed under the License is distributed on an "AS IS" BASIS,67// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.68// See the License for the specific language governing permissions and69// limitations under the License.`,70 Text: `71 Apache License72 Version 2.0, January 200473 http://www.apache.org/licenses/55 initApache2()5675 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION57 initMit()5877 1. Definitions.59 initBsdClause3()6079 "License" shall mean the terms and conditions for use, reproduction,80 and distribution as defined by Sections 1 through 9 of this document.61 initBsdClause2()6282 "Licensor" shall mean the copyright owner or entity authorized by83 the copyright owner that is granting the License.63 initGpl2()6485 "Legal Entity" shall mean the union of the acting entity and all86 other entities that control, are controlled by, or are under common87 control with that entity. For the purposes of this definition,88 "control" means (i) the power, direct or indirect, to cause the89 direction or management of such entity, whether by contract or90 otherwise, or (ii) ownership of fifty percent (50%) or more of the91 outstanding shares, or (iii) beneficial ownership of such entity.65 initGpl3()6693 "You" (or "Your") shall mean an individual or Legal Entity94 exercising permissions granted by this License.9596 "Source" form shall mean the preferred form for making modifications,97 including but not limited to software source code, documentation98 source, and configuration files.99100 "Object" form shall mean any form resulting from mechanical101 transformation or translation of a Source form, including but102 not limited to compiled object code, generated documentation,103 and conversions to other media types.104105 "Work" shall mean the work of authorship, whether in Source or106 Object form, made available under the License, as indicated by a107 copyright notice that is included in or attached to the work108 (an example is provided in the Appendix below).109110 "Derivative Works" shall mean any work, whether in Source or Object111 form, that is based on (or derived from) the Work and for which the112 editorial revisions, annotations, elaborations, or other modifications113 represent, as a whole, an original work of authorship. For the purposes114 of this License, Derivative Works shall not include works that remain115 separable from, or merely link (or bind by name) to the interfaces of,116 the Work and Derivative Works thereof.117118 "Contribution" shall mean any work of authorship, including119 the original version of the Work and any modifications or additions120 to that Work or Derivative Works thereof, that is intentionally121 submitted to Licensor for inclusion in the Work by the copyright owner122 or by an individual or Legal Entity authorized to submit on behalf of123 the copyright owner. For the purposes of this definition, "submitted"124 means any form of electronic, verbal, or written communication sent125 to the Licensor or its representatives, including but not limited to126 communication on electronic mailing lists, source code control systems,127 and issue tracking systems that are managed by, or on behalf of, the128 Licensor for the purpose of discussing and improving the Work, but129 excluding communication that is conspicuously marked or otherwise130 designated in writing by the copyright owner as "Not a Contribution."131132 "Contributor" shall mean Licensor and any individual or Legal Entity133 on behalf of whom a Contribution has been received by Licensor and134 subsequently incorporated within the Work.135136 2. Grant of Copyright License. Subject to the terms and conditions of137 this License, each Contributor hereby grants to You a perpetual,138 worldwide, non-exclusive, no-charge, royalty-free, irrevocable139 copyright license to reproduce, prepare Derivative Works of,140 publicly display, publicly perform, sublicense, and distribute the141 Work and such Derivative Works in Source or Object form.142143 3. Grant of Patent License. Subject to the terms and conditions of144 this License, each Contributor hereby grants to You a perpetual,145 worldwide, non-exclusive, no-charge, royalty-free, irrevocable146 (except as stated in this section) patent license to make, have made,147 use, offer to sell, sell, import, and otherwise transfer the Work,148 where such license applies only to those patent claims licensable149 by such Contributor that are necessarily infringed by their150 Contribution(s) alone or by combination of their Contribution(s)151 with the Work to which such Contribution(s) was submitted. If You152 institute patent litigation against any entity (including a153 cross-claim or counterclaim in a lawsuit) alleging that the Work154 or a Contribution incorporated within the Work constitutes direct155 or contributory patent infringement, then any patent licenses156 granted to You under this License for that Work shall terminate157 as of the date such litigation is filed.158159 4. Redistribution. You may reproduce and distribute copies of the160 Work or Derivative Works thereof in any medium, with or without161 modifications, and in Source or Object form, provided that You162 meet the following conditions:163164 (a) You must give any other recipients of the Work or165 Derivative Works a copy of this License; and166167 (b) You must cause any modified files to carry prominent notices168 stating that You changed the files; and169170 (c) You must retain, in the Source form of any Derivative Works171 that You distribute, all copyright, patent, trademark, and172 attribution notices from the Source form of the Work,173 excluding those notices that do not pertain to any part of174 the Derivative Works; and175176 (d) If the Work includes a "NOTICE" text file as part of its177 distribution, then any Derivative Works that You distribute must178 include a readable copy of the attribution notices contained179 within such NOTICE file, excluding those notices that do not180 pertain to any part of the Derivative Works, in at least one181 of the following places: within a NOTICE text file distributed182 as part of the Derivative Works; within the Source form or183 documentation, if provided along with the Derivative Works; or,184 within a display generated by the Derivative Works, if and185 wherever such third-party notices normally appear. The contents186 of the NOTICE file are for informational purposes only and187 do not modify the License. You may add Your own attribution188 notices within Derivative Works that You distribute, alongside189 or as an addendum to the NOTICE text from the Work, provided190 that such additional attribution notices cannot be construed191 as modifying the License.192193 You may add Your own copyright statement to Your modifications and194 may provide additional or different license terms and conditions195 for use, reproduction, or distribution of Your modifications, or196 for any such Derivative Works as a whole, provided Your use,197 reproduction, and distribution of the Work otherwise complies with198 the conditions stated in this License.199200 5. Submission of Contributions. Unless You explicitly state otherwise,201 any Contribution intentionally submitted for inclusion in the Work202 by You to the Licensor shall be under the terms and conditions of203 this License, without any additional terms or conditions.204 Notwithstanding the above, nothing herein shall supersede or modify205 the terms of any separate license agreement you may have executed206 with Licensor regarding such Contributions.207208 6. Trademarks. This License does not grant permission to use the trade209 names, trademarks, service marks, or product names of the Licensor,210 except as required for reasonable and customary use in describing the211 origin of the Work and reproducing the content of the NOTICE file.212213 7. Disclaimer of Warranty. Unless required by applicable law or214 agreed to in writing, Licensor provides the Work (and each215 Contributor provides its Contributions) on an "AS IS" BASIS,216 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or217 implied, including, without limitation, any warranties or conditions218 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A219 PARTICULAR PURPOSE. You are solely responsible for determining the220 appropriateness of using or redistributing the Work and assume any221 risks associated with Your exercise of permissions under this License.222223 8. Limitation of Liability. In no event and under no legal theory,224 whether in tort (including negligence), contract, or otherwise,225 unless required by applicable law (such as deliberate and grossly226 negligent acts) or agreed to in writing, shall any Contributor be227 liable to You for damages, including any direct, indirect, special,228 incidental, or consequential damages of any character arising as a229 result of this License or out of the use or inability to use the230 Work (including but not limited to damages for loss of goodwill,231 work stoppage, computer failure or malfunction, or any and all232 other commercial damages or losses), even if such Contributor233 has been advised of the possibility of such damages.234235 9. Accepting Warranty or Additional Liability. While redistributing236 the Work or Derivative Works thereof, You may choose to offer,237 and charge a fee for, acceptance of support, warranty, indemnity,238 or other liability obligations and/or rights consistent with this239 License. However, in accepting such obligations, You may act only240 on Your own behalf and on Your sole responsibility, not on behalf241 of any other Contributor, and only if You agree to indemnify,242 defend, and hold each Contributor harmless for any liability243 incurred by, or claims asserted against, such Contributor by reason244 of your accepting any such warranty or additional liability.245246 END OF TERMS AND CONDITIONS247248 APPENDIX: How to apply the Apache License to your work.249250 To apply the Apache License to your work, attach the following251 boilerplate notice, with the fields enclosed by brackets "[]"252 replaced with your own identifying information. (Don't include253 the brackets!) The text should be enclosed in the appropriate254 comment syntax for the file format. We also recommend that a255 file or class name and description of purpose be included on the256 same "printed page" as the copyright notice for easier257 identification within third-party archives.258259 Copyright [yyyy] [name of copyright owner]260261 Licensed under the Apache License, Version 2.0 (the "License");262 you may not use this file except in compliance with the License.263 You may obtain a copy of the License at264265 http://www.apache.org/licenses/LICENSE-2.0266267 Unless required by applicable law or agreed to in writing, software268 distributed under the License is distributed on an "AS IS" BASIS,269 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.270 See the License for the specific language governing permissions and271 limitations under the License.272`,273 }274275 Licenses["mit"] = License{276 Name: "Mit",277 PossibleMatches: []string{"mit"},278 Header: `279Permission is hereby granted, free of charge, to any person obtaining a copy280of this software and associated documentation files (the "Software"), to deal281in the Software without restriction, including without limitation the rights282to use, copy, modify, merge, publish, distribute, sublicense, and/or sell283copies of the Software, and to permit persons to whom the Software is284furnished to do so, subject to the following conditions:285286The above copyright notice and this permission notice shall be included in287all copies or substantial portions of the Software.288289THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR290IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,291FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE292AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER293LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,294OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN295THE SOFTWARE.`,296 Text: `The MIT License (MIT)297298{{ .copyright }}299300Permission is hereby granted, free of charge, to any person obtaining a copy301of this software and associated documentation files (the "Software"), to deal302in the Software without restriction, including without limitation the rights303to use, copy, modify, merge, publish, distribute, sublicense, and/or sell304copies of the Software, and to permit persons to whom the Software is305furnished to do so, subject to the following conditions:306307The above copyright notice and this permission notice shall be included in308all copies or substantial portions of the Software.309310THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR311IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,312FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE313AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER314LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,315OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN316THE SOFTWARE.317`,318 }319320 Licenses["bsd"] = License{321 Name: "NewBSD",322 PossibleMatches: []string{"bsd", "newbsd", "3 clause bsd"},323 Header: `324All rights reserved.325326Redistribution and use in source and binary forms, with or without327modification, are permitted provided that the following conditions are met:3283291. Redistributions of source code must retain the above copyright notice,330 this list of conditions and the following disclaimer.3313322. Redistributions in binary form must reproduce the above copyright notice,333 this list of conditions and the following disclaimer in the documentation334 and/or other materials provided with the distribution.3353363. Neither the name of the copyright holder nor the names of its contributors337 may be used to endorse or promote products derived from this software338 without specific prior written permission.339340THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"341AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE342IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE343ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE344LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR345CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF346SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS347INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN348CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)349ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE350POSSIBILITY OF SUCH DAMAGE.`,351 Text: `{{ .copyright }}352All rights reserved.353354Redistribution and use in source and binary forms, with or without355modification, are permitted provided that the following conditions are met:3563571. Redistributions of source code must retain the above copyright notice,358 this list of conditions and the following disclaimer.3593602. Redistributions in binary form must reproduce the above copyright notice,361 this list of conditions and the following disclaimer in the documentation362 and/or other materials provided with the distribution.3633643. Neither the name of the copyright holder nor the names of its contributors365 may be used to endorse or promote products derived from this software366 without specific prior written permission.367368THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"369AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE370IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE371DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE372FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL373DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR374SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER375CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,376OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE377OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.378`,379 }380381 Licenses["freebsd"] = License{382 Name: "Simplified BSD License",383 PossibleMatches: []string{"freebsd", "simpbsd", "simple bsd", "2 clause bsd"},384 Header: `385All rights reserved.386387Redistribution and use in source and binary forms, with or without388modification, are permitted provided that the following conditions are met:3893901. Redistributions of source code must retain the above copyright notice,391 this list of conditions and the following disclaimer.3923932. Redistributions in binary form must reproduce the above copyright notice,394 this list of conditions and the following disclaimer in the documentation395 and/or other materials provided with the distribution.396397THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"398AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE399IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE400ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE401LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR402CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF403SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS404INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN405CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)406ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE407POSSIBILITY OF SUCH DAMAGE.`,408 Text: `{{ .copyright }}409All rights reserved.410411Redistribution and use in source and binary forms, with or without412modification, are permitted provided that the following conditions are met:4134141. Redistributions of source code must retain the above copyright notice,415 this list of conditions and the following disclaimer.4164172. Redistributions in binary form must reproduce the above copyright notice,418 this list of conditions and the following disclaimer in the documentation419 and/or other materials provided with the distribution.420421THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"422AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE423IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE424DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE425FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL426DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR427SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER428CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,429OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE430OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.431`,432 }433434 Licenses["gpl2"] = License{435 Name: "GNU General Public License 2.0",436 PossibleMatches: []string{"gpl2", "gnu gpl2"},437 Header: `{{ .copyright }}438439 {{ .appName }} is free software; you can redistribute it and/or440 modify it under the terms of the GNU General Public License441 as published by the Free Software Foundation; either version 2442 of the License, or (at your option) any later version.443444 {{ .appName }} is distributed in the hope that it will be useful,445 but WITHOUT ANY WARRANTY; without even the implied warranty of446 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the447 GNU General Public License for more details.448449 You should have received a copy of the GNU Lesser General Public License450 along with {{ .appName }}. If not, see <http://www.gnu.org/licenses/>.`,451 Text: ` GNU GENERAL PUBLIC LICENSE452 Version 2, June 1991453454 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,455 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA456 Everyone is permitted to copy and distribute verbatim copies457 of this license document, but changing it is not allowed.458459 Preamble460461 The licenses for most software are designed to take away your462freedom to share and change it. By contrast, the GNU General Public463License is intended to guarantee your freedom to share and change free464software--to make sure the software is free for all its users. This465General Public License applies to most of the Free Software466Foundation's software and to any other program whose authors commit to467using it. (Some other Free Software Foundation software is covered by468the GNU Lesser General Public License instead.) You can apply it to469your programs, too.470471 When we speak of free software, we are referring to freedom, not472price. Our General Public Licenses are designed to make sure that you473have the freedom to distribute copies of free software (and charge for474this service if you wish), that you receive source code or can get it475if you want it, that you can change the software or use pieces of it476in new free programs; and that you know you can do these things.477478 To protect your rights, we need to make restrictions that forbid479anyone to deny you these rights or to ask you to surrender the rights.480These restrictions translate to certain responsibilities for you if you481distribute copies of the software, or if you modify it.482483 For example, if you distribute copies of such a program, whether484gratis or for a fee, you must give the recipients all the rights that485you have. You must make sure that they, too, receive or can get the486source code. And you must show them these terms so they know their487rights.488489 We protect your rights with two steps: (1) copyright the software, and490(2) offer you this license which gives you legal permission to copy,491distribute and/or modify the software.492493 Also, for each author's protection and ours, we want to make certain494that everyone understands that there is no warranty for this free495software. If the software is modified by someone else and passed on, we496want its recipients to know that what they have is not the original, so497that any problems introduced by others will not reflect on the original498authors' reputations.499500 Finally, any free program is threatened constantly by software501patents. We wish to avoid the danger that redistributors of a free502program will individually obtain patent licenses, in effect making the503program proprietary. To prevent this, we have made it clear that any504patent must be licensed for everyone's free use or not licensed at all.505506 The precise terms and conditions for copying, distribution and507modification follow.508509 GNU GENERAL PUBLIC LICENSE510 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION511512 0. This License applies to any program or other work which contains513a notice placed by the copyright holder saying it may be distributed514under the terms of this General Public License. The "Program", below,515refers to any such program or work, and a "work based on the Program"516means either the Program or any derivative work under copyright law:517that is to say, a work containing the Program or a portion of it,518either verbatim or with modifications and/or translated into another519language. (Hereinafter, translation is included without limitation in520the term "modification".) Each licensee is addressed as "you".521522Activities other than copying, distribution and modification are not523covered by this License; they are outside its scope. The act of524running the Program is not restricted, and the output from the Program525is covered only if its contents constitute a work based on the526Program (independent of having been made by running the Program).527Whether that is true depends on what the Program does.528529 1. You may copy and distribute verbatim copies of the Program's530source code as you receive it, in any medium, provided that you531conspicuously and appropriately publish on each copy an appropriate532copyright notice and disclaimer of warranty; keep intact all the533notices that refer to this License and to the absence of any warranty;534and give any other recipients of the Program a copy of this License535along with the Program.536537You may charge a fee for the physical act of transferring a copy, and538you may at your option offer warranty protection in exchange for a fee.539540 2. You may modify your copy or copies of the Program or any portion541of it, thus forming a work based on the Program, and copy and542distribute such modifications or work under the terms of Section 1543above, provided that you also meet all of these conditions:544545 a) You must cause the modified files to carry prominent notices546 stating that you changed the files and the date of any change.547548 b) You must cause any work that you distribute or publish, that in549 whole or in part contains or is derived from the Program or any550 part thereof, to be licensed as a whole at no charge to all third551 parties under the terms of this License.552553 c) If the modified program normally reads commands interactively554 when run, you must cause it, when started running for such555 interactive use in the most ordinary way, to print or display an556 announcement including an appropriate copyright notice and a557 notice that there is no warranty (or else, saying that you provide558 a warranty) and that users may redistribute the program under559 these conditions, and telling the user how to view a copy of this560 License. (Exception: if the Program itself is interactive but561 does not normally print such an announcement, your work based on562 the Program is not required to print an announcement.)563564These requirements apply to the modified work as a whole. If565identifiable sections of that work are not derived from the Program,566and can be reasonably considered independent and separate works in567themselves, then this License, and its terms, do not apply to those568sections when you distribute them as separate works. But when you569distribute the same sections as part of a whole which is a work based570on the Program, the distribution of the whole must be on the terms of571this License, whose permissions for other licensees extend to the572entire whole, and thus to each and every part regardless of who wrote it.573574Thus, it is not the intent of this section to claim rights or contest575your rights to work written entirely by you; rather, the intent is to576exercise the right to control the distribution of derivative or577collective works based on the Program.578579In addition, mere aggregation of another work not based on the Program580with the Program (or with a work based on the Program) on a volume of581a storage or distribution medium does not bring the other work under582the scope of this License.583584 3. You may copy and distribute the Program (or a work based on it,585under Section 2) in object code or executable form under the terms of586Sections 1 and 2 above provided that you also do one of the following:587588 a) Accompany it with the complete corresponding machine-readable589 source code, which must be distributed under the terms of Sections590 1 and 2 above on a medium customarily used for software interchange; or,591592 b) Accompany it with a written offer, valid for at least three593 years, to give any third party, for a charge no more than your594 cost of physically performing source distribution, a complete595 machine-readable copy of the corresponding source code, to be596 distributed under the terms of Sections 1 and 2 above on a medium597 customarily used for software interchange; or,598599 c) Accompany it with the information you received as to the offer600 to distribute corresponding source code. (This alternative is601 allowed only for noncommercial distribution and only if you602 received the program in object code or executable form with such603 an offer, in accord with Subsection b above.)604605The source code for a work means the preferred form of the work for606making modifications to it. For an executable work, complete source607code means all the source code for all modules it contains, plus any608associated interface definition files, plus the scripts used to609control compilation and installation of the executable. However, as a610special exception, the source code distributed need not include611anything that is normally distributed (in either source or binary612form) with the major components (compiler, kernel, and so on) of the613operating system on which the executable runs, unless that component614itself accompanies the executable.615616If distribution of executable or object code is made by offering617access to copy from a designated place, then offering equivalent618access to copy the source code from the same place counts as619distribution of the source code, even though third parties are not620compelled to copy the source along with the object code.621622 4. You may not copy, modify, sublicense, or distribute the Program623except as expressly provided under this License. Any attempt624otherwise to copy, modify, sublicense or distribute the Program is625void, and will automatically terminate your rights under this License.626However, parties who have received copies, or rights, from you under627this License will not have their licenses terminated so long as such628parties remain in full compliance.629630 5. You are not required to accept this License, since you have not631signed it. However, nothing else grants you permission to modify or632distribute the Program or its derivative works. These actions are633prohibited by law if you do not accept this License. Therefore, by634modifying or distributing the Program (or any work based on the635Program), you indicate your acceptance of this License to do so, and636all its terms and conditions for copying, distributing or modifying637the Program or works based on it.638639 6. Each time you redistribute the Program (or any work based on the640Program), the recipient automatically receives a license from the641original licensor to copy, distribute or modify the Program subject to642these terms and conditions. You may not impose any further643restrictions on the recipients' exercise of the rights granted herein.644You are not responsible for enforcing compliance by third parties to645this License.646647 7. If, as a consequence of a court judgment or allegation of patent648infringement or for any other reason (not limited to patent issues),649conditions are imposed on you (whether by court order, agreement or650otherwise) that contradict the conditions of this License, they do not651excuse you from the conditions of this License. If you cannot652distribute so as to satisfy simultaneously your obligations under this653License and any other pertinent obligations, then as a consequence you654may not distribute the Program at all. For example, if a patent655license would not permit royalty-free redistribution of the Program by656all those who receive copies directly or indirectly through you, then657the only way you could satisfy both it and this License would be to658refrain entirely from distribution of the Program.659660If any portion of this section is held invalid or unenforceable under661any particular circumstance, the balance of the section is intended to662apply and the section as a whole is intended to apply in other663circumstances.664665It is not the purpose of this section to induce you to infringe any666patents or other property right claims or to contest validity of any667such claims; this section has the sole purpose of protecting the668integrity of the free software distribution system, which is669implemented by public license practices. Many people have made670generous contributions to the wide range of software distributed671through that system in reliance on consistent application of that672system; it is up to the author/donor to decide if he or she is willing673to distribute software through any other system and a licensee cannot674impose that choice.675676This section is intended to make thoroughly clear what is believed to677be a consequence of the rest of this License.678679 8. If the distribution and/or use of the Program is restricted in680certain countries either by patents or by copyrighted interfaces, the681original copyright holder who places the Program under this License682may add an explicit geographical distribution limitation excluding683those countries, so that distribution is permitted only in or among684countries not thus excluded. In such case, this License incorporates685the limitation as if written in the body of this License.686687 9. The Free Software Foundation may publish revised and/or new versions688of the General Public License from time to time. Such new versions will689be similar in spirit to the present version, but may differ in detail to690address new problems or concerns.691692Each version is given a distinguishing version number. If the Program693specifies a version number of this License which applies to it and "any694later version", you have the option of following the terms and conditions695either of that version or of any later version published by the Free696Software Foundation. If the Program does not specify a version number of697this License, you may choose any version ever published by the Free Software698Foundation.699700 10. If you wish to incorporate parts of the Program into other free701programs whose distribution conditions are different, write to the author702to ask for permission. For software which is copyrighted by the Free703Software Foundation, write to the Free Software Foundation; we sometimes704make exceptions for this. Our decision will be guided by the two goals705of preserving the free status of all derivatives of our free software and706of promoting the sharing and reuse of software generally.707708 NO WARRANTY709710 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY711FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN712OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES713PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED714OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF715MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS716TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE717PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,718REPAIR OR CORRECTION.719720 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING721WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR722REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,723INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING724OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED725TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY726YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER727PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE728POSSIBILITY OF SUCH DAMAGES.729730 END OF TERMS AND CONDITIONS731`,732 }733 Licenses["gpl3"] = License{734 Name: "GNU General Public License 3.0",735 PossibleMatches: []string{"gpl3", "gpl", "gnu gpl3", "gnu gpl"},736 Header: `737This file is part of {{ .appName }}.738739{{ .appName }} is free software: you can redistribute it and/or modify740it under the terms of the GNU Lesser General Public License as published by741the Free Software Foundation, either version 3 of the License, or742(at your option) any later version.743744{{ .appName }} is distributed in the hope that it will be useful,745but WITHOUT ANY WARRANTY; without even the implied warranty of746MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the747GNU Lesser General Public License for more details.748749You should have received a copy of the GNU Lesser General Public License750along with {{ .appName }}. If not, see <http://www.gnu.org/licenses/>.751 `,752 Text: ` GNU GENERAL PUBLIC LICENSE753 Version 3, 29 June 2007754755 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>756 Everyone is permitted to copy and distribute verbatim copies757 of this license document, but changing it is not allowed.758759 Preamble760761 The GNU General Public License is a free, copyleft license for762software and other kinds of works.763764 The licenses for most software and other practical works are designed765to take away your freedom to share and change the works. By contrast,766the GNU General Public License is intended to guarantee your freedom to767share and change all versions of a program--to make sure it remains free768software for all its users. We, the Free Software Foundation, use the769GNU General Public License for most of our software; it applies also to770any other work released this way by its authors. You can apply it to771your programs, too.772773 When we speak of free software, we are referring to freedom, not774price. Our General Public Licenses are designed to make sure that you775have the freedom to distribute copies of free software (and charge for776them if you wish), that you receive source code or can get it if you777want it, that you can change the software or use pieces of it in new778free programs, and that you know you can do these things.779780 To protect your rights, we need to prevent others from denying you781these rights or asking you to surrender the rights. Therefore, you have782certain responsibilities if you distribute copies of the software, or if783you modify it: responsibilities to respect the freedom of others.784785 For example, if you distribute copies of such a program, whether786gratis or for a fee, you must pass on to the recipients the same787freedoms that you received. You must make sure that they, too, receive788or can get the source code. And you must show them these terms so they789know their rights.790791 Developers that use the GNU GPL protect your rights with two steps:792(1) assert copyright on the software, and (2) offer you this License793giving you legal permission to copy, distribute and/or modify it.794795 For the developers' and authors' protection, the GPL clearly explains796that there is no warranty for this free software. For both users' and797authors' sake, the GPL requires that modified versions be marked as798changed, so that their problems will not be attributed erroneously to799authors of previous versions.800801 Some devices are designed to deny users access to install or run802modified versions of the software inside them, although the manufacturer803can do so. This is fundamentally incompatible with the aim of804protecting users' freedom to change the software. The systematic805pattern of such abuse occurs in the area of products for individuals to806use, which is precisely where it is most unacceptable. Therefore, we807have designed this version of the GPL to prohibit the practice for those808products. If such problems arise substantially in other domains, we809stand ready to extend this provision to those domains in future versions810of the GPL, as needed to protect the freedom of users.811812 Finally, every program is threatened constantly by software patents.813States should not allow patents to restrict development and use of814software on general-purpose computers, but in those that do, we wish to815avoid the special danger that patents applied to a free program could816make it effectively proprietary. To prevent this, the GPL assures that817patents cannot be used to render the program non-free.818819 The precise terms and conditions for copying, distribution and820modification follow.821822 TERMS AND CONDITIONS823824 0. Definitions.825826 "This License" refers to version 3 of the GNU General Public License.827828 "Copyright" also means copyright-like laws that apply to other kinds of829works, such as semiconductor masks.830831 "The Program" refers to any copyrightable work licensed under this832License. Each licensee is addressed as "you". "Licensees" and833"recipients" may be individuals or organizations.834835 To "modify" a work means to copy from or adapt all or part of the work836in a fashion requiring copyright permission, other than the making of an837exact copy. The resulting work is called a "modified version" of the838earlier work or a work "based on" the earlier work.839840 A "covered work" means either the unmodified Program or a work based841on the Program.842843 To "propagate" a work means to do anything with it that, without844permission, would make you directly or secondarily liable for845infringement under applicable copyright law, except executing it on a846computer or modifying a private copy. Propagation includes copying,847distribution (with or without modification), making available to the848public, and in some countries other activities as well.849850 To "convey" a work means any kind of propagation that enables other851parties to make or receive copies. Mere interaction with a user through852a computer network, with no transfer of a copy, is not conveying.853854 An interactive user interface displays "Appropriate Legal Notices"855to the extent that it includes a convenient and prominently visible856feature that (1) displays an appropriate copyright notice, and (2)857tells the user that there is no warranty for the work (except to the858extent that warranties are provided), that licensees may convey the859work under this License, and how to view a copy of this License. If860the interface presents a list of user commands or options, such as a861menu, a prominent item in the list meets this criterion.862863 1. Source Code.864865 The "source code" for a work means the preferred form of the work866for making modifications to it. "Object code" means any non-source867form of a work.868869 A "Standard Interface" means an interface that either is an official870standard defined by a recognized standards body, or, in the case of871interfaces specified for a particular programming language, one that872is widely used among developers working in that language.873874 The "System Libraries" of an executable work include anything, other875than the work as a whole, that (a) is included in the normal form of876packaging a Major Component, but which is not part of that Major877Component, and (b) serves only to enable use of the work with that878Major Component, or to implement a Standard Interface for which an879implementation is available to the public in source code form. A880"Major Component", in this context, means a major essential component881(kernel, window system, and so on) of the specific operating system882(if any) on which the executable work runs, or a compiler used to883produce the work, or an object code interpreter used to run it.884885 The "Corresponding Source" for a work in object code form means all886the source code needed to generate, install, and (for an executable887work) run the object code and to modify the work, including scripts to888control those activities. However, it does not include the work's889System Libraries, or general-purpose tools or generally available free890programs which are used unmodified in performing those activities but891which are not part of the work. For example, Corresponding Source892includes interface definition files associated with source files for893the work, and the source code for shared libraries and dynamically894linked subprograms that the work is specifically designed to require,895such as by intimate data communication or control flow between those896subprograms and other parts of the work.897898 The Corresponding Source need not include anything that users899can regenerate automatically from other parts of the Corresponding900Source.901902 The Corresponding Source for a work in source code form is that903same work.904905 2. Basic Permissions.906907 All rights granted under this License are granted for the term of908copyright on the Program, and are irrevocable provided the stated909conditions are met. This License explicitly affirms your unlimited910permission to run the unmodified Program. The output from running a911covered work is covered by this License only if the output, given its912content, constitutes a covered work. This License acknowledges your913rights of fair use or other equivalent, as provided by copyright law.914915 You may make, run and propagate covered works that you do not916convey, without conditions so long as your license otherwise remains917in force. You may convey covered works to others for the sole purpose918of having them make modifications exclusively for you, or provide you919with facilities for running those works, provided that you comply with920the terms of this License in conveying all material for which you do921not control copyright. Those thus making or running the covered works922for you must do so exclusively on your behalf, under your direction923and control, on terms that prohibit them from making any copies of924your copyrighted material outside their relationship with you.925926 Conveying under any other circumstances is permitted solely under927the conditions stated below. Sublicensing is not allowed; section 10928makes it unnecessary.929930 3. Protecting Users' Legal Rights From Anti-Circumvention Law.931932 No covered work shall be deemed part of an effective technological933measure under any applicable law fulfilling obligations under article93411 of the WIPO copyright treaty adopted on 20 December 1996, or935similar laws prohibiting or restricting circumvention of such936measures.937938 When you convey a covered work, you waive any legal power to forbid939circumvention of technological measures to the extent such circumvention940is effected by exercising rights under this License with respect to941the covered work, and you disclaim any intention to limit operation or942modification of the work as a means of enforcing, against the work's943users, your or third parties' legal rights to forbid circumvention of944technological measures.945946 4. Conveying Verbatim Copies.947948 You may convey verbatim copies of the Program's source code as you949receive it, in any medium, provided that you conspicuously and950appropriately publish on each copy an appropriate copyright notice;951keep intact all notices stating that this License and any952non-permissive terms added in accord with section 7 apply to the code;953keep intact all notices of the absence of any warranty; and give all954recipients a copy of this License along with the Program.955956 You may charge any price or no price for each copy that you convey,957and you may offer support or warranty protection for a fee.958959 5. Conveying Modified Source Versions.960961 You may convey a work based on the Program, or the modifications to962produce it from the Program, in the form of source code under the963terms of section 4, provided that you also meet all of these conditions:964965 a) The work must carry prominent notices stating that you modified966 it, and giving a relevant date.967968 b) The work must carry prominent notices stating that it is969 released under this License and any conditions added under section970 7. This requirement modifies the requirement in section 4 to971 "keep intact all notices".972973 c) You must license the entire work, as a whole, under this974 License to anyone who comes into possession of a copy. This975 License will therefore apply, along with any applicable section 7976 additional terms, to the whole of the work, and all its parts,977 regardless of how they are packaged. This License gives no978 permission to license the work in any other way, but it does not979 invalidate such permission if you have separately received it.980981 d) If the work has interactive user interfaces, each must display982 Appropriate Legal Notices; however, if the Program has interactive983 interfaces that do not display Appropriate Legal Notices, your984 work need not make them do so.985986 A compilation of a covered work with other separate and independent987works, which are not by their nature extensions of the covered work,988and which are not combined with it such as to form a larger program,989in or on a volume of a storage or distribution medium, is called an990"aggregate" if the compilation and its resulting copyright are not991used to limit the access or legal rights of the compilation's users992beyond what the individual works permit. Inclusion of a covered work993in an aggregate does not cause this License to apply to the other994parts of the aggregate.995996 6. Conveying Non-Source Forms.997998 You may convey a covered work in object code form under the terms999of sections 4 and 5, provided that you also convey the1000machine-readable Corresponding Source under the terms of this License,1001in one of these ways:10021003 a) Convey the object code in, or embodied in, a physical product1004 (including a physical distribution medium), accompanied by the1005 Corresponding Source fixed on a durable physical medium1006 customarily used for software interchange.10071008 b) Convey the object code in, or embodied in, a physical product1009 (including a physical distribution medium), accompanied by a1010 written offer, valid for at least three years and valid for as1011 long as you offer spare parts or customer support for that product1012 model, to give anyone who possesses the object code either (1) a1013 copy of the Corresponding Source for all the software in the1014 product that is covered by this License, on a durable physical1015 medium customarily used for software interchange, for a price no1016 more than your reasonable cost of physically performing this1017 conveying of source, or (2) access to copy the1018 Corresponding Source from a network server at no charge.10191020 c) Convey individual copies of the object code with a copy of the1021 written offer to provide the Corresponding Source. This1022 alternative is allowed only occasionally and noncommercially, and1023 only if you received the object code with such an offer, in accord1024 with subsection 6b.10251026 d) Convey the object code by offering access from a designated1027 place (gratis or for a charge), and offer equivalent access to the1028 Corresponding Source in the same way through the same place at no1029 further charge. You need not require recipients to copy the1030 Corresponding Source along with the object code. If the place to1031 copy the object code is a network server, the Corresponding Source1032 may be on a different server (operated by you or a third party)1033 that supports equivalent copying facilities, provided you maintain1034 clear directions next to the object code saying where to find the1035 Corresponding Source. Regardless of what server hosts the1036 Corresponding Source, you remain obligated to ensure that it is1037 available for as long as needed to satisfy these requirements.10381039 e) Convey the object code using peer-to-peer transmission, provided1040 you inform other peers where the object code and Corresponding1041 Source of the work are being offered to the general public at no1042 charge under subsection 6d.10431044 A separable portion of the object code, whose source code is excluded1045from the Corresponding Source as a System Library, need not be1046included in conveying the object code work.10471048 A "User Product" is either (1) a "consumer product", which means any1049tangible personal property which is normally used for personal, family,1050or household purposes, or (2) anything designed or sold for incorporation1051into a dwelling. In determining whether a product is a consumer product,1052doubtful cases shall be resolved in favor of coverage. For a particular1053product received by a particular user, "normally used" refers to a1054typical or common use of that class of product, regardless of the status1055of the particular user or of the way in which the particular user1056actually uses, or expects or is expected to use, the product. A product1057is a consumer product regardless of whether the product has substantial1058commercial, industrial or non-consumer uses, unless such uses represent1059the only significant mode of use of the product.10601061 "Installation Information" for a User Product means any methods,1062procedures, authorization keys, or other information required to install1063and execute modified versions of a covered work in that User Product from1064a modified version of its Corresponding Source. The information must1065suffice to ensure that the continued functioning of the modified object1066code is in no case prevented or interfered with solely because1067modification has been made.10681069 If you convey an object code work under this section in, or with, or1070specifically for use in, a User Product, and the conveying occurs as1071part of a transaction in which the right of possession and use of the1072User Product is transferred to the recipient in perpetuity or for a1073fixed term (regardless of how the transaction is characterized), the1074Corresponding Source conveyed under this section must be accompanied1075by the Installation Information. But this requirement does not apply1076if neither you nor any third party retains the ability to install1077modified object code on the User Product (for example, the work has1078been installed in ROM).10791080 The requirement to provide Installation Information does not include a1081requirement to continue to provide support service, warranty, or updates1082for a work that has been modified or installed by the recipient, or for1083the User Product in which it has been modified or installed. Access to a1084network may be denied when the modification itself materially and1085adversely affects the operation of the network or violates the rules and1086protocols for communication across the network.10871088 Corresponding Source conveyed, and Installation Information provided,1089in accord with this section must be in a format that is publicly1090documented (and with an implementation available to the public in1091source code form), and must require no special password or key for1092unpacking, reading or copying.10931094 7. Additional Terms.10951096 "Additional permissions" are terms that supplement the terms of this1097License by making exceptions from one or more of its conditions.1098Additional permissions that are applicable to the entire Program shall1099be treated as though they were included in this License, to the extent1100that they are valid under applicable law. If additional permissions1101apply only to part of the Program, that part may be used separately1102under those permissions, but the entire Program remains governed by1103this License without regard to the additional permissions.11041105 When you convey a copy of a covered work, you may at your option1106remove any additional permissions from that copy, or from any part of1107it. (Additional permissions may be written to require their own1108removal in certain cases when you modify the work.) You may place1109additional permissions on material, added by you to a covered work,1110for which you have or can give appropriate copyright permission.11111112 Notwithstanding any other provision of this License, for material you1113add to a covered work, you may (if authorized by the copyright holders of1114that material) supplement the terms of this License with terms:11151116 a) Disclaiming warranty or limiting liability differently from the1117 terms of sections 15 and 16 of this License; or11181119 b) Requiring preservation of specified reasonable legal notices or1120 author attributions in that material or in the Appropriate Legal1121 Notices displayed by works containing it; or11221123 c) Prohibiting misrepresentation of the origin of that material, or1124 requiring that modified versions of such material be marked in1125 reasonable ways as different from the original version; or11261127 d) Limiting the use for publicity purposes of names of licensors or1128 authors of the material; or11291130 e) Declining to grant rights under trademark law for use of some1131 trade names, trademarks, or service marks; or11321133 f) Requiring indemnification of licensors and authors of that1134 material by anyone who conveys the material (or modified versions of1135 it) with contractual assumptions of liability to the recipient, for1136 any liability that these contractual assumptions directly impose on1137 those licensors and authors.11381139 All other non-permissive additional terms are considered "further1140restrictions" within the meaning of section 10. If the Program as you1141received it, or any part of it, contains a notice stating that it is1142governed by this License along with a term that is a further1143restriction, you may remove that term. If a license document contains1144a further restriction but permits relicensing or conveying under this1145License, you may add to a covered work material governed by the terms1146of that license document, provided that the further restriction does1147not survive such relicensing or conveying.11481149 If you add terms to a covered work in accord with this section, you1150must place, in the relevant source files, a statement of the1151additional terms that apply to those files, or a notice indicating1152where to find the applicable terms.11531154 Additional terms, permissive or non-permissive, may be stated in the1155form of a separately written license, or stated as exceptions;1156the above requirements apply either way.11571158 8. Termination.11591160 You may not propagate or modify a covered work except as expressly1161provided under this License. Any attempt otherwise to propagate or1162modify it is void, and will automatically terminate your rights under1163this License (including any patent licenses granted under the third1164paragraph of section 11).11651166 However, if you cease all violation of this License, then your1167license from a particular copyright holder is reinstated (a)1168provisionally, unless and until the copyright holder explicitly and1169finally terminates your license, and (b) permanently, if the copyright1170holder fails to notify you of the violation by some reasonable means1171prior to 60 days after the cessation.11721173 Moreover, your license from a particular copyright holder is1174reinstated permanently if the copyright holder notifies you of the1175violation by some reasonable means, this is the first time you have1176received notice of violation of this License (for any work) from that1177copyright holder, and you cure the violation prior to 30 days after1178your receipt of the notice.11791180 Termination of your rights under this section does not terminate the1181licenses of parties who have received copies or rights from you under1182this License. If your rights have been terminated and not permanently1183reinstated, you do not qualify to receive new licenses for the same1184material under section 10.11851186 9. Acceptance Not Required for Having Copies.11871188 You are not required to accept this License in order to receive or1189run a copy of the Program. Ancillary propagation of a covered work1190occurring solely as a consequence of using peer-to-peer transmission1191to receive a copy likewise does not require acceptance. However,1192nothing other than this License grants you permission to propagate or1193modify any covered work. These actions infringe copyright if you do1194not accept this License. Therefore, by modifying or propagating a1195covered work, you indicate your acceptance of this License to do so.11961197 10. Automatic Licensing of Downstream Recipients.11981199 Each time you convey a covered work, the recipient automatically1200receives a license from the original licensors, to run, modify and1201propagate that work, subject to this License. You are not responsible1202for enforcing compliance by third parties with this License.12031204 An "entity transaction" is a transaction transferring control of an1205organization, or substantially all assets of one, or subdividing an1206organization, or merging organizations. If propagation of a covered1207work results from an entity transaction, each party to that1208transaction who receives a copy of the work also receives whatever1209licenses to the work the party's predecessor in interest had or could1210give under the previous paragraph, plus a right to possession of the1211Corresponding Source of the work from the predecessor in interest, if1212the predecessor has it or can get it with reasonable efforts.12131214 You may not impose any further restrictions on the exercise of the1215rights granted or affirmed under this License. For example, you may1216not impose a license fee, royalty, or other charge for exercise of1217rights granted under this License, and you may not initiate litigation1218(including a cross-claim or counterclaim in a lawsuit) alleging that1219any patent claim is infringed by making, using, selling, offering for1220sale, or importing the Program or any portion of it.12211222 11. Patents.12231224 A "contributor" is a copyright holder who authorizes use under this1225License of the Program or a work on which the Program is based. The1226work thus licensed is called the contributor's "contributor version".12271228 A contributor's "essential patent claims" are all patent claims1229owned or controlled by the contributor, whether already acquired or1230hereafter acquired, that would be infringed by some manner, permitted1231by this License, of making, using, or selling its contributor version,1232but do not include claims that would be infringed only as a1233consequence of further modification of the contributor version. For1234purposes of this definition, "control" includes the right to grant1235patent sublicenses in a manner consistent with the requirements of1236this License.12371238 Each contributor grants you a non-exclusive, worldwide, royalty-free1239patent license under the contributor's essential patent claims, to1240make, use, sell, offer for sale, import and otherwise run, modify and1241propagate the contents of its contributor version.12421243 In the following three paragraphs, a "patent license" is any express1244agreement or commitment, however denominated, not to enforce a patent1245(such as an express permission to practice a patent or covenant not to1246sue for patent infringement). To "grant" such a patent license to a1247party means to make such an agreement or commitment not to enforce a1248patent against the party.12491250 If you convey a covered work, knowingly relying on a patent license,1251and the Corresponding Source of the work is not available for anyone1252to copy, free of charge and under the terms of this License, through a1253publicly available network server or other readily accessible means,1254then you must either (1) cause the Corresponding Source to be so1255available, or (2) arrange to deprive yourself of the benefit of the1256patent license for this particular work, or (3) arrange, in a manner1257consistent with the requirements of this License, to extend the patent1258license to downstream recipients. "Knowingly relying" means you have1259actual knowledge that, but for the patent license, your conveying the1260covered work in a country, or your recipient's use of the covered work1261in a country, would infringe one or more identifiable patents in that1262country that you have reason to believe are valid.12631264 If, pursuant to or in connection with a single transaction or1265arrangement, you convey, or propagate by procuring conveyance of, a1266covered work, and grant a patent license to some of the parties1267receiving the covered work authorizing them to use, propagate, modify1268or convey a specific copy of the covered work, then the patent license1269you grant is automatically extended to all recipients of the covered1270work and works based on it.12711272 A patent license is "discriminatory" if it does not include within1273the scope of its coverage, prohibits the exercise of, or is1274conditioned on the non-exercise of one or more of the rights that are1275specifically granted under this License. You may not convey a covered1276work if you are a party to an arrangement with a third party that is1277in the business of distributing software, under which you make payment1278to the third party based on the extent of your activity of conveying1279the work, and under which the third party grants, to any of the1280parties who would receive the covered work from you, a discriminatory1281patent license (a) in connection with copies of the covered work1282conveyed by you (or copies made from those copies), or (b) primarily1283for and in connection with specific products or compilations that1284contain the covered work, unless you entered into that arrangement,1285or that patent license was granted, prior to 28 March 2007.12861287 Nothing in this License shall be construed as excluding or limiting1288any implied license or other defenses to infringement that may1289otherwise be available to you under applicable patent law.12901291 12. No Surrender of Others' Freedom.12921293 If conditions are imposed on you (whether by court order, agreement or1294otherwise) that contradict the conditions of this License, they do not1295excuse you from the conditions of this License. If you cannot convey a1296covered work so as to satisfy simultaneously your obligations under this1297License and any other pertinent obligations, then as a consequence you may1298not convey it at all. For example, if you agree to terms that obligate you1299to collect a royalty for further conveying from those to whom you convey1300the Program, the only way you could satisfy both those terms and this1301License would be to refrain entirely from conveying the Program.13021303 13. Use with the GNU Affero General Public License.13041305 Notwithstanding any other provision of this License, you have1306permission to link or combine any covered work with a work licensed1307under version 3 of the GNU Affero General Public License into a single1308combined work, and to convey the resulting work. The terms of this1309License will continue to apply to the part which is the covered work,1310but the special requirements of the GNU Affero General Public License,1311section 13, concerning interaction through a network will apply to the1312combination as such.13131314 14. Revised Versions of this License.13151316 The Free Software Foundation may publish revised and/or new versions of1317the GNU General Public License from time to time. Such new versions will1318be similar in spirit to the present version, but may differ in detail to1319address new problems or concerns.13201321 Each version is given a distinguishing version number. If the1322Program specifies that a certain numbered version of the GNU General1323Public License "or any later version" applies to it, you have the1324option of following the terms and conditions either of that numbered1325version or of any later version published by the Free Software1326Foundation. If the Program does not specify a version number of the1327GNU General Public License, you may choose any version ever published1328by the Free Software Foundation.13291330 If the Program specifies that a proxy can decide which future1331versions of the GNU General Public License can be used, that proxy's1332public statement of acceptance of a version permanently authorizes you1333to choose that version for the Program.13341335 Later license versions may give you additional or different1336permissions. However, no additional obligations are imposed on any1337author or copyright holder as a result of your choosing to follow a1338later version.13391340 15. Disclaimer of Warranty.13411342 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY1343APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT1344HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY1345OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,1346THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR1347PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM1348IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF1349ALL NECESSARY SERVICING, REPAIR OR CORRECTION.13501351 16. Limitation of Liability.13521353 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING1354WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS1355THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY1356GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE1357USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF1358DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD1359PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),1360EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF1361SUCH DAMAGES.13621363 17. Interpretation of Sections 15 and 16.13641365 If the disclaimer of warranty and limitation of liability provided1366above cannot be given local legal effect according to their terms,1367reviewing courts shall apply local law that most closely approximates1368an absolute waiver of all civil liability in connection with the1369Program, unless a warranty or assumption of liability accompanies a1370copy of the Program in return for a fee.13711372 END OF TERMS AND CONDITIONS1373`,1374 }137567 // Licenses["apache20"] = License{68 // Name: "Apache 2.0",69 // PossibleMatches: []string{"apache", "apache20", ""},70 // Header: `
5 unmodified lines