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