never executed always true always false
1 {-|
2 Module : Distribution.Client.Init.Licenses
3
4 Description : Factory functions for producing known license types.
5
6 License : BSD-like
7 Maintainer : cabal-devel@haskell.org
8 Stability : provisional
9 Portability : portable
10 -}
11 module Distribution.Client.Init.Licenses
12 ( License
13 , bsd2
14 , bsd3
15 , gplv2
16 , gplv3
17 , lgpl21
18 , lgpl3
19 , agplv3
20 , apache20
21 , mit
22 , mpl20
23 , isc
24 ) where
25
26 import Prelude (String, unlines, (++))
27
28 type License = String
29
30 bsd2 :: String -> String -> License
31 bsd2 authors year = unlines
32 [ "Copyright (c) " ++ year ++ ", " ++ authors
33 , "All rights reserved."
34 , ""
35 , "Redistribution and use in source and binary forms, with or without"
36 , "modification, are permitted provided that the following conditions are"
37 , "met:"
38 , ""
39 , "1. Redistributions of source code must retain the above copyright"
40 , " notice, this list of conditions and the following disclaimer."
41 , ""
42 , "2. Redistributions in binary form must reproduce the above copyright"
43 , " notice, this list of conditions and the following disclaimer in the"
44 , " documentation and/or other materials provided with the"
45 , " distribution."
46 , ""
47 , "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"
48 , "\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT"
49 , "LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR"
50 , "A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT"
51 , "OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,"
52 , "SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT"
53 , "LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,"
54 , "DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY"
55 , "THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT"
56 , "(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE"
57 , "OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
58 ]
59
60 bsd3 :: String -> String -> License
61 bsd3 authors year = unlines
62 [ "Copyright (c) " ++ year ++ ", " ++ authors
63 , ""
64 , "All rights reserved."
65 , ""
66 , "Redistribution and use in source and binary forms, with or without"
67 , "modification, are permitted provided that the following conditions are met:"
68 , ""
69 , " * Redistributions of source code must retain the above copyright"
70 , " notice, this list of conditions and the following disclaimer."
71 , ""
72 , " * Redistributions in binary form must reproduce the above"
73 , " copyright notice, this list of conditions and the following"
74 , " disclaimer in the documentation and/or other materials provided"
75 , " with the distribution."
76 , ""
77 , " * Neither the name of " ++ authors ++ " nor the names of other"
78 , " contributors may be used to endorse or promote products derived"
79 , " from this software without specific prior written permission."
80 , ""
81 , "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"
82 , "\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT"
83 , "LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR"
84 , "A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT"
85 , "OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,"
86 , "SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT"
87 , "LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,"
88 , "DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY"
89 , "THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT"
90 , "(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE"
91 , "OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
92 ]
93
94 gplv2 :: License
95 gplv2 = unlines
96 [ " GNU GENERAL PUBLIC LICENSE"
97 , " Version 2, June 1991"
98 , ""
99 , " Copyright (C) 1989, 1991 Free Software Foundation, Inc.,"
100 , " 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
101 , " Everyone is permitted to copy and distribute verbatim copies"
102 , " of this license document, but changing it is not allowed."
103 , ""
104 , " Preamble"
105 , ""
106 , " The licenses for most software are designed to take away your"
107 , "freedom to share and change it. By contrast, the GNU General Public"
108 , "License is intended to guarantee your freedom to share and change free"
109 , "software--to make sure the software is free for all its users. This"
110 , "General Public License applies to most of the Free Software"
111 , "Foundation's software and to any other program whose authors commit to"
112 , "using it. (Some other Free Software Foundation software is covered by"
113 , "the GNU Lesser General Public License instead.) You can apply it to"
114 , "your programs, too."
115 , ""
116 , " When we speak of free software, we are referring to freedom, not"
117 , "price. Our General Public Licenses are designed to make sure that you"
118 , "have the freedom to distribute copies of free software (and charge for"
119 , "this service if you wish), that you receive source code or can get it"
120 , "if you want it, that you can change the software or use pieces of it"
121 , "in new free programs; and that you know you can do these things."
122 , ""
123 , " To protect your rights, we need to make restrictions that forbid"
124 , "anyone to deny you these rights or to ask you to surrender the rights."
125 , "These restrictions translate to certain responsibilities for you if you"
126 , "distribute copies of the software, or if you modify it."
127 , ""
128 , " For example, if you distribute copies of such a program, whether"
129 , "gratis or for a fee, you must give the recipients all the rights that"
130 , "you have. You must make sure that they, too, receive or can get the"
131 , "source code. And you must show them these terms so they know their"
132 , "rights."
133 , ""
134 , " We protect your rights with two steps: (1) copyright the software, and"
135 , "(2) offer you this license which gives you legal permission to copy,"
136 , "distribute and/or modify the software."
137 , ""
138 , " Also, for each author's protection and ours, we want to make certain"
139 , "that everyone understands that there is no warranty for this free"
140 , "software. If the software is modified by someone else and passed on, we"
141 , "want its recipients to know that what they have is not the original, so"
142 , "that any problems introduced by others will not reflect on the original"
143 , "authors' reputations."
144 , ""
145 , " Finally, any free program is threatened constantly by software"
146 , "patents. We wish to avoid the danger that redistributors of a free"
147 , "program will individually obtain patent licenses, in effect making the"
148 , "program proprietary. To prevent this, we have made it clear that any"
149 , "patent must be licensed for everyone's free use or not licensed at all."
150 , ""
151 , " The precise terms and conditions for copying, distribution and"
152 , "modification follow."
153 , ""
154 , " GNU GENERAL PUBLIC LICENSE"
155 , " TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION"
156 , ""
157 , " 0. This License applies to any program or other work which contains"
158 , "a notice placed by the copyright holder saying it may be distributed"
159 , "under the terms of this General Public License. The \"Program\", below,"
160 , "refers to any such program or work, and a \"work based on the Program\""
161 , "means either the Program or any derivative work under copyright law:"
162 , "that is to say, a work containing the Program or a portion of it,"
163 , "either verbatim or with modifications and/or translated into another"
164 , "language. (Hereinafter, translation is included without limitation in"
165 , "the term \"modification\".) Each licensee is addressed as \"you\"."
166 , ""
167 , "Activities other than copying, distribution and modification are not"
168 , "covered by this License; they are outside its scope. The act of"
169 , "running the Program is not restricted, and the output from the Program"
170 , "is covered only if its contents constitute a work based on the"
171 , "Program (independent of having been made by running the Program)."
172 , "Whether that is true depends on what the Program does."
173 , ""
174 , " 1. You may copy and distribute verbatim copies of the Program's"
175 , "source code as you receive it, in any medium, provided that you"
176 , "conspicuously and appropriately publish on each copy an appropriate"
177 , "copyright notice and disclaimer of warranty; keep intact all the"
178 , "notices that refer to this License and to the absence of any warranty;"
179 , "and give any other recipients of the Program a copy of this License"
180 , "along with the Program."
181 , ""
182 , "You may charge a fee for the physical act of transferring a copy, and"
183 , "you may at your option offer warranty protection in exchange for a fee."
184 , ""
185 , " 2. You may modify your copy or copies of the Program or any portion"
186 , "of it, thus forming a work based on the Program, and copy and"
187 , "distribute such modifications or work under the terms of Section 1"
188 , "above, provided that you also meet all of these conditions:"
189 , ""
190 , " a) You must cause the modified files to carry prominent notices"
191 , " stating that you changed the files and the date of any change."
192 , ""
193 , " b) You must cause any work that you distribute or publish, that in"
194 , " whole or in part contains or is derived from the Program or any"
195 , " part thereof, to be licensed as a whole at no charge to all third"
196 , " parties under the terms of this License."
197 , ""
198 , " c) If the modified program normally reads commands interactively"
199 , " when run, you must cause it, when started running for such"
200 , " interactive use in the most ordinary way, to print or display an"
201 , " announcement including an appropriate copyright notice and a"
202 , " notice that there is no warranty (or else, saying that you provide"
203 , " a warranty) and that users may redistribute the program under"
204 , " these conditions, and telling the user how to view a copy of this"
205 , " License. (Exception: if the Program itself is interactive but"
206 , " does not normally print such an announcement, your work based on"
207 , " the Program is not required to print an announcement.)"
208 , ""
209 , "These requirements apply to the modified work as a whole. If"
210 , "identifiable sections of that work are not derived from the Program,"
211 , "and can be reasonably considered independent and separate works in"
212 , "themselves, then this License, and its terms, do not apply to those"
213 , "sections when you distribute them as separate works. But when you"
214 , "distribute the same sections as part of a whole which is a work based"
215 , "on the Program, the distribution of the whole must be on the terms of"
216 , "this License, whose permissions for other licensees extend to the"
217 , "entire whole, and thus to each and every part regardless of who wrote it."
218 , ""
219 , "Thus, it is not the intent of this section to claim rights or contest"
220 , "your rights to work written entirely by you; rather, the intent is to"
221 , "exercise the right to control the distribution of derivative or"
222 , "collective works based on the Program."
223 , ""
224 , "In addition, mere aggregation of another work not based on the Program"
225 , "with the Program (or with a work based on the Program) on a volume of"
226 , "a storage or distribution medium does not bring the other work under"
227 , "the scope of this License."
228 , ""
229 , " 3. You may copy and distribute the Program (or a work based on it,"
230 , "under Section 2) in object code or executable form under the terms of"
231 , "Sections 1 and 2 above provided that you also do one of the following:"
232 , ""
233 , " a) Accompany it with the complete corresponding machine-readable"
234 , " source code, which must be distributed under the terms of Sections"
235 , " 1 and 2 above on a medium customarily used for software interchange; or,"
236 , ""
237 , " b) Accompany it with a written offer, valid for at least three"
238 , " years, to give any third party, for a charge no more than your"
239 , " cost of physically performing source distribution, a complete"
240 , " machine-readable copy of the corresponding source code, to be"
241 , " distributed under the terms of Sections 1 and 2 above on a medium"
242 , " customarily used for software interchange; or,"
243 , ""
244 , " c) Accompany it with the information you received as to the offer"
245 , " to distribute corresponding source code. (This alternative is"
246 , " allowed only for noncommercial distribution and only if you"
247 , " received the program in object code or executable form with such"
248 , " an offer, in accord with Subsection b above.)"
249 , ""
250 , "The source code for a work means the preferred form of the work for"
251 , "making modifications to it. For an executable work, complete source"
252 , "code means all the source code for all modules it contains, plus any"
253 , "associated interface definition files, plus the scripts used to"
254 , "control compilation and installation of the executable. However, as a"
255 , "special exception, the source code distributed need not include"
256 , "anything that is normally distributed (in either source or binary"
257 , "form) with the major components (compiler, kernel, and so on) of the"
258 , "operating system on which the executable runs, unless that component"
259 , "itself accompanies the executable."
260 , ""
261 , "If distribution of executable or object code is made by offering"
262 , "access to copy from a designated place, then offering equivalent"
263 , "access to copy the source code from the same place counts as"
264 , "distribution of the source code, even though third parties are not"
265 , "compelled to copy the source along with the object code."
266 , ""
267 , " 4. You may not copy, modify, sublicense, or distribute the Program"
268 , "except as expressly provided under this License. Any attempt"
269 , "otherwise to copy, modify, sublicense or distribute the Program is"
270 , "void, and will automatically terminate your rights under this License."
271 , "However, parties who have received copies, or rights, from you under"
272 , "this License will not have their licenses terminated so long as such"
273 , "parties remain in full compliance."
274 , ""
275 , " 5. You are not required to accept this License, since you have not"
276 , "signed it. However, nothing else grants you permission to modify or"
277 , "distribute the Program or its derivative works. These actions are"
278 , "prohibited by law if you do not accept this License. Therefore, by"
279 , "modifying or distributing the Program (or any work based on the"
280 , "Program), you indicate your acceptance of this License to do so, and"
281 , "all its terms and conditions for copying, distributing or modifying"
282 , "the Program or works based on it."
283 , ""
284 , " 6. Each time you redistribute the Program (or any work based on the"
285 , "Program), the recipient automatically receives a license from the"
286 , "original licensor to copy, distribute or modify the Program subject to"
287 , "these terms and conditions. You may not impose any further"
288 , "restrictions on the recipients' exercise of the rights granted herein."
289 , "You are not responsible for enforcing compliance by third parties to"
290 , "this License."
291 , ""
292 , " 7. If, as a consequence of a court judgment or allegation of patent"
293 , "infringement or for any other reason (not limited to patent issues),"
294 , "conditions are imposed on you (whether by court order, agreement or"
295 , "otherwise) that contradict the conditions of this License, they do not"
296 , "excuse you from the conditions of this License. If you cannot"
297 , "distribute so as to satisfy simultaneously your obligations under this"
298 , "License and any other pertinent obligations, then as a consequence you"
299 , "may not distribute the Program at all. For example, if a patent"
300 , "license would not permit royalty-free redistribution of the Program by"
301 , "all those who receive copies directly or indirectly through you, then"
302 , "the only way you could satisfy both it and this License would be to"
303 , "refrain entirely from distribution of the Program."
304 , ""
305 , "If any portion of this section is held invalid or unenforceable under"
306 , "any particular circumstance, the balance of the section is intended to"
307 , "apply and the section as a whole is intended to apply in other"
308 , "circumstances."
309 , ""
310 , "It is not the purpose of this section to induce you to infringe any"
311 , "patents or other property right claims or to contest validity of any"
312 , "such claims; this section has the sole purpose of protecting the"
313 , "integrity of the free software distribution system, which is"
314 , "implemented by public license practices. Many people have made"
315 , "generous contributions to the wide range of software distributed"
316 , "through that system in reliance on consistent application of that"
317 , "system; it is up to the author/donor to decide if he or she is willing"
318 , "to distribute software through any other system and a licensee cannot"
319 , "impose that choice."
320 , ""
321 , "This section is intended to make thoroughly clear what is believed to"
322 , "be a consequence of the rest of this License."
323 , ""
324 , " 8. If the distribution and/or use of the Program is restricted in"
325 , "certain countries either by patents or by copyrighted interfaces, the"
326 , "original copyright holder who places the Program under this License"
327 , "may add an explicit geographical distribution limitation excluding"
328 , "those countries, so that distribution is permitted only in or among"
329 , "countries not thus excluded. In such case, this License incorporates"
330 , "the limitation as if written in the body of this License."
331 , ""
332 , " 9. The Free Software Foundation may publish revised and/or new versions"
333 , "of the General Public License from time to time. Such new versions will"
334 , "be similar in spirit to the present version, but may differ in detail to"
335 , "address new problems or concerns."
336 , ""
337 , "Each version is given a distinguishing version number. If the Program"
338 , "specifies a version number of this License which applies to it and \"any"
339 , "later version\", you have the option of following the terms and conditions"
340 , "either of that version or of any later version published by the Free"
341 , "Software Foundation. If the Program does not specify a version number of"
342 , "this License, you may choose any version ever published by the Free Software"
343 , "Foundation."
344 , ""
345 , " 10. If you wish to incorporate parts of the Program into other free"
346 , "programs whose distribution conditions are different, write to the author"
347 , "to ask for permission. For software which is copyrighted by the Free"
348 , "Software Foundation, write to the Free Software Foundation; we sometimes"
349 , "make exceptions for this. Our decision will be guided by the two goals"
350 , "of preserving the free status of all derivatives of our free software and"
351 , "of promoting the sharing and reuse of software generally."
352 , ""
353 , " NO WARRANTY"
354 , ""
355 , " 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY"
356 , "FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN"
357 , "OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES"
358 , "PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED"
359 , "OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF"
360 , "MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS"
361 , "TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE"
362 , "PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,"
363 , "REPAIR OR CORRECTION."
364 , ""
365 , " 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING"
366 , "WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR"
367 , "REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,"
368 , "INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING"
369 , "OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED"
370 , "TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY"
371 , "YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER"
372 , "PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE"
373 , "POSSIBILITY OF SUCH DAMAGES."
374 , ""
375 , " END OF TERMS AND CONDITIONS"
376 , ""
377 , " How to Apply These Terms to Your New Programs"
378 , ""
379 , " If you develop a new program, and you want it to be of the greatest"
380 , "possible use to the public, the best way to achieve this is to make it"
381 , "free software which everyone can redistribute and change under these terms."
382 , ""
383 , " To do so, attach the following notices to the program. It is safest"
384 , "to attach them to the start of each source file to most effectively"
385 , "convey the exclusion of warranty; and each file should have at least"
386 , "the \"copyright\" line and a pointer to where the full notice is found."
387 , ""
388 , " <one line to give the program's name and a brief idea of what it does.>"
389 , " Copyright (C) <year> <name of author>"
390 , ""
391 , " This program is free software; you can redistribute it and/or modify"
392 , " it under the terms of the GNU General Public License as published by"
393 , " the Free Software Foundation; either version 2 of the License, or"
394 , " (at your option) any later version."
395 , ""
396 , " This program is distributed in the hope that it will be useful,"
397 , " but WITHOUT ANY WARRANTY; without even the implied warranty of"
398 , " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"
399 , " GNU General Public License for more details."
400 , ""
401 , " You should have received a copy of the GNU General Public License along"
402 , " with this program; if not, write to the Free Software Foundation, Inc.,"
403 , " 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
404 , ""
405 , "Also add information on how to contact you by electronic and paper mail."
406 , ""
407 , "If the program is interactive, make it output a short notice like this"
408 , "when it starts in an interactive mode:"
409 , ""
410 , " Gnomovision version 69, Copyright (C) year name of author"
411 , " Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'."
412 , " This is free software, and you are welcome to redistribute it"
413 , " under certain conditions; type `show c' for details."
414 , ""
415 , "The hypothetical commands `show w' and `show c' should show the appropriate"
416 , "parts of the General Public License. Of course, the commands you use may"
417 , "be called something other than `show w' and `show c'; they could even be"
418 , "mouse-clicks or menu items--whatever suits your program."
419 , ""
420 , "You should also get your employer (if you work as a programmer) or your"
421 , "school, if any, to sign a \"copyright disclaimer\" for the program, if"
422 , "necessary. Here is a sample; alter the names:"
423 , ""
424 , " Yoyodyne, Inc., hereby disclaims all copyright interest in the program"
425 , " `Gnomovision' (which makes passes at compilers) written by James Hacker."
426 , ""
427 , " <signature of Ty Coon>, 1 April 1989"
428 , " Ty Coon, President of Vice"
429 , ""
430 , "This General Public License does not permit incorporating your program into"
431 , "proprietary programs. If your program is a subroutine library, you may"
432 , "consider it more useful to permit linking proprietary applications with the"
433 , "library. If this is what you want to do, use the GNU Lesser General"
434 , "Public License instead of this License."
435 ]
436
437 gplv3 :: License
438 gplv3 = unlines
439 [ " GNU GENERAL PUBLIC LICENSE"
440 , " Version 3, 29 June 2007"
441 , ""
442 , " Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>"
443 , " Everyone is permitted to copy and distribute verbatim copies"
444 , " of this license document, but changing it is not allowed."
445 , ""
446 , " Preamble"
447 , ""
448 , " The GNU General Public License is a free, copyleft license for"
449 , "software and other kinds of works."
450 , ""
451 , " The licenses for most software and other practical works are designed"
452 , "to take away your freedom to share and change the works. By contrast,"
453 , "the GNU General Public License is intended to guarantee your freedom to"
454 , "share and change all versions of a program--to make sure it remains free"
455 , "software for all its users. We, the Free Software Foundation, use the"
456 , "GNU General Public License for most of our software; it applies also to"
457 , "any other work released this way by its authors. You can apply it to"
458 , "your programs, too."
459 , ""
460 , " When we speak of free software, we are referring to freedom, not"
461 , "price. Our General Public Licenses are designed to make sure that you"
462 , "have the freedom to distribute copies of free software (and charge for"
463 , "them if you wish), that you receive source code or can get it if you"
464 , "want it, that you can change the software or use pieces of it in new"
465 , "free programs, and that you know you can do these things."
466 , ""
467 , " To protect your rights, we need to prevent others from denying you"
468 , "these rights or asking you to surrender the rights. Therefore, you have"
469 , "certain responsibilities if you distribute copies of the software, or if"
470 , "you modify it: responsibilities to respect the freedom of others."
471 , ""
472 , " For example, if you distribute copies of such a program, whether"
473 , "gratis or for a fee, you must pass on to the recipients the same"
474 , "freedoms that you received. You must make sure that they, too, receive"
475 , "or can get the source code. And you must show them these terms so they"
476 , "know their rights."
477 , ""
478 , " Developers that use the GNU GPL protect your rights with two steps:"
479 , "(1) assert copyright on the software, and (2) offer you this License"
480 , "giving you legal permission to copy, distribute and/or modify it."
481 , ""
482 , " For the developers' and authors' protection, the GPL clearly explains"
483 , "that there is no warranty for this free software. For both users' and"
484 , "authors' sake, the GPL requires that modified versions be marked as"
485 , "changed, so that their problems will not be attributed erroneously to"
486 , "authors of previous versions."
487 , ""
488 , " Some devices are designed to deny users access to install or run"
489 , "modified versions of the software inside them, although the manufacturer"
490 , "can do so. This is fundamentally incompatible with the aim of"
491 , "protecting users' freedom to change the software. The systematic"
492 , "pattern of such abuse occurs in the area of products for individuals to"
493 , "use, which is precisely where it is most unacceptable. Therefore, we"
494 , "have designed this version of the GPL to prohibit the practice for those"
495 , "products. If such problems arise substantially in other domains, we"
496 , "stand ready to extend this provision to those domains in future versions"
497 , "of the GPL, as needed to protect the freedom of users."
498 , ""
499 , " Finally, every program is threatened constantly by software patents."
500 , "States should not allow patents to restrict development and use of"
501 , "software on general-purpose computers, but in those that do, we wish to"
502 , "avoid the special danger that patents applied to a free program could"
503 , "make it effectively proprietary. To prevent this, the GPL assures that"
504 , "patents cannot be used to render the program non-free."
505 , ""
506 , " The precise terms and conditions for copying, distribution and"
507 , "modification follow."
508 , ""
509 , " TERMS AND CONDITIONS"
510 , ""
511 , " 0. Definitions."
512 , ""
513 , " \"This License\" refers to version 3 of the GNU General Public License."
514 , ""
515 , " \"Copyright\" also means copyright-like laws that apply to other kinds of"
516 , "works, such as semiconductor masks."
517 , ""
518 , " \"The Program\" refers to any copyrightable work licensed under this"
519 , "License. Each licensee is addressed as \"you\". \"Licensees\" and"
520 , "\"recipients\" may be individuals or organizations."
521 , ""
522 , " To \"modify\" a work means to copy from or adapt all or part of the work"
523 , "in a fashion requiring copyright permission, other than the making of an"
524 , "exact copy. The resulting work is called a \"modified version\" of the"
525 , "earlier work or a work \"based on\" the earlier work."
526 , ""
527 , " A \"covered work\" means either the unmodified Program or a work based"
528 , "on the Program."
529 , ""
530 , " To \"propagate\" a work means to do anything with it that, without"
531 , "permission, would make you directly or secondarily liable for"
532 , "infringement under applicable copyright law, except executing it on a"
533 , "computer or modifying a private copy. Propagation includes copying,"
534 , "distribution (with or without modification), making available to the"
535 , "public, and in some countries other activities as well."
536 , ""
537 , " To \"convey\" a work means any kind of propagation that enables other"
538 , "parties to make or receive copies. Mere interaction with a user through"
539 , "a computer network, with no transfer of a copy, is not conveying."
540 , ""
541 , " An interactive user interface displays \"Appropriate Legal Notices\""
542 , "to the extent that it includes a convenient and prominently visible"
543 , "feature that (1) displays an appropriate copyright notice, and (2)"
544 , "tells the user that there is no warranty for the work (except to the"
545 , "extent that warranties are provided), that licensees may convey the"
546 , "work under this License, and how to view a copy of this License. If"
547 , "the interface presents a list of user commands or options, such as a"
548 , "menu, a prominent item in the list meets this criterion."
549 , ""
550 , " 1. Source Code."
551 , ""
552 , " The \"source code\" for a work means the preferred form of the work"
553 , "for making modifications to it. \"Object code\" means any non-source"
554 , "form of a work."
555 , ""
556 , " A \"Standard Interface\" means an interface that either is an official"
557 , "standard defined by a recognized standards body, or, in the case of"
558 , "interfaces specified for a particular programming language, one that"
559 , "is widely used among developers working in that language."
560 , ""
561 , " The \"System Libraries\" of an executable work include anything, other"
562 , "than the work as a whole, that (a) is included in the normal form of"
563 , "packaging a Major Component, but which is not part of that Major"
564 , "Component, and (b) serves only to enable use of the work with that"
565 , "Major Component, or to implement a Standard Interface for which an"
566 , "implementation is available to the public in source code form. A"
567 , "\"Major Component\", in this context, means a major essential component"
568 , "(kernel, window system, and so on) of the specific operating system"
569 , "(if any) on which the executable work runs, or a compiler used to"
570 , "produce the work, or an object code interpreter used to run it."
571 , ""
572 , " The \"Corresponding Source\" for a work in object code form means all"
573 , "the source code needed to generate, install, and (for an executable"
574 , "work) run the object code and to modify the work, including scripts to"
575 , "control those activities. However, it does not include the work's"
576 , "System Libraries, or general-purpose tools or generally available free"
577 , "programs which are used unmodified in performing those activities but"
578 , "which are not part of the work. For example, Corresponding Source"
579 , "includes interface definition files associated with source files for"
580 , "the work, and the source code for shared libraries and dynamically"
581 , "linked subprograms that the work is specifically designed to require,"
582 , "such as by intimate data communication or control flow between those"
583 , "subprograms and other parts of the work."
584 , ""
585 , " The Corresponding Source need not include anything that users"
586 , "can regenerate automatically from other parts of the Corresponding"
587 , "Source."
588 , ""
589 , " The Corresponding Source for a work in source code form is that"
590 , "same work."
591 , ""
592 , " 2. Basic Permissions."
593 , ""
594 , " All rights granted under this License are granted for the term of"
595 , "copyright on the Program, and are irrevocable provided the stated"
596 , "conditions are met. This License explicitly affirms your unlimited"
597 , "permission to run the unmodified Program. The output from running a"
598 , "covered work is covered by this License only if the output, given its"
599 , "content, constitutes a covered work. This License acknowledges your"
600 , "rights of fair use or other equivalent, as provided by copyright law."
601 , ""
602 , " You may make, run and propagate covered works that you do not"
603 , "convey, without conditions so long as your license otherwise remains"
604 , "in force. You may convey covered works to others for the sole purpose"
605 , "of having them make modifications exclusively for you, or provide you"
606 , "with facilities for running those works, provided that you comply with"
607 , "the terms of this License in conveying all material for which you do"
608 , "not control copyright. Those thus making or running the covered works"
609 , "for you must do so exclusively on your behalf, under your direction"
610 , "and control, on terms that prohibit them from making any copies of"
611 , "your copyrighted material outside their relationship with you."
612 , ""
613 , " Conveying under any other circumstances is permitted solely under"
614 , "the conditions stated below. Sublicensing is not allowed; section 10"
615 , "makes it unnecessary."
616 , ""
617 , " 3. Protecting Users' Legal Rights From Anti-Circumvention Law."
618 , ""
619 , " No covered work shall be deemed part of an effective technological"
620 , "measure under any applicable law fulfilling obligations under article"
621 , "11 of the WIPO copyright treaty adopted on 20 December 1996, or"
622 , "similar laws prohibiting or restricting circumvention of such"
623 , "measures."
624 , ""
625 , " When you convey a covered work, you waive any legal power to forbid"
626 , "circumvention of technological measures to the extent such circumvention"
627 , "is effected by exercising rights under this License with respect to"
628 , "the covered work, and you disclaim any intention to limit operation or"
629 , "modification of the work as a means of enforcing, against the work's"
630 , "users, your or third parties' legal rights to forbid circumvention of"
631 , "technological measures."
632 , ""
633 , " 4. Conveying Verbatim Copies."
634 , ""
635 , " You may convey verbatim copies of the Program's source code as you"
636 , "receive it, in any medium, provided that you conspicuously and"
637 , "appropriately publish on each copy an appropriate copyright notice;"
638 , "keep intact all notices stating that this License and any"
639 , "non-permissive terms added in accord with section 7 apply to the code;"
640 , "keep intact all notices of the absence of any warranty; and give all"
641 , "recipients a copy of this License along with the Program."
642 , ""
643 , " You may charge any price or no price for each copy that you convey,"
644 , "and you may offer support or warranty protection for a fee."
645 , ""
646 , " 5. Conveying Modified Source Versions."
647 , ""
648 , " You may convey a work based on the Program, or the modifications to"
649 , "produce it from the Program, in the form of source code under the"
650 , "terms of section 4, provided that you also meet all of these conditions:"
651 , ""
652 , " a) The work must carry prominent notices stating that you modified"
653 , " it, and giving a relevant date."
654 , ""
655 , " b) The work must carry prominent notices stating that it is"
656 , " released under this License and any conditions added under section"
657 , " 7. This requirement modifies the requirement in section 4 to"
658 , " \"keep intact all notices\"."
659 , ""
660 , " c) You must license the entire work, as a whole, under this"
661 , " License to anyone who comes into possession of a copy. This"
662 , " License will therefore apply, along with any applicable section 7"
663 , " additional terms, to the whole of the work, and all its parts,"
664 , " regardless of how they are packaged. This License gives no"
665 , " permission to license the work in any other way, but it does not"
666 , " invalidate such permission if you have separately received it."
667 , ""
668 , " d) If the work has interactive user interfaces, each must display"
669 , " Appropriate Legal Notices; however, if the Program has interactive"
670 , " interfaces that do not display Appropriate Legal Notices, your"
671 , " work need not make them do so."
672 , ""
673 , " A compilation of a covered work with other separate and independent"
674 , "works, which are not by their nature extensions of the covered work,"
675 , "and which are not combined with it such as to form a larger program,"
676 , "in or on a volume of a storage or distribution medium, is called an"
677 , "\"aggregate\" if the compilation and its resulting copyright are not"
678 , "used to limit the access or legal rights of the compilation's users"
679 , "beyond what the individual works permit. Inclusion of a covered work"
680 , "in an aggregate does not cause this License to apply to the other"
681 , "parts of the aggregate."
682 , ""
683 , " 6. Conveying Non-Source Forms."
684 , ""
685 , " You may convey a covered work in object code form under the terms"
686 , "of sections 4 and 5, provided that you also convey the"
687 , "machine-readable Corresponding Source under the terms of this License,"
688 , "in one of these ways:"
689 , ""
690 , " a) Convey the object code in, or embodied in, a physical product"
691 , " (including a physical distribution medium), accompanied by the"
692 , " Corresponding Source fixed on a durable physical medium"
693 , " customarily used for software interchange."
694 , ""
695 , " b) Convey the object code in, or embodied in, a physical product"
696 , " (including a physical distribution medium), accompanied by a"
697 , " written offer, valid for at least three years and valid for as"
698 , " long as you offer spare parts or customer support for that product"
699 , " model, to give anyone who possesses the object code either (1) a"
700 , " copy of the Corresponding Source for all the software in the"
701 , " product that is covered by this License, on a durable physical"
702 , " medium customarily used for software interchange, for a price no"
703 , " more than your reasonable cost of physically performing this"
704 , " conveying of source, or (2) access to copy the"
705 , " Corresponding Source from a network server at no charge."
706 , ""
707 , " c) Convey individual copies of the object code with a copy of the"
708 , " written offer to provide the Corresponding Source. This"
709 , " alternative is allowed only occasionally and noncommercially, and"
710 , " only if you received the object code with such an offer, in accord"
711 , " with subsection 6b."
712 , ""
713 , " d) Convey the object code by offering access from a designated"
714 , " place (gratis or for a charge), and offer equivalent access to the"
715 , " Corresponding Source in the same way through the same place at no"
716 , " further charge. You need not require recipients to copy the"
717 , " Corresponding Source along with the object code. If the place to"
718 , " copy the object code is a network server, the Corresponding Source"
719 , " may be on a different server (operated by you or a third party)"
720 , " that supports equivalent copying facilities, provided you maintain"
721 , " clear directions next to the object code saying where to find the"
722 , " Corresponding Source. Regardless of what server hosts the"
723 , " Corresponding Source, you remain obligated to ensure that it is"
724 , " available for as long as needed to satisfy these requirements."
725 , ""
726 , " e) Convey the object code using peer-to-peer transmission, provided"
727 , " you inform other peers where the object code and Corresponding"
728 , " Source of the work are being offered to the general public at no"
729 , " charge under subsection 6d."
730 , ""
731 , " A separable portion of the object code, whose source code is excluded"
732 , "from the Corresponding Source as a System Library, need not be"
733 , "included in conveying the object code work."
734 , ""
735 , " A \"User Product\" is either (1) a \"consumer product\", which means any"
736 , "tangible personal property which is normally used for personal, family,"
737 , "or household purposes, or (2) anything designed or sold for incorporation"
738 , "into a dwelling. In determining whether a product is a consumer product,"
739 , "doubtful cases shall be resolved in favor of coverage. For a particular"
740 , "product received by a particular user, \"normally used\" refers to a"
741 , "typical or common use of that class of product, regardless of the status"
742 , "of the particular user or of the way in which the particular user"
743 , "actually uses, or expects or is expected to use, the product. A product"
744 , "is a consumer product regardless of whether the product has substantial"
745 , "commercial, industrial or non-consumer uses, unless such uses represent"
746 , "the only significant mode of use of the product."
747 , ""
748 , " \"Installation Information\" for a User Product means any methods,"
749 , "procedures, authorization keys, or other information required to install"
750 , "and execute modified versions of a covered work in that User Product from"
751 , "a modified version of its Corresponding Source. The information must"
752 , "suffice to ensure that the continued functioning of the modified object"
753 , "code is in no case prevented or interfered with solely because"
754 , "modification has been made."
755 , ""
756 , " If you convey an object code work under this section in, or with, or"
757 , "specifically for use in, a User Product, and the conveying occurs as"
758 , "part of a transaction in which the right of possession and use of the"
759 , "User Product is transferred to the recipient in perpetuity or for a"
760 , "fixed term (regardless of how the transaction is characterized), the"
761 , "Corresponding Source conveyed under this section must be accompanied"
762 , "by the Installation Information. But this requirement does not apply"
763 , "if neither you nor any third party retains the ability to install"
764 , "modified object code on the User Product (for example, the work has"
765 , "been installed in ROM)."
766 , ""
767 , " The requirement to provide Installation Information does not include a"
768 , "requirement to continue to provide support service, warranty, or updates"
769 , "for a work that has been modified or installed by the recipient, or for"
770 , "the User Product in which it has been modified or installed. Access to a"
771 , "network may be denied when the modification itself materially and"
772 , "adversely affects the operation of the network or violates the rules and"
773 , "protocols for communication across the network."
774 , ""
775 , " Corresponding Source conveyed, and Installation Information provided,"
776 , "in accord with this section must be in a format that is publicly"
777 , "documented (and with an implementation available to the public in"
778 , "source code form), and must require no special password or key for"
779 , "unpacking, reading or copying."
780 , ""
781 , " 7. Additional Terms."
782 , ""
783 , " \"Additional permissions\" are terms that supplement the terms of this"
784 , "License by making exceptions from one or more of its conditions."
785 , "Additional permissions that are applicable to the entire Program shall"
786 , "be treated as though they were included in this License, to the extent"
787 , "that they are valid under applicable law. If additional permissions"
788 , "apply only to part of the Program, that part may be used separately"
789 , "under those permissions, but the entire Program remains governed by"
790 , "this License without regard to the additional permissions."
791 , ""
792 , " When you convey a copy of a covered work, you may at your option"
793 , "remove any additional permissions from that copy, or from any part of"
794 , "it. (Additional permissions may be written to require their own"
795 , "removal in certain cases when you modify the work.) You may place"
796 , "additional permissions on material, added by you to a covered work,"
797 , "for which you have or can give appropriate copyright permission."
798 , ""
799 , " Notwithstanding any other provision of this License, for material you"
800 , "add to a covered work, you may (if authorized by the copyright holders of"
801 , "that material) supplement the terms of this License with terms:"
802 , ""
803 , " a) Disclaiming warranty or limiting liability differently from the"
804 , " terms of sections 15 and 16 of this License; or"
805 , ""
806 , " b) Requiring preservation of specified reasonable legal notices or"
807 , " author attributions in that material or in the Appropriate Legal"
808 , " Notices displayed by works containing it; or"
809 , ""
810 , " c) Prohibiting misrepresentation of the origin of that material, or"
811 , " requiring that modified versions of such material be marked in"
812 , " reasonable ways as different from the original version; or"
813 , ""
814 , " d) Limiting the use for publicity purposes of names of licensors or"
815 , " authors of the material; or"
816 , ""
817 , " e) Declining to grant rights under trademark law for use of some"
818 , " trade names, trademarks, or service marks; or"
819 , ""
820 , " f) Requiring indemnification of licensors and authors of that"
821 , " material by anyone who conveys the material (or modified versions of"
822 , " it) with contractual assumptions of liability to the recipient, for"
823 , " any liability that these contractual assumptions directly impose on"
824 , " those licensors and authors."
825 , ""
826 , " All other non-permissive additional terms are considered \"further"
827 , "restrictions\" within the meaning of section 10. If the Program as you"
828 , "received it, or any part of it, contains a notice stating that it is"
829 , "governed by this License along with a term that is a further"
830 , "restriction, you may remove that term. If a license document contains"
831 , "a further restriction but permits relicensing or conveying under this"
832 , "License, you may add to a covered work material governed by the terms"
833 , "of that license document, provided that the further restriction does"
834 , "not survive such relicensing or conveying."
835 , ""
836 , " If you add terms to a covered work in accord with this section, you"
837 , "must place, in the relevant source files, a statement of the"
838 , "additional terms that apply to those files, or a notice indicating"
839 , "where to find the applicable terms."
840 , ""
841 , " Additional terms, permissive or non-permissive, may be stated in the"
842 , "form of a separately written license, or stated as exceptions;"
843 , "the above requirements apply either way."
844 , ""
845 , " 8. Termination."
846 , ""
847 , " You may not propagate or modify a covered work except as expressly"
848 , "provided under this License. Any attempt otherwise to propagate or"
849 , "modify it is void, and will automatically terminate your rights under"
850 , "this License (including any patent licenses granted under the third"
851 , "paragraph of section 11)."
852 , ""
853 , " However, if you cease all violation of this License, then your"
854 , "license from a particular copyright holder is reinstated (a)"
855 , "provisionally, unless and until the copyright holder explicitly and"
856 , "finally terminates your license, and (b) permanently, if the copyright"
857 , "holder fails to notify you of the violation by some reasonable means"
858 , "prior to 60 days after the cessation."
859 , ""
860 , " Moreover, your license from a particular copyright holder is"
861 , "reinstated permanently if the copyright holder notifies you of the"
862 , "violation by some reasonable means, this is the first time you have"
863 , "received notice of violation of this License (for any work) from that"
864 , "copyright holder, and you cure the violation prior to 30 days after"
865 , "your receipt of the notice."
866 , ""
867 , " Termination of your rights under this section does not terminate the"
868 , "licenses of parties who have received copies or rights from you under"
869 , "this License. If your rights have been terminated and not permanently"
870 , "reinstated, you do not qualify to receive new licenses for the same"
871 , "material under section 10."
872 , ""
873 , " 9. Acceptance Not Required for Having Copies."
874 , ""
875 , " You are not required to accept this License in order to receive or"
876 , "run a copy of the Program. Ancillary propagation of a covered work"
877 , "occurring solely as a consequence of using peer-to-peer transmission"
878 , "to receive a copy likewise does not require acceptance. However,"
879 , "nothing other than this License grants you permission to propagate or"
880 , "modify any covered work. These actions infringe copyright if you do"
881 , "not accept this License. Therefore, by modifying or propagating a"
882 , "covered work, you indicate your acceptance of this License to do so."
883 , ""
884 , " 10. Automatic Licensing of Downstream Recipients."
885 , ""
886 , " Each time you convey a covered work, the recipient automatically"
887 , "receives a license from the original licensors, to run, modify and"
888 , "propagate that work, subject to this License. You are not responsible"
889 , "for enforcing compliance by third parties with this License."
890 , ""
891 , " An \"entity transaction\" is a transaction transferring control of an"
892 , "organization, or substantially all assets of one, or subdividing an"
893 , "organization, or merging organizations. If propagation of a covered"
894 , "work results from an entity transaction, each party to that"
895 , "transaction who receives a copy of the work also receives whatever"
896 , "licenses to the work the party's predecessor in interest had or could"
897 , "give under the previous paragraph, plus a right to possession of the"
898 , "Corresponding Source of the work from the predecessor in interest, if"
899 , "the predecessor has it or can get it with reasonable efforts."
900 , ""
901 , " You may not impose any further restrictions on the exercise of the"
902 , "rights granted or affirmed under this License. For example, you may"
903 , "not impose a license fee, royalty, or other charge for exercise of"
904 , "rights granted under this License, and you may not initiate litigation"
905 , "(including a cross-claim or counterclaim in a lawsuit) alleging that"
906 , "any patent claim is infringed by making, using, selling, offering for"
907 , "sale, or importing the Program or any portion of it."
908 , ""
909 , " 11. Patents."
910 , ""
911 , " A \"contributor\" is a copyright holder who authorizes use under this"
912 , "License of the Program or a work on which the Program is based. The"
913 , "work thus licensed is called the contributor's \"contributor version\"."
914 , ""
915 , " A contributor's \"essential patent claims\" are all patent claims"
916 , "owned or controlled by the contributor, whether already acquired or"
917 , "hereafter acquired, that would be infringed by some manner, permitted"
918 , "by this License, of making, using, or selling its contributor version,"
919 , "but do not include claims that would be infringed only as a"
920 , "consequence of further modification of the contributor version. For"
921 , "purposes of this definition, \"control\" includes the right to grant"
922 , "patent sublicenses in a manner consistent with the requirements of"
923 , "this License."
924 , ""
925 , " Each contributor grants you a non-exclusive, worldwide, royalty-free"
926 , "patent license under the contributor's essential patent claims, to"
927 , "make, use, sell, offer for sale, import and otherwise run, modify and"
928 , "propagate the contents of its contributor version."
929 , ""
930 , " In the following three paragraphs, a \"patent license\" is any express"
931 , "agreement or commitment, however denominated, not to enforce a patent"
932 , "(such as an express permission to practice a patent or covenant not to"
933 , "sue for patent infringement). To \"grant\" such a patent license to a"
934 , "party means to make such an agreement or commitment not to enforce a"
935 , "patent against the party."
936 , ""
937 , " If you convey a covered work, knowingly relying on a patent license,"
938 , "and the Corresponding Source of the work is not available for anyone"
939 , "to copy, free of charge and under the terms of this License, through a"
940 , "publicly available network server or other readily accessible means,"
941 , "then you must either (1) cause the Corresponding Source to be so"
942 , "available, or (2) arrange to deprive yourself of the benefit of the"
943 , "patent license for this particular work, or (3) arrange, in a manner"
944 , "consistent with the requirements of this License, to extend the patent"
945 , "license to downstream recipients. \"Knowingly relying\" means you have"
946 , "actual knowledge that, but for the patent license, your conveying the"
947 , "covered work in a country, or your recipient's use of the covered work"
948 , "in a country, would infringe one or more identifiable patents in that"
949 , "country that you have reason to believe are valid."
950 , ""
951 , " If, pursuant to or in connection with a single transaction or"
952 , "arrangement, you convey, or propagate by procuring conveyance of, a"
953 , "covered work, and grant a patent license to some of the parties"
954 , "receiving the covered work authorizing them to use, propagate, modify"
955 , "or convey a specific copy of the covered work, then the patent license"
956 , "you grant is automatically extended to all recipients of the covered"
957 , "work and works based on it."
958 , ""
959 , " A patent license is \"discriminatory\" if it does not include within"
960 , "the scope of its coverage, prohibits the exercise of, or is"
961 , "conditioned on the non-exercise of one or more of the rights that are"
962 , "specifically granted under this License. You may not convey a covered"
963 , "work if you are a party to an arrangement with a third party that is"
964 , "in the business of distributing software, under which you make payment"
965 , "to the third party based on the extent of your activity of conveying"
966 , "the work, and under which the third party grants, to any of the"
967 , "parties who would receive the covered work from you, a discriminatory"
968 , "patent license (a) in connection with copies of the covered work"
969 , "conveyed by you (or copies made from those copies), or (b) primarily"
970 , "for and in connection with specific products or compilations that"
971 , "contain the covered work, unless you entered into that arrangement,"
972 , "or that patent license was granted, prior to 28 March 2007."
973 , ""
974 , " Nothing in this License shall be construed as excluding or limiting"
975 , "any implied license or other defenses to infringement that may"
976 , "otherwise be available to you under applicable patent law."
977 , ""
978 , " 12. No Surrender of Others' Freedom."
979 , ""
980 , " If conditions are imposed on you (whether by court order, agreement or"
981 , "otherwise) that contradict the conditions of this License, they do not"
982 , "excuse you from the conditions of this License. If you cannot convey a"
983 , "covered work so as to satisfy simultaneously your obligations under this"
984 , "License and any other pertinent obligations, then as a consequence you may"
985 , "not convey it at all. For example, if you agree to terms that obligate you"
986 , "to collect a royalty for further conveying from those to whom you convey"
987 , "the Program, the only way you could satisfy both those terms and this"
988 , "License would be to refrain entirely from conveying the Program."
989 , ""
990 , " 13. Use with the GNU Affero General Public License."
991 , ""
992 , " Notwithstanding any other provision of this License, you have"
993 , "permission to link or combine any covered work with a work licensed"
994 , "under version 3 of the GNU Affero General Public License into a single"
995 , "combined work, and to convey the resulting work. The terms of this"
996 , "License will continue to apply to the part which is the covered work,"
997 , "but the special requirements of the GNU Affero General Public License,"
998 , "section 13, concerning interaction through a network will apply to the"
999 , "combination as such."
1000 , ""
1001 , " 14. Revised Versions of this License."
1002 , ""
1003 , " The Free Software Foundation may publish revised and/or new versions of"
1004 , "the GNU General Public License from time to time. Such new versions will"
1005 , "be similar in spirit to the present version, but may differ in detail to"
1006 , "address new problems or concerns."
1007 , ""
1008 , " Each version is given a distinguishing version number. If the"
1009 , "Program specifies that a certain numbered version of the GNU General"
1010 , "Public License \"or any later version\" applies to it, you have the"
1011 , "option of following the terms and conditions either of that numbered"
1012 , "version or of any later version published by the Free Software"
1013 , "Foundation. If the Program does not specify a version number of the"
1014 , "GNU General Public License, you may choose any version ever published"
1015 , "by the Free Software Foundation."
1016 , ""
1017 , " If the Program specifies that a proxy can decide which future"
1018 , "versions of the GNU General Public License can be used, that proxy's"
1019 , "public statement of acceptance of a version permanently authorizes you"
1020 , "to choose that version for the Program."
1021 , ""
1022 , " Later license versions may give you additional or different"
1023 , "permissions. However, no additional obligations are imposed on any"
1024 , "author or copyright holder as a result of your choosing to follow a"
1025 , "later version."
1026 , ""
1027 , " 15. Disclaimer of Warranty."
1028 , ""
1029 , " THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY"
1030 , "APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT"
1031 , "HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY"
1032 , "OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,"
1033 , "THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR"
1034 , "PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM"
1035 , "IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF"
1036 , "ALL NECESSARY SERVICING, REPAIR OR CORRECTION."
1037 , ""
1038 , " 16. Limitation of Liability."
1039 , ""
1040 , " IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING"
1041 , "WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS"
1042 , "THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY"
1043 , "GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE"
1044 , "USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF"
1045 , "DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD"
1046 , "PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),"
1047 , "EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF"
1048 , "SUCH DAMAGES."
1049 , ""
1050 , " 17. Interpretation of Sections 15 and 16."
1051 , ""
1052 , " If the disclaimer of warranty and limitation of liability provided"
1053 , "above cannot be given local legal effect according to their terms,"
1054 , "reviewing courts shall apply local law that most closely approximates"
1055 , "an absolute waiver of all civil liability in connection with the"
1056 , "Program, unless a warranty or assumption of liability accompanies a"
1057 , "copy of the Program in return for a fee."
1058 , ""
1059 , " END OF TERMS AND CONDITIONS"
1060 , ""
1061 , " How to Apply These Terms to Your New Programs"
1062 , ""
1063 , " If you develop a new program, and you want it to be of the greatest"
1064 , "possible use to the public, the best way to achieve this is to make it"
1065 , "free software which everyone can redistribute and change under these terms."
1066 , ""
1067 , " To do so, attach the following notices to the program. It is safest"
1068 , "to attach them to the start of each source file to most effectively"
1069 , "state the exclusion of warranty; and each file should have at least"
1070 , "the \"copyright\" line and a pointer to where the full notice is found."
1071 , ""
1072 , " <one line to give the program's name and a brief idea of what it does.>"
1073 , " Copyright (C) <year> <name of author>"
1074 , ""
1075 , " This program is free software: you can redistribute it and/or modify"
1076 , " it under the terms of the GNU General Public License as published by"
1077 , " the Free Software Foundation, either version 3 of the License, or"
1078 , " (at your option) any later version."
1079 , ""
1080 , " This program is distributed in the hope that it will be useful,"
1081 , " but WITHOUT ANY WARRANTY; without even the implied warranty of"
1082 , " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"
1083 , " GNU General Public License for more details."
1084 , ""
1085 , " You should have received a copy of the GNU General Public License"
1086 , " along with this program. If not, see <http://www.gnu.org/licenses/>."
1087 , ""
1088 , "Also add information on how to contact you by electronic and paper mail."
1089 , ""
1090 , " If the program does terminal interaction, make it output a short"
1091 , "notice like this when it starts in an interactive mode:"
1092 , ""
1093 , " <program> Copyright (C) <year> <name of author>"
1094 , " This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'."
1095 , " This is free software, and you are welcome to redistribute it"
1096 , " under certain conditions; type `show c' for details."
1097 , ""
1098 , "The hypothetical commands `show w' and `show c' should show the appropriate"
1099 , "parts of the General Public License. Of course, your program's commands"
1100 , "might be different; for a GUI interface, you would use an \"about box\"."
1101 , ""
1102 , " You should also get your employer (if you work as a programmer) or school,"
1103 , "if any, to sign a \"copyright disclaimer\" for the program, if necessary."
1104 , "For more information on this, and how to apply and follow the GNU GPL, see"
1105 , "<http://www.gnu.org/licenses/>."
1106 , ""
1107 , " The GNU General Public License does not permit incorporating your program"
1108 , "into proprietary programs. If your program is a subroutine library, you"
1109 , "may consider it more useful to permit linking proprietary applications with"
1110 , "the library. If this is what you want to do, use the GNU Lesser General"
1111 , "Public License instead of this License. But first, please read"
1112 , "<http://www.gnu.org/philosophy/why-not-lgpl.html>."
1113 ]
1114
1115 agplv3 :: License
1116 agplv3 = unlines
1117 [ " GNU AFFERO GENERAL PUBLIC LICENSE"
1118 , " Version 3, 19 November 2007"
1119 , ""
1120 , " Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>"
1121 , " Everyone is permitted to copy and distribute verbatim copies"
1122 , " of this license document, but changing it is not allowed."
1123 , ""
1124 , " Preamble"
1125 , ""
1126 , " The GNU Affero General Public License is a free, copyleft license for"
1127 , "software and other kinds of works, specifically designed to ensure"
1128 , "cooperation with the community in the case of network server software."
1129 , ""
1130 , " The licenses for most software and other practical works are designed"
1131 , "to take away your freedom to share and change the works. By contrast,"
1132 , "our General Public Licenses are intended to guarantee your freedom to"
1133 , "share and change all versions of a program--to make sure it remains free"
1134 , "software for all its users."
1135 , ""
1136 , " When we speak of free software, we are referring to freedom, not"
1137 , "price. Our General Public Licenses are designed to make sure that you"
1138 , "have the freedom to distribute copies of free software (and charge for"
1139 , "them if you wish), that you receive source code or can get it if you"
1140 , "want it, that you can change the software or use pieces of it in new"
1141 , "free programs, and that you know you can do these things."
1142 , ""
1143 , " Developers that use our General Public Licenses protect your rights"
1144 , "with two steps: (1) assert copyright on the software, and (2) offer"
1145 , "you this License which gives you legal permission to copy, distribute"
1146 , "and/or modify the software."
1147 , ""
1148 , " A secondary benefit of defending all users' freedom is that"
1149 , "improvements made in alternate versions of the program, if they"
1150 , "receive widespread use, become available for other developers to"
1151 , "incorporate. Many developers of free software are heartened and"
1152 , "encouraged by the resulting cooperation. However, in the case of"
1153 , "software used on network servers, this result may fail to come about."
1154 , "The GNU General Public License permits making a modified version and"
1155 , "letting the public access it on a server without ever releasing its"
1156 , "source code to the public."
1157 , ""
1158 , " The GNU Affero General Public License is designed specifically to"
1159 , "ensure that, in such cases, the modified source code becomes available"
1160 , "to the community. It requires the operator of a network server to"
1161 , "provide the source code of the modified version running there to the"
1162 , "users of that server. Therefore, public use of a modified version, on"
1163 , "a publicly accessible server, gives the public access to the source"
1164 , "code of the modified version."
1165 , ""
1166 , " An older license, called the Affero General Public License and"
1167 , "published by Affero, was designed to accomplish similar goals. This is"
1168 , "a different license, not a version of the Affero GPL, but Affero has"
1169 , "released a new version of the Affero GPL which permits relicensing under"
1170 , "this license."
1171 , ""
1172 , " The precise terms and conditions for copying, distribution and"
1173 , "modification follow."
1174 , ""
1175 , " TERMS AND CONDITIONS"
1176 , ""
1177 , " 0. Definitions."
1178 , ""
1179 , " \"This License\" refers to version 3 of the GNU Affero General Public License."
1180 , ""
1181 , " \"Copyright\" also means copyright-like laws that apply to other kinds of"
1182 , "works, such as semiconductor masks."
1183 , ""
1184 , " \"The Program\" refers to any copyrightable work licensed under this"
1185 , "License. Each licensee is addressed as \"you\". \"Licensees\" and"
1186 , "\"recipients\" may be individuals or organizations."
1187 , ""
1188 , " To \"modify\" a work means to copy from or adapt all or part of the work"
1189 , "in a fashion requiring copyright permission, other than the making of an"
1190 , "exact copy. The resulting work is called a \"modified version\" of the"
1191 , "earlier work or a work \"based on\" the earlier work."
1192 , ""
1193 , " A \"covered work\" means either the unmodified Program or a work based"
1194 , "on the Program."
1195 , ""
1196 , " To \"propagate\" a work means to do anything with it that, without"
1197 , "permission, would make you directly or secondarily liable for"
1198 , "infringement under applicable copyright law, except executing it on a"
1199 , "computer or modifying a private copy. Propagation includes copying,"
1200 , "distribution (with or without modification), making available to the"
1201 , "public, and in some countries other activities as well."
1202 , ""
1203 , " To \"convey\" a work means any kind of propagation that enables other"
1204 , "parties to make or receive copies. Mere interaction with a user through"
1205 , "a computer network, with no transfer of a copy, is not conveying."
1206 , ""
1207 , " An interactive user interface displays \"Appropriate Legal Notices\""
1208 , "to the extent that it includes a convenient and prominently visible"
1209 , "feature that (1) displays an appropriate copyright notice, and (2)"
1210 , "tells the user that there is no warranty for the work (except to the"
1211 , "extent that warranties are provided), that licensees may convey the"
1212 , "work under this License, and how to view a copy of this License. If"
1213 , "the interface presents a list of user commands or options, such as a"
1214 , "menu, a prominent item in the list meets this criterion."
1215 , ""
1216 , " 1. Source Code."
1217 , ""
1218 , " The \"source code\" for a work means the preferred form of the work"
1219 , "for making modifications to it. \"Object code\" means any non-source"
1220 , "form of a work."
1221 , ""
1222 , " A \"Standard Interface\" means an interface that either is an official"
1223 , "standard defined by a recognized standards body, or, in the case of"
1224 , "interfaces specified for a particular programming language, one that"
1225 , "is widely used among developers working in that language."
1226 , ""
1227 , " The \"System Libraries\" of an executable work include anything, other"
1228 , "than the work as a whole, that (a) is included in the normal form of"
1229 , "packaging a Major Component, but which is not part of that Major"
1230 , "Component, and (b) serves only to enable use of the work with that"
1231 , "Major Component, or to implement a Standard Interface for which an"
1232 , "implementation is available to the public in source code form. A"
1233 , "\"Major Component\", in this context, means a major essential component"
1234 , "(kernel, window system, and so on) of the specific operating system"
1235 , "(if any) on which the executable work runs, or a compiler used to"
1236 , "produce the work, or an object code interpreter used to run it."
1237 , ""
1238 , " The \"Corresponding Source\" for a work in object code form means all"
1239 , "the source code needed to generate, install, and (for an executable"
1240 , "work) run the object code and to modify the work, including scripts to"
1241 , "control those activities. However, it does not include the work's"
1242 , "System Libraries, or general-purpose tools or generally available free"
1243 , "programs which are used unmodified in performing those activities but"
1244 , "which are not part of the work. For example, Corresponding Source"
1245 , "includes interface definition files associated with source files for"
1246 , "the work, and the source code for shared libraries and dynamically"
1247 , "linked subprograms that the work is specifically designed to require,"
1248 , "such as by intimate data communication or control flow between those"
1249 , "subprograms and other parts of the work."
1250 , ""
1251 , " The Corresponding Source need not include anything that users"
1252 , "can regenerate automatically from other parts of the Corresponding"
1253 , "Source."
1254 , ""
1255 , " The Corresponding Source for a work in source code form is that"
1256 , "same work."
1257 , ""
1258 , " 2. Basic Permissions."
1259 , ""
1260 , " All rights granted under this License are granted for the term of"
1261 , "copyright on the Program, and are irrevocable provided the stated"
1262 , "conditions are met. This License explicitly affirms your unlimited"
1263 , "permission to run the unmodified Program. The output from running a"
1264 , "covered work is covered by this License only if the output, given its"
1265 , "content, constitutes a covered work. This License acknowledges your"
1266 , "rights of fair use or other equivalent, as provided by copyright law."
1267 , ""
1268 , " You may make, run and propagate covered works that you do not"
1269 , "convey, without conditions so long as your license otherwise remains"
1270 , "in force. You may convey covered works to others for the sole purpose"
1271 , "of having them make modifications exclusively for you, or provide you"
1272 , "with facilities for running those works, provided that you comply with"
1273 , "the terms of this License in conveying all material for which you do"
1274 , "not control copyright. Those thus making or running the covered works"
1275 , "for you must do so exclusively on your behalf, under your direction"
1276 , "and control, on terms that prohibit them from making any copies of"
1277 , "your copyrighted material outside their relationship with you."
1278 , ""
1279 , " Conveying under any other circumstances is permitted solely under"
1280 , "the conditions stated below. Sublicensing is not allowed; section 10"
1281 , "makes it unnecessary."
1282 , ""
1283 , " 3. Protecting Users' Legal Rights From Anti-Circumvention Law."
1284 , ""
1285 , " No covered work shall be deemed part of an effective technological"
1286 , "measure under any applicable law fulfilling obligations under article"
1287 , "11 of the WIPO copyright treaty adopted on 20 December 1996, or"
1288 , "similar laws prohibiting or restricting circumvention of such"
1289 , "measures."
1290 , ""
1291 , " When you convey a covered work, you waive any legal power to forbid"
1292 , "circumvention of technological measures to the extent such circumvention"
1293 , "is effected by exercising rights under this License with respect to"
1294 , "the covered work, and you disclaim any intention to limit operation or"
1295 , "modification of the work as a means of enforcing, against the work's"
1296 , "users, your or third parties' legal rights to forbid circumvention of"
1297 , "technological measures."
1298 , ""
1299 , " 4. Conveying Verbatim Copies."
1300 , ""
1301 , " You may convey verbatim copies of the Program's source code as you"
1302 , "receive it, in any medium, provided that you conspicuously and"
1303 , "appropriately publish on each copy an appropriate copyright notice;"
1304 , "keep intact all notices stating that this License and any"
1305 , "non-permissive terms added in accord with section 7 apply to the code;"
1306 , "keep intact all notices of the absence of any warranty; and give all"
1307 , "recipients a copy of this License along with the Program."
1308 , ""
1309 , " You may charge any price or no price for each copy that you convey,"
1310 , "and you may offer support or warranty protection for a fee."
1311 , ""
1312 , " 5. Conveying Modified Source Versions."
1313 , ""
1314 , " You may convey a work based on the Program, or the modifications to"
1315 , "produce it from the Program, in the form of source code under the"
1316 , "terms of section 4, provided that you also meet all of these conditions:"
1317 , ""
1318 , " a) The work must carry prominent notices stating that you modified"
1319 , " it, and giving a relevant date."
1320 , ""
1321 , " b) The work must carry prominent notices stating that it is"
1322 , " released under this License and any conditions added under section"
1323 , " 7. This requirement modifies the requirement in section 4 to"
1324 , " \"keep intact all notices\"."
1325 , ""
1326 , " c) You must license the entire work, as a whole, under this"
1327 , " License to anyone who comes into possession of a copy. This"
1328 , " License will therefore apply, along with any applicable section 7"
1329 , " additional terms, to the whole of the work, and all its parts,"
1330 , " regardless of how they are packaged. This License gives no"
1331 , " permission to license the work in any other way, but it does not"
1332 , " invalidate such permission if you have separately received it."
1333 , ""
1334 , " d) If the work has interactive user interfaces, each must display"
1335 , " Appropriate Legal Notices; however, if the Program has interactive"
1336 , " interfaces that do not display Appropriate Legal Notices, your"
1337 , " work need not make them do so."
1338 , ""
1339 , " A compilation of a covered work with other separate and independent"
1340 , "works, which are not by their nature extensions of the covered work,"
1341 , "and which are not combined with it such as to form a larger program,"
1342 , "in or on a volume of a storage or distribution medium, is called an"
1343 , "\"aggregate\" if the compilation and its resulting copyright are not"
1344 , "used to limit the access or legal rights of the compilation's users"
1345 , "beyond what the individual works permit. Inclusion of a covered work"
1346 , "in an aggregate does not cause this License to apply to the other"
1347 , "parts of the aggregate."
1348 , ""
1349 , " 6. Conveying Non-Source Forms."
1350 , ""
1351 , " You may convey a covered work in object code form under the terms"
1352 , "of sections 4 and 5, provided that you also convey the"
1353 , "machine-readable Corresponding Source under the terms of this License,"
1354 , "in one of these ways:"
1355 , ""
1356 , " a) Convey the object code in, or embodied in, a physical product"
1357 , " (including a physical distribution medium), accompanied by the"
1358 , " Corresponding Source fixed on a durable physical medium"
1359 , " customarily used for software interchange."
1360 , ""
1361 , " b) Convey the object code in, or embodied in, a physical product"
1362 , " (including a physical distribution medium), accompanied by a"
1363 , " written offer, valid for at least three years and valid for as"
1364 , " long as you offer spare parts or customer support for that product"
1365 , " model, to give anyone who possesses the object code either (1) a"
1366 , " copy of the Corresponding Source for all the software in the"
1367 , " product that is covered by this License, on a durable physical"
1368 , " medium customarily used for software interchange, for a price no"
1369 , " more than your reasonable cost of physically performing this"
1370 , " conveying of source, or (2) access to copy the"
1371 , " Corresponding Source from a network server at no charge."
1372 , ""
1373 , " c) Convey individual copies of the object code with a copy of the"
1374 , " written offer to provide the Corresponding Source. This"
1375 , " alternative is allowed only occasionally and noncommercially, and"
1376 , " only if you received the object code with such an offer, in accord"
1377 , " with subsection 6b."
1378 , ""
1379 , " d) Convey the object code by offering access from a designated"
1380 , " place (gratis or for a charge), and offer equivalent access to the"
1381 , " Corresponding Source in the same way through the same place at no"
1382 , " further charge. You need not require recipients to copy the"
1383 , " Corresponding Source along with the object code. If the place to"
1384 , " copy the object code is a network server, the Corresponding Source"
1385 , " may be on a different server (operated by you or a third party)"
1386 , " that supports equivalent copying facilities, provided you maintain"
1387 , " clear directions next to the object code saying where to find the"
1388 , " Corresponding Source. Regardless of what server hosts the"
1389 , " Corresponding Source, you remain obligated to ensure that it is"
1390 , " available for as long as needed to satisfy these requirements."
1391 , ""
1392 , " e) Convey the object code using peer-to-peer transmission, provided"
1393 , " you inform other peers where the object code and Corresponding"
1394 , " Source of the work are being offered to the general public at no"
1395 , " charge under subsection 6d."
1396 , ""
1397 , " A separable portion of the object code, whose source code is excluded"
1398 , "from the Corresponding Source as a System Library, need not be"
1399 , "included in conveying the object code work."
1400 , ""
1401 , " A \"User Product\" is either (1) a \"consumer product\", which means any"
1402 , "tangible personal property which is normally used for personal, family,"
1403 , "or household purposes, or (2) anything designed or sold for incorporation"
1404 , "into a dwelling. In determining whether a product is a consumer product,"
1405 , "doubtful cases shall be resolved in favor of coverage. For a particular"
1406 , "product received by a particular user, \"normally used\" refers to a"
1407 , "typical or common use of that class of product, regardless of the status"
1408 , "of the particular user or of the way in which the particular user"
1409 , "actually uses, or expects or is expected to use, the product. A product"
1410 , "is a consumer product regardless of whether the product has substantial"
1411 , "commercial, industrial or non-consumer uses, unless such uses represent"
1412 , "the only significant mode of use of the product."
1413 , ""
1414 , " \"Installation Information\" for a User Product means any methods,"
1415 , "procedures, authorization keys, or other information required to install"
1416 , "and execute modified versions of a covered work in that User Product from"
1417 , "a modified version of its Corresponding Source. The information must"
1418 , "suffice to ensure that the continued functioning of the modified object"
1419 , "code is in no case prevented or interfered with solely because"
1420 , "modification has been made."
1421 , ""
1422 , " If you convey an object code work under this section in, or with, or"
1423 , "specifically for use in, a User Product, and the conveying occurs as"
1424 , "part of a transaction in which the right of possession and use of the"
1425 , "User Product is transferred to the recipient in perpetuity or for a"
1426 , "fixed term (regardless of how the transaction is characterized), the"
1427 , "Corresponding Source conveyed under this section must be accompanied"
1428 , "by the Installation Information. But this requirement does not apply"
1429 , "if neither you nor any third party retains the ability to install"
1430 , "modified object code on the User Product (for example, the work has"
1431 , "been installed in ROM)."
1432 , ""
1433 , " The requirement to provide Installation Information does not include a"
1434 , "requirement to continue to provide support service, warranty, or updates"
1435 , "for a work that has been modified or installed by the recipient, or for"
1436 , "the User Product in which it has been modified or installed. Access to a"
1437 , "network may be denied when the modification itself materially and"
1438 , "adversely affects the operation of the network or violates the rules and"
1439 , "protocols for communication across the network."
1440 , ""
1441 , " Corresponding Source conveyed, and Installation Information provided,"
1442 , "in accord with this section must be in a format that is publicly"
1443 , "documented (and with an implementation available to the public in"
1444 , "source code form), and must require no special password or key for"
1445 , "unpacking, reading or copying."
1446 , ""
1447 , " 7. Additional Terms."
1448 , ""
1449 , " \"Additional permissions\" are terms that supplement the terms of this"
1450 , "License by making exceptions from one or more of its conditions."
1451 , "Additional permissions that are applicable to the entire Program shall"
1452 , "be treated as though they were included in this License, to the extent"
1453 , "that they are valid under applicable law. If additional permissions"
1454 , "apply only to part of the Program, that part may be used separately"
1455 , "under those permissions, but the entire Program remains governed by"
1456 , "this License without regard to the additional permissions."
1457 , ""
1458 , " When you convey a copy of a covered work, you may at your option"
1459 , "remove any additional permissions from that copy, or from any part of"
1460 , "it. (Additional permissions may be written to require their own"
1461 , "removal in certain cases when you modify the work.) You may place"
1462 , "additional permissions on material, added by you to a covered work,"
1463 , "for which you have or can give appropriate copyright permission."
1464 , ""
1465 , " Notwithstanding any other provision of this License, for material you"
1466 , "add to a covered work, you may (if authorized by the copyright holders of"
1467 , "that material) supplement the terms of this License with terms:"
1468 , ""
1469 , " a) Disclaiming warranty or limiting liability differently from the"
1470 , " terms of sections 15 and 16 of this License; or"
1471 , ""
1472 , " b) Requiring preservation of specified reasonable legal notices or"
1473 , " author attributions in that material or in the Appropriate Legal"
1474 , " Notices displayed by works containing it; or"
1475 , ""
1476 , " c) Prohibiting misrepresentation of the origin of that material, or"
1477 , " requiring that modified versions of such material be marked in"
1478 , " reasonable ways as different from the original version; or"
1479 , ""
1480 , " d) Limiting the use for publicity purposes of names of licensors or"
1481 , " authors of the material; or"
1482 , ""
1483 , " e) Declining to grant rights under trademark law for use of some"
1484 , " trade names, trademarks, or service marks; or"
1485 , ""
1486 , " f) Requiring indemnification of licensors and authors of that"
1487 , " material by anyone who conveys the material (or modified versions of"
1488 , " it) with contractual assumptions of liability to the recipient, for"
1489 , " any liability that these contractual assumptions directly impose on"
1490 , " those licensors and authors."
1491 , ""
1492 , " All other non-permissive additional terms are considered \"further"
1493 , "restrictions\" within the meaning of section 10. If the Program as you"
1494 , "received it, or any part of it, contains a notice stating that it is"
1495 , "governed by this License along with a term that is a further"
1496 , "restriction, you may remove that term. If a license document contains"
1497 , "a further restriction but permits relicensing or conveying under this"
1498 , "License, you may add to a covered work material governed by the terms"
1499 , "of that license document, provided that the further restriction does"
1500 , "not survive such relicensing or conveying."
1501 , ""
1502 , " If you add terms to a covered work in accord with this section, you"
1503 , "must place, in the relevant source files, a statement of the"
1504 , "additional terms that apply to those files, or a notice indicating"
1505 , "where to find the applicable terms."
1506 , ""
1507 , " Additional terms, permissive or non-permissive, may be stated in the"
1508 , "form of a separately written license, or stated as exceptions;"
1509 , "the above requirements apply either way."
1510 , ""
1511 , " 8. Termination."
1512 , ""
1513 , " You may not propagate or modify a covered work except as expressly"
1514 , "provided under this License. Any attempt otherwise to propagate or"
1515 , "modify it is void, and will automatically terminate your rights under"
1516 , "this License (including any patent licenses granted under the third"
1517 , "paragraph of section 11)."
1518 , ""
1519 , " However, if you cease all violation of this License, then your"
1520 , "license from a particular copyright holder is reinstated (a)"
1521 , "provisionally, unless and until the copyright holder explicitly and"
1522 , "finally terminates your license, and (b) permanently, if the copyright"
1523 , "holder fails to notify you of the violation by some reasonable means"
1524 , "prior to 60 days after the cessation."
1525 , ""
1526 , " Moreover, your license from a particular copyright holder is"
1527 , "reinstated permanently if the copyright holder notifies you of the"
1528 , "violation by some reasonable means, this is the first time you have"
1529 , "received notice of violation of this License (for any work) from that"
1530 , "copyright holder, and you cure the violation prior to 30 days after"
1531 , "your receipt of the notice."
1532 , ""
1533 , " Termination of your rights under this section does not terminate the"
1534 , "licenses of parties who have received copies or rights from you under"
1535 , "this License. If your rights have been terminated and not permanently"
1536 , "reinstated, you do not qualify to receive new licenses for the same"
1537 , "material under section 10."
1538 , ""
1539 , " 9. Acceptance Not Required for Having Copies."
1540 , ""
1541 , " You are not required to accept this License in order to receive or"
1542 , "run a copy of the Program. Ancillary propagation of a covered work"
1543 , "occurring solely as a consequence of using peer-to-peer transmission"
1544 , "to receive a copy likewise does not require acceptance. However,"
1545 , "nothing other than this License grants you permission to propagate or"
1546 , "modify any covered work. These actions infringe copyright if you do"
1547 , "not accept this License. Therefore, by modifying or propagating a"
1548 , "covered work, you indicate your acceptance of this License to do so."
1549 , ""
1550 , " 10. Automatic Licensing of Downstream Recipients."
1551 , ""
1552 , " Each time you convey a covered work, the recipient automatically"
1553 , "receives a license from the original licensors, to run, modify and"
1554 , "propagate that work, subject to this License. You are not responsible"
1555 , "for enforcing compliance by third parties with this License."
1556 , ""
1557 , " An \"entity transaction\" is a transaction transferring control of an"
1558 , "organization, or substantially all assets of one, or subdividing an"
1559 , "organization, or merging organizations. If propagation of a covered"
1560 , "work results from an entity transaction, each party to that"
1561 , "transaction who receives a copy of the work also receives whatever"
1562 , "licenses to the work the party's predecessor in interest had or could"
1563 , "give under the previous paragraph, plus a right to possession of the"
1564 , "Corresponding Source of the work from the predecessor in interest, if"
1565 , "the predecessor has it or can get it with reasonable efforts."
1566 , ""
1567 , " You may not impose any further restrictions on the exercise of the"
1568 , "rights granted or affirmed under this License. For example, you may"
1569 , "not impose a license fee, royalty, or other charge for exercise of"
1570 , "rights granted under this License, and you may not initiate litigation"
1571 , "(including a cross-claim or counterclaim in a lawsuit) alleging that"
1572 , "any patent claim is infringed by making, using, selling, offering for"
1573 , "sale, or importing the Program or any portion of it."
1574 , ""
1575 , " 11. Patents."
1576 , ""
1577 , " A \"contributor\" is a copyright holder who authorizes use under this"
1578 , "License of the Program or a work on which the Program is based. The"
1579 , "work thus licensed is called the contributor's \"contributor version\"."
1580 , ""
1581 , " A contributor's \"essential patent claims\" are all patent claims"
1582 , "owned or controlled by the contributor, whether already acquired or"
1583 , "hereafter acquired, that would be infringed by some manner, permitted"
1584 , "by this License, of making, using, or selling its contributor version,"
1585 , "but do not include claims that would be infringed only as a"
1586 , "consequence of further modification of the contributor version. For"
1587 , "purposes of this definition, \"control\" includes the right to grant"
1588 , "patent sublicenses in a manner consistent with the requirements of"
1589 , "this License."
1590 , ""
1591 , " Each contributor grants you a non-exclusive, worldwide, royalty-free"
1592 , "patent license under the contributor's essential patent claims, to"
1593 , "make, use, sell, offer for sale, import and otherwise run, modify and"
1594 , "propagate the contents of its contributor version."
1595 , ""
1596 , " In the following three paragraphs, a \"patent license\" is any express"
1597 , "agreement or commitment, however denominated, not to enforce a patent"
1598 , "(such as an express permission to practice a patent or covenant not to"
1599 , "sue for patent infringement). To \"grant\" such a patent license to a"
1600 , "party means to make such an agreement or commitment not to enforce a"
1601 , "patent against the party."
1602 , ""
1603 , " If you convey a covered work, knowingly relying on a patent license,"
1604 , "and the Corresponding Source of the work is not available for anyone"
1605 , "to copy, free of charge and under the terms of this License, through a"
1606 , "publicly available network server or other readily accessible means,"
1607 , "then you must either (1) cause the Corresponding Source to be so"
1608 , "available, or (2) arrange to deprive yourself of the benefit of the"
1609 , "patent license for this particular work, or (3) arrange, in a manner"
1610 , "consistent with the requirements of this License, to extend the patent"
1611 , "license to downstream recipients. \"Knowingly relying\" means you have"
1612 , "actual knowledge that, but for the patent license, your conveying the"
1613 , "covered work in a country, or your recipient's use of the covered work"
1614 , "in a country, would infringe one or more identifiable patents in that"
1615 , "country that you have reason to believe are valid."
1616 , ""
1617 , " If, pursuant to or in connection with a single transaction or"
1618 , "arrangement, you convey, or propagate by procuring conveyance of, a"
1619 , "covered work, and grant a patent license to some of the parties"
1620 , "receiving the covered work authorizing them to use, propagate, modify"
1621 , "or convey a specific copy of the covered work, then the patent license"
1622 , "you grant is automatically extended to all recipients of the covered"
1623 , "work and works based on it."
1624 , ""
1625 , " A patent license is \"discriminatory\" if it does not include within"
1626 , "the scope of its coverage, prohibits the exercise of, or is"
1627 , "conditioned on the non-exercise of one or more of the rights that are"
1628 , "specifically granted under this License. You may not convey a covered"
1629 , "work if you are a party to an arrangement with a third party that is"
1630 , "in the business of distributing software, under which you make payment"
1631 , "to the third party based on the extent of your activity of conveying"
1632 , "the work, and under which the third party grants, to any of the"
1633 , "parties who would receive the covered work from you, a discriminatory"
1634 , "patent license (a) in connection with copies of the covered work"
1635 , "conveyed by you (or copies made from those copies), or (b) primarily"
1636 , "for and in connection with specific products or compilations that"
1637 , "contain the covered work, unless you entered into that arrangement,"
1638 , "or that patent license was granted, prior to 28 March 2007."
1639 , ""
1640 , " Nothing in this License shall be construed as excluding or limiting"
1641 , "any implied license or other defenses to infringement that may"
1642 , "otherwise be available to you under applicable patent law."
1643 , ""
1644 , " 12. No Surrender of Others' Freedom."
1645 , ""
1646 , " If conditions are imposed on you (whether by court order, agreement or"
1647 , "otherwise) that contradict the conditions of this License, they do not"
1648 , "excuse you from the conditions of this License. If you cannot convey a"
1649 , "covered work so as to satisfy simultaneously your obligations under this"
1650 , "License and any other pertinent obligations, then as a consequence you may"
1651 , "not convey it at all. For example, if you agree to terms that obligate you"
1652 , "to collect a royalty for further conveying from those to whom you convey"
1653 , "the Program, the only way you could satisfy both those terms and this"
1654 , "License would be to refrain entirely from conveying the Program."
1655 , ""
1656 , " 13. Remote Network Interaction; Use with the GNU General Public License."
1657 , ""
1658 , " Notwithstanding any other provision of this License, if you modify the"
1659 , "Program, your modified version must prominently offer all users"
1660 , "interacting with it remotely through a computer network (if your version"
1661 , "supports such interaction) an opportunity to receive the Corresponding"
1662 , "Source of your version by providing access to the Corresponding Source"
1663 , "from a network server at no charge, through some standard or customary"
1664 , "means of facilitating copying of software. This Corresponding Source"
1665 , "shall include the Corresponding Source for any work covered by version 3"
1666 , "of the GNU General Public License that is incorporated pursuant to the"
1667 , "following paragraph."
1668 , ""
1669 , " Notwithstanding any other provision of this License, you have"
1670 , "permission to link or combine any covered work with a work licensed"
1671 , "under version 3 of the GNU General Public License into a single"
1672 , "combined work, and to convey the resulting work. The terms of this"
1673 , "License will continue to apply to the part which is the covered work,"
1674 , "but the work with which it is combined will remain governed by version"
1675 , "3 of the GNU General Public License."
1676 , ""
1677 , " 14. Revised Versions of this License."
1678 , ""
1679 , " The Free Software Foundation may publish revised and/or new versions of"
1680 , "the GNU Affero General Public License from time to time. Such new versions"
1681 , "will be similar in spirit to the present version, but may differ in detail to"
1682 , "address new problems or concerns."
1683 , ""
1684 , " Each version is given a distinguishing version number. If the"
1685 , "Program specifies that a certain numbered version of the GNU Affero General"
1686 , "Public License \"or any later version\" applies to it, you have the"
1687 , "option of following the terms and conditions either of that numbered"
1688 , "version or of any later version published by the Free Software"
1689 , "Foundation. If the Program does not specify a version number of the"
1690 , "GNU Affero General Public License, you may choose any version ever published"
1691 , "by the Free Software Foundation."
1692 , ""
1693 , " If the Program specifies that a proxy can decide which future"
1694 , "versions of the GNU Affero General Public License can be used, that proxy's"
1695 , "public statement of acceptance of a version permanently authorizes you"
1696 , "to choose that version for the Program."
1697 , ""
1698 , " Later license versions may give you additional or different"
1699 , "permissions. However, no additional obligations are imposed on any"
1700 , "author or copyright holder as a result of your choosing to follow a"
1701 , "later version."
1702 , ""
1703 , " 15. Disclaimer of Warranty."
1704 , ""
1705 , " THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY"
1706 , "APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT"
1707 , "HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY"
1708 , "OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,"
1709 , "THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR"
1710 , "PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM"
1711 , "IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF"
1712 , "ALL NECESSARY SERVICING, REPAIR OR CORRECTION."
1713 , ""
1714 , " 16. Limitation of Liability."
1715 , ""
1716 , " IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING"
1717 , "WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS"
1718 , "THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY"
1719 , "GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE"
1720 , "USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF"
1721 , "DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD"
1722 , "PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),"
1723 , "EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF"
1724 , "SUCH DAMAGES."
1725 , ""
1726 , " 17. Interpretation of Sections 15 and 16."
1727 , ""
1728 , " If the disclaimer of warranty and limitation of liability provided"
1729 , "above cannot be given local legal effect according to their terms,"
1730 , "reviewing courts shall apply local law that most closely approximates"
1731 , "an absolute waiver of all civil liability in connection with the"
1732 , "Program, unless a warranty or assumption of liability accompanies a"
1733 , "copy of the Program in return for a fee."
1734 , ""
1735 , " END OF TERMS AND CONDITIONS"
1736 , ""
1737 , " How to Apply These Terms to Your New Programs"
1738 , ""
1739 , " If you develop a new program, and you want it to be of the greatest"
1740 , "possible use to the public, the best way to achieve this is to make it"
1741 , "free software which everyone can redistribute and change under these terms."
1742 , ""
1743 , " To do so, attach the following notices to the program. It is safest"
1744 , "to attach them to the start of each source file to most effectively"
1745 , "state the exclusion of warranty; and each file should have at least"
1746 , "the \"copyright\" line and a pointer to where the full notice is found."
1747 , ""
1748 , " <one line to give the program's name and a brief idea of what it does.>"
1749 , " Copyright (C) <year> <name of author>"
1750 , ""
1751 , " This program is free software: you can redistribute it and/or modify"
1752 , " it under the terms of the GNU Affero General Public License as published by"
1753 , " the Free Software Foundation, either version 3 of the License, or"
1754 , " (at your option) any later version."
1755 , ""
1756 , " This program is distributed in the hope that it will be useful,"
1757 , " but WITHOUT ANY WARRANTY; without even the implied warranty of"
1758 , " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"
1759 , " GNU Affero General Public License for more details."
1760 , ""
1761 , " You should have received a copy of the GNU Affero General Public License"
1762 , " along with this program. If not, see <http://www.gnu.org/licenses/>."
1763 , ""
1764 , "Also add information on how to contact you by electronic and paper mail."
1765 , ""
1766 , " If your software can interact with users remotely through a computer"
1767 , "network, you should also make sure that it provides a way for users to"
1768 , "get its source. For example, if your program is a web application, its"
1769 , "interface could display a \"Source\" link that leads users to an archive"
1770 , "of the code. There are many ways you could offer source, and different"
1771 , "solutions will be better for different programs; see section 13 for the"
1772 , "specific requirements."
1773 , ""
1774 , " You should also get your employer (if you work as a programmer) or school,"
1775 , "if any, to sign a \"copyright disclaimer\" for the program, if necessary."
1776 , "For more information on this, and how to apply and follow the GNU AGPL, see"
1777 , "<http://www.gnu.org/licenses/>."
1778 ]
1779
1780 lgpl21 :: License
1781 lgpl21 = unlines
1782 [ " GNU LESSER GENERAL PUBLIC LICENSE"
1783 , " Version 2.1, February 1999"
1784 , ""
1785 , " Copyright (C) 1991, 1999 Free Software Foundation, Inc."
1786 , " 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
1787 , " Everyone is permitted to copy and distribute verbatim copies"
1788 , " of this license document, but changing it is not allowed."
1789 , ""
1790 , "[This is the first released version of the Lesser GPL. It also counts"
1791 , " as the successor of the GNU Library Public License, version 2, hence"
1792 , " the version number 2.1.]"
1793 , ""
1794 , " Preamble"
1795 , ""
1796 , " The licenses for most software are designed to take away your"
1797 , "freedom to share and change it. By contrast, the GNU General Public"
1798 , "Licenses are intended to guarantee your freedom to share and change"
1799 , "free software--to make sure the software is free for all its users."
1800 , ""
1801 , " This license, the Lesser General Public License, applies to some"
1802 , "specially designated software packages--typically libraries--of the"
1803 , "Free Software Foundation and other authors who decide to use it. You"
1804 , "can use it too, but we suggest you first think carefully about whether"
1805 , "this license or the ordinary General Public License is the better"
1806 , "strategy to use in any particular case, based on the explanations below."
1807 , ""
1808 , " When we speak of free software, we are referring to freedom of use,"
1809 , "not price. Our General Public Licenses are designed to make sure that"
1810 , "you have the freedom to distribute copies of free software (and charge"
1811 , "for this service if you wish); that you receive source code or can get"
1812 , "it if you want it; that you can change the software and use pieces of"
1813 , "it in new free programs; and that you are informed that you can do"
1814 , "these things."
1815 , ""
1816 , " To protect your rights, we need to make restrictions that forbid"
1817 , "distributors to deny you these rights or to ask you to surrender these"
1818 , "rights. These restrictions translate to certain responsibilities for"
1819 , "you if you distribute copies of the library or if you modify it."
1820 , ""
1821 , " For example, if you distribute copies of the library, whether gratis"
1822 , "or for a fee, you must give the recipients all the rights that we gave"
1823 , "you. You must make sure that they, too, receive or can get the source"
1824 , "code. If you link other code with the library, you must provide"
1825 , "complete object files to the recipients, so that they can relink them"
1826 , "with the library after making changes to the library and recompiling"
1827 , "it. And you must show them these terms so they know their rights."
1828 , ""
1829 , " We protect your rights with a two-step method: (1) we copyright the"
1830 , "library, and (2) we offer you this license, which gives you legal"
1831 , "permission to copy, distribute and/or modify the library."
1832 , ""
1833 , " To protect each distributor, we want to make it very clear that"
1834 , "there is no warranty for the free library. Also, if the library is"
1835 , "modified by someone else and passed on, the recipients should know"
1836 , "that what they have is not the original version, so that the original"
1837 , "author's reputation will not be affected by problems that might be"
1838 , "introduced by others."
1839 , ""
1840 , " Finally, software patents pose a constant threat to the existence of"
1841 , "any free program. We wish to make sure that a company cannot"
1842 , "effectively restrict the users of a free program by obtaining a"
1843 , "restrictive license from a patent holder. Therefore, we insist that"
1844 , "any patent license obtained for a version of the library must be"
1845 , "consistent with the full freedom of use specified in this license."
1846 , ""
1847 , " Most GNU software, including some libraries, is covered by the"
1848 , "ordinary GNU General Public License. This license, the GNU Lesser"
1849 , "General Public License, applies to certain designated libraries, and"
1850 , "is quite different from the ordinary General Public License. We use"
1851 , "this license for certain libraries in order to permit linking those"
1852 , "libraries into non-free programs."
1853 , ""
1854 , " When a program is linked with a library, whether statically or using"
1855 , "a shared library, the combination of the two is legally speaking a"
1856 , "combined work, a derivative of the original library. The ordinary"
1857 , "General Public License therefore permits such linking only if the"
1858 , "entire combination fits its criteria of freedom. The Lesser General"
1859 , "Public License permits more lax criteria for linking other code with"
1860 , "the library."
1861 , ""
1862 , " We call this license the \"Lesser\" General Public License because it"
1863 , "does Less to protect the user's freedom than the ordinary General"
1864 , "Public License. It also provides other free software developers Less"
1865 , "of an advantage over competing non-free programs. These disadvantages"
1866 , "are the reason we use the ordinary General Public License for many"
1867 , "libraries. However, the Lesser license provides advantages in certain"
1868 , "special circumstances."
1869 , ""
1870 , " For example, on rare occasions, there may be a special need to"
1871 , "encourage the widest possible use of a certain library, so that it becomes"
1872 , "a de-facto standard. To achieve this, non-free programs must be"
1873 , "allowed to use the library. A more frequent case is that a free"
1874 , "library does the same job as widely used non-free libraries. In this"
1875 , "case, there is little to gain by limiting the free library to free"
1876 , "software only, so we use the Lesser General Public License."
1877 , ""
1878 , " In other cases, permission to use a particular library in non-free"
1879 , "programs enables a greater number of people to use a large body of"
1880 , "free software. For example, permission to use the GNU C Library in"
1881 , "non-free programs enables many more people to use the whole GNU"
1882 , "operating system, as well as its variant, the GNU/Linux operating"
1883 , "system."
1884 , ""
1885 , " Although the Lesser General Public License is Less protective of the"
1886 , "users' freedom, it does ensure that the user of a program that is"
1887 , "linked with the Library has the freedom and the wherewithal to run"
1888 , "that program using a modified version of the Library."
1889 , ""
1890 , " The precise terms and conditions for copying, distribution and"
1891 , "modification follow. Pay close attention to the difference between a"
1892 , "\"work based on the library\" and a \"work that uses the library\". The"
1893 , "former contains code derived from the library, whereas the latter must"
1894 , "be combined with the library in order to run."
1895 , ""
1896 , " GNU LESSER GENERAL PUBLIC LICENSE"
1897 , " TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION"
1898 , ""
1899 , " 0. This License Agreement applies to any software library or other"
1900 , "program which contains a notice placed by the copyright holder or"
1901 , "other authorized party saying it may be distributed under the terms of"
1902 , "this Lesser General Public License (also called \"this License\")."
1903 , "Each licensee is addressed as \"you\"."
1904 , ""
1905 , " A \"library\" means a collection of software functions and/or data"
1906 , "prepared so as to be conveniently linked with application programs"
1907 , "(which use some of those functions and data) to form executables."
1908 , ""
1909 , " The \"Library\", below, refers to any such software library or work"
1910 , "which has been distributed under these terms. A \"work based on the"
1911 , "Library\" means either the Library or any derivative work under"
1912 , "copyright law: that is to say, a work containing the Library or a"
1913 , "portion of it, either verbatim or with modifications and/or translated"
1914 , "straightforwardly into another language. (Hereinafter, translation is"
1915 , "included without limitation in the term \"modification\".)"
1916 , ""
1917 , " \"Source code\" for a work means the preferred form of the work for"
1918 , "making modifications to it. For a library, complete source code means"
1919 , "all the source code for all modules it contains, plus any associated"
1920 , "interface definition files, plus the scripts used to control compilation"
1921 , "and installation of the library."
1922 , ""
1923 , " Activities other than copying, distribution and modification are not"
1924 , "covered by this License; they are outside its scope. The act of"
1925 , "running a program using the Library is not restricted, and output from"
1926 , "such a program is covered only if its contents constitute a work based"
1927 , "on the Library (independent of the use of the Library in a tool for"
1928 , "writing it). Whether that is true depends on what the Library does"
1929 , "and what the program that uses the Library does."
1930 , ""
1931 , " 1. You may copy and distribute verbatim copies of the Library's"
1932 , "complete source code as you receive it, in any medium, provided that"
1933 , "you conspicuously and appropriately publish on each copy an"
1934 , "appropriate copyright notice and disclaimer of warranty; keep intact"
1935 , "all the notices that refer to this License and to the absence of any"
1936 , "warranty; and distribute a copy of this License along with the"
1937 , "Library."
1938 , ""
1939 , " You may charge a fee for the physical act of transferring a copy,"
1940 , "and you may at your option offer warranty protection in exchange for a"
1941 , "fee."
1942 , ""
1943 , " 2. You may modify your copy or copies of the Library or any portion"
1944 , "of it, thus forming a work based on the Library, and copy and"
1945 , "distribute such modifications or work under the terms of Section 1"
1946 , "above, provided that you also meet all of these conditions:"
1947 , ""
1948 , " a) The modified work must itself be a software library."
1949 , ""
1950 , " b) You must cause the files modified to carry prominent notices"
1951 , " stating that you changed the files and the date of any change."
1952 , ""
1953 , " c) You must cause the whole of the work to be licensed at no"
1954 , " charge to all third parties under the terms of this License."
1955 , ""
1956 , " d) If a facility in the modified Library refers to a function or a"
1957 , " table of data to be supplied by an application program that uses"
1958 , " the facility, other than as an argument passed when the facility"
1959 , " is invoked, then you must make a good faith effort to ensure that,"
1960 , " in the event an application does not supply such function or"
1961 , " table, the facility still operates, and performs whatever part of"
1962 , " its purpose remains meaningful."
1963 , ""
1964 , " (For example, a function in a library to compute square roots has"
1965 , " a purpose that is entirely well-defined independent of the"
1966 , " application. Therefore, Subsection 2d requires that any"
1967 , " application-supplied function or table used by this function must"
1968 , " be optional: if the application does not supply it, the square"
1969 , " root function must still compute square roots.)"
1970 , ""
1971 , "These requirements apply to the modified work as a whole. If"
1972 , "identifiable sections of that work are not derived from the Library,"
1973 , "and can be reasonably considered independent and separate works in"
1974 , "themselves, then this License, and its terms, do not apply to those"
1975 , "sections when you distribute them as separate works. But when you"
1976 , "distribute the same sections as part of a whole which is a work based"
1977 , "on the Library, the distribution of the whole must be on the terms of"
1978 , "this License, whose permissions for other licensees extend to the"
1979 , "entire whole, and thus to each and every part regardless of who wrote"
1980 , "it."
1981 , ""
1982 , "Thus, it is not the intent of this section to claim rights or contest"
1983 , "your rights to work written entirely by you; rather, the intent is to"
1984 , "exercise the right to control the distribution of derivative or"
1985 , "collective works based on the Library."
1986 , ""
1987 , "In addition, mere aggregation of another work not based on the Library"
1988 , "with the Library (or with a work based on the Library) on a volume of"
1989 , "a storage or distribution medium does not bring the other work under"
1990 , "the scope of this License."
1991 , ""
1992 , " 3. You may opt to apply the terms of the ordinary GNU General Public"
1993 , "License instead of this License to a given copy of the Library. To do"
1994 , "this, you must alter all the notices that refer to this License, so"
1995 , "that they refer to the ordinary GNU General Public License, version 2,"
1996 , "instead of to this License. (If a newer version than version 2 of the"
1997 , "ordinary GNU General Public License has appeared, then you can specify"
1998 , "that version instead if you wish.) Do not make any other change in"
1999 , "these notices."
2000 , ""
2001 , " Once this change is made in a given copy, it is irreversible for"
2002 , "that copy, so the ordinary GNU General Public License applies to all"
2003 , "subsequent copies and derivative works made from that copy."
2004 , ""
2005 , " This option is useful when you wish to copy part of the code of"
2006 , "the Library into a program that is not a library."
2007 , ""
2008 , " 4. You may copy and distribute the Library (or a portion or"
2009 , "derivative of it, under Section 2) in object code or executable form"
2010 , "under the terms of Sections 1 and 2 above provided that you accompany"
2011 , "it with the complete corresponding machine-readable source code, which"
2012 , "must be distributed under the terms of Sections 1 and 2 above on a"
2013 , "medium customarily used for software interchange."
2014 , ""
2015 , " If distribution of object code is made by offering access to copy"
2016 , "from a designated place, then offering equivalent access to copy the"
2017 , "source code from the same place satisfies the requirement to"
2018 , "distribute the source code, even though third parties are not"
2019 , "compelled to copy the source along with the object code."
2020 , ""
2021 , " 5. A program that contains no derivative of any portion of the"
2022 , "Library, but is designed to work with the Library by being compiled or"
2023 , "linked with it, is called a \"work that uses the Library\". Such a"
2024 , "work, in isolation, is not a derivative work of the Library, and"
2025 , "therefore falls outside the scope of this License."
2026 , ""
2027 , " However, linking a \"work that uses the Library\" with the Library"
2028 , "creates an executable that is a derivative of the Library (because it"
2029 , "contains portions of the Library), rather than a \"work that uses the"
2030 , "library\". The executable is therefore covered by this License."
2031 , "Section 6 states terms for distribution of such executables."
2032 , ""
2033 , " When a \"work that uses the Library\" uses material from a header file"
2034 , "that is part of the Library, the object code for the work may be a"
2035 , "derivative work of the Library even though the source code is not."
2036 , "Whether this is true is especially significant if the work can be"
2037 , "linked without the Library, or if the work is itself a library. The"
2038 , "threshold for this to be true is not precisely defined by law."
2039 , ""
2040 , " If such an object file uses only numerical parameters, data"
2041 , "structure layouts and accessors, and small macros and small inline"
2042 , "functions (ten lines or less in length), then the use of the object"
2043 , "file is unrestricted, regardless of whether it is legally a derivative"
2044 , "work. (Executables containing this object code plus portions of the"
2045 , "Library will still fall under Section 6.)"
2046 , ""
2047 , " Otherwise, if the work is a derivative of the Library, you may"
2048 , "distribute the object code for the work under the terms of Section 6."
2049 , "Any executables containing that work also fall under Section 6,"
2050 , "whether or not they are linked directly with the Library itself."
2051 , ""
2052 , " 6. As an exception to the Sections above, you may also combine or"
2053 , "link a \"work that uses the Library\" with the Library to produce a"
2054 , "work containing portions of the Library, and distribute that work"
2055 , "under terms of your choice, provided that the terms permit"
2056 , "modification of the work for the customer's own use and reverse"
2057 , "engineering for debugging such modifications."
2058 , ""
2059 , " You must give prominent notice with each copy of the work that the"
2060 , "Library is used in it and that the Library and its use are covered by"
2061 , "this License. You must supply a copy of this License. If the work"
2062 , "during execution displays copyright notices, you must include the"
2063 , "copyright notice for the Library among them, as well as a reference"
2064 , "directing the user to the copy of this License. Also, you must do one"
2065 , "of these things:"
2066 , ""
2067 , " a) Accompany the work with the complete corresponding"
2068 , " machine-readable source code for the Library including whatever"
2069 , " changes were used in the work (which must be distributed under"
2070 , " Sections 1 and 2 above); and, if the work is an executable linked"
2071 , " with the Library, with the complete machine-readable \"work that"
2072 , " uses the Library\", as object code and/or source code, so that the"
2073 , " user can modify the Library and then relink to produce a modified"
2074 , " executable containing the modified Library. (It is understood"
2075 , " that the user who changes the contents of definitions files in the"
2076 , " Library will not necessarily be able to recompile the application"
2077 , " to use the modified definitions.)"
2078 , ""
2079 , " b) Use a suitable shared library mechanism for linking with the"
2080 , " Library. A suitable mechanism is one that (1) uses at run time a"
2081 , " copy of the library already present on the user's computer system,"
2082 , " rather than copying library functions into the executable, and (2)"
2083 , " will operate properly with a modified version of the library, if"
2084 , " the user installs one, as long as the modified version is"
2085 , " interface-compatible with the version that the work was made with."
2086 , ""
2087 , " c) Accompany the work with a written offer, valid for at"
2088 , " least three years, to give the same user the materials"
2089 , " specified in Subsection 6a, above, for a charge no more"
2090 , " than the cost of performing this distribution."
2091 , ""
2092 , " d) If distribution of the work is made by offering access to copy"
2093 , " from a designated place, offer equivalent access to copy the above"
2094 , " specified materials from the same place."
2095 , ""
2096 , " e) Verify that the user has already received a copy of these"
2097 , " materials or that you have already sent this user a copy."
2098 , ""
2099 , " For an executable, the required form of the \"work that uses the"
2100 , "Library\" must include any data and utility programs needed for"
2101 , "reproducing the executable from it. However, as a special exception,"
2102 , "the materials to be distributed need not include anything that is"
2103 , "normally distributed (in either source or binary form) with the major"
2104 , "components (compiler, kernel, and so on) of the operating system on"
2105 , "which the executable runs, unless that component itself accompanies"
2106 , "the executable."
2107 , ""
2108 , " It may happen that this requirement contradicts the license"
2109 , "restrictions of other proprietary libraries that do not normally"
2110 , "accompany the operating system. Such a contradiction means you cannot"
2111 , "use both them and the Library together in an executable that you"
2112 , "distribute."
2113 , ""
2114 , " 7. You may place library facilities that are a work based on the"
2115 , "Library side-by-side in a single library together with other library"
2116 , "facilities not covered by this License, and distribute such a combined"
2117 , "library, provided that the separate distribution of the work based on"
2118 , "the Library and of the other library facilities is otherwise"
2119 , "permitted, and provided that you do these two things:"
2120 , ""
2121 , " a) Accompany the combined library with a copy of the same work"
2122 , " based on the Library, uncombined with any other library"
2123 , " facilities. This must be distributed under the terms of the"
2124 , " Sections above."
2125 , ""
2126 , " b) Give prominent notice with the combined library of the fact"
2127 , " that part of it is a work based on the Library, and explaining"
2128 , " where to find the accompanying uncombined form of the same work."
2129 , ""
2130 , " 8. You may not copy, modify, sublicense, link with, or distribute"
2131 , "the Library except as expressly provided under this License. Any"
2132 , "attempt otherwise to copy, modify, sublicense, link with, or"
2133 , "distribute the Library is void, and will automatically terminate your"
2134 , "rights under this License. However, parties who have received copies,"
2135 , "or rights, from you under this License will not have their licenses"
2136 , "terminated so long as such parties remain in full compliance."
2137 , ""
2138 , " 9. You are not required to accept this License, since you have not"
2139 , "signed it. However, nothing else grants you permission to modify or"
2140 , "distribute the Library or its derivative works. These actions are"
2141 , "prohibited by law if you do not accept this License. Therefore, by"
2142 , "modifying or distributing the Library (or any work based on the"
2143 , "Library), you indicate your acceptance of this License to do so, and"
2144 , "all its terms and conditions for copying, distributing or modifying"
2145 , "the Library or works based on it."
2146 , ""
2147 , " 10. Each time you redistribute the Library (or any work based on the"
2148 , "Library), the recipient automatically receives a license from the"
2149 , "original licensor to copy, distribute, link with or modify the Library"
2150 , "subject to these terms and conditions. You may not impose any further"
2151 , "restrictions on the recipients' exercise of the rights granted herein."
2152 , "You are not responsible for enforcing compliance by third parties with"
2153 , "this License."
2154 , ""
2155 , " 11. If, as a consequence of a court judgment or allegation of patent"
2156 , "infringement or for any other reason (not limited to patent issues),"
2157 , "conditions are imposed on you (whether by court order, agreement or"
2158 , "otherwise) that contradict the conditions of this License, they do not"
2159 , "excuse you from the conditions of this License. If you cannot"
2160 , "distribute so as to satisfy simultaneously your obligations under this"
2161 , "License and any other pertinent obligations, then as a consequence you"
2162 , "may not distribute the Library at all. For example, if a patent"
2163 , "license would not permit royalty-free redistribution of the Library by"
2164 , "all those who receive copies directly or indirectly through you, then"
2165 , "the only way you could satisfy both it and this License would be to"
2166 , "refrain entirely from distribution of the Library."
2167 , ""
2168 , "If any portion of this section is held invalid or unenforceable under any"
2169 , "particular circumstance, the balance of the section is intended to apply,"
2170 , "and the section as a whole is intended to apply in other circumstances."
2171 , ""
2172 , "It is not the purpose of this section to induce you to infringe any"
2173 , "patents or other property right claims or to contest validity of any"
2174 , "such claims; this section has the sole purpose of protecting the"
2175 , "integrity of the free software distribution system which is"
2176 , "implemented by public license practices. Many people have made"
2177 , "generous contributions to the wide range of software distributed"
2178 , "through that system in reliance on consistent application of that"
2179 , "system; it is up to the author/donor to decide if he or she is willing"
2180 , "to distribute software through any other system and a licensee cannot"
2181 , "impose that choice."
2182 , ""
2183 , "This section is intended to make thoroughly clear what is believed to"
2184 , "be a consequence of the rest of this License."
2185 , ""
2186 , " 12. If the distribution and/or use of the Library is restricted in"
2187 , "certain countries either by patents or by copyrighted interfaces, the"
2188 , "original copyright holder who places the Library under this License may add"
2189 , "an explicit geographical distribution limitation excluding those countries,"
2190 , "so that distribution is permitted only in or among countries not thus"
2191 , "excluded. In such case, this License incorporates the limitation as if"
2192 , "written in the body of this License."
2193 , ""
2194 , " 13. The Free Software Foundation may publish revised and/or new"
2195 , "versions of the Lesser General Public License from time to time."
2196 , "Such new versions will be similar in spirit to the present version,"
2197 , "but may differ in detail to address new problems or concerns."
2198 , ""
2199 , "Each version is given a distinguishing version number. If the Library"
2200 , "specifies a version number of this License which applies to it and"
2201 , "\"any later version\", you have the option of following the terms and"
2202 , "conditions either of that version or of any later version published by"
2203 , "the Free Software Foundation. If the Library does not specify a"
2204 , "license version number, you may choose any version ever published by"
2205 , "the Free Software Foundation."
2206 , ""
2207 , " 14. If you wish to incorporate parts of the Library into other free"
2208 , "programs whose distribution conditions are incompatible with these,"
2209 , "write to the author to ask for permission. For software which is"
2210 , "copyrighted by the Free Software Foundation, write to the Free"
2211 , "Software Foundation; we sometimes make exceptions for this. Our"
2212 , "decision will be guided by the two goals of preserving the free status"
2213 , "of all derivatives of our free software and of promoting the sharing"
2214 , "and reuse of software generally."
2215 , ""
2216 , " NO WARRANTY"
2217 , ""
2218 , " 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO"
2219 , "WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW."
2220 , "EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR"
2221 , "OTHER PARTIES PROVIDE THE LIBRARY \"AS IS\" WITHOUT WARRANTY OF ANY"
2222 , "KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE"
2223 , "IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR"
2224 , "PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE"
2225 , "LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME"
2226 , "THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION."
2227 , ""
2228 , " 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN"
2229 , "WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY"
2230 , "AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU"
2231 , "FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR"
2232 , "CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE"
2233 , "LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING"
2234 , "RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A"
2235 , "FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF"
2236 , "SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH"
2237 , "DAMAGES."
2238 , ""
2239 , " END OF TERMS AND CONDITIONS"
2240 , ""
2241 , " How to Apply These Terms to Your New Libraries"
2242 , ""
2243 , " If you develop a new library, and you want it to be of the greatest"
2244 , "possible use to the public, we recommend making it free software that"
2245 , "everyone can redistribute and change. You can do so by permitting"
2246 , "redistribution under these terms (or, alternatively, under the terms of the"
2247 , "ordinary General Public License)."
2248 , ""
2249 , " To apply these terms, attach the following notices to the library. It is"
2250 , "safest to attach them to the start of each source file to most effectively"
2251 , "convey the exclusion of warranty; and each file should have at least the"
2252 , "\"copyright\" line and a pointer to where the full notice is found."
2253 , ""
2254 , " <one line to give the library's name and a brief idea of what it does.>"
2255 , " Copyright (C) <year> <name of author>"
2256 , ""
2257 , " This library is free software; you can redistribute it and/or"
2258 , " modify it under the terms of the GNU Lesser General Public"
2259 , " License as published by the Free Software Foundation; either"
2260 , " version 2.1 of the License, or (at your option) any later version."
2261 , ""
2262 , " This library is distributed in the hope that it will be useful,"
2263 , " but WITHOUT ANY WARRANTY; without even the implied warranty of"
2264 , " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU"
2265 , " Lesser General Public License for more details."
2266 , ""
2267 , " You should have received a copy of the GNU Lesser General Public"
2268 , " License along with this library; if not, write to the Free Software"
2269 , " Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
2270 , ""
2271 , "Also add information on how to contact you by electronic and paper mail."
2272 , ""
2273 , "You should also get your employer (if you work as a programmer) or your"
2274 , "school, if any, to sign a \"copyright disclaimer\" for the library, if"
2275 , "necessary. Here is a sample; alter the names:"
2276 , ""
2277 , " Yoyodyne, Inc., hereby disclaims all copyright interest in the"
2278 , " library `Frob' (a library for tweaking knobs) written by James Random Hacker."
2279 , ""
2280 , " <signature of Ty Coon>, 1 April 1990"
2281 , " Ty Coon, President of Vice"
2282 , ""
2283 , "That's all there is to it!"
2284 ]
2285
2286 lgpl3 :: License
2287 lgpl3 = unlines
2288 [ " GNU LESSER GENERAL PUBLIC LICENSE"
2289 , " Version 3, 29 June 2007"
2290 , ""
2291 , " Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>"
2292 , " Everyone is permitted to copy and distribute verbatim copies"
2293 , " of this license document, but changing it is not allowed."
2294 , ""
2295 , ""
2296 , " This version of the GNU Lesser General Public License incorporates"
2297 , "the terms and conditions of version 3 of the GNU General Public"
2298 , "License, supplemented by the additional permissions listed below."
2299 , ""
2300 , " 0. Additional Definitions."
2301 , ""
2302 , " As used herein, \"this License\" refers to version 3 of the GNU Lesser"
2303 , "General Public License, and the \"GNU GPL\" refers to version 3 of the GNU"
2304 , "General Public License."
2305 , ""
2306 , " \"The Library\" refers to a covered work governed by this License,"
2307 , "other than an Application or a Combined Work as defined below."
2308 , ""
2309 , " An \"Application\" is any work that makes use of an interface provided"
2310 , "by the Library, but which is not otherwise based on the Library."
2311 , "Defining a subclass of a class defined by the Library is deemed a mode"
2312 , "of using an interface provided by the Library."
2313 , ""
2314 , " A \"Combined Work\" is a work produced by combining or linking an"
2315 , "Application with the Library. The particular version of the Library"
2316 , "with which the Combined Work was made is also called the \"Linked"
2317 , "Version\"."
2318 , ""
2319 , " The \"Minimal Corresponding Source\" for a Combined Work means the"
2320 , "Corresponding Source for the Combined Work, excluding any source code"
2321 , "for portions of the Combined Work that, considered in isolation, are"
2322 , "based on the Application, and not on the Linked Version."
2323 , ""
2324 , " The \"Corresponding Application Code\" for a Combined Work means the"
2325 , "object code and/or source code for the Application, including any data"
2326 , "and utility programs needed for reproducing the Combined Work from the"
2327 , "Application, but excluding the System Libraries of the Combined Work."
2328 , ""
2329 , " 1. Exception to Section 3 of the GNU GPL."
2330 , ""
2331 , " You may convey a covered work under sections 3 and 4 of this License"
2332 , "without being bound by section 3 of the GNU GPL."
2333 , ""
2334 , " 2. Conveying Modified Versions."
2335 , ""
2336 , " If you modify a copy of the Library, and, in your modifications, a"
2337 , "facility refers to a function or data to be supplied by an Application"
2338 , "that uses the facility (other than as an argument passed when the"
2339 , "facility is invoked), then you may convey a copy of the modified"
2340 , "version:"
2341 , ""
2342 , " a) under this License, provided that you make a good faith effort to"
2343 , " ensure that, in the event an Application does not supply the"
2344 , " function or data, the facility still operates, and performs"
2345 , " whatever part of its purpose remains meaningful, or"
2346 , ""
2347 , " b) under the GNU GPL, with none of the additional permissions of"
2348 , " this License applicable to that copy."
2349 , ""
2350 , " 3. Object Code Incorporating Material from Library Header Files."
2351 , ""
2352 , " The object code form of an Application may incorporate material from"
2353 , "a header file that is part of the Library. You may convey such object"
2354 , "code under terms of your choice, provided that, if the incorporated"
2355 , "material is not limited to numerical parameters, data structure"
2356 , "layouts and accessors, or small macros, inline functions and templates"
2357 , "(ten or fewer lines in length), you do both of the following:"
2358 , ""
2359 , " a) Give prominent notice with each copy of the object code that the"
2360 , " Library is used in it and that the Library and its use are"
2361 , " covered by this License."
2362 , ""
2363 , " b) Accompany the object code with a copy of the GNU GPL and this license"
2364 , " document."
2365 , ""
2366 , " 4. Combined Works."
2367 , ""
2368 , " You may convey a Combined Work under terms of your choice that,"
2369 , "taken together, effectively do not restrict modification of the"
2370 , "portions of the Library contained in the Combined Work and reverse"
2371 , "engineering for debugging such modifications, if you also do each of"
2372 , "the following:"
2373 , ""
2374 , " a) Give prominent notice with each copy of the Combined Work that"
2375 , " the Library is used in it and that the Library and its use are"
2376 , " covered by this License."
2377 , ""
2378 , " b) Accompany the Combined Work with a copy of the GNU GPL and this license"
2379 , " document."
2380 , ""
2381 , " c) For a Combined Work that displays copyright notices during"
2382 , " execution, include the copyright notice for the Library among"
2383 , " these notices, as well as a reference directing the user to the"
2384 , " copies of the GNU GPL and this license document."
2385 , ""
2386 , " d) Do one of the following:"
2387 , ""
2388 , " 0) Convey the Minimal Corresponding Source under the terms of this"
2389 , " License, and the Corresponding Application Code in a form"
2390 , " suitable for, and under terms that permit, the user to"
2391 , " recombine or relink the Application with a modified version of"
2392 , " the Linked Version to produce a modified Combined Work, in the"
2393 , " manner specified by section 6 of the GNU GPL for conveying"
2394 , " Corresponding Source."
2395 , ""
2396 , " 1) Use a suitable shared library mechanism for linking with the"
2397 , " Library. A suitable mechanism is one that (a) uses at run time"
2398 , " a copy of the Library already present on the user's computer"
2399 , " system, and (b) will operate properly with a modified version"
2400 , " of the Library that is interface-compatible with the Linked"
2401 , " Version."
2402 , ""
2403 , " e) Provide Installation Information, but only if you would otherwise"
2404 , " be required to provide such information under section 6 of the"
2405 , " GNU GPL, and only to the extent that such information is"
2406 , " necessary to install and execute a modified version of the"
2407 , " Combined Work produced by recombining or relinking the"
2408 , " Application with a modified version of the Linked Version. (If"
2409 , " you use option 4d0, the Installation Information must accompany"
2410 , " the Minimal Corresponding Source and Corresponding Application"
2411 , " Code. If you use option 4d1, you must provide the Installation"
2412 , " Information in the manner specified by section 6 of the GNU GPL"
2413 , " for conveying Corresponding Source.)"
2414 , ""
2415 , " 5. Combined Libraries."
2416 , ""
2417 , " You may place library facilities that are a work based on the"
2418 , "Library side by side in a single library together with other library"
2419 , "facilities that are not Applications and are not covered by this"
2420 , "License, and convey such a combined library under terms of your"
2421 , "choice, if you do both of the following:"
2422 , ""
2423 , " a) Accompany the combined library with a copy of the same work based"
2424 , " on the Library, uncombined with any other library facilities,"
2425 , " conveyed under the terms of this License."
2426 , ""
2427 , " b) Give prominent notice with the combined library that part of it"
2428 , " is a work based on the Library, and explaining where to find the"
2429 , " accompanying uncombined form of the same work."
2430 , ""
2431 , " 6. Revised Versions of the GNU Lesser General Public License."
2432 , ""
2433 , " The Free Software Foundation may publish revised and/or new versions"
2434 , "of the GNU Lesser General Public License from time to time. Such new"
2435 , "versions will be similar in spirit to the present version, but may"
2436 , "differ in detail to address new problems or concerns."
2437 , ""
2438 , " Each version is given a distinguishing version number. If the"
2439 , "Library as you received it specifies that a certain numbered version"
2440 , "of the GNU Lesser General Public License \"or any later version\""
2441 , "applies to it, you have the option of following the terms and"
2442 , "conditions either of that published version or of any later version"
2443 , "published by the Free Software Foundation. If the Library as you"
2444 , "received it does not specify a version number of the GNU Lesser"
2445 , "General Public License, you may choose any version of the GNU Lesser"
2446 , "General Public License ever published by the Free Software Foundation."
2447 , ""
2448 , " If the Library as you received it specifies that a proxy can decide"
2449 , "whether future versions of the GNU Lesser General Public License shall"
2450 , "apply, that proxy's public statement of acceptance of any version is"
2451 , "permanent authorization for you to choose that version for the"
2452 , "Library."
2453 ]
2454
2455 apache20 :: License
2456 apache20 = unlines
2457 [ ""
2458 , " Apache License"
2459 , " Version 2.0, January 2004"
2460 , " http://www.apache.org/licenses/"
2461 , ""
2462 , " TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION"
2463 , ""
2464 , " 1. Definitions."
2465 , ""
2466 , " \"License\" shall mean the terms and conditions for use, reproduction,"
2467 , " and distribution as defined by Sections 1 through 9 of this document."
2468 , ""
2469 , " \"Licensor\" shall mean the copyright owner or entity authorized by"
2470 , " the copyright owner that is granting the License."
2471 , ""
2472 , " \"Legal Entity\" shall mean the union of the acting entity and all"
2473 , " other entities that control, are controlled by, or are under common"
2474 , " control with that entity. For the purposes of this definition,"
2475 , " \"control\" means (i) the power, direct or indirect, to cause the"
2476 , " direction or management of such entity, whether by contract or"
2477 , " otherwise, or (ii) ownership of fifty percent (50%) or more of the"
2478 , " outstanding shares, or (iii) beneficial ownership of such entity."
2479 , ""
2480 , " \"You\" (or \"Your\") shall mean an individual or Legal Entity"
2481 , " exercising permissions granted by this License."
2482 , ""
2483 , " \"Source\" form shall mean the preferred form for making modifications,"
2484 , " including but not limited to software source code, documentation"
2485 , " source, and configuration files."
2486 , ""
2487 , " \"Object\" form shall mean any form resulting from mechanical"
2488 , " transformation or translation of a Source form, including but"
2489 , " not limited to compiled object code, generated documentation,"
2490 , " and conversions to other media types."
2491 , ""
2492 , " \"Work\" shall mean the work of authorship, whether in Source or"
2493 , " Object form, made available under the License, as indicated by a"
2494 , " copyright notice that is included in or attached to the work"
2495 , " (an example is provided in the Appendix below)."
2496 , ""
2497 , " \"Derivative Works\" shall mean any work, whether in Source or Object"
2498 , " form, that is based on (or derived from) the Work and for which the"
2499 , " editorial revisions, annotations, elaborations, or other modifications"
2500 , " represent, as a whole, an original work of authorship. For the purposes"
2501 , " of this License, Derivative Works shall not include works that remain"
2502 , " separable from, or merely link (or bind by name) to the interfaces of,"
2503 , " the Work and Derivative Works thereof."
2504 , ""
2505 , " \"Contribution\" shall mean any work of authorship, including"
2506 , " the original version of the Work and any modifications or additions"
2507 , " to that Work or Derivative Works thereof, that is intentionally"
2508 , " submitted to Licensor for inclusion in the Work by the copyright owner"
2509 , " or by an individual or Legal Entity authorized to submit on behalf of"
2510 , " the copyright owner. For the purposes of this definition, \"submitted\""
2511 , " means any form of electronic, verbal, or written communication sent"
2512 , " to the Licensor or its representatives, including but not limited to"
2513 , " communication on electronic mailing lists, source code control systems,"
2514 , " and issue tracking systems that are managed by, or on behalf of, the"
2515 , " Licensor for the purpose of discussing and improving the Work, but"
2516 , " excluding communication that is conspicuously marked or otherwise"
2517 , " designated in writing by the copyright owner as \"Not a Contribution.\""
2518 , ""
2519 , " \"Contributor\" shall mean Licensor and any individual or Legal Entity"
2520 , " on behalf of whom a Contribution has been received by Licensor and"
2521 , " subsequently incorporated within the Work."
2522 , ""
2523 , " 2. Grant of Copyright License. Subject to the terms and conditions of"
2524 , " this License, each Contributor hereby grants to You a perpetual,"
2525 , " worldwide, non-exclusive, no-charge, royalty-free, irrevocable"
2526 , " copyright license to reproduce, prepare Derivative Works of,"
2527 , " publicly display, publicly perform, sublicense, and distribute the"
2528 , " Work and such Derivative Works in Source or Object form."
2529 , ""
2530 , " 3. Grant of Patent License. Subject to the terms and conditions of"
2531 , " this License, each Contributor hereby grants to You a perpetual,"
2532 , " worldwide, non-exclusive, no-charge, royalty-free, irrevocable"
2533 , " (except as stated in this section) patent license to make, have made,"
2534 , " use, offer to sell, sell, import, and otherwise transfer the Work,"
2535 , " where such license applies only to those patent claims licensable"
2536 , " by such Contributor that are necessarily infringed by their"
2537 , " Contribution(s) alone or by combination of their Contribution(s)"
2538 , " with the Work to which such Contribution(s) was submitted. If You"
2539 , " institute patent litigation against any entity (including a"
2540 , " cross-claim or counterclaim in a lawsuit) alleging that the Work"
2541 , " or a Contribution incorporated within the Work constitutes direct"
2542 , " or contributory patent infringement, then any patent licenses"
2543 , " granted to You under this License for that Work shall terminate"
2544 , " as of the date such litigation is filed."
2545 , ""
2546 , " 4. Redistribution. You may reproduce and distribute copies of the"
2547 , " Work or Derivative Works thereof in any medium, with or without"
2548 , " modifications, and in Source or Object form, provided that You"
2549 , " meet the following conditions:"
2550 , ""
2551 , " (a) You must give any other recipients of the Work or"
2552 , " Derivative Works a copy of this License; and"
2553 , ""
2554 , " (b) You must cause any modified files to carry prominent notices"
2555 , " stating that You changed the files; and"
2556 , ""
2557 , " (c) You must retain, in the Source form of any Derivative Works"
2558 , " that You distribute, all copyright, patent, trademark, and"
2559 , " attribution notices from the Source form of the Work,"
2560 , " excluding those notices that do not pertain to any part of"
2561 , " the Derivative Works; and"
2562 , ""
2563 , " (d) If the Work includes a \"NOTICE\" text file as part of its"
2564 , " distribution, then any Derivative Works that You distribute must"
2565 , " include a readable copy of the attribution notices contained"
2566 , " within such NOTICE file, excluding those notices that do not"
2567 , " pertain to any part of the Derivative Works, in at least one"
2568 , " of the following places: within a NOTICE text file distributed"
2569 , " as part of the Derivative Works; within the Source form or"
2570 , " documentation, if provided along with the Derivative Works; or,"
2571 , " within a display generated by the Derivative Works, if and"
2572 , " wherever such third-party notices normally appear. The contents"
2573 , " of the NOTICE file are for informational purposes only and"
2574 , " do not modify the License. You may add Your own attribution"
2575 , " notices within Derivative Works that You distribute, alongside"
2576 , " or as an addendum to the NOTICE text from the Work, provided"
2577 , " that such additional attribution notices cannot be construed"
2578 , " as modifying the License."
2579 , ""
2580 , " You may add Your own copyright statement to Your modifications and"
2581 , " may provide additional or different license terms and conditions"
2582 , " for use, reproduction, or distribution of Your modifications, or"
2583 , " for any such Derivative Works as a whole, provided Your use,"
2584 , " reproduction, and distribution of the Work otherwise complies with"
2585 , " the conditions stated in this License."
2586 , ""
2587 , " 5. Submission of Contributions. Unless You explicitly state otherwise,"
2588 , " any Contribution intentionally submitted for inclusion in the Work"
2589 , " by You to the Licensor shall be under the terms and conditions of"
2590 , " this License, without any additional terms or conditions."
2591 , " Notwithstanding the above, nothing herein shall supersede or modify"
2592 , " the terms of any separate license agreement you may have executed"
2593 , " with Licensor regarding such Contributions."
2594 , ""
2595 , " 6. Trademarks. This License does not grant permission to use the trade"
2596 , " names, trademarks, service marks, or product names of the Licensor,"
2597 , " except as required for reasonable and customary use in describing the"
2598 , " origin of the Work and reproducing the content of the NOTICE file."
2599 , ""
2600 , " 7. Disclaimer of Warranty. Unless required by applicable law or"
2601 , " agreed to in writing, Licensor provides the Work (and each"
2602 , " Contributor provides its Contributions) on an \"AS IS\" BASIS,"
2603 , " WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or"
2604 , " implied, including, without limitation, any warranties or conditions"
2605 , " of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A"
2606 , " PARTICULAR PURPOSE. You are solely responsible for determining the"
2607 , " appropriateness of using or redistributing the Work and assume any"
2608 , " risks associated with Your exercise of permissions under this License."
2609 , ""
2610 , " 8. Limitation of Liability. In no event and under no legal theory,"
2611 , " whether in tort (including negligence), contract, or otherwise,"
2612 , " unless required by applicable law (such as deliberate and grossly"
2613 , " negligent acts) or agreed to in writing, shall any Contributor be"
2614 , " liable to You for damages, including any direct, indirect, special,"
2615 , " incidental, or consequential damages of any character arising as a"
2616 , " result of this License or out of the use or inability to use the"
2617 , " Work (including but not limited to damages for loss of goodwill,"
2618 , " work stoppage, computer failure or malfunction, or any and all"
2619 , " other commercial damages or losses), even if such Contributor"
2620 , " has been advised of the possibility of such damages."
2621 , ""
2622 , " 9. Accepting Warranty or Additional Liability. While redistributing"
2623 , " the Work or Derivative Works thereof, You may choose to offer,"
2624 , " and charge a fee for, acceptance of support, warranty, indemnity,"
2625 , " or other liability obligations and/or rights consistent with this"
2626 , " License. However, in accepting such obligations, You may act only"
2627 , " on Your own behalf and on Your sole responsibility, not on behalf"
2628 , " of any other Contributor, and only if You agree to indemnify,"
2629 , " defend, and hold each Contributor harmless for any liability"
2630 , " incurred by, or claims asserted against, such Contributor by reason"
2631 , " of your accepting any such warranty or additional liability."
2632 , ""
2633 , " END OF TERMS AND CONDITIONS"
2634 , ""
2635 , " APPENDIX: How to apply the Apache License to your work."
2636 , ""
2637 , " To apply the Apache License to your work, attach the following"
2638 , " boilerplate notice, with the fields enclosed by brackets \"[]\""
2639 , " replaced with your own identifying information. (Don't include"
2640 , " the brackets!) The text should be enclosed in the appropriate"
2641 , " comment syntax for the file format. We also recommend that a"
2642 , " file or class name and description of purpose be included on the"
2643 , " same \"printed page\" as the copyright notice for easier"
2644 , " identification within third-party archives."
2645 , ""
2646 , " Copyright [yyyy] [name of copyright owner]"
2647 , ""
2648 , " Licensed under the Apache License, Version 2.0 (the \"License\");"
2649 , " you may not use this file except in compliance with the License."
2650 , " You may obtain a copy of the License at"
2651 , ""
2652 , " http://www.apache.org/licenses/LICENSE-2.0"
2653 , ""
2654 , " Unless required by applicable law or agreed to in writing, software"
2655 , " distributed under the License is distributed on an \"AS IS\" BASIS,"
2656 , " WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied."
2657 , " See the License for the specific language governing permissions and"
2658 , " limitations under the License."
2659 ]
2660
2661 mit :: String -> String -> License
2662 mit authors year = unlines
2663 [ "Copyright (c) " ++ year ++ " " ++ authors
2664 , ""
2665 , "Permission is hereby granted, free of charge, to any person obtaining"
2666 , "a copy of this software and associated documentation files (the"
2667 , "\"Software\"), to deal in the Software without restriction, including"
2668 , "without limitation the rights to use, copy, modify, merge, publish,"
2669 , "distribute, sublicense, and/or sell copies of the Software, and to"
2670 , "permit persons to whom the Software is furnished to do so, subject to"
2671 , "the following conditions:"
2672 , ""
2673 , "The above copyright notice and this permission notice shall be included"
2674 , "in all copies or substantial portions of the Software."
2675 , ""
2676 , "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,"
2677 , "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF"
2678 , "MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT."
2679 , "IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY"
2680 , "CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,"
2681 , "TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE"
2682 , "SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
2683 ]
2684
2685 mpl20 :: License
2686 mpl20 = unlines
2687 [ "Mozilla Public License Version 2.0"
2688 , "=================================="
2689 , ""
2690 , "1. Definitions"
2691 , "--------------"
2692 , ""
2693 , "1.1. \"Contributor\""
2694 , " means each individual or legal entity that creates, contributes to"
2695 , " the creation of, or owns Covered Software."
2696 , ""
2697 , "1.2. \"Contributor Version\""
2698 , " means the combination of the Contributions of others (if any) used"
2699 , " by a Contributor and that particular Contributor's Contribution."
2700 , ""
2701 , "1.3. \"Contribution\""
2702 , " means Covered Software of a particular Contributor."
2703 , ""
2704 , "1.4. \"Covered Software\""
2705 , " means Source Code Form to which the initial Contributor has attached"
2706 , " the notice in Exhibit A, the Executable Form of such Source Code"
2707 , " Form, and Modifications of such Source Code Form, in each case"
2708 , " including portions thereof."
2709 , ""
2710 , "1.5. \"Incompatible With Secondary Licenses\""
2711 , " means"
2712 , ""
2713 , " (a) that the initial Contributor has attached the notice described"
2714 , " in Exhibit B to the Covered Software; or"
2715 , ""
2716 , " (b) that the Covered Software was made available under the terms of"
2717 , " version 1.1 or earlier of the License, but not also under the"
2718 , " terms of a Secondary License."
2719 , ""
2720 , "1.6. \"Executable Form\""
2721 , " means any form of the work other than Source Code Form."
2722 , ""
2723 , "1.7. \"Larger Work\""
2724 , " means a work that combines Covered Software with other material, in"
2725 , " a separate file or files, that is not Covered Software."
2726 , ""
2727 , "1.8. \"License\""
2728 , " means this document."
2729 , ""
2730 , "1.9. \"Licensable\""
2731 , " means having the right to grant, to the maximum extent possible,"
2732 , " whether at the time of the initial grant or subsequently, any and"
2733 , " all of the rights conveyed by this License."
2734 , ""
2735 , "1.10. \"Modifications\""
2736 , " means any of the following:"
2737 , ""
2738 , " (a) any file in Source Code Form that results from an addition to,"
2739 , " deletion from, or modification of the contents of Covered"
2740 , " Software; or"
2741 , ""
2742 , " (b) any new file in Source Code Form that contains any Covered"
2743 , " Software."
2744 , ""
2745 , "1.11. \"Patent Claims\" of a Contributor"
2746 , " means any patent claim(s), including without limitation, method,"
2747 , " process, and apparatus claims, in any patent Licensable by such"
2748 , " Contributor that would be infringed, but for the grant of the"
2749 , " License, by the making, using, selling, offering for sale, having"
2750 , " made, import, or transfer of either its Contributions or its"
2751 , " Contributor Version."
2752 , ""
2753 , "1.12. \"Secondary License\""
2754 , " means either the GNU General Public License, Version 2.0, the GNU"
2755 , " Lesser General Public License, Version 2.1, the GNU Affero General"
2756 , " Public License, Version 3.0, or any later versions of those"
2757 , " licenses."
2758 , ""
2759 , "1.13. \"Source Code Form\""
2760 , " means the form of the work preferred for making modifications."
2761 , ""
2762 , "1.14. \"You\" (or \"Your\")"
2763 , " means an individual or a legal entity exercising rights under this"
2764 , " License. For legal entities, \"You\" includes any entity that"
2765 , " controls, is controlled by, or is under common control with You. For"
2766 , " purposes of this definition, \"control\" means (a) the power, direct"
2767 , " or indirect, to cause the direction or management of such entity,"
2768 , " whether by contract or otherwise, or (b) ownership of more than"
2769 , " fifty percent (50%) of the outstanding shares or beneficial"
2770 , " ownership of such entity."
2771 , ""
2772 , "2. License Grants and Conditions"
2773 , "--------------------------------"
2774 , ""
2775 , "2.1. Grants"
2776 , ""
2777 , "Each Contributor hereby grants You a world-wide, royalty-free,"
2778 , "non-exclusive license:"
2779 , ""
2780 , "(a) under intellectual property rights (other than patent or trademark)"
2781 , " Licensable by such Contributor to use, reproduce, make available,"
2782 , " modify, display, perform, distribute, and otherwise exploit its"
2783 , " Contributions, either on an unmodified basis, with Modifications, or"
2784 , " as part of a Larger Work; and"
2785 , ""
2786 , "(b) under Patent Claims of such Contributor to make, use, sell, offer"
2787 , " for sale, have made, import, and otherwise transfer either its"
2788 , " Contributions or its Contributor Version."
2789 , ""
2790 , "2.2. Effective Date"
2791 , ""
2792 , "The licenses granted in Section 2.1 with respect to any Contribution"
2793 , "become effective for each Contribution on the date the Contributor first"
2794 , "distributes such Contribution."
2795 , ""
2796 , "2.3. Limitations on Grant Scope"
2797 , ""
2798 , "The licenses granted in this Section 2 are the only rights granted under"
2799 , "this License. No additional rights or licenses will be implied from the"
2800 , "distribution or licensing of Covered Software under this License."
2801 , "Notwithstanding Section 2.1(b) above, no patent license is granted by a"
2802 , "Contributor:"
2803 , ""
2804 , "(a) for any code that a Contributor has removed from Covered Software;"
2805 , " or"
2806 , ""
2807 , "(b) for infringements caused by: (i) Your and any other third party's"
2808 , " modifications of Covered Software, or (ii) the combination of its"
2809 , " Contributions with other software (except as part of its Contributor"
2810 , " Version); or"
2811 , ""
2812 , "(c) under Patent Claims infringed by Covered Software in the absence of"
2813 , " its Contributions."
2814 , ""
2815 , "This License does not grant any rights in the trademarks, service marks,"
2816 , "or logos of any Contributor (except as may be necessary to comply with"
2817 , "the notice requirements in Section 3.4)."
2818 , ""
2819 , "2.4. Subsequent Licenses"
2820 , ""
2821 , "No Contributor makes additional grants as a result of Your choice to"
2822 , "distribute the Covered Software under a subsequent version of this"
2823 , "License (see Section 10.2) or under the terms of a Secondary License (if"
2824 , "permitted under the terms of Section 3.3)."
2825 , ""
2826 , "2.5. Representation"
2827 , ""
2828 , "Each Contributor represents that the Contributor believes its"
2829 , "Contributions are its original creation(s) or it has sufficient rights"
2830 , "to grant the rights to its Contributions conveyed by this License."
2831 , ""
2832 , "2.6. Fair Use"
2833 , ""
2834 , "This License is not intended to limit any rights You have under"
2835 , "applicable copyright doctrines of fair use, fair dealing, or other"
2836 , "equivalents."
2837 , ""
2838 , "2.7. Conditions"
2839 , ""
2840 , "Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted"
2841 , "in Section 2.1."
2842 , ""
2843 , "3. Responsibilities"
2844 , "-------------------"
2845 , ""
2846 , "3.1. Distribution of Source Form"
2847 , ""
2848 , "All distribution of Covered Software in Source Code Form, including any"
2849 , "Modifications that You create or to which You contribute, must be under"
2850 , "the terms of this License. You must inform recipients that the Source"
2851 , "Code Form of the Covered Software is governed by the terms of this"
2852 , "License, and how they can obtain a copy of this License. You may not"
2853 , "attempt to alter or restrict the recipients' rights in the Source Code"
2854 , "Form."
2855 , ""
2856 , "3.2. Distribution of Executable Form"
2857 , ""
2858 , "If You distribute Covered Software in Executable Form then:"
2859 , ""
2860 , "(a) such Covered Software must also be made available in Source Code"
2861 , " Form, as described in Section 3.1, and You must inform recipients of"
2862 , " the Executable Form how they can obtain a copy of such Source Code"
2863 , " Form by reasonable means in a timely manner, at a charge no more"
2864 , " than the cost of distribution to the recipient; and"
2865 , ""
2866 , "(b) You may distribute such Executable Form under the terms of this"
2867 , " License, or sublicense it under different terms, provided that the"
2868 , " license for the Executable Form does not attempt to limit or alter"
2869 , " the recipients' rights in the Source Code Form under this License."
2870 , ""
2871 , "3.3. Distribution of a Larger Work"
2872 , ""
2873 , "You may create and distribute a Larger Work under terms of Your choice,"
2874 , "provided that You also comply with the requirements of this License for"
2875 , "the Covered Software. If the Larger Work is a combination of Covered"
2876 , "Software with a work governed by one or more Secondary Licenses, and the"
2877 , "Covered Software is not Incompatible With Secondary Licenses, this"
2878 , "License permits You to additionally distribute such Covered Software"
2879 , "under the terms of such Secondary License(s), so that the recipient of"
2880 , "the Larger Work may, at their option, further distribute the Covered"
2881 , "Software under the terms of either this License or such Secondary"
2882 , "License(s)."
2883 , ""
2884 , "3.4. Notices"
2885 , ""
2886 , "You may not remove or alter the substance of any license notices"
2887 , "(including copyright notices, patent notices, disclaimers of warranty,"
2888 , "or limitations of liability) contained within the Source Code Form of"
2889 , "the Covered Software, except that You may alter any license notices to"
2890 , "the extent required to remedy known factual inaccuracies."
2891 , ""
2892 , "3.5. Application of Additional Terms"
2893 , ""
2894 , "You may choose to offer, and to charge a fee for, warranty, support,"
2895 , "indemnity or liability obligations to one or more recipients of Covered"
2896 , "Software. However, You may do so only on Your own behalf, and not on"
2897 , "behalf of any Contributor. You must make it absolutely clear that any"
2898 , "such warranty, support, indemnity, or liability obligation is offered by"
2899 , "You alone, and You hereby agree to indemnify every Contributor for any"
2900 , "liability incurred by such Contributor as a result of warranty, support,"
2901 , "indemnity or liability terms You offer. You may include additional"
2902 , "disclaimers of warranty and limitations of liability specific to any"
2903 , "jurisdiction."
2904 , ""
2905 , "4. Inability to Comply Due to Statute or Regulation"
2906 , "---------------------------------------------------"
2907 , ""
2908 , "If it is impossible for You to comply with any of the terms of this"
2909 , "License with respect to some or all of the Covered Software due to"
2910 , "statute, judicial order, or regulation then You must: (a) comply with"
2911 , "the terms of this License to the maximum extent possible; and (b)"
2912 , "describe the limitations and the code they affect. Such description must"
2913 , "be placed in a text file included with all distributions of the Covered"
2914 , "Software under this License. Except to the extent prohibited by statute"
2915 , "or regulation, such description must be sufficiently detailed for a"
2916 , "recipient of ordinary skill to be able to understand it."
2917 , ""
2918 , "5. Termination"
2919 , "--------------"
2920 , ""
2921 , "5.1. The rights granted under this License will terminate automatically"
2922 , "if You fail to comply with any of its terms. However, if You become"
2923 , "compliant, then the rights granted under this License from a particular"
2924 , "Contributor are reinstated (a) provisionally, unless and until such"
2925 , "Contributor explicitly and finally terminates Your grants, and (b) on an"
2926 , "ongoing basis, if such Contributor fails to notify You of the"
2927 , "non-compliance by some reasonable means prior to 60 days after You have"
2928 , "come back into compliance. Moreover, Your grants from a particular"
2929 , "Contributor are reinstated on an ongoing basis if such Contributor"
2930 , "notifies You of the non-compliance by some reasonable means, this is the"
2931 , "first time You have received notice of non-compliance with this License"
2932 , "from such Contributor, and You become compliant prior to 30 days after"
2933 , "Your receipt of the notice."
2934 , ""
2935 , "5.2. If You initiate litigation against any entity by asserting a patent"
2936 , "infringement claim (excluding declaratory judgment actions,"
2937 , "counter-claims, and cross-claims) alleging that a Contributor Version"
2938 , "directly or indirectly infringes any patent, then the rights granted to"
2939 , "You by any and all Contributors for the Covered Software under Section"
2940 , "2.1 of this License shall terminate."
2941 , ""
2942 , "5.3. In the event of termination under Sections 5.1 or 5.2 above, all"
2943 , "end user license agreements (excluding distributors and resellers) which"
2944 , "have been validly granted by You or Your distributors under this License"
2945 , "prior to termination shall survive termination."
2946 , ""
2947 , "************************************************************************"
2948 , "* *"
2949 , "* 6. Disclaimer of Warranty *"
2950 , "* ------------------------- *"
2951 , "* *"
2952 , "* Covered Software is provided under this License on an \"as is\" *"
2953 , "* basis, without warranty of any kind, either expressed, implied, or *"
2954 , "* statutory, including, without limitation, warranties that the *"
2955 , "* Covered Software is free of defects, merchantable, fit for a *"
2956 , "* particular purpose or non-infringing. The entire risk as to the *"
2957 , "* quality and performance of the Covered Software is with You. *"
2958 , "* Should any Covered Software prove defective in any respect, You *"
2959 , "* (not any Contributor) assume the cost of any necessary servicing, *"
2960 , "* repair, or correction. This disclaimer of warranty constitutes an *"
2961 , "* essential part of this License. No use of any Covered Software is *"
2962 , "* authorized under this License except under this disclaimer. *"
2963 , "* *"
2964 , "************************************************************************"
2965 , ""
2966 , "************************************************************************"
2967 , "* *"
2968 , "* 7. Limitation of Liability *"
2969 , "* -------------------------- *"
2970 , "* *"
2971 , "* Under no circumstances and under no legal theory, whether tort *"
2972 , "* (including negligence), contract, or otherwise, shall any *"
2973 , "* Contributor, or anyone who distributes Covered Software as *"
2974 , "* permitted above, be liable to You for any direct, indirect, *"
2975 , "* special, incidental, or consequential damages of any character *"
2976 , "* including, without limitation, damages for lost profits, loss of *"
2977 , "* goodwill, work stoppage, computer failure or malfunction, or any *"
2978 , "* and all other commercial damages or losses, even if such party *"
2979 , "* shall have been informed of the possibility of such damages. This *"
2980 , "* limitation of liability shall not apply to liability for death or *"
2981 , "* personal injury resulting from such party's negligence to the *"
2982 , "* extent applicable law prohibits such limitation. Some *"
2983 , "* jurisdictions do not allow the exclusion or limitation of *"
2984 , "* incidental or consequential damages, so this exclusion and *"
2985 , "* limitation may not apply to You. *"
2986 , "* *"
2987 , "************************************************************************"
2988 , ""
2989 , "8. Litigation"
2990 , "-------------"
2991 , ""
2992 , "Any litigation relating to this License may be brought only in the"
2993 , "courts of a jurisdiction where the defendant maintains its principal"
2994 , "place of business and such litigation shall be governed by laws of that"
2995 , "jurisdiction, without reference to its conflict-of-law provisions."
2996 , "Nothing in this Section shall prevent a party's ability to bring"
2997 , "cross-claims or counter-claims."
2998 , ""
2999 , "9. Miscellaneous"
3000 , "----------------"
3001 , ""
3002 , "This License represents the complete agreement concerning the subject"
3003 , "matter hereof. If any provision of this License is held to be"
3004 , "unenforceable, such provision shall be reformed only to the extent"
3005 , "necessary to make it enforceable. Any law or regulation which provides"
3006 , "that the language of a contract shall be construed against the drafter"
3007 , "shall not be used to construe this License against a Contributor."
3008 , ""
3009 , "10. Versions of the License"
3010 , "---------------------------"
3011 , ""
3012 , "10.1. New Versions"
3013 , ""
3014 , "Mozilla Foundation is the license steward. Except as provided in Section"
3015 , "10.3, no one other than the license steward has the right to modify or"
3016 , "publish new versions of this License. Each version will be given a"
3017 , "distinguishing version number."
3018 , ""
3019 , "10.2. Effect of New Versions"
3020 , ""
3021 , "You may distribute the Covered Software under the terms of the version"
3022 , "of the License under which You originally received the Covered Software,"
3023 , "or under the terms of any subsequent version published by the license"
3024 , "steward."
3025 , ""
3026 , "10.3. Modified Versions"
3027 , ""
3028 , "If you create software not governed by this License, and you want to"
3029 , "create a new license for such software, you may create and use a"
3030 , "modified version of this License if you rename the license and remove"
3031 , "any references to the name of the license steward (except to note that"
3032 , "such modified license differs from this License)."
3033 , ""
3034 , "10.4. Distributing Source Code Form that is Incompatible With Secondary"
3035 , "Licenses"
3036 , ""
3037 , "If You choose to distribute Source Code Form that is Incompatible With"
3038 , "Secondary Licenses under the terms of this version of the License, the"
3039 , "notice described in Exhibit B of this License must be attached."
3040 , ""
3041 , "Exhibit A - Source Code Form License Notice"
3042 , "-------------------------------------------"
3043 , ""
3044 , " This Source Code Form is subject to the terms of the Mozilla Public"
3045 , " License, v. 2.0. If a copy of the MPL was not distributed with this"
3046 , " file, You can obtain one at http://mozilla.org/MPL/2.0/."
3047 , ""
3048 , "If it is not possible or desirable to put the notice in a particular"
3049 , "file, then You may include the notice in a location (such as a LICENSE"
3050 , "file in a relevant directory) where a recipient would be likely to look"
3051 , "for such a notice."
3052 , ""
3053 , "You may add additional accurate notices of copyright ownership."
3054 , ""
3055 , "Exhibit B - \"Incompatible With Secondary Licenses\" Notice"
3056 , "---------------------------------------------------------"
3057 , ""
3058 , " This Source Code Form is \"Incompatible With Secondary Licenses\", as"
3059 , " defined by the Mozilla Public License, v. 2.0."
3060 ]
3061
3062 isc :: String -> String -> License
3063 isc authors year = unlines
3064 [ "Copyright (c) " ++ year ++ " " ++ authors
3065 , ""
3066 , "Permission to use, copy, modify, and/or distribute this software for any purpose"
3067 , "with or without fee is hereby granted, provided that the above copyright notice"
3068 , "and this permission notice appear in all copies."
3069 , ""
3070 , "THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH"
3071 , "REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND"
3072 , "FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,"
3073 , "INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS"
3074 , "OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER"
3075 , "TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF"
3076 , "THIS SOFTWARE."
3077 ]