|
1 Copyright (c) 1984 through 2008, William LeFebvre |
|
2 All rights reserved. |
|
3 |
|
4 Redistribution and use in source and binary forms, with or without |
|
5 modification, are permitted provided that the following conditions |
|
6 are met: |
|
7 |
|
8 * Redistributions of source code must retain the above copyright |
|
9 notice, this list of conditions and the following disclaimer. |
|
10 |
|
11 * Redistributions in binary form must reproduce the above |
|
12 copyright notice, this list of conditions and the following disclaimer |
|
13 in the documentation and/or other materials provided with the |
|
14 distribution. |
|
15 |
|
16 * Neither the name of William LeFebvre nor the names of other |
|
17 contributors may be used to endorse or promote products derived from |
|
18 this software without specific prior written permission. |
|
19 |
|
20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
21 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|
22 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
|
23 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
|
24 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
25 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
26 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
|
27 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
28 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
29 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
30 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
31 |
|
32 ============================================================================== |
|
33 |
|
34 Apache License, Version 2.0 |
|
35 |
|
36 Apache License |
|
37 Version 2.0, January 2004 |
|
38 http://www.apache.org/licenses/ |
|
39 |
|
40 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
|
41 |
|
42 1. Definitions. |
|
43 |
|
44 "License" shall mean the terms and conditions for use, reproduction, |
|
45 and distribution as defined by Sections 1 through 9 of this document. |
|
46 |
|
47 "Licensor" shall mean the copyright owner or entity authorized by the |
|
48 copyright owner that is granting the License. |
|
49 |
|
50 "Legal Entity" shall mean the union of the acting entity and all other |
|
51 entities that control, are controlled by, or are under common control |
|
52 with that entity. For the purposes of this definition, "control" means |
|
53 (i) the power, direct or indirect, to cause the direction or management |
|
54 of such entity, whether by contract or otherwise, or (ii) ownership of |
|
55 fifty percent (50%) or more of the outstanding shares, or (iii) |
|
56 beneficial ownership of such entity. |
|
57 |
|
58 "You" (or "Your") shall mean an individual or Legal Entity exercising |
|
59 permissions granted by this License. |
|
60 |
|
61 "Source" form shall mean the preferred form for making modifications, |
|
62 including but not limited to software source code, documentation |
|
63 source, and configuration files. |
|
64 |
|
65 "Object" form shall mean any form resulting from mechanical |
|
66 transformation or translation of a Source form, including but not |
|
67 limited to compiled object code, generated documentation, and |
|
68 conversions to other media types. |
|
69 |
|
70 "Work" shall mean the work of authorship, whether in Source or Object |
|
71 form, made available under the License, as indicated by a copyright |
|
72 notice that is included in or attached to the work (an example is |
|
73 provided in the Appendix below). |
|
74 |
|
75 "Derivative Works" shall mean any work, whether in Source or Object |
|
76 form, that is based on (or derived from) the Work and for which the |
|
77 editorial revisions, annotations, elaborations, or other modifications |
|
78 represent, as a whole, an original work of authorship. For the purposes |
|
79 of this License, Derivative Works shall not include works that remain |
|
80 separable from, or merely link (or bind by name) to the interfaces of, |
|
81 the Work and Derivative Works thereof. |
|
82 |
|
83 "Contribution" shall mean any work of authorship, including the |
|
84 original version of the Work and any modifications or additions to that |
|
85 Work or Derivative Works thereof, that is intentionally submitted to |
|
86 Licensor for inclusion in the Work by the copyright owner or by an |
|
87 individual or Legal Entity authorized to submit on behalf of the |
|
88 copyright owner. For the purposes of this definition, "submitted" means |
|
89 any form of electronic, verbal, or written communication sent to the |
|
90 Licensor or its representatives, including but not limited to |
|
91 communication on electronic mailing lists, source code control systems, |
|
92 and issue tracking systems that are managed by, or on behalf of, the |
|
93 Licensor for the purpose of discussing and improving the Work, but |
|
94 excluding communication that is conspicuously marked or otherwise |
|
95 designated in writing by the copyright owner as "Not a Contribution." |
|
96 |
|
97 "Contributor" shall mean Licensor and any individual or Legal Entity on |
|
98 behalf of whom a Contribution has been received by Licensor and |
|
99 subsequently incorporated within the Work. |
|
100 |
|
101 2. Grant of Copyright License. Subject to the terms and conditions of |
|
102 this License, each Contributor hereby grants to You a perpetual, |
|
103 worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
|
104 copyright license to reproduce, prepare Derivative Works of, publicly |
|
105 display, publicly perform, sublicense, and distribute the Work and such |
|
106 Derivative Works in Source or Object form. |
|
107 |
|
108 3. Grant of Patent License. Subject to the terms and conditions of this |
|
109 License, each Contributor hereby grants to You a perpetual, worldwide, |
|
110 non-exclusive, no-charge, royalty-free, irrevocable (except as stated |
|
111 in this section) patent license to make, have made, use, offer to sell, |
|
112 sell, import, and otherwise transfer the Work, where such license |
|
113 applies only to those patent claims licensable by such Contributor that |
|
114 are necessarily infringed by their Contribution(s) alone or by |
|
115 combination of their Contribution(s) with the Work to which such |
|
116 Contribution(s) was submitted. If You institute patent litigation |
|
117 against any entity (including a cross-claim or counterclaim in a |
|
118 lawsuit) alleging that the Work or a Contribution incorporated within |
|
119 the Work constitutes direct or contributory patent infringement, then |
|
120 any patent licenses granted to You under this License for that Work |
|
121 shall terminate as of the date such litigation is filed. |
|
122 |
|
123 4. Redistribution. You may reproduce and distribute copies of the Work |
|
124 or Derivative Works thereof in any medium, with or without |
|
125 modifications, and in Source or Object form, provided that You meet the |
|
126 following conditions: |
|
127 |
|
128 1. You must give any other recipients of the Work or Derivative |
|
129 Works a copy of this License; and |
|
130 |
|
131 2. You must cause any modified files to carry prominent notices |
|
132 stating that You changed the files; and |
|
133 |
|
134 3. You must retain, in the Source form of any Derivative Works that |
|
135 You distribute, all copyright, patent, trademark, and attribution |
|
136 notices from the Source form of the Work, excluding those notices |
|
137 that do not pertain to any part of the Derivative Works; and |
|
138 |
|
139 4. If the Work includes a "NOTICE" text file as part of its |
|
140 distribution, then any Derivative Works that You distribute must |
|
141 include a readable copy of the attribution notices contained within |
|
142 such NOTICE file, excluding those notices that do not pertain to any |
|
143 part of the Derivative Works, in at least one of the following |
|
144 places: within a NOTICE text file distributed as part of the |
|
145 Derivative Works; within the Source form or documentation, if |
|
146 provided along with the Derivative Works; or, within a display |
|
147 generated by the Derivative Works, if and wherever such third-party |
|
148 notices normally appear. The contents of the NOTICE file are for |
|
149 informational purposes only and do not modify the License. You may |
|
150 add Your own attribution notices within Derivative Works that You |
|
151 distribute, alongside or as an addendum to the NOTICE text from the |
|
152 Work, provided that such additional attribution notices cannot be |
|
153 construed as modifying the License. |
|
154 |
|
155 You may add Your own copyright statement to Your modifications and may |
|
156 provide additional or different license terms and conditions for use, |
|
157 reproduction, or distribution of Your modifications, or for any such |
|
158 Derivative Works as a whole, provided Your use, reproduction, and |
|
159 distribution of the Work otherwise complies with the conditions stated |
|
160 in this License. |
|
161 |
|
162 5. Submission of Contributions. Unless You explicitly state otherwise, |
|
163 any Contribution intentionally submitted for inclusion in the Work by |
|
164 You to the Licensor shall be under the terms and conditions of this |
|
165 License, without any additional terms or conditions. Notwithstanding |
|
166 the above, nothing herein shall supersede or modify the terms of any |
|
167 separate license agreement you may have executed with Licensor |
|
168 regarding such Contributions. |
|
169 |
|
170 6. Trademarks. This License does not grant permission to use the trade |
|
171 names, trademarks, service marks, or product names of the Licensor, |
|
172 except as required for reasonable and customary use in describing the |
|
173 origin of the Work and reproducing the content of the NOTICE file. |
|
174 |
|
175 7. Disclaimer of Warranty. Unless required by applicable law or agreed |
|
176 to in writing, Licensor provides the Work (and each Contributor |
|
177 provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR |
|
178 CONDITIONS OF ANY KIND, either express or implied, including, without |
|
179 limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, |
|
180 MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely |
|
181 responsible for determining the appropriateness of using or |
|
182 redistributing the Work and assume any risks associated with Your |
|
183 exercise of permissions under this License. |
|
184 |
|
185 8. Limitation of Liability. In no event and under no legal theory, |
|
186 whether in tort (including negligence), contract, or otherwise, unless |
|
187 required by applicable law (such as deliberate and grossly negligent |
|
188 acts) or agreed to in writing, shall any Contributor be liable to You |
|
189 for damages, including any direct, indirect, special, incidental, or |
|
190 consequential damages of any character arising as a result of this |
|
191 License or out of the use or inability to use the Work (including but |
|
192 not limited to damages for loss of goodwill, work stoppage, computer |
|
193 failure or malfunction, or any and all other commercial damages or |
|
194 losses), even if such Contributor has been advised of the possibility |
|
195 of such damages. |
|
196 |
|
197 9. Accepting Warranty or Additional Liability. While redistributing the |
|
198 Work or Derivative Works thereof, You may choose to offer, and charge a |
|
199 fee for, acceptance of support, warranty, indemnity, or other liability |
|
200 obligations and/or rights consistent with this License. However, in |
|
201 accepting such obligations, You may act only on Your own behalf and on |
|
202 Your sole responsibility, not on behalf of any other Contributor, and |
|
203 only if You agree to indemnify, defend, and hold each Contributor |
|
204 harmless for any liability incurred by, or claims asserted against, |
|
205 such Contributor by reason of your accepting any such warranty or |
|
206 additional liability. |
|
207 |
|
208 END OF TERMS AND CONDITIONS |