2 Copyright (c) Tuomo Valkonen 1999-2007.
4 The code of this project is "essentially" licensed under the LGPL, version
5 2.1, unless otherwise indicated in components taken from elsewhere. It is
6 reproduced below. Additionally, the following terms apply to the use of
7 the names Ion, Ion3, and other derived names:
9 Derived works and altered versions that significantly differ from the
10 original copyright holder's versions, must either a) be given names
11 that can not be associated with the "Ion" project, or b) be qualified
12 as "Ion soup", and still be considerable as customised versions of this
13 software. In both cases, executables must also be given names that do
14 not conflict with the original copyright holder's version, and the
15 copyright holder may not be referred to for support.
17 Modules and other (standalone) extensions to Ion must also be named
18 so that they can not be confused to be supported by the copyright
19 holder. If "Ion" occurs in the name, it must be in the form
20 "Foo for Ion" instead of "Ion Foo", etc.
22 If the name of the project (Ion), resp. names of particular branches
23 (Ion1, Ion2, Ion3, etc.), are used without further prominent version
24 qualifiers and notices of possible out-datedness to distribute this
25 software, then the following conditions must hold: a) The version
26 distributed online may not significantly differ from the copyright
27 holder's latest release marked stable, resp. latest release on a
28 branch, within a reasonable delay (normally 28 days) from the release.
29 b) The holders of physical distribution media are provided ways to
30 upgrade to the latest release within this same delay.
32 This name policy notice may not be altered, and must be included in
33 any altered versions and binary redistributions. It may only be
34 removed when using small portions of the code in unrelated projects.
36 The copyright holder and the Ion project retain the same rights to
37 your modifications that it would have under the LGPL or GPL without
38 these or similar additional terms.
42 Significant change: Bug fixes are a priori insignificant as additions.
43 Basic changes that are needed to install or run the software on a target
44 platform are a priori insignificant. Additionally, basic configuration
45 changes to better integrate the software with the target platform,
46 without obstructing the standard behaviour, are a priori insignificant.
47 The copyright holder, however, reserves the right to refine the
48 definition of significant changes on a per-case basis. Please consult
51 Distributions: For example, suppose an aggregate distribution of software
52 provides a `installpkg` command for installing packages. Then the action
53 `installpkg ion3` (resp. `installpkg ion`) should always install the
54 latest release of Ion3 (resp. the latest stable release), online
55 connectivity provided. The action `installpkg ion-3ds-20070318` may
56 at any date install this particular mentioned release. Likewise
57 `installpkg ion-soup` may install any non-conflicting customised
63 GNU LESSER GENERAL PUBLIC LICENSE
64 Version 2.1, February 1999
66 Copyright (C) 1991, 1999 Free Software Foundation, Inc.
67 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
68 Everyone is permitted to copy and distribute verbatim copies
69 of this license document, but changing it is not allowed.
71 [This is the first released version of the Lesser GPL. It also counts
72 as the successor of the GNU Library Public License, version 2, hence
73 the version number 2.1.]
77 The licenses for most software are designed to take away your
78 freedom to share and change it. By contrast, the GNU General Public
79 Licenses are intended to guarantee your freedom to share and change
80 free software--to make sure the software is free for all its users.
82 This license, the Lesser General Public License, applies to some
83 specially designated software packages--typically libraries--of the
84 Free Software Foundation and other authors who decide to use it. You
85 can use it too, but we suggest you first think carefully about whether
86 this license or the ordinary General Public License is the better
87 strategy to use in any particular case, based on the explanations
90 When we speak of free software, we are referring to freedom of use,
91 not price. Our General Public Licenses are designed to make sure that
92 you have the freedom to distribute copies of free software (and charge
93 for this service if you wish); that you receive source code or can get
94 it if you want it; that you can change the software and use pieces of
95 it in new free programs; and that you are informed that you can do
98 To protect your rights, we need to make restrictions that forbid
99 distributors to deny you these rights or to ask you to surrender these
100 rights. These restrictions translate to certain responsibilities for
101 you if you distribute copies of the library or if you modify it.
103 For example, if you distribute copies of the library, whether gratis
104 or for a fee, you must give the recipients all the rights that we gave
105 you. You must make sure that they, too, receive or can get the source
106 code. If you link other code with the library, you must provide
107 complete object files to the recipients, so that they can relink them
108 with the library after making changes to the library and recompiling
109 it. And you must show them these terms so they know their rights.
111 We protect your rights with a two-step method: (1) we copyright the
112 library, and (2) we offer you this license, which gives you legal
113 permission to copy, distribute and/or modify the library.
115 To protect each distributor, we want to make it very clear that
116 there is no warranty for the free library. Also, if the library is
117 modified by someone else and passed on, the recipients should know
118 that what they have is not the original version, so that the original
119 author's reputation will not be affected by problems that might be
120 introduced by others.
122 Finally, software patents pose a constant threat to the existence of
123 any free program. We wish to make sure that a company cannot
124 effectively restrict the users of a free program by obtaining a
125 restrictive license from a patent holder. Therefore, we insist that
126 any patent license obtained for a version of the library must be
127 consistent with the full freedom of use specified in this license.
129 Most GNU software, including some libraries, is covered by the
130 ordinary GNU General Public License. This license, the GNU Lesser
131 General Public License, applies to certain designated libraries, and
132 is quite different from the ordinary General Public License. We use
133 this license for certain libraries in order to permit linking those
134 libraries into non-free programs.
136 When a program is linked with a library, whether statically or using
137 a shared library, the combination of the two is legally speaking a
138 combined work, a derivative of the original library. The ordinary
139 General Public License therefore permits such linking only if the
140 entire combination fits its criteria of freedom. The Lesser General
141 Public License permits more lax criteria for linking other code with
144 We call this license the "Lesser" General Public License because it
145 does Less to protect the user's freedom than the ordinary General
146 Public License. It also provides other free software developers Less
147 of an advantage over competing non-free programs. These disadvantages
148 are the reason we use the ordinary General Public License for many
149 libraries. However, the Lesser license provides advantages in certain
150 special circumstances.
152 For example, on rare occasions, there may be a special need to
153 encourage the widest possible use of a certain library, so that it
154 becomes a de-facto standard. To achieve this, non-free programs must
155 be allowed to use the library. A more frequent case is that a free
156 library does the same job as widely used non-free libraries. In this
157 case, there is little to gain by limiting the free library to free
158 software only, so we use the Lesser General Public License.
160 In other cases, permission to use a particular library in non-free
161 programs enables a greater number of people to use a large body of
162 free software. For example, permission to use the GNU C Library in
163 non-free programs enables many more people to use the whole GNU
164 operating system, as well as its variant, the GNU/Linux operating
167 Although the Lesser General Public License is Less protective of the
168 users' freedom, it does ensure that the user of a program that is
169 linked with the Library has the freedom and the wherewithal to run
170 that program using a modified version of the Library.
172 The precise terms and conditions for copying, distribution and
173 modification follow. Pay close attention to the difference between a
174 "work based on the library" and a "work that uses the library". The
175 former contains code derived from the library, whereas the latter must
176 be combined with the library in order to run.
178 GNU LESSER GENERAL PUBLIC LICENSE
179 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
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".
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.
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".)
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
203 compilation and installation of the library.
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.
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
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
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:
230 a) The modified work must itself be a software library.
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.
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.
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.
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.)
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
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.)
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.
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.
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
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.)
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.
369 c) Accompany the work with a written offer, valid for at least
370 three years, to give the same user the materials specified in
371 Subsection 6a, above, for a charge no more than the cost of
372 performing this distribution.
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.
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.
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
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
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:
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
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.
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.
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.
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
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.
450 If any portion of this section is held invalid or unenforceable under
451 any particular circumstance, the balance of the section is intended to
452 apply, and the section as a whole is intended to apply in other
455 It is not the purpose of this section to induce you to infringe any
456 patents or other property right claims or to contest validity of any
457 such claims; this section has the sole purpose of protecting the
458 integrity of the free software distribution system which is
459 implemented by public license practices. Many people have made
460 generous contributions to the wide range of software distributed
461 through that system in reliance on consistent application of that
462 system; it is up to the author/donor to decide if he or she is willing
463 to distribute software through any other system and a licensee cannot
466 This section is intended to make thoroughly clear what is believed to
467 be a consequence of the rest of this License.
469 12. If the distribution and/or use of the Library is restricted in
470 certain countries either by patents or by copyrighted interfaces, the
471 original copyright holder who places the Library under this License
472 may add an explicit geographical distribution limitation excluding those
473 countries, so that distribution is permitted only in or among
474 countries not thus excluded. In such case, this License incorporates
475 the limitation as if written in the body of this License.
477 13. The Free Software Foundation may publish revised and/or new
478 versions of the Lesser General Public License from time to time.
479 Such new versions will be similar in spirit to the present version,
480 but may differ in detail to address new problems or concerns.
482 Each version is given a distinguishing version number. If the Library
483 specifies a version number of this License which applies to it and
484 "any later version", you have the option of following the terms and
485 conditions either of that version or of any later version published by
486 the Free Software Foundation. If the Library does not specify a
487 license version number, you may choose any version ever published by
488 the Free Software Foundation.
490 14. If you wish to incorporate parts of the Library into other free
491 programs whose distribution conditions are incompatible with these,
492 write to the author to ask for permission. For software which is
493 copyrighted by the Free Software Foundation, write to the Free
494 Software Foundation; we sometimes make exceptions for this. Our
495 decision will be guided by the two goals of preserving the free status
496 of all derivatives of our free software and of promoting the sharing
497 and reuse of software generally.
501 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
502 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
503 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
504 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
505 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
506 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
507 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
508 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
509 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
511 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
512 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
513 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
514 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
515 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
516 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
517 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
518 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
519 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
522 END OF TERMS AND CONDITIONS
524 How to Apply These Terms to Your New Libraries
526 If you develop a new library, and you want it to be of the greatest
527 possible use to the public, we recommend making it free software that
528 everyone can redistribute and change. You can do so by permitting
529 redistribution under these terms (or, alternatively, under the terms
530 of the ordinary General Public License).
532 To apply these terms, attach the following notices to the library.
533 It is safest to attach them to the start of each source file to most
534 effectively convey the exclusion of warranty; and each file should
535 have at least the "copyright" line and a pointer to where the full
539 <one line to give the library's name and a brief idea of what it does.>
540 Copyright (C) <year> <name of author>
542 This library is free software; you can redistribute it and/or
543 modify it under the terms of the GNU Lesser General Public
544 License as published by the Free Software Foundation; either
545 version 2.1 of the License, or (at your option) any later version.
547 This library is distributed in the hope that it will be useful,
548 but WITHOUT ANY WARRANTY; without even the implied warranty of
549 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
550 Lesser General Public License for more details.
552 You should have received a copy of the GNU Lesser General Public
553 License along with this library; if not, write to the Free Software
554 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
556 Also add information on how to contact you by electronic and paper mail.
558 You should also get your employer (if you work as a programmer) or
559 your school, if any, to sign a "copyright disclaimer" for the library,
560 if necessary. Here is a sample; alter the names:
562 Yoyodyne, Inc., hereby disclaims all copyright interest in the
563 library `Frob' (a library for tweaking knobs) written by James
566 <signature of Ty Coon>, 1 April 1990
567 Ty Coon, President of Vice
569 That's all there is to it!