Skip to content
Myr

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

2 files+189 added−0 removed

added:cobra/cmd/license_lgpl.go+188 added
1package cmd23func initLgpl() {4 Licenses["lgpl"] = License{5 Name: "GNU Lesser General Public License",6 PossibleMatches: []string{"lgpl", "lesser gpl", "gnu lgpl"},7 Header: `8This file is part of {{ .appName }}.910{{ .appName }} is free software: you can redistribute it and/or modify11it under the terms of the GNU Lesser General Public License as published by12the Free Software Foundation, either version 3 of the License, or13(at your option) any later version.1415{{ .appName }} is distributed in the hope that it will be useful,16but WITHOUT ANY WARRANTY; without even the implied warranty of17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18GNU Lesser General Public License for more details.1920You should have received a copy of the GNU Lesser General Public License21along with {{ .appName }}. If not, see <http://www.gnu.org/licenses/>.`,22 Text: ` GNU LESSER GENERAL PUBLIC LICENSE23 Version 3, 29 June 20072425 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.282930 This version of the GNU Lesser General Public License incorporates31the terms and conditions of version 3 of the GNU General Public32License, supplemented by the additional permissions listed below.3334 0. Additional Definitions.3536 As used herein, "this License" refers to version 3 of the GNU Lesser37General Public License, and the "GNU GPL" refers to version 3 of the GNU38General Public License.3940 "The Library" refers to a covered work governed by this License,41other than an Application or a Combined Work as defined below.4243 An "Application" is any work that makes use of an interface provided44by the Library, but which is not otherwise based on the Library.45Defining a subclass of a class defined by the Library is deemed a mode46of using an interface provided by the Library.4748 A "Combined Work" is a work produced by combining or linking an49Application with the Library. The particular version of the Library50with which the Combined Work was made is also called the "Linked51Version".5253 The "Minimal Corresponding Source" for a Combined Work means the54Corresponding Source for the Combined Work, excluding any source code55for portions of the Combined Work that, considered in isolation, are56based on the Application, and not on the Linked Version.5758 The "Corresponding Application Code" for a Combined Work means the59object code and/or source code for the Application, including any data60and utility programs needed for reproducing the Combined Work from the61Application, but excluding the System Libraries of the Combined Work.6263 1. Exception to Section 3 of the GNU GPL.6465 You may convey a covered work under sections 3 and 4 of this License66without being bound by section 3 of the GNU GPL.6768 2. Conveying Modified Versions.6970 If you modify a copy of the Library, and, in your modifications, a71facility refers to a function or data to be supplied by an Application72that uses the facility (other than as an argument passed when the73facility is invoked), then you may convey a copy of the modified74version:7576 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, or8081 b) under the GNU GPL, with none of the additional permissions of82 this License applicable to that copy.8384 3. Object Code Incorporating Material from Library Header Files.8586 The object code form of an Application may incorporate material from87a header file that is part of the Library. You may convey such object88code under terms of your choice, provided that, if the incorporated89material is not limited to numerical parameters, data structure90layouts and accessors, or small macros, inline functions and templates91(ten or fewer lines in length), you do both of the following:9293 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.9697 b) Accompany the object code with a copy of the GNU GPL and this license98 document.99100 4. Combined Works.101102 You may convey a Combined Work under terms of your choice that,103taken together, effectively do not restrict modification of the104portions of the Library contained in the Combined Work and reverse105engineering for debugging such modifications, if you also do each of106the following:107108 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.111112 b) Accompany the Combined Work with a copy of the GNU GPL and this license113 document.114115 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.119120 d) Do one of the following:121122 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.129130 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.136137 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.)148149 5. Combined Libraries.150151 You may place library facilities that are a work based on the152Library side by side in a single library together with other library153facilities that are not Applications and are not covered by this154License, and convey such a combined library under terms of your155choice, if you do both of the following:156157 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.160161 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.164165 6. Revised Versions of the GNU Lesser General Public License.166167 The Free Software Foundation may publish revised and/or new versions168of the GNU Lesser General Public License from time to time. Such new169versions will be similar in spirit to the present version, but may170differ in detail to address new problems or concerns.171172 Each version is given a distinguishing version number. If the173Library as you received it specifies that a certain numbered version174of the GNU Lesser General Public License "or any later version"175applies to it, you have the option of following the terms and176conditions either of that published version or of any later version177published by the Free Software Foundation. If the Library as you178received it does not specify a version number of the GNU Lesser179General Public License, you may choose any version of the GNU Lesser180General Public License ever published by the Free Software Foundation.181182 If the Library as you received it specifies that a proxy can decide183whether future versions of the GNU Lesser General Public License shall184apply, that proxy's public statement of acceptance of any version is185permanent authorization for you to choose that version for the186Library.`,187 }188}
modified:cobra/cmd/licenses.go+1 added
49 unmodified lines
50 initBsdClause3()51 initBsdClause2()52 initGpl2()53 initGpl3()54 initLgpl()5556 // Licenses["apache20"] = License{57 // Name: "Apache 2.0",58 // PossibleMatches: []string{"apache", "apache20", ""},
59 unmodified lines