|
1 Httplib2 Software License |
|
2 |
|
3 Copyright (c) 2006 by Joe Gregorio |
|
4 |
|
5 Permission is hereby granted, free of charge, to any person |
|
6 obtaining a copy of this software and associated documentation |
|
7 files (the "Software"), to deal in the Software without restriction, |
|
8 including without limitation the rights to use, copy, modify, merge, |
|
9 publish, distribute, sublicense, and/or sell copies of the Software, |
|
10 and to permit persons to whom the Software is furnished to do so, |
|
11 subject to the following conditions: |
|
12 |
|
13 The above copyright notice and this permission notice shall be |
|
14 included in all copies or substantial portions of the Software. |
|
15 |
|
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
17 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
18 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
19 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
|
20 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
|
21 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
|
23 SOFTWARE. |
|
24 |
|
25 -------------------------------------------------------------------------- |
|
26 |
|
27 # Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
|
28 # |
|
29 # The contents of this file are subject to the Mozilla Public License Version |
|
30 # 1.1 (the "License"); you may not use this file except in compliance with |
|
31 # the License. You may obtain a copy of the License at |
|
32 # http://www.mozilla.org/MPL/ |
|
33 # |
|
34 # Software distributed under the License is distributed on an "AS IS" basis, |
|
35 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
|
36 # for the specific language governing rights and limitations under the |
|
37 # License. |
|
38 # |
|
39 # The Original Code is the Netscape security libraries. |
|
40 # |
|
41 # The Initial Developer of the Original Code is |
|
42 # Netscape Communications Corporation. |
|
43 # Portions created by the Initial Developer are Copyright (C) 1994-2000 |
|
44 # the Initial Developer. All Rights Reserved. |
|
45 # |
|
46 # Contributor(s): |
|
47 # |
|
48 # Alternatively, the contents of this file may be used under the terms of |
|
49 # either the GNU General Public License Version 2 or later (the "GPL"), or |
|
50 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
|
51 # in which case the provisions of the GPL or the LGPL are applicable instead |
|
52 # of those above. If you wish to allow use of your version of this file only |
|
53 # under the terms of either the GPL or the LGPL, and not to allow others to |
|
54 # use your version of this file under the terms of the MPL, indicate your |
|
55 # decision by deleting the provisions above and replace them with the notice |
|
56 # and other provisions required by the GPL or the LGPL. If you do not delete |
|
57 # the provisions above, a recipient may use your version of this file under |
|
58 # the terms of any one of the MPL, the GPL or the LGPL. |
|
59 # |
|
60 |
|
61 Oracle chooses LGPLv2.1 |
|
62 |
|
63 -------------------------------------------------------------------------- |
|
64 |
|
65 GNU LESSER GENERAL PUBLIC LICENSE |
|
66 Version 2.1, February 1999 |
|
67 |
|
68 Copyright (C) 1991, 1999 Free Software Foundation, Inc. |
|
69 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
70 Everyone is permitted to copy and distribute verbatim copies |
|
71 of this license document, but changing it is not allowed. |
|
72 |
|
73 [This is the first released version of the Lesser GPL. It also counts |
|
74 as the successor of the GNU Library Public License, version 2, hence |
|
75 the version number 2.1.] |
|
76 |
|
77 Preamble |
|
78 |
|
79 The licenses for most software are designed to take away your |
|
80 freedom to share and change it. By contrast, the GNU General Public |
|
81 Licenses are intended to guarantee your freedom to share and change |
|
82 free software--to make sure the software is free for all its users. |
|
83 |
|
84 This license, the Lesser General Public License, applies to some |
|
85 specially designated software packages--typically libraries--of the |
|
86 Free Software Foundation and other authors who decide to use it. You |
|
87 can use it too, but we suggest you first think carefully about whether |
|
88 this license or the ordinary General Public License is the better |
|
89 strategy to use in any particular case, based on the explanations below. |
|
90 |
|
91 When we speak of free software, we are referring to freedom of use, |
|
92 not price. Our General Public Licenses are designed to make sure that |
|
93 you have the freedom to distribute copies of free software (and charge |
|
94 for this service if you wish); that you receive source code or can get |
|
95 it if you want it; that you can change the software and use pieces of |
|
96 it in new free programs; and that you are informed that you can do |
|
97 these things. |
|
98 |
|
99 To protect your rights, we need to make restrictions that forbid |
|
100 distributors to deny you these rights or to ask you to surrender these |
|
101 rights. These restrictions translate to certain responsibilities for |
|
102 you if you distribute copies of the library or if you modify it. |
|
103 |
|
104 For example, if you distribute copies of the library, whether gratis |
|
105 or for a fee, you must give the recipients all the rights that we gave |
|
106 you. You must make sure that they, too, receive or can get the source |
|
107 code. If you link other code with the library, you must provide |
|
108 complete object files to the recipients, so that they can relink them |
|
109 with the library after making changes to the library and recompiling |
|
110 it. And you must show them these terms so they know their rights. |
|
111 |
|
112 We protect your rights with a two-step method: (1) we copyright the |
|
113 library, and (2) we offer you this license, which gives you legal |
|
114 permission to copy, distribute and/or modify the library. |
|
115 |
|
116 To protect each distributor, we want to make it very clear that |
|
117 there is no warranty for the free library. Also, if the library is |
|
118 modified by someone else and passed on, the recipients should know |
|
119 that what they have is not the original version, so that the original |
|
120 author's reputation will not be affected by problems that might be |
|
121 introduced by others. |
|
122 |
|
123 Finally, software patents pose a constant threat to the existence of |
|
124 any free program. We wish to make sure that a company cannot |
|
125 effectively restrict the users of a free program by obtaining a |
|
126 restrictive license from a patent holder. Therefore, we insist that |
|
127 any patent license obtained for a version of the library must be |
|
128 consistent with the full freedom of use specified in this license. |
|
129 |
|
130 Most GNU software, including some libraries, is covered by the |
|
131 ordinary GNU General Public License. This license, the GNU Lesser |
|
132 General Public License, applies to certain designated libraries, and |
|
133 is quite different from the ordinary General Public License. We use |
|
134 this license for certain libraries in order to permit linking those |
|
135 libraries into non-free programs. |
|
136 |
|
137 When a program is linked with a library, whether statically or using |
|
138 a shared library, the combination of the two is legally speaking a |
|
139 combined work, a derivative of the original library. The ordinary |
|
140 General Public License therefore permits such linking only if the |
|
141 entire combination fits its criteria of freedom. The Lesser General |
|
142 Public License permits more lax criteria for linking other code with |
|
143 the library. |
|
144 |
|
145 We call this license the "Lesser" General Public License because it |
|
146 does Less to protect the user's freedom than the ordinary General |
|
147 Public License. It also provides other free software developers Less |
|
148 of an advantage over competing non-free programs. These disadvantages |
|
149 are the reason we use the ordinary General Public License for many |
|
150 libraries. However, the Lesser license provides advantages in certain |
|
151 special circumstances. |
|
152 |
|
153 For example, on rare occasions, there may be a special need to |
|
154 encourage the widest possible use of a certain library, so that it becomes |
|
155 a de-facto standard. To achieve this, non-free programs must be |
|
156 allowed to use the library. A more frequent case is that a free |
|
157 library does the same job as widely used non-free libraries. In this |
|
158 case, there is little to gain by limiting the free library to free |
|
159 software only, so we use the Lesser General Public License. |
|
160 |
|
161 In other cases, permission to use a particular library in non-free |
|
162 programs enables a greater number of people to use a large body of |
|
163 free software. For example, permission to use the GNU C Library in |
|
164 non-free programs enables many more people to use the whole GNU |
|
165 operating system, as well as its variant, the GNU/Linux operating |
|
166 system. |
|
167 |
|
168 Although the Lesser General Public License is Less protective of the |
|
169 users' freedom, it does ensure that the user of a program that is |
|
170 linked with the Library has the freedom and the wherewithal to run |
|
171 that program using a modified version of the Library. |
|
172 |
|
173 The precise terms and conditions for copying, distribution and |
|
174 modification follow. Pay close attention to the difference between a |
|
175 "work based on the library" and a "work that uses the library". The |
|
176 former contains code derived from the library, whereas the latter must |
|
177 be combined with the library in order to run. |
|
178 |
|
179 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|
180 |
|
181 0. This License Agreement applies to any software library or other |
|
182 program which contains a notice placed by the copyright holder or |
|
183 other authorized party saying it may be distributed under the terms of |
|
184 this Lesser General Public License (also called "this License"). |
|
185 Each licensee is addressed as "you". |
|
186 |
|
187 A "library" means a collection of software functions and/or data |
|
188 prepared so as to be conveniently linked with application programs |
|
189 (which use some of those functions and data) to form executables. |
|
190 |
|
191 The "Library", below, refers to any such software library or work |
|
192 which has been distributed under these terms. A "work based on the |
|
193 Library" means either the Library or any derivative work under |
|
194 copyright law: that is to say, a work containing the Library or a |
|
195 portion of it, either verbatim or with modifications and/or translated |
|
196 straightforwardly into another language. (Hereinafter, translation is |
|
197 included without limitation in the term "modification".) |
|
198 |
|
199 "Source code" for a work means the preferred form of the work for |
|
200 making modifications to it. For a library, complete source code means |
|
201 all the source code for all modules it contains, plus any associated |
|
202 interface definition files, plus the scripts used to control compilation |
|
203 and installation of the library. |
|
204 |
|
205 Activities other than copying, distribution and modification are not |
|
206 covered by this License; they are outside its scope. The act of |
|
207 running a program using the Library is not restricted, and output from |
|
208 such a program is covered only if its contents constitute a work based |
|
209 on the Library (independent of the use of the Library in a tool for |
|
210 writing it). Whether that is true depends on what the Library does |
|
211 and what the program that uses the Library does. |
|
212 |
|
213 1. You may copy and distribute verbatim copies of the Library's |
|
214 complete source code as you receive it, in any medium, provided that |
|
215 you conspicuously and appropriately publish on each copy an |
|
216 appropriate copyright notice and disclaimer of warranty; keep intact |
|
217 all the notices that refer to this License and to the absence of any |
|
218 warranty; and distribute a copy of this License along with the |
|
219 Library. |
|
220 |
|
221 You may charge a fee for the physical act of transferring a copy, |
|
222 and you may at your option offer warranty protection in exchange for a |
|
223 fee. |
|
224 |
|
225 2. You may modify your copy or copies of the Library or any portion |
|
226 of it, thus forming a work based on the Library, and copy and |
|
227 distribute such modifications or work under the terms of Section 1 |
|
228 above, provided that you also meet all of these conditions: |
|
229 |
|
230 a) The modified work must itself be a software library. |
|
231 |
|
232 b) You must cause the files modified to carry prominent notices |
|
233 stating that you changed the files and the date of any change. |
|
234 |
|
235 c) You must cause the whole of the work to be licensed at no |
|
236 charge to all third parties under the terms of this License. |
|
237 |
|
238 d) If a facility in the modified Library refers to a function or a |
|
239 table of data to be supplied by an application program that uses |
|
240 the facility, other than as an argument passed when the facility |
|
241 is invoked, then you must make a good faith effort to ensure that, |
|
242 in the event an application does not supply such function or |
|
243 table, the facility still operates, and performs whatever part of |
|
244 its purpose remains meaningful. |
|
245 |
|
246 (For example, a function in a library to compute square roots has |
|
247 a purpose that is entirely well-defined independent of the |
|
248 application. Therefore, Subsection 2d requires that any |
|
249 application-supplied function or table used by this function must |
|
250 be optional: if the application does not supply it, the square |
|
251 root function must still compute square roots.) |
|
252 |
|
253 These requirements apply to the modified work as a whole. If |
|
254 identifiable sections of that work are not derived from the Library, |
|
255 and can be reasonably considered independent and separate works in |
|
256 themselves, then this License, and its terms, do not apply to those |
|
257 sections when you distribute them as separate works. But when you |
|
258 distribute the same sections as part of a whole which is a work based |
|
259 on the Library, the distribution of the whole must be on the terms of |
|
260 this License, whose permissions for other licensees extend to the |
|
261 entire whole, and thus to each and every part regardless of who wrote |
|
262 it. |
|
263 |
|
264 Thus, it is not the intent of this section to claim rights or contest |
|
265 your rights to work written entirely by you; rather, the intent is to |
|
266 exercise the right to control the distribution of derivative or |
|
267 collective works based on the Library. |
|
268 |
|
269 In addition, mere aggregation of another work not based on the Library |
|
270 with the Library (or with a work based on the Library) on a volume of |
|
271 a storage or distribution medium does not bring the other work under |
|
272 the scope of this License. |
|
273 |
|
274 3. You may opt to apply the terms of the ordinary GNU General Public |
|
275 License instead of this License to a given copy of the Library. To do |
|
276 this, you must alter all the notices that refer to this License, so |
|
277 that they refer to the ordinary GNU General Public License, version 2, |
|
278 instead of to this License. (If a newer version than version 2 of the |
|
279 ordinary GNU General Public License has appeared, then you can specify |
|
280 that version instead if you wish.) Do not make any other change in |
|
281 these notices. |
|
282 |
|
283 Once this change is made in a given copy, it is irreversible for |
|
284 that copy, so the ordinary GNU General Public License applies to all |
|
285 subsequent copies and derivative works made from that copy. |
|
286 |
|
287 This option is useful when you wish to copy part of the code of |
|
288 the Library into a program that is not a library. |
|
289 |
|
290 4. You may copy and distribute the Library (or a portion or |
|
291 derivative of it, under Section 2) in object code or executable form |
|
292 under the terms of Sections 1 and 2 above provided that you accompany |
|
293 it with the complete corresponding machine-readable source code, which |
|
294 must be distributed under the terms of Sections 1 and 2 above on a |
|
295 medium customarily used for software interchange. |
|
296 |
|
297 If distribution of object code is made by offering access to copy |
|
298 from a designated place, then offering equivalent access to copy the |
|
299 source code from the same place satisfies the requirement to |
|
300 distribute the source code, even though third parties are not |
|
301 compelled to copy the source along with the object code. |
|
302 |
|
303 5. A program that contains no derivative of any portion of the |
|
304 Library, but is designed to work with the Library by being compiled or |
|
305 linked with it, is called a "work that uses the Library". Such a |
|
306 work, in isolation, is not a derivative work of the Library, and |
|
307 therefore falls outside the scope of this License. |
|
308 |
|
309 However, linking a "work that uses the Library" with the Library |
|
310 creates an executable that is a derivative of the Library (because it |
|
311 contains portions of the Library), rather than a "work that uses the |
|
312 library". The executable is therefore covered by this License. |
|
313 Section 6 states terms for distribution of such executables. |
|
314 |
|
315 When a "work that uses the Library" uses material from a header file |
|
316 that is part of the Library, the object code for the work may be a |
|
317 derivative work of the Library even though the source code is not. |
|
318 Whether this is true is especially significant if the work can be |
|
319 linked without the Library, or if the work is itself a library. The |
|
320 threshold for this to be true is not precisely defined by law. |
|
321 |
|
322 If such an object file uses only numerical parameters, data |
|
323 structure layouts and accessors, and small macros and small inline |
|
324 functions (ten lines or less in length), then the use of the object |
|
325 file is unrestricted, regardless of whether it is legally a derivative |
|
326 work. (Executables containing this object code plus portions of the |
|
327 Library will still fall under Section 6.) |
|
328 |
|
329 Otherwise, if the work is a derivative of the Library, you may |
|
330 distribute the object code for the work under the terms of Section 6. |
|
331 Any executables containing that work also fall under Section 6, |
|
332 whether or not they are linked directly with the Library itself. |
|
333 |
|
334 6. As an exception to the Sections above, you may also combine or |
|
335 link a "work that uses the Library" with the Library to produce a |
|
336 work containing portions of the Library, and distribute that work |
|
337 under terms of your choice, provided that the terms permit |
|
338 modification of the work for the customer's own use and reverse |
|
339 engineering for debugging such modifications. |
|
340 |
|
341 You must give prominent notice with each copy of the work that the |
|
342 Library is used in it and that the Library and its use are covered by |
|
343 this License. You must supply a copy of this License. If the work |
|
344 during execution displays copyright notices, you must include the |
|
345 copyright notice for the Library among them, as well as a reference |
|
346 directing the user to the copy of this License. Also, you must do one |
|
347 of these things: |
|
348 |
|
349 a) Accompany the work with the complete corresponding |
|
350 machine-readable source code for the Library including whatever |
|
351 changes were used in the work (which must be distributed under |
|
352 Sections 1 and 2 above); and, if the work is an executable linked |
|
353 with the Library, with the complete machine-readable "work that |
|
354 uses the Library", as object code and/or source code, so that the |
|
355 user can modify the Library and then relink to produce a modified |
|
356 executable containing the modified Library. (It is understood |
|
357 that the user who changes the contents of definitions files in the |
|
358 Library will not necessarily be able to recompile the application |
|
359 to use the modified definitions.) |
|
360 |
|
361 b) Use a suitable shared library mechanism for linking with the |
|
362 Library. A suitable mechanism is one that (1) uses at run time a |
|
363 copy of the library already present on the user's computer system, |
|
364 rather than copying library functions into the executable, and (2) |
|
365 will operate properly with a modified version of the library, if |
|
366 the user installs one, as long as the modified version is |
|
367 interface-compatible with the version that the work was made with. |
|
368 |
|
369 c) Accompany the work with a written offer, valid for at |
|
370 least three years, to give the same user the materials |
|
371 specified in Subsection 6a, above, for a charge no more |
|
372 than the cost of performing this distribution. |
|
373 |
|
374 d) If distribution of the work is made by offering access to copy |
|
375 from a designated place, offer equivalent access to copy the above |
|
376 specified materials from the same place. |
|
377 |
|
378 e) Verify that the user has already received a copy of these |
|
379 materials or that you have already sent this user a copy. |
|
380 |
|
381 For an executable, the required form of the "work that uses the |
|
382 Library" must include any data and utility programs needed for |
|
383 reproducing the executable from it. However, as a special exception, |
|
384 the materials to be distributed need not include anything that is |
|
385 normally distributed (in either source or binary form) with the major |
|
386 components (compiler, kernel, and so on) of the operating system on |
|
387 which the executable runs, unless that component itself accompanies |
|
388 the executable. |
|
389 |
|
390 It may happen that this requirement contradicts the license |
|
391 restrictions of other proprietary libraries that do not normally |
|
392 accompany the operating system. Such a contradiction means you cannot |
|
393 use both them and the Library together in an executable that you |
|
394 distribute. |
|
395 |
|
396 7. You may place library facilities that are a work based on the |
|
397 Library side-by-side in a single library together with other library |
|
398 facilities not covered by this License, and distribute such a combined |
|
399 library, provided that the separate distribution of the work based on |
|
400 the Library and of the other library facilities is otherwise |
|
401 permitted, and provided that you do these two things: |
|
402 |
|
403 a) Accompany the combined library with a copy of the same work |
|
404 based on the Library, uncombined with any other library |
|
405 facilities. This must be distributed under the terms of the |
|
406 Sections above. |
|
407 |
|
408 b) Give prominent notice with the combined library of the fact |
|
409 that part of it is a work based on the Library, and explaining |
|
410 where to find the accompanying uncombined form of the same work. |
|
411 |
|
412 8. You may not copy, modify, sublicense, link with, or distribute |
|
413 the Library except as expressly provided under this License. Any |
|
414 attempt otherwise to copy, modify, sublicense, link with, or |
|
415 distribute the Library is void, and will automatically terminate your |
|
416 rights under this License. However, parties who have received copies, |
|
417 or rights, from you under this License will not have their licenses |
|
418 terminated so long as such parties remain in full compliance. |
|
419 |
|
420 9. You are not required to accept this License, since you have not |
|
421 signed it. However, nothing else grants you permission to modify or |
|
422 distribute the Library or its derivative works. These actions are |
|
423 prohibited by law if you do not accept this License. Therefore, by |
|
424 modifying or distributing the Library (or any work based on the |
|
425 Library), you indicate your acceptance of this License to do so, and |
|
426 all its terms and conditions for copying, distributing or modifying |
|
427 the Library or works based on it. |
|
428 |
|
429 10. Each time you redistribute the Library (or any work based on the |
|
430 Library), the recipient automatically receives a license from the |
|
431 original licensor to copy, distribute, link with or modify the Library |
|
432 subject to these terms and conditions. You may not impose any further |
|
433 restrictions on the recipients' exercise of the rights granted herein. |
|
434 You are not responsible for enforcing compliance by third parties with |
|
435 this License. |
|
436 |
|
437 11. If, as a consequence of a court judgment or allegation of patent |
|
438 infringement or for any other reason (not limited to patent issues), |
|
439 conditions are imposed on you (whether by court order, agreement or |
|
440 otherwise) that contradict the conditions of this License, they do not |
|
441 excuse you from the conditions of this License. If you cannot |
|
442 distribute so as to satisfy simultaneously your obligations under this |
|
443 License and any other pertinent obligations, then as a consequence you |
|
444 may not distribute the Library at all. For example, if a patent |
|
445 license would not permit royalty-free redistribution of the Library by |
|
446 all those who receive copies directly or indirectly through you, then |
|
447 the only way you could satisfy both it and this License would be to |
|
448 refrain entirely from distribution of the Library. |
|
449 |
|
450 If any portion of this section is held invalid or unenforceable under any |
|
451 particular circumstance, the balance of the section is intended to apply, |
|
452 and the section as a whole is intended to apply in other circumstances. |
|
453 |
|
454 It is not the purpose of this section to induce you to infringe any |
|
455 patents or other property right claims or to contest validity of any |
|
456 such claims; this section has the sole purpose of protecting the |
|
457 integrity of the free software distribution system which is |
|
458 implemented by public license practices. Many people have made |
|
459 generous contributions to the wide range of software distributed |
|
460 through that system in reliance on consistent application of that |
|
461 system; it is up to the author/donor to decide if he or she is willing |
|
462 to distribute software through any other system and a licensee cannot |
|
463 impose that choice. |
|
464 |
|
465 This section is intended to make thoroughly clear what is believed to |
|
466 be a consequence of the rest of this License. |
|
467 |
|
468 12. If the distribution and/or use of the Library is restricted in |
|
469 certain countries either by patents or by copyrighted interfaces, the |
|
470 original copyright holder who places the Library under this License may add |
|
471 an explicit geographical distribution limitation excluding those countries, |
|
472 so that distribution is permitted only in or among countries not thus |
|
473 excluded. In such case, this License incorporates the limitation as if |
|
474 written in the body of this License. |
|
475 |
|
476 13. The Free Software Foundation may publish revised and/or new |
|
477 versions of the Lesser General Public License from time to time. |
|
478 Such new versions will be similar in spirit to the present version, |
|
479 but may differ in detail to address new problems or concerns. |
|
480 |
|
481 Each version is given a distinguishing version number. If the Library |
|
482 specifies a version number of this License which applies to it and |
|
483 "any later version", you have the option of following the terms and |
|
484 conditions either of that version or of any later version published by |
|
485 the Free Software Foundation. If the Library does not specify a |
|
486 license version number, you may choose any version ever published by |
|
487 the Free Software Foundation. |
|
488 |
|
489 14. If you wish to incorporate parts of the Library into other free |
|
490 programs whose distribution conditions are incompatible with these, |
|
491 write to the author to ask for permission. For software which is |
|
492 copyrighted by the Free Software Foundation, write to the Free |
|
493 Software Foundation; we sometimes make exceptions for this. Our |
|
494 decision will be guided by the two goals of preserving the free status |
|
495 of all derivatives of our free software and of promoting the sharing |
|
496 and reuse of software generally. |
|
497 |
|
498 NO WARRANTY |
|
499 |
|
500 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO |
|
501 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. |
|
502 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR |
|
503 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY |
|
504 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE |
|
505 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|
506 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE |
|
507 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME |
|
508 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
|
509 |
|
510 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN |
|
511 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY |
|
512 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU |
|
513 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR |
|
514 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE |
|
515 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |
|
516 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |
|
517 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |
|
518 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
|
519 DAMAGES. |
|
520 |
|
521 END OF TERMS AND CONDITIONS |
|
522 |
|
523 How to Apply These Terms to Your New Libraries |
|
524 |
|
525 If you develop a new library, and you want it to be of the greatest |
|
526 possible use to the public, we recommend making it free software that |
|
527 everyone can redistribute and change. You can do so by permitting |
|
528 redistribution under these terms (or, alternatively, under the terms of the |
|
529 ordinary General Public License). |
|
530 |
|
531 To apply these terms, attach the following notices to the library. It is |
|
532 safest to attach them to the start of each source file to most effectively |
|
533 convey the exclusion of warranty; and each file should have at least the |
|
534 "copyright" line and a pointer to where the full notice is found. |
|
535 |
|
536 one line to give the library's name and an idea of what it does. |
|
537 Copyright (C) year name of author |
|
538 |
|
539 This library is free software; you can redistribute it and/or |
|
540 modify it under the terms of the GNU Lesser General Public |
|
541 License as published by the Free Software Foundation; either |
|
542 version 2.1 of the License, or (at your option) any later version. |
|
543 |
|
544 This library is distributed in the hope that it will be useful, |
|
545 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
546 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
547 Lesser General Public License for more details. |
|
548 |
|
549 You should have received a copy of the GNU Lesser General Public |
|
550 License along with this library; if not, write to the Free Software |
|
551 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
552 |
|
553 Also add information on how to contact you by electronic and paper mail. |
|
554 |
|
555 You should also get your employer (if you work as a programmer) or your |
|
556 school, if any, to sign a "copyright disclaimer" for the library, if |
|
557 necessary. Here is a sample; alter the names: |
|
558 |
|
559 Yoyodyne, Inc., hereby disclaims all copyright interest in the |
|
560 library `Frob' (a library for tweaking knobs) written by James Random Hacker. |
|
561 |
|
562 signature of Ty Coon, 1 April 1990 |
|
563 Ty Coon, President of Vice |
|
564 |
|
565 That's all there is to it! |
|
566 |
|
567 -------------------------------------------------------------------------- |
|
568 |
|
569 Copyright 2006 Dan-Haim. All rights reserved. |
|
570 |
|
571 Redistribution and use in source and binary forms, with or without modification, |
|
572 are permitted provided that the following conditions are met: |
|
573 1. Redistributions of source code must retain the above copyright notice, this |
|
574 list of conditions and the following disclaimer. |
|
575 2. Redistributions in binary form must reproduce the above copyright notice, |
|
576 this list of conditions and the following disclaimer in the documentation |
|
577 and/or other materials provided with the distribution. |
|
578 3. Neither the name of Dan Haim nor the names of his contributors may be used |
|
579 to endorse or promote products derived from this software without specific |
|
580 prior written permission. |
|
581 |
|
582 THIS SOFTWARE IS PROVIDED BY DAN HAIM "AS IS" AND ANY EXPRESS OR IMPLIED |
|
583 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
584 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
|
585 EVENT SHALL DAN HAIM OR HIS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|
586 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
587 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA |
|
588 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
|
589 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|
590 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMANGE. |
|
591 |
|
592 -------------------------------------------------------------------------- |
|
593 |
|
594 # Copyright 2007 Google Inc. |
|
595 # |
|
596 # Licensed under the Apache License, Version 2.0 (the "License"); |
|
597 # you may not use this file except in compliance with the License. |
|
598 # You may obtain a copy of the License at |
|
599 # |
|
600 # http://www.apache.org/licenses/LICENSE-2.0 |
|
601 # |
|
602 # Unless required by applicable law or agreed to in writing, software |
|
603 # distributed under the License is distributed on an "AS IS" BASIS, |
|
604 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
605 # See the License for the specific language governing permissions and |
|
606 # limitations under the License. |
|
607 |
|
608 -------------------------------------------------------------------------- |
|
609 |
|
610 Apache License |
|
611 Version 2.0, January 2004 |
|
612 http://www.apache.org/licenses/ |
|
613 |
|
614 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
|
615 |
|
616 1. Definitions. |
|
617 |
|
618 "License" shall mean the terms and conditions for use, reproduction, |
|
619 and distribution as defined by Sections 1 through 9 of this document. |
|
620 |
|
621 "Licensor" shall mean the copyright owner or entity authorized by |
|
622 the copyright owner that is granting the License. |
|
623 |
|
624 "Legal Entity" shall mean the union of the acting entity and all |
|
625 other entities that control, are controlled by, or are under common |
|
626 control with that entity. For the purposes of this definition, |
|
627 "control" means (i) the power, direct or indirect, to cause the |
|
628 direction or management of such entity, whether by contract or |
|
629 otherwise, or (ii) ownership of fifty percent (50%) or more of the |
|
630 outstanding shares, or (iii) beneficial ownership of such entity. |
|
631 |
|
632 "You" (or "Your") shall mean an individual or Legal Entity |
|
633 exercising permissions granted by this License. |
|
634 |
|
635 "Source" form shall mean the preferred form for making modifications, |
|
636 including but not limited to software source code, documentation |
|
637 source, and configuration files. |
|
638 |
|
639 "Object" form shall mean any form resulting from mechanical |
|
640 transformation or translation of a Source form, including but |
|
641 not limited to compiled object code, generated documentation, |
|
642 and conversions to other media types. |
|
643 |
|
644 "Work" shall mean the work of authorship, whether in Source or |
|
645 Object form, made available under the License, as indicated by a |
|
646 copyright notice that is included in or attached to the work |
|
647 (an example is provided in the Appendix below). |
|
648 |
|
649 "Derivative Works" shall mean any work, whether in Source or Object |
|
650 form, that is based on (or derived from) the Work and for which the |
|
651 editorial revisions, annotations, elaborations, or other modifications |
|
652 represent, as a whole, an original work of authorship. For the purposes |
|
653 of this License, Derivative Works shall not include works that remain |
|
654 separable from, or merely link (or bind by name) to the interfaces of, |
|
655 the Work and Derivative Works thereof. |
|
656 |
|
657 "Contribution" shall mean any work of authorship, including |
|
658 the original version of the Work and any modifications or additions |
|
659 to that Work or Derivative Works thereof, that is intentionally |
|
660 submitted to Licensor for inclusion in the Work by the copyright owner |
|
661 or by an individual or Legal Entity authorized to submit on behalf of |
|
662 the copyright owner. For the purposes of this definition, "submitted" |
|
663 means any form of electronic, verbal, or written communication sent |
|
664 to the Licensor or its representatives, including but not limited to |
|
665 communication on electronic mailing lists, source code control systems, |
|
666 and issue tracking systems that are managed by, or on behalf of, the |
|
667 Licensor for the purpose of discussing and improving the Work, but |
|
668 excluding communication that is conspicuously marked or otherwise |
|
669 designated in writing by the copyright owner as "Not a Contribution." |
|
670 |
|
671 "Contributor" shall mean Licensor and any individual or Legal Entity |
|
672 on behalf of whom a Contribution has been received by Licensor and |
|
673 subsequently incorporated within the Work. |
|
674 |
|
675 2. Grant of Copyright License. Subject to the terms and conditions of |
|
676 this License, each Contributor hereby grants to You a perpetual, |
|
677 worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
|
678 copyright license to reproduce, prepare Derivative Works of, |
|
679 publicly display, publicly perform, sublicense, and distribute the |
|
680 Work and such Derivative Works in Source or Object form. |
|
681 |
|
682 3. Grant of Patent License. Subject to the terms and conditions of |
|
683 this License, each Contributor hereby grants to You a perpetual, |
|
684 worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
|
685 (except as stated in this section) patent license to make, have made, |
|
686 use, offer to sell, sell, import, and otherwise transfer the Work, |
|
687 where such license applies only to those patent claims licensable |
|
688 by such Contributor that are necessarily infringed by their |
|
689 Contribution(s) alone or by combination of their Contribution(s) |
|
690 with the Work to which such Contribution(s) was submitted. If You |
|
691 institute patent litigation against any entity (including a |
|
692 cross-claim or counterclaim in a lawsuit) alleging that the Work |
|
693 or a Contribution incorporated within the Work constitutes direct |
|
694 or contributory patent infringement, then any patent licenses |
|
695 granted to You under this License for that Work shall terminate |
|
696 as of the date such litigation is filed. |
|
697 |
|
698 4. Redistribution. You may reproduce and distribute copies of the |
|
699 Work or Derivative Works thereof in any medium, with or without |
|
700 modifications, and in Source or Object form, provided that You |
|
701 meet the following conditions: |
|
702 |
|
703 (a) You must give any other recipients of the Work or |
|
704 Derivative Works a copy of this License; and |
|
705 |
|
706 (b) You must cause any modified files to carry prominent notices |
|
707 stating that You changed the files; and |
|
708 |
|
709 (c) You must retain, in the Source form of any Derivative Works |
|
710 that You distribute, all copyright, patent, trademark, and |
|
711 attribution notices from the Source form of the Work, |
|
712 excluding those notices that do not pertain to any part of |
|
713 the Derivative Works; and |
|
714 |
|
715 (d) If the Work includes a "NOTICE" text file as part of its |
|
716 distribution, then any Derivative Works that You distribute must |
|
717 include a readable copy of the attribution notices contained |
|
718 within such NOTICE file, excluding those notices that do not |
|
719 pertain to any part of the Derivative Works, in at least one |
|
720 of the following places: within a NOTICE text file distributed |
|
721 as part of the Derivative Works; within the Source form or |
|
722 documentation, if provided along with the Derivative Works; or, |
|
723 within a display generated by the Derivative Works, if and |
|
724 wherever such third-party notices normally appear. The contents |
|
725 of the NOTICE file are for informational purposes only and |
|
726 do not modify the License. You may add Your own attribution |
|
727 notices within Derivative Works that You distribute, alongside |
|
728 or as an addendum to the NOTICE text from the Work, provided |
|
729 that such additional attribution notices cannot be construed |
|
730 as modifying the License. |
|
731 |
|
732 You may add Your own copyright statement to Your modifications and |
|
733 may provide additional or different license terms and conditions |
|
734 for use, reproduction, or distribution of Your modifications, or |
|
735 for any such Derivative Works as a whole, provided Your use, |
|
736 reproduction, and distribution of the Work otherwise complies with |
|
737 the conditions stated in this License. |
|
738 |
|
739 5. Submission of Contributions. Unless You explicitly state otherwise, |
|
740 any Contribution intentionally submitted for inclusion in the Work |
|
741 by You to the Licensor shall be under the terms and conditions of |
|
742 this License, without any additional terms or conditions. |
|
743 Notwithstanding the above, nothing herein shall supersede or modify |
|
744 the terms of any separate license agreement you may have executed |
|
745 with Licensor regarding such Contributions. |
|
746 |
|
747 6. Trademarks. This License does not grant permission to use the trade |
|
748 names, trademarks, service marks, or product names of the Licensor, |
|
749 except as required for reasonable and customary use in describing the |
|
750 origin of the Work and reproducing the content of the NOTICE file. |
|
751 |
|
752 7. Disclaimer of Warranty. Unless required by applicable law or |
|
753 agreed to in writing, Licensor provides the Work (and each |
|
754 Contributor provides its Contributions) on an "AS IS" BASIS, |
|
755 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
|
756 implied, including, without limitation, any warranties or conditions |
|
757 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A |
|
758 PARTICULAR PURPOSE. You are solely responsible for determining the |
|
759 appropriateness of using or redistributing the Work and assume any |
|
760 risks associated with Your exercise of permissions under this License. |
|
761 |
|
762 8. Limitation of Liability. In no event and under no legal theory, |
|
763 whether in tort (including negligence), contract, or otherwise, |
|
764 unless required by applicable law (such as deliberate and grossly |
|
765 negligent acts) or agreed to in writing, shall any Contributor be |
|
766 liable to You for damages, including any direct, indirect, special, |
|
767 incidental, or consequential damages of any character arising as a |
|
768 result of this License or out of the use or inability to use the |
|
769 Work (including but not limited to damages for loss of goodwill, |
|
770 work stoppage, computer failure or malfunction, or any and all |
|
771 other commercial damages or losses), even if such Contributor |
|
772 has been advised of the possibility of such damages. |
|
773 |
|
774 9. Accepting Warranty or Additional Liability. While redistributing |
|
775 the Work or Derivative Works thereof, You may choose to offer, |
|
776 and charge a fee for, acceptance of support, warranty, indemnity, |
|
777 or other liability obligations and/or rights consistent with this |
|
778 License. However, in accepting such obligations, You may act only |
|
779 on Your own behalf and on Your sole responsibility, not on behalf |
|
780 of any other Contributor, and only if You agree to indemnify, |
|
781 defend, and hold each Contributor harmless for any liability |
|
782 incurred by, or claims asserted against, such Contributor by reason |
|
783 of your accepting any such warranty or additional liability. |
|
784 |
|
785 END OF TERMS AND CONDITIONS |
|
786 |
|
787 APPENDIX: How to apply the Apache License to your work. |
|
788 |
|
789 To apply the Apache License to your work, attach the following |
|
790 boilerplate notice, with the fields enclosed by brackets "[]" |
|
791 replaced with your own identifying information. (Don't include |
|
792 the brackets!) The text should be enclosed in the appropriate |
|
793 comment syntax for the file format. We also recommend that a |
|
794 file or class name and description of purpose be included on the |
|
795 same "printed page" as the copyright notice for easier |
|
796 identification within third-party archives. |
|
797 |
|
798 Copyright [yyyy] [name of copyright owner] |
|
799 |
|
800 Licensed under the Apache License, Version 2.0 (the "License"); |
|
801 you may not use this file except in compliance with the License. |
|
802 You may obtain a copy of the License at |
|
803 |
|
804 http://www.apache.org/licenses/LICENSE-2.0 |
|
805 |
|
806 Unless required by applicable law or agreed to in writing, software |
|
807 distributed under the License is distributed on an "AS IS" BASIS, |
|
808 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
809 See the License for the specific language governing permissions and |
|
810 limitations under the License. |
|
811 |
|
812 -------------------------------------------------------------------------- |
|
813 |
|
814 Copyright 2006 Dan-Haim. All rights reserved. |
|
815 |
|
816 Redistribution and use in source and binary forms, with or without modification, |
|
817 are permitted provided that the following conditions are met: |
|
818 1. Redistributions of source code must retain the above copyright notice, this |
|
819 list of conditions and the following disclaimer. |
|
820 2. Redistributions in binary form must reproduce the above copyright notice, |
|
821 this list of conditions and the following disclaimer in the documentation |
|
822 and/or other materials provided with the distribution. |
|
823 3. Neither the name of Dan Haim nor the names of his contributors may be used |
|
824 to endorse or promote products derived from this software without specific |
|
825 prior written permission. |
|
826 |
|
827 THIS SOFTWARE IS PROVIDED BY DAN HAIM "AS IS" AND ANY EXPRESS OR IMPLIED |
|
828 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
829 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
|
830 EVENT SHALL DAN HAIM OR HIS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|
831 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
832 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA |
|
833 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
|
834 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|
835 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMANGE. |