00001 // Copyright (C) 2006-2007 Benedikt Böhm <hollow@gentoo.org> 00002 // 00003 // This program is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU General Public License 00005 // as published by the Free Software Foundation; either version 2 00006 // of the License, or (at your option) any later version. 00007 // 00008 // This program is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 // GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License 00014 // along with this program; if not, write to the Free Software 00015 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 00016 00017 /*! 00018 * @page license License 00019 * 00020 * @section title GNU GENERAL PUBLIC LICENSE 00021 * 00022 * Version 2, June 1991 00023 * 00024 * @verbatim 00025 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 00026 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 00027 00028 Everyone is permitted to copy and distribute verbatim copies 00029 of this license document, but changing it is not allowed.@endverbatim 00030 * 00031 * @subsection preamble Preamble 00032 * 00033 * The licenses for most software are designed to take away your freedom to 00034 * share and change it. By contrast, the GNU General Public License is intended 00035 * to guarantee your freedom to share and change free software--to make sure the 00036 * software is free for all its users. This General Public License applies to 00037 * most of the Free Software Foundation's software and to any other program 00038 * whose authors commit to using it. (Some other Free Software Foundation 00039 * software is covered by the GNU Lesser General Public License instead.) You 00040 * can apply it to your programs, too. 00041 * 00042 * When we speak of free software, we are referring to freedom, not price. Our 00043 * General Public Licenses are designed to make sure that you have the freedom 00044 * to distribute copies of free software (and charge for this service if you 00045 * wish), that you receive source code or can get it if you want it, that you 00046 * can change the software or use pieces of it in new free programs; and that 00047 * you know you can do these things. 00048 * 00049 * To protect your rights, we need to make restrictions that forbid anyone to 00050 * deny you these rights or to ask you to surrender the rights. These 00051 * restrictions translate to certain responsibilities for you if you distribute 00052 * copies of the software, or if you modify it. 00053 * 00054 * For example, if you distribute copies of such a program, whether gratis or 00055 * for a fee, you must give the recipients all the rights that you have. You 00056 * must make sure that they, too, receive or can get the source code. And you 00057 * must show them these terms so they know their rights. 00058 * 00059 * We protect your rights with two steps: (1) copyright the software, and (2) 00060 * offer you this license which gives you legal permission to copy, distribute 00061 * and/or modify the software. 00062 * 00063 * Also, for each author's protection and ours, we want to make certain that 00064 * everyone understands that there is no warranty for this free software. If 00065 * the software is modified by someone else and passed on, we want its 00066 * recipients to know that what they have is not the original, so that any 00067 * problems introduced by others will not reflect on the original authors' 00068 * reputations. 00069 * 00070 * Finally, any free program is threatened constantly by software patents. We 00071 * wish to avoid the danger that redistributors of a free program will 00072 * individually obtain patent licenses, in effect making the program 00073 * proprietary. To prevent this, we have made it clear that any patent must be 00074 * licensed for everyone's free use or not licensed at all. 00075 * 00076 * The precise terms and conditions for copying, distribution and modification 00077 * follow. 00078 * 00079 * @subsection terms TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 00080 * 00081 * 0. This License applies to any program or other work which contains a 00082 * notice placed by the copyright holder saying it may be distributed under the 00083 * terms of this General Public License. The "Program", below, refers to any 00084 * such program or work, and a "work based on the Program" means either the 00085 * Program or any derivative work under copyright law: that is to say, a work 00086 * containing the Program or a portion of it, either verbatim or with 00087 * modifications and/or translated into another language. (Hereinafter, 00088 * translation is included without limitation in the term "modification".) Each 00089 * licensee is addressed as "you". 00090 * 00091 * Activities other than copying, distribution and modification are not covered 00092 * by this License; they are outside its scope. The act of running the Program 00093 * is not restricted, and the output from the Program is covered only if its 00094 * contents constitute a work based on the Program (independent of having been 00095 * made by running the Program). Whether that is true depends on what the 00096 * Program does. 00097 * 00098 * 1. You may copy and distribute verbatim copies of the Program's source code 00099 * as you receive it, in any medium, provided that you conspicuously and 00100 * appropriately publish on each copy an appropriate copyright notice and 00101 * disclaimer of warranty; keep intact all the notices that refer to this 00102 * License and to the absence of any warranty; and give any other recipients of 00103 * the Program a copy of this License along with the Program. 00104 * 00105 * You may charge a fee for the physical act of transferring a copy, and you may 00106 * at your option offer warranty protection in exchange for a fee. 00107 * 00108 * 2. You may modify your copy or copies of the Program or any portion of it, 00109 * thus forming a work based on the Program, and copy and distribute such 00110 * modifications or work under the terms of Section 1 above, provided that you 00111 * also meet all of these conditions: 00112 * 00113 * a) You must cause the modified files to carry prominent notices stating that 00114 * you changed the files and the date of any change. 00115 * 00116 * b) You must cause any work that you distribute or publish, that in whole or 00117 * in part contains or is derived from the Program or any part thereof, to be 00118 * licensed as a whole at no charge to all third parties under the terms of this 00119 * License. 00120 * 00121 * c) If the modified program normally reads commands interactively when run, 00122 * you must cause it, when started running for such interactive use in the most 00123 * ordinary way, to print or display an announcement including an appropriate 00124 * copyright notice and a notice that there is no warranty (or else, saying that 00125 * you provide a warranty) and that users may redistribute the program under 00126 * these conditions, and telling the user how to view a copy of this License. 00127 * (Exception: if the Program itself is interactive but does not normally print 00128 * such an announcement, your work based on the Program is not required to print 00129 * an announcement.) 00130 * 00131 * These requirements apply to the modified work as a whole. If identifiable 00132 * sections of that work are not derived from the Program, and can be reasonably 00133 * considered independent and separate works in themselves, then this License, 00134 * and its terms, do not apply to those sections when you distribute them as 00135 * separate works. But when you distribute the same sections as part of a whole 00136 * which is a work based on the Program, the distribution of the whole must be 00137 * on the terms of this License, whose permissions for other licensees extend to 00138 * the entire whole, and thus to each and every part regardless of who wrote it. 00139 * 00140 * Thus, it is not the intent of this section to claim rights or contest your 00141 * rights to work written entirely by you; rather, the intent is to exercise the 00142 * right to control the distribution of derivative or collective works based on 00143 * the Program. 00144 * 00145 * In addition, mere aggregation of another work not based on the Program with 00146 * the Program (or with a work based on the Program) on a volume of a storage or 00147 * distribution medium does not bring the other work under the scope of this 00148 * License. 00149 * 00150 * 3. You may copy and distribute the Program (or a work based on it, under 00151 * Section 2) in object code or executable form under the terms of Sections 1 00152 * and 2 above provided that you also do one of the following: 00153 * 00154 * a) Accompany it with the complete corresponding machine-readable source code, 00155 * which must be distributed under the terms of Sections 1 and 2 above on a 00156 * medium customarily used for software interchange; or, 00157 * 00158 * b) Accompany it with a written offer, valid for at least three years, to give 00159 * any third party, for a charge no more than your cost of physically performing 00160 * source distribution, a complete machine-readable copy of the corresponding 00161 * source code, to be distributed under the terms of Sections 1 and 2 above on a 00162 * medium customarily used for software interchange; or, 00163 * 00164 * c) Accompany it with the information you received as to the offer to 00165 * distribute corresponding source code. (This alternative is allowed only for 00166 * noncommercial distribution and only if you received the program in object 00167 * code or executable form with such an offer, in accord with Subsection b 00168 * above.) 00169 * 00170 * The source code for a work means the preferred form of the work for making 00171 * modifications to it. For an executable work, complete source code means all 00172 * the source code for all modules it contains, plus any associated interface 00173 * definition files, plus the scripts used to control compilation and 00174 * installation of the executable. However, as a special exception, the source 00175 * code distributed need not include anything that is normally distributed (in 00176 * either source or binary form) with the major components (compiler, kernel, 00177 * and so on) of the operating system on which the executable runs, unless that 00178 * component itself accompanies the executable. 00179 * 00180 * If distribution of executable or object code is made by offering access to 00181 * copy from a designated place, then offering equivalent access to copy the 00182 * source code from the same place counts as distribution of the source code, 00183 * even though third parties are not compelled to copy the source along with the 00184 * object code. 00185 * 00186 * 4. You may not copy, modify, sublicense, or distribute the Program except as 00187 * expressly provided under this License. Any attempt otherwise to copy, modify, 00188 * sublicense or distribute the Program is void, and will automatically 00189 * terminate your rights under this License. However, parties who have received 00190 * copies, or rights, from you under this License will not have their licenses 00191 * terminated so long as such parties remain in full compliance. 00192 * 00193 * 5. You are not required to accept this License, since you have not signed it. 00194 * However, nothing else grants you permission to modify or distribute the 00195 * Program or its derivative works. These actions are prohibited by law if you 00196 * do not accept this License. Therefore, by modifying or distributing the 00197 * Program (or any work based on the Program), you indicate your acceptance of 00198 * this License to do so, and all its terms and conditions for copying, 00199 * distributing or modifying the Program or works based on it. 00200 * 00201 * 6. Each time you redistribute the Program (or any work based on the Program), 00202 * the recipient automatically receives a license from the original licensor to 00203 * copy, distribute or modify the Program subject to these terms and conditions. 00204 * You may not impose any further restrictions on the recipients' exercise of 00205 * the rights granted herein. You are not responsible for enforcing compliance 00206 * by third parties to this License. 00207 * 00208 * 7. If, as a consequence of a court judgment or allegation of patent 00209 * infringement or for any other reason (not limited to patent issues), 00210 * conditions are imposed on you (whether by court order, agreement or 00211 * otherwise) that contradict the conditions of this License, they do not excuse 00212 * you from the conditions of this License. If you cannot distribute so as to 00213 * satisfy simultaneously your obligations under this License and any other 00214 * pertinent obligations, then as a consequence you may not distribute the 00215 * Program at all. For example, if a patent license would not permit 00216 * royalty-free redistribution of the Program by all those who receive copies 00217 * directly or indirectly through you, then the only way you could satisfy both 00218 * it and this License would be to refrain entirely from distribution of the 00219 * Program. 00220 * 00221 * If any portion of this section is held invalid or unenforceable under any 00222 * particular circumstance, the balance of the section is intended to apply and 00223 * the section as a whole is intended to apply in other circumstances. 00224 * 00225 * It is not the purpose of this section to induce you to infringe any patents 00226 * or other property right claims or to contest validity of any such claims; 00227 * this section has the sole purpose of protecting the integrity of the free 00228 * software distribution system, which is implemented by public license 00229 * practices. Many people have made generous contributions to the wide range of 00230 * software distributed through that system in reliance on consistent 00231 * application of that system; it is up to the author/donor to decide if he or 00232 * she is willing to distribute software through any other system and a licensee 00233 * cannot impose that choice. 00234 * 00235 * This section is intended to make thoroughly clear what is believed to be a 00236 * consequence of the rest of this License. 00237 * 00238 * 8. If the distribution and/or use of the Program is restricted in certain 00239 * countries either by patents or by copyrighted interfaces, the original 00240 * copyright holder who places the Program under this License may add an 00241 * explicit geographical distribution limitation excluding those countries, so 00242 * that distribution is permitted only in or among countries not thus excluded. 00243 * In such case, this License incorporates the limitation as if written in the 00244 * body of this License. 00245 * 00246 * 9. The Free Software Foundation may publish revised and/or new versions of 00247 * the General Public License from time to time. Such new versions will be 00248 * similar in spirit to the present version, but may differ in detail to address 00249 * new problems or concerns. 00250 * 00251 * Each version is given a distinguishing version number. If the Program 00252 * specifies a version number of this License which applies to it and "any later 00253 * version", you have the option of following the terms and conditions either of 00254 * that version or of any later version published by the Free Software 00255 * Foundation. If the Program does not specify a version number of this License, 00256 * you may choose any version ever published by the Free Software Foundation. 00257 * 00258 * 10. If you wish to incorporate parts of the Program into other free programs 00259 * whose distribution conditions are different, write to the author to ask for 00260 * permission. For software which is copyrighted by the Free Software 00261 * Foundation, write to the Free Software Foundation; we sometimes make 00262 * exceptions for this. Our decision will be guided by the two goals of 00263 * preserving the free status of all derivatives of our free software and of 00264 * promoting the sharing and reuse of software generally. 00265 * 00266 * NO WARRANTY 00267 * 00268 * 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR 00269 * THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE 00270 * STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE 00271 * PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, 00272 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 00273 * FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND 00274 * PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, 00275 * YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 00276 * 00277 * 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 00278 * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 00279 * REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 00280 * INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 00281 * OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO 00282 * LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR 00283 * THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 00284 * PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 00285 * POSSIBILITY OF SUCH DAMAGES. 00286 * 00287 */