cmd: Add LGPL license
Before adoption: this commit came in with the history the project adopted, so no landing records it.
See #311, #318
authored by Albert Nigmatzianov · committed by Albert Nigmatzianov · parent 6d4267f · Browse files · 2 files·+189 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+189 added−0 removed
- other:+189 added−0 removed
Provenance
- Commit
1efd892- Tree
3c4383f- Author
Albert Nigmatzianov <albertnigma@gmail.com>- Committer
Albert Nigmatzianov <albertnigma@gmail.com>- Parent
6d4267f
2 files changed+189 added−0 removed
added:cobra/cmd/license_lgpl.go+188 added
1+package cmd2+3+func initLgpl() {4+ Licenses["lgpl"] = License{5+ Name: "GNU Lesser General Public License",6+ PossibleMatches: []string{"lgpl", "lesser gpl", "gnu lgpl"},7+ Header: `8+This file is part of {{ .appName }}.9+10+{{ .appName }} is free software: you can redistribute it and/or modify11+it under the terms of the GNU Lesser General Public License as published by12+the Free Software Foundation, either version 3 of the License, or13+(at your option) any later version.14+15+{{ .appName }} is distributed in the hope that it will be useful,16+but WITHOUT ANY WARRANTY; without even the implied warranty of17+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18+GNU Lesser General Public License for more details.19+20+You should have received a copy of the GNU Lesser General Public License21+along with {{ .appName }}. If not, see <http://www.gnu.org/licenses/>.`,22+ Text: ` GNU LESSER GENERAL PUBLIC LICENSE23+ Version 3, 29 June 200724+25+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>26+ Everyone is permitted to copy and distribute verbatim copies27+ of this license document, but changing it is not allowed.28+29+30+ This version of the GNU Lesser General Public License incorporates31+the terms and conditions of version 3 of the GNU General Public32+License, supplemented by the additional permissions listed below.33+34+ 0. Additional Definitions.35+36+ As used herein, "this License" refers to version 3 of the GNU Lesser37+General Public License, and the "GNU GPL" refers to version 3 of the GNU38+General Public License.39+40+ "The Library" refers to a covered work governed by this License,41+other than an Application or a Combined Work as defined below.42+43+ An "Application" is any work that makes use of an interface provided44+by the Library, but which is not otherwise based on the Library.45+Defining a subclass of a class defined by the Library is deemed a mode46+of using an interface provided by the Library.47+48+ A "Combined Work" is a work produced by combining or linking an49+Application with the Library. The particular version of the Library50+with which the Combined Work was made is also called the "Linked51+Version".52+53+ The "Minimal Corresponding Source" for a Combined Work means the54+Corresponding Source for the Combined Work, excluding any source code55+for portions of the Combined Work that, considered in isolation, are56+based on the Application, and not on the Linked Version.57+58+ The "Corresponding Application Code" for a Combined Work means the59+object code and/or source code for the Application, including any data60+and utility programs needed for reproducing the Combined Work from the61+Application, but excluding the System Libraries of the Combined Work.62+63+ 1. Exception to Section 3 of the GNU GPL.64+65+ You may convey a covered work under sections 3 and 4 of this License66+without being bound by section 3 of the GNU GPL.67+68+ 2. Conveying Modified Versions.69+70+ If you modify a copy of the Library, and, in your modifications, a71+facility refers to a function or data to be supplied by an Application72+that uses the facility (other than as an argument passed when the73+facility is invoked), then you may convey a copy of the modified74+version:75+76+ a) under this License, provided that you make a good faith effort to77+ ensure that, in the event an Application does not supply the78+ function or data, the facility still operates, and performs79+ whatever part of its purpose remains meaningful, or80+81+ b) under the GNU GPL, with none of the additional permissions of82+ this License applicable to that copy.83+84+ 3. Object Code Incorporating Material from Library Header Files.85+86+ The object code form of an Application may incorporate material from87+a header file that is part of the Library. You may convey such object88+code under terms of your choice, provided that, if the incorporated89+material is not limited to numerical parameters, data structure90+layouts and accessors, or small macros, inline functions and templates91+(ten or fewer lines in length), you do both of the following:92+93+ a) Give prominent notice with each copy of the object code that the94+ Library is used in it and that the Library and its use are95+ covered by this License.96+97+ b) Accompany the object code with a copy of the GNU GPL and this license98+ document.99+100+ 4. Combined Works.101+102+ You may convey a Combined Work under terms of your choice that,103+taken together, effectively do not restrict modification of the104+portions of the Library contained in the Combined Work and reverse105+engineering for debugging such modifications, if you also do each of106+the following:107+108+ a) Give prominent notice with each copy of the Combined Work that109+ the Library is used in it and that the Library and its use are110+ covered by this License.111+112+ b) Accompany the Combined Work with a copy of the GNU GPL and this license113+ document.114+115+ c) For a Combined Work that displays copyright notices during116+ execution, include the copyright notice for the Library among117+ these notices, as well as a reference directing the user to the118+ copies of the GNU GPL and this license document.119+120+ d) Do one of the following:121+122+ 0) Convey the Minimal Corresponding Source under the terms of this123+ License, and the Corresponding Application Code in a form124+ suitable for, and under terms that permit, the user to125+ recombine or relink the Application with a modified version of126+ the Linked Version to produce a modified Combined Work, in the127+ manner specified by section 6 of the GNU GPL for conveying128+ Corresponding Source.129+130+ 1) Use a suitable shared library mechanism for linking with the131+ Library. A suitable mechanism is one that (a) uses at run time132+ a copy of the Library already present on the user's computer133+ system, and (b) will operate properly with a modified version134+ of the Library that is interface-compatible with the Linked135+ Version.136+137+ e) Provide Installation Information, but only if you would otherwise138+ be required to provide such information under section 6 of the139+ GNU GPL, and only to the extent that such information is140+ necessary to install and execute a modified version of the141+ Combined Work produced by recombining or relinking the142+ Application with a modified version of the Linked Version. (If143+ you use option 4d0, the Installation Information must accompany144+ the Minimal Corresponding Source and Corresponding Application145+ Code. If you use option 4d1, you must provide the Installation146+ Information in the manner specified by section 6 of the GNU GPL147+ for conveying Corresponding Source.)148+149+ 5. Combined Libraries.150+151+ You may place library facilities that are a work based on the152+Library side by side in a single library together with other library153+facilities that are not Applications and are not covered by this154+License, and convey such a combined library under terms of your155+choice, if you do both of the following:156+157+ a) Accompany the combined library with a copy of the same work based158+ on the Library, uncombined with any other library facilities,159+ conveyed under the terms of this License.160+161+ b) Give prominent notice with the combined library that part of it162+ is a work based on the Library, and explaining where to find the163+ accompanying uncombined form of the same work.164+165+ 6. Revised Versions of the GNU Lesser General Public License.166+167+ The Free Software Foundation may publish revised and/or new versions168+of the GNU Lesser General Public License from time to time. Such new169+versions will be similar in spirit to the present version, but may170+differ in detail to address new problems or concerns.171+172+ Each version is given a distinguishing version number. If the173+Library as you received it specifies that a certain numbered version174+of the GNU Lesser General Public License "or any later version"175+applies to it, you have the option of following the terms and176+conditions either of that published version or of any later version177+published by the Free Software Foundation. If the Library as you178+received it does not specify a version number of the GNU Lesser179+General Public License, you may choose any version of the GNU Lesser180+General Public License ever published by the Free Software Foundation.181+182+ If the Library as you received it specifies that a proxy can decide183+whether future versions of the GNU Lesser General Public License shall184+apply, that proxy's public statement of acceptance of any version is185+permanent authorization for you to choose that version for the186+Library.`,187+ }188+}modified:cobra/cmd/licenses.go+1 added
49 unmodified lines50 initBsdClause3()51 initBsdClause2()52 initGpl2()53 initGpl3()54+ initLgpl()55 56 // Licenses["apache20"] = License{57 // Name: "Apache 2.0",58 // PossibleMatches: []string{"apache", "apache20", ""},59 unmodified lines