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