6
6
Upstream Author: The Mozilla Project.
8
8
The NSPR library is licensed under the terms of the Mozilla Public License
9
version 1.1 or, at your option, under the terms of the GNU General Public
10
License version 2 or subsequent, or the terms of the GNU Lesser General
11
Public License version 2.1 or subsequent.
13
11
The original code is copyright (c) 1998-2000 Netscape Communications
16
On Debian systems, the complete text of the GNU General Public
17
License can be found in the file `/usr/share/common-licenses/GPL' ;
18
the complete text of the GNU Lesser General Public License can be
19
found in the file `/usr/share/common-licenses/LGPL'.
21
The complete text of the Mozilla Public License can be found below.
23
MOZILLA PUBLIC LICENSE
30
1.0.1. "Commercial Use" means distribution or otherwise making the
31
Covered Code available to a third party.
33
1.1. "Contributor" means each entity that creates or contributes to
34
the creation of Modifications.
36
1.2. "Contributor Version" means the combination of the Original
37
Code, prior Modifications used by a Contributor, and the Modifications
38
made by that particular Contributor.
40
1.3. "Covered Code" means the Original Code or Modifications or the
41
combination of the Original Code and Modifications, in each case
42
including portions thereof.
44
1.4. "Electronic Distribution Mechanism" means a mechanism generally
45
accepted in the software development community for the electronic
48
1.5. "Executable" means Covered Code in any form other than Source
51
1.6. "Initial Developer" means the individual or entity identified
52
as the Initial Developer in the Source Code notice required by Exhibit
55
1.7. "Larger Work" means a work which combines Covered Code or
56
portions thereof with code not governed by the terms of this License.
58
1.8. "License" means this document.
60
1.8.1. "Licensable" means having the right to grant, to the maximum
61
extent possible, whether at the time of the initial grant or
62
subsequently acquired, any and all of the rights conveyed herein.
64
1.9. "Modifications" means any addition to or deletion from the
65
substance or structure of either the Original Code or any previous
66
Modifications. When Covered Code is released as a series of files, a
68
A. Any addition to or deletion from the contents of a file
69
containing Original Code or previous Modifications.
71
B. Any new file that contains any part of the Original Code or
72
previous Modifications.
74
1.10. "Original Code" means Source Code of computer software code
75
which is described in the Source Code notice required by Exhibit A as
76
Original Code, and which, at the time of its release under this
77
License is not already Covered Code governed by this License.
79
1.10.1. "Patent Claims" means any patent claim(s), now owned or
80
hereafter acquired, including without limitation, method, process,
81
and apparatus claims, in any patent Licensable by grantor.
83
1.11. "Source Code" means the preferred form of the Covered Code for
84
making modifications to it, including all modules it contains, plus
85
any associated interface definition files, scripts used to control
86
compilation and installation of an Executable, or source code
87
differential comparisons against either the Original Code or another
88
well known, available Covered Code of the Contributor's choice. The
89
Source Code can be in a compressed or archival form, provided the
90
appropriate decompression or de-archiving software is widely available
93
1.12. "You" (or "Your") means an individual or a legal entity
94
exercising rights under, and complying with all of the terms of, this
95
License or a future version of this License issued under Section 6.1.
96
For legal entities, "You" includes any entity which controls, is
97
controlled by, or is under common control with You. For purposes of
98
this definition, "control" means (a) the power, direct or indirect,
99
to cause the direction or management of such entity, whether by
100
contract or otherwise, or (b) ownership of more than fifty percent
101
(50%) of the outstanding shares or beneficial ownership of such
104
2. Source Code License.
106
2.1. The Initial Developer Grant.
107
The Initial Developer hereby grants You a world-wide, royalty-free,
108
non-exclusive license, subject to third party intellectual property
110
(a) under intellectual property rights (other than patent or
111
trademark) Licensable by Initial Developer to use, reproduce,
112
modify, display, perform, sublicense and distribute the Original
113
Code (or portions thereof) with or without Modifications, and/or
114
as part of a Larger Work; and
116
(b) under Patents Claims infringed by the making, using or
117
selling of Original Code, to make, have made, use, practice,
118
sell, and offer for sale, and/or otherwise dispose of the
119
Original Code (or portions thereof).
121
(c) the licenses granted in this Section 2.1(a) and (b) are
122
effective on the date Initial Developer first distributes
123
Original Code under the terms of this License.
125
(d) Notwithstanding Section 2.1(b) above, no patent license is
126
granted: 1) for code that You delete from the Original Code; 2)
127
separate from the Original Code; or 3) for infringements caused
128
by: i) the modification of the Original Code or ii) the
129
combination of the Original Code with other software or devices.
131
2.2. Contributor Grant.
132
Subject to third party intellectual property claims, each Contributor
133
hereby grants You a world-wide, royalty-free, non-exclusive license
135
(a) under intellectual property rights (other than patent or
136
trademark) Licensable by Contributor, to use, reproduce, modify,
137
display, perform, sublicense and distribute the Modifications
138
created by such Contributor (or portions thereof) either on an
139
unmodified basis, with other Modifications, as Covered Code
140
and/or as part of a Larger Work; and
142
(b) under Patent Claims infringed by the making, using, or
143
selling of Modifications made by that Contributor either alone
144
and/or in combination with its Contributor Version (or portions
145
of such combination), to make, use, sell, offer for sale, have
146
made, and/or otherwise dispose of: 1) Modifications made by that
147
Contributor (or portions thereof); and 2) the combination of
148
Modifications made by that Contributor with its Contributor
149
Version (or portions of such combination).
151
(c) the licenses granted in Sections 2.2(a) and 2.2(b) are
152
effective on the date Contributor first makes Commercial Use of
155
(d) Notwithstanding Section 2.2(b) above, no patent license is
156
granted: 1) for any code that Contributor has deleted from the
157
Contributor Version; 2) separate from the Contributor Version;
158
3) for infringements caused by: i) third party modifications of
159
Contributor Version or ii) the combination of Modifications made
160
by that Contributor with other software (except as part of the
161
Contributor Version) or other devices; or 4) under Patent Claims
162
infringed by Covered Code in the absence of Modifications made by
165
3. Distribution Obligations.
167
3.1. Application of License.
168
The Modifications which You create or to which You contribute are
169
governed by the terms of this License, including without limitation
170
Section 2.2. The Source Code version of Covered Code may be
171
distributed only under the terms of this License or a future version
172
of this License released under Section 6.1, and You must include a
173
copy of this License with every copy of the Source Code You
174
distribute. You may not offer or impose any terms on any Source Code
175
version that alters or restricts the applicable version of this
176
License or the recipients' rights hereunder. However, You may include
177
an additional document offering the additional rights described in
180
3.2. Availability of Source Code.
181
Any Modification which You create or to which You contribute must be
182
made available in Source Code form under the terms of this License
183
either on the same media as an Executable version or via an accepted
184
Electronic Distribution Mechanism to anyone to whom you made an
185
Executable version available; and if made available via Electronic
186
Distribution Mechanism, must remain available for at least twelve (12)
187
months after the date it initially became available, or at least six
188
(6) months after a subsequent version of that particular Modification
189
has been made available to such recipients. You are responsible for
190
ensuring that the Source Code version remains available even if the
191
Electronic Distribution Mechanism is maintained by a third party.
193
3.3. Description of Modifications.
194
You must cause all Covered Code to which You contribute to contain a
195
file documenting the changes You made to create that Covered Code and
196
the date of any change. You must include a prominent statement that
197
the Modification is derived, directly or indirectly, from Original
198
Code provided by the Initial Developer and including the name of the
199
Initial Developer in (a) the Source Code, and (b) in any notice in an
200
Executable version or related documentation in which You describe the
201
origin or ownership of the Covered Code.
203
3.4. Intellectual Property Matters
204
(a) Third Party Claims.
205
If Contributor has knowledge that a license under a third party's
206
intellectual property rights is required to exercise the rights
207
granted by such Contributor under Sections 2.1 or 2.2,
208
Contributor must include a text file with the Source Code
209
distribution titled "LEGAL" which describes the claim and the
210
party making the claim in sufficient detail that a recipient will
211
know whom to contact. If Contributor obtains such knowledge after
212
the Modification is made available as described in Section 3.2,
213
Contributor shall promptly modify the LEGAL file in all copies
214
Contributor makes available thereafter and shall take other steps
215
(such as notifying appropriate mailing lists or newsgroups)
216
reasonably calculated to inform those who received the Covered
217
Code that new knowledge has been obtained.
219
(b) Contributor APIs.
220
If Contributor's Modifications include an application programming
221
interface and Contributor has knowledge of patent licenses which
222
are reasonably necessary to implement that API, Contributor must
223
also include this information in the LEGAL file.
226
Contributor represents that, except as disclosed pursuant to
227
Section 3.4(a) above, Contributor believes that Contributor's
228
Modifications are Contributor's original creation(s) and/or
229
Contributor has sufficient rights to grant the rights conveyed by
232
3.5. Required Notices.
233
You must duplicate the notice in Exhibit A in each file of the Source
234
Code. If it is not possible to put such notice in a particular Source
235
Code file due to its structure, then You must include such notice in a
236
location (such as a relevant directory) where a user would be likely
237
to look for such a notice. If You created one or more Modification(s)
238
You may add your name as a Contributor to the notice described in
239
Exhibit A. You must also duplicate this License in any documentation
240
for the Source Code where You describe recipients' rights or ownership
241
rights relating to Covered Code. You may choose to offer, and to
242
charge a fee for, warranty, support, indemnity or liability
243
obligations to one or more recipients of Covered Code. However, You
244
may do so only on Your own behalf, and not on behalf of the Initial
245
Developer or any Contributor. You must make it absolutely clear than
246
any such warranty, support, indemnity or liability obligation is
247
offered by You alone, and You hereby agree to indemnify the Initial
248
Developer and every Contributor for any liability incurred by the
249
Initial Developer or such Contributor as a result of warranty,
250
support, indemnity or liability terms You offer.
252
3.6. Distribution of Executable Versions.
253
You may distribute Covered Code in Executable form only if the
254
requirements of Section 3.1-3.5 have been met for that Covered Code,
255
and if You include a notice stating that the Source Code version of
256
the Covered Code is available under the terms of this License,
257
including a description of how and where You have fulfilled the
258
obligations of Section 3.2. The notice must be conspicuously included
259
in any notice in an Executable version, related documentation or
260
collateral in which You describe recipients' rights relating to the
261
Covered Code. You may distribute the Executable version of Covered
262
Code or ownership rights under a license of Your choice, which may
263
contain terms different from this License, provided that You are in
264
compliance with the terms of this License and that the license for the
265
Executable version does not attempt to limit or alter the recipient's
266
rights in the Source Code version from the rights set forth in this
267
License. If You distribute the Executable version under a different
268
license You must make it absolutely clear that any terms which differ
269
from this License are offered by You alone, not by the Initial
270
Developer or any Contributor. You hereby agree to indemnify the
271
Initial Developer and every Contributor for any liability incurred by
272
the Initial Developer or such Contributor as a result of any such
276
You may create a Larger Work by combining Covered Code with other code
277
not governed by the terms of this License and distribute the Larger
278
Work as a single product. In such a case, You must make sure the
279
requirements of this License are fulfilled for the Covered Code.
281
4. Inability to Comply Due to Statute or Regulation.
283
If it is impossible for You to comply with any of the terms of this
284
License with respect to some or all of the Covered Code due to
285
statute, judicial order, or regulation then You must: (a) comply with
286
the terms of this License to the maximum extent possible; and (b)
287
describe the limitations and the code they affect. Such description
288
must be included in the LEGAL file described in Section 3.4 and must
289
be included with all distributions of the Source Code. Except to the
290
extent prohibited by statute or regulation, such description must be
291
sufficiently detailed for a recipient of ordinary skill to be able to
294
5. Application of this License.
296
This License applies to code to which the Initial Developer has
297
attached the notice in Exhibit A and to related Covered Code.
299
6. Versions of the License.
302
Netscape Communications Corporation ("Netscape") may publish revised
303
and/or new versions of the License from time to time. Each version
304
will be given a distinguishing version number.
306
6.2. Effect of New Versions.
307
Once Covered Code has been published under a particular version of the
308
License, You may always continue to use it under the terms of that
309
version. You may also choose to use such Covered Code under the terms
310
of any subsequent version of the License published by Netscape. No one
311
other than Netscape has the right to modify the terms applicable to
312
Covered Code created under this License.
314
6.3. Derivative Works.
315
If You create or use a modified version of this License (which you may
316
only do in order to apply it to code which is not already Covered Code
317
governed by this License), You must (a) rename Your license so that
318
the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
319
"MPL", "NPL" or any confusingly similar phrase do not appear in your
320
license (except to note that your license differs from this License)
321
and (b) otherwise make it clear that Your version of the license
322
contains terms which differ from the Mozilla Public License and
323
Netscape Public License. (Filling in the name of the Initial
324
Developer, Original Code or Contributor in the notice described in
325
Exhibit A shall not of themselves be deemed to be modifications of
328
7. DISCLAIMER OF WARRANTY.
330
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
331
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
332
WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
333
DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
334
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
335
IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
336
YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
337
COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
338
OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
339
ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
343
8.1. This License and the rights granted hereunder will terminate
344
automatically if You fail to comply with terms herein and fail to cure
345
such breach within 30 days of becoming aware of the breach. All
346
sublicenses to the Covered Code which are properly granted shall
347
survive any termination of this License. Provisions which, by their
348
nature, must remain in effect beyond the termination of this License
351
8.2. If You initiate litigation by asserting a patent infringement
352
claim (excluding declatory judgment actions) against Initial Developer
353
or a Contributor (the Initial Developer or Contributor against whom
354
You file such action is referred to as "Participant") alleging that:
356
(a) such Participant's Contributor Version directly or indirectly
357
infringes any patent, then any and all rights granted by such
358
Participant to You under Sections 2.1 and/or 2.2 of this License
359
shall, upon 60 days notice from Participant terminate prospectively,
360
unless if within 60 days after receipt of notice You either: (i)
361
agree in writing to pay Participant a mutually agreeable reasonable
362
royalty for Your past and future use of Modifications made by such
363
Participant, or (ii) withdraw Your litigation claim with respect to
364
the Contributor Version against such Participant. If within 60 days
365
of notice, a reasonable royalty and payment arrangement are not
366
mutually agreed upon in writing by the parties or the litigation claim
367
is not withdrawn, the rights granted by Participant to You under
368
Sections 2.1 and/or 2.2 automatically terminate at the expiration of
369
the 60 day notice period specified above.
371
(b) any software, hardware, or device, other than such Participant's
372
Contributor Version, directly or indirectly infringes any patent, then
373
any rights granted to You by such Participant under Sections 2.1(b)
374
and 2.2(b) are revoked effective as of the date You first made, used,
375
sold, distributed, or had made, Modifications made by that
378
8.3. If You assert a patent infringement claim against Participant
379
alleging that such Participant's Contributor Version directly or
380
indirectly infringes any patent where such claim is resolved (such as
381
by license or settlement) prior to the initiation of patent
382
infringement litigation, then the reasonable value of the licenses
383
granted by such Participant under Sections 2.1 or 2.2 shall be taken
384
into account in determining the amount or value of any payment or
387
8.4. In the event of termination under Sections 8.1 or 8.2 above,
388
all end user license agreements (excluding distributors and resellers)
389
which have been validly granted by You or any distributor hereunder
390
prior to termination shall survive termination.
392
9. LIMITATION OF LIABILITY.
394
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
395
(INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
396
DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
397
OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
398
ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
399
CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
400
WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
401
COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
402
INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
403
LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
404
RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
405
PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
406
EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
407
THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
409
10. U.S. GOVERNMENT END USERS.
411
The Covered Code is a "commercial item," as that term is defined in
412
48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
413
software" and "commercial computer software documentation," as such
414
terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
415
C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
416
all U.S. Government End Users acquire Covered Code with only those
417
rights set forth herein.
421
This License represents the complete agreement concerning subject
422
matter hereof. If any provision of this License is held to be
423
unenforceable, such provision shall be reformed only to the extent
424
necessary to make it enforceable. This License shall be governed by
425
California law provisions (except to the extent applicable law, if
426
any, provides otherwise), excluding its conflict-of-law provisions.
427
With respect to disputes in which at least one party is a citizen of,
428
or an entity chartered or registered to do business in the United
429
States of America, any litigation relating to this License shall be
430
subject to the jurisdiction of the Federal Courts of the Northern
431
District of California, with venue lying in Santa Clara County,
432
California, with the losing party responsible for costs, including
433
without limitation, court costs and reasonable attorneys' fees and
434
expenses. The application of the United Nations Convention on
435
Contracts for the International Sale of Goods is expressly excluded.
436
Any law or regulation which provides that the language of a contract
437
shall be construed against the drafter shall not apply to this
440
12. RESPONSIBILITY FOR CLAIMS.
442
As between Initial Developer and the Contributors, each party is
443
responsible for claims and damages arising, directly or indirectly,
444
out of its utilization of rights under this License and You agree to
445
work with Initial Developer and Contributors to distribute such
446
responsibility on an equitable basis. Nothing herein is intended or
447
shall be deemed to constitute any admission of liability.
449
13. MULTIPLE-LICENSED CODE.
451
Initial Developer may designate portions of the Covered Code as
452
"Multiple-Licensed". "Multiple-Licensed" means that the Initial
453
Developer permits you to utilize portions of the Covered Code under
454
Your choice of the NPL or the alternative licenses, if any, specified
455
by the Initial Developer in the file described in Exhibit A.
457
EXHIBIT A -Mozilla Public License.
459
``The contents of this file are subject to the Mozilla Public License
460
Version 1.1 (the "License"); you may not use this file except in
461
compliance with the License. You may obtain a copy of the License at
462
http://www.mozilla.org/MPL/
464
Software distributed under the License is distributed on an "AS IS"
465
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
466
License for the specific language governing rights and limitations
469
The Original Code is ______________________________________.
471
The Initial Developer of the Original Code is ________________________.
472
Portions created by ______________________ are Copyright (C) ______
473
_______________________. All Rights Reserved.
475
Contributor(s): ______________________________________.
477
Alternatively, the contents of this file may be used under the terms
478
of the _____ license (the "[___] License"), in which case the
479
provisions of [______] License are applicable instead of those
480
above. If you wish to allow use of your version of this file only
481
under the terms of the [____] License and not to allow others to use
482
your version of this file under the MPL, indicate your decision by
483
deleting the provisions above and replace them with the notice and
484
other provisions required by the [___] License. If you do not delete
485
the provisions above, a recipient may use your version of this file
486
under either the MPL or the [___] License."
488
[NOTE: The text of this Exhibit A may differ slightly from the text of
489
the notices in the Source Code files of the Original Code. You should
490
use the text of this Exhibit A rather than the text found in the
491
Original Code Source Code for Your Modifications.]
493
----------------------------------------------------------------------
497
The Netscape Public License Version 1.1 ("NPL") consists of the
498
Mozilla Public License Version 1.1 with the following Amendments,
499
including Exhibit A-Netscape Public License. Files identified with
500
"Exhibit A-Netscape Public License" are governed by the Netscape
501
Public License Version 1.1.
503
Additional Terms applicable to the Netscape Public License.
505
These additional terms described in this Netscape Public
506
License -- Amendments shall apply to the Mozilla Communicator
507
client code and to all Covered Code under this License.
509
II. "Netscape's Branded Code" means Covered Code that Netscape
510
distributes and/or permits others to distribute under one or more
511
trademark(s) which are controlled by Netscape but which are not
512
licensed for use under this License.
514
III. Netscape and logo.
515
This License does not grant any rights to use the trademarks
516
"Netscape", the "Netscape N and horizon" logo or the "Netscape
517
lighthouse" logo, "Netcenter", "Gecko", "Java" or "JavaScript",
518
"Smart Browsing" even if such marks are included in the Original
519
Code or Modifications.
521
IV. Inability to Comply Due to Contractual Obligation.
522
Prior to licensing the Original Code under this License, Netscape
523
has licensed third party code for use in Netscape's Branded Code.
524
To the extent that Netscape is limited contractually from making
525
such third party code available under this License, Netscape may
526
choose to reintegrate such code into Covered Code without being
527
required to distribute such code in Source Code form, even if
528
such code would otherwise be considered "Modifications" under
531
V. Use of Modifications and Covered Code by Initial Developer.
533
The obligations of Section 3 apply to Netscape, except to
534
the extent specified in this Amendment, Section V.2 and V.3.
537
Netscape may include Covered Code in products other than the
538
Netscape's Branded Code which are released by Netscape
539
during the two (2) years following the release date of the
540
Original Code, without such additional products becoming
541
subject to the terms of this License, and may license such
542
additional products on different terms from those contained
545
V.3. Alternative Licensing.
546
Netscape may license the Source Code of Netscape's Branded
547
Code, including Modifications incorporated therein, without
548
such Netscape Branded Code becoming subject to the terms of
549
this License, and may license such Netscape Branded Code on
550
different terms from those contained in this License.
553
Notwithstanding the limitations of Section 11 above, the
554
provisions regarding litigation in Section 11(a), (b) and (c) of
555
the License shall apply to all disputes relating to this License.
557
EXHIBIT A-Netscape Public License.
559
"The contents of this file are subject to the Netscape Public
560
License Version 1.1 (the "License"); you may not use this file
561
except in compliance with the License. You may obtain a copy of
562
the License at http://www.mozilla.org/NPL/
564
Software distributed under the License is distributed on an "AS
565
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
566
implied. See the License for the specific language governing
567
rights and limitations under the License.
569
The Original Code is Mozilla Communicator client code, released
572
The Initial Developer of the Original Code is Netscape
573
Communications Corporation. Portions created by Netscape are
574
Copyright (C) 1998-1999 Netscape Communications Corporation. All
577
Contributor(s): ______________________________________.
579
Alternatively, the contents of this file may be used under the
580
terms of the _____ license (the "[___] License"), in which case
581
the provisions of [______] License are applicable instead of
582
those above. If you wish to allow use of your version of this
583
file only under the terms of the [____] License and not to allow
584
others to use your version of this file under the NPL, indicate
585
your decision by deleting the provisions above and replace them
586
with the notice and other provisions required by the [___]
587
License. If you do not delete the provisions above, a recipient
588
may use your version of this file under either the NPL or the
15
Mozilla Public License Version 2.0
16
==================================
22
means each individual or legal entity that creates, contributes to
23
the creation of, or owns Covered Software.
25
1.2. "Contributor Version"
26
means the combination of the Contributions of others (if any) used
27
by a Contributor and that particular Contributor's Contribution.
30
means Covered Software of a particular Contributor.
32
1.4. "Covered Software"
33
means Source Code Form to which the initial Contributor has attached
34
the notice in Exhibit A, the Executable Form of such Source Code
35
Form, and Modifications of such Source Code Form, in each case
36
including portions thereof.
38
1.5. "Incompatible With Secondary Licenses"
41
(a) that the initial Contributor has attached the notice described
42
in Exhibit B to the Covered Software; or
44
(b) that the Covered Software was made available under the terms of
45
version 1.1 or earlier of the License, but not also under the
46
terms of a Secondary License.
48
1.6. "Executable Form"
49
means any form of the work other than Source Code Form.
52
means a work that combines Covered Software with other material, in
53
a separate file or files, that is not Covered Software.
59
means having the right to grant, to the maximum extent possible,
60
whether at the time of the initial grant or subsequently, any and
61
all of the rights conveyed by this License.
64
means any of the following:
66
(a) any file in Source Code Form that results from an addition to,
67
deletion from, or modification of the contents of Covered
70
(b) any new file in Source Code Form that contains any Covered
73
1.11. "Patent Claims" of a Contributor
74
means any patent claim(s), including without limitation, method,
75
process, and apparatus claims, in any patent Licensable by such
76
Contributor that would be infringed, but for the grant of the
77
License, by the making, using, selling, offering for sale, having
78
made, import, or transfer of either its Contributions or its
81
1.12. "Secondary License"
82
means either the GNU General Public License, Version 2.0, the GNU
83
Lesser General Public License, Version 2.1, the GNU Affero General
84
Public License, Version 3.0, or any later versions of those
87
1.13. "Source Code Form"
88
means the form of the work preferred for making modifications.
90
1.14. "You" (or "Your")
91
means an individual or a legal entity exercising rights under this
92
License. For legal entities, "You" includes any entity that
93
controls, is controlled by, or is under common control with You. For
94
purposes of this definition, "control" means (a) the power, direct
95
or indirect, to cause the direction or management of such entity,
96
whether by contract or otherwise, or (b) ownership of more than
97
fifty percent (50%) of the outstanding shares or beneficial
98
ownership of such entity.
100
2. License Grants and Conditions
101
--------------------------------
105
Each Contributor hereby grants You a world-wide, royalty-free,
106
non-exclusive license:
108
(a) under intellectual property rights (other than patent or trademark)
109
Licensable by such Contributor to use, reproduce, make available,
110
modify, display, perform, distribute, and otherwise exploit its
111
Contributions, either on an unmodified basis, with Modifications, or
112
as part of a Larger Work; and
114
(b) under Patent Claims of such Contributor to make, use, sell, offer
115
for sale, have made, import, and otherwise transfer either its
116
Contributions or its Contributor Version.
120
The licenses granted in Section 2.1 with respect to any Contribution
121
become effective for each Contribution on the date the Contributor first
122
distributes such Contribution.
124
2.3. Limitations on Grant Scope
126
The licenses granted in this Section 2 are the only rights granted under
127
this License. No additional rights or licenses will be implied from the
128
distribution or licensing of Covered Software under this License.
129
Notwithstanding Section 2.1(b) above, no patent license is granted by a
132
(a) for any code that a Contributor has removed from Covered Software;
135
(b) for infringements caused by: (i) Your and any other third party's
136
modifications of Covered Software, or (ii) the combination of its
137
Contributions with other software (except as part of its Contributor
140
(c) under Patent Claims infringed by Covered Software in the absence of
143
This License does not grant any rights in the trademarks, service marks,
144
or logos of any Contributor (except as may be necessary to comply with
145
the notice requirements in Section 3.4).
147
2.4. Subsequent Licenses
149
No Contributor makes additional grants as a result of Your choice to
150
distribute the Covered Software under a subsequent version of this
151
License (see Section 10.2) or under the terms of a Secondary License (if
152
permitted under the terms of Section 3.3).
156
Each Contributor represents that the Contributor believes its
157
Contributions are its original creation(s) or it has sufficient rights
158
to grant the rights to its Contributions conveyed by this License.
162
This License is not intended to limit any rights You have under
163
applicable copyright doctrines of fair use, fair dealing, or other
168
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
174
3.1. Distribution of Source Form
176
All distribution of Covered Software in Source Code Form, including any
177
Modifications that You create or to which You contribute, must be under
178
the terms of this License. You must inform recipients that the Source
179
Code Form of the Covered Software is governed by the terms of this
180
License, and how they can obtain a copy of this License. You may not
181
attempt to alter or restrict the recipients' rights in the Source Code
184
3.2. Distribution of Executable Form
186
If You distribute Covered Software in Executable Form then:
188
(a) such Covered Software must also be made available in Source Code
189
Form, as described in Section 3.1, and You must inform recipients of
190
the Executable Form how they can obtain a copy of such Source Code
191
Form by reasonable means in a timely manner, at a charge no more
192
than the cost of distribution to the recipient; and
194
(b) You may distribute such Executable Form under the terms of this
195
License, or sublicense it under different terms, provided that the
196
license for the Executable Form does not attempt to limit or alter
197
the recipients' rights in the Source Code Form under this License.
199
3.3. Distribution of a Larger Work
201
You may create and distribute a Larger Work under terms of Your choice,
202
provided that You also comply with the requirements of this License for
203
the Covered Software. If the Larger Work is a combination of Covered
204
Software with a work governed by one or more Secondary Licenses, and the
205
Covered Software is not Incompatible With Secondary Licenses, this
206
License permits You to additionally distribute such Covered Software
207
under the terms of such Secondary License(s), so that the recipient of
208
the Larger Work may, at their option, further distribute the Covered
209
Software under the terms of either this License or such Secondary
214
You may not remove or alter the substance of any license notices
215
(including copyright notices, patent notices, disclaimers of warranty,
216
or limitations of liability) contained within the Source Code Form of
217
the Covered Software, except that You may alter any license notices to
218
the extent required to remedy known factual inaccuracies.
220
3.5. Application of Additional Terms
222
You may choose to offer, and to charge a fee for, warranty, support,
223
indemnity or liability obligations to one or more recipients of Covered
224
Software. However, You may do so only on Your own behalf, and not on
225
behalf of any Contributor. You must make it absolutely clear that any
226
such warranty, support, indemnity, or liability obligation is offered by
227
You alone, and You hereby agree to indemnify every Contributor for any
228
liability incurred by such Contributor as a result of warranty, support,
229
indemnity or liability terms You offer. You may include additional
230
disclaimers of warranty and limitations of liability specific to any
233
4. Inability to Comply Due to Statute or Regulation
234
---------------------------------------------------
236
If it is impossible for You to comply with any of the terms of this
237
License with respect to some or all of the Covered Software due to
238
statute, judicial order, or regulation then You must: (a) comply with
239
the terms of this License to the maximum extent possible; and (b)
240
describe the limitations and the code they affect. Such description must
241
be placed in a text file included with all distributions of the Covered
242
Software under this License. Except to the extent prohibited by statute
243
or regulation, such description must be sufficiently detailed for a
244
recipient of ordinary skill to be able to understand it.
249
5.1. The rights granted under this License will terminate automatically
250
if You fail to comply with any of its terms. However, if You become
251
compliant, then the rights granted under this License from a particular
252
Contributor are reinstated (a) provisionally, unless and until such
253
Contributor explicitly and finally terminates Your grants, and (b) on an
254
ongoing basis, if such Contributor fails to notify You of the
255
non-compliance by some reasonable means prior to 60 days after You have
256
come back into compliance. Moreover, Your grants from a particular
257
Contributor are reinstated on an ongoing basis if such Contributor
258
notifies You of the non-compliance by some reasonable means, this is the
259
first time You have received notice of non-compliance with this License
260
from such Contributor, and You become compliant prior to 30 days after
261
Your receipt of the notice.
263
5.2. If You initiate litigation against any entity by asserting a patent
264
infringement claim (excluding declaratory judgment actions,
265
counter-claims, and cross-claims) alleging that a Contributor Version
266
directly or indirectly infringes any patent, then the rights granted to
267
You by any and all Contributors for the Covered Software under Section
268
2.1 of this License shall terminate.
270
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
271
end user license agreements (excluding distributors and resellers) which
272
have been validly granted by You or Your distributors under this License
273
prior to termination shall survive termination.
275
************************************************************************
277
* 6. Disclaimer of Warranty *
278
* ------------------------- *
280
* Covered Software is provided under this License on an "as is" *
281
* basis, without warranty of any kind, either expressed, implied, or *
282
* statutory, including, without limitation, warranties that the *
283
* Covered Software is free of defects, merchantable, fit for a *
284
* particular purpose or non-infringing. The entire risk as to the *
285
* quality and performance of the Covered Software is with You. *
286
* Should any Covered Software prove defective in any respect, You *
287
* (not any Contributor) assume the cost of any necessary servicing, *
288
* repair, or correction. This disclaimer of warranty constitutes an *
289
* essential part of this License. No use of any Covered Software is *
290
* authorized under this License except under this disclaimer. *
292
************************************************************************
294
************************************************************************
296
* 7. Limitation of Liability *
297
* -------------------------- *
299
* Under no circumstances and under no legal theory, whether tort *
300
* (including negligence), contract, or otherwise, shall any *
301
* Contributor, or anyone who distributes Covered Software as *
302
* permitted above, be liable to You for any direct, indirect, *
303
* special, incidental, or consequential damages of any character *
304
* including, without limitation, damages for lost profits, loss of *
305
* goodwill, work stoppage, computer failure or malfunction, or any *
306
* and all other commercial damages or losses, even if such party *
307
* shall have been informed of the possibility of such damages. This *
308
* limitation of liability shall not apply to liability for death or *
309
* personal injury resulting from such party's negligence to the *
310
* extent applicable law prohibits such limitation. Some *
311
* jurisdictions do not allow the exclusion or limitation of *
312
* incidental or consequential damages, so this exclusion and *
313
* limitation may not apply to You. *
315
************************************************************************
320
Any litigation relating to this License may be brought only in the
321
courts of a jurisdiction where the defendant maintains its principal
322
place of business and such litigation shall be governed by laws of that
323
jurisdiction, without reference to its conflict-of-law provisions.
324
Nothing in this Section shall prevent a party's ability to bring
325
cross-claims or counter-claims.
330
This License represents the complete agreement concerning the subject
331
matter hereof. If any provision of this License is held to be
332
unenforceable, such provision shall be reformed only to the extent
333
necessary to make it enforceable. Any law or regulation which provides
334
that the language of a contract shall be construed against the drafter
335
shall not be used to construe this License against a Contributor.
337
10. Versions of the License
338
---------------------------
342
Mozilla Foundation is the license steward. Except as provided in Section
343
10.3, no one other than the license steward has the right to modify or
344
publish new versions of this License. Each version will be given a
345
distinguishing version number.
347
10.2. Effect of New Versions
349
You may distribute the Covered Software under the terms of the version
350
of the License under which You originally received the Covered Software,
351
or under the terms of any subsequent version published by the license
354
10.3. Modified Versions
356
If you create software not governed by this License, and you want to
357
create a new license for such software, you may create and use a
358
modified version of this License if you rename the license and remove
359
any references to the name of the license steward (except to note that
360
such modified license differs from this License).
362
10.4. Distributing Source Code Form that is Incompatible With Secondary
365
If You choose to distribute Source Code Form that is Incompatible With
366
Secondary Licenses under the terms of this version of the License, the
367
notice described in Exhibit B of this License must be attached.
369
Exhibit A - Source Code Form License Notice
370
-------------------------------------------
372
This Source Code Form is subject to the terms of the Mozilla Public
373
License, v. 2.0. If a copy of the MPL was not distributed with this
374
file, You can obtain one at http://mozilla.org/MPL/2.0/.
376
If it is not possible or desirable to put the notice in a particular
377
file, then You may include the notice in a location (such as a LICENSE
378
file in a relevant directory) where a recipient would be likely to look
381
You may add additional accurate notices of copyright ownership.
383
Exhibit B - "Incompatible With Secondary Licenses" Notice
384
---------------------------------------------------------
386
This Source Code Form is "Incompatible With Secondary Licenses", as
387
defined by the Mozilla Public License, v. 2.0.