Add all the source files from the old CVS tree,
[import/samba-docs-svnimport.git] / guide / gpl.xml
1 <appendix>
2   <appendixinfo>
3     <title>GNU General Public License</title>
4     <pubdate>Version 2, June 1991</pubdate>
5     <copyright>
6       <year>1989, 1991</year>
7       <holder>Free Software Foundation, Inc.</holder>
8     </copyright>
9     <legalnotice>
10       <para>    
11         <address>Free Software Foundation, Inc. 
12           <street>59 Temple Place, Suite 330</street>, 
13           <city>Boston</city>, 
14           <state>MA</state> 
15           <postcode>02111-1307</postcode>
16           <country>USA</country>
17         </address>.
18       </para>
19       <para>    Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
20       </para>
21     </legalnotice>
22     <releaseinfo>      Version 2, June 1991</releaseinfo>
23   </appendixinfo>
24   <title>GNU General Public License</title>
25   <sect1>
26     <title>Preamble</title>
27     <para>      The licenses for most software are designed to take away your 
28       freedom to share and change it. By contrast, the GNU General Public License is 
29       intended to guarantee your freedom to share and change 
30       free software - to make sure the software is free for all its users. 
31       This General Public License applies to most of the Free Software 
32       Foundation's software and to any other program whose authors commit 
33       to using it. (Some other Free Software Foundation software is covered 
34       by the GNU Library General Public License instead.) You can apply it 
35       to your programs, too.
36     </para>
37     <para>      When we speak of free software, we are referring to freedom, not price. 
38       Our General Public Licenses are designed to make sure that you have the 
39       freedom to distribute copies of free software (and charge for this 
40       service if you wish), that you receive source code or can get it if you 
41       want it, that you can change the software or use pieces of it in new free 
42       programs; and that you know you can do these things.
43     </para>
44     <para>      To protect your rights, we need to make restrictions that forbid anyone 
45       to deny you these rights or to ask you to surrender the rights. These 
46       restrictions translate to certain responsibilities for you if you distribute 
47       copies of the software, or if you modify it.
48     </para>
49     <para>      For example, if you distribute copies of such a program, whether gratis or 
50       for a fee, you must give the recipients all the rights that you have. You 
51       must make sure that they, too, receive or can get the source code. And you 
52       must show them these terms so they know their rights.
53     </para>
54     <para>      We protect your rights with two steps:
55       <orderedlist>
56         <listitem>
57           <para>            copyright the software, and
58           </para>
59         </listitem>
60         <listitem>
61           <para>            offer you this license which gives you legal permission to copy, 
62             distribute and/or modify the software.
63           </para>
64         </listitem>
65       </orderedlist>
66     </para>
67     <para>      Also, for each author's protection and ours, we want to make certain that 
68       everyone understands that there is no warranty for this free software. If 
69       the software is modified by someone else and passed on, we want its 
70       recipients to know that what they have is not the original, so that any 
71       problems introduced by others will not reflect on the original authors' 
72       reputations.
73     </para>
74     <para>      Finally, any free program is threatened constantly by software patents. 
75       We wish to avoid the danger that redistributors of a free program will 
76       individually obtain patent licenses, in effect making the program 
77       proprietary. To prevent this, we have made it clear that any patent must be 
78       licensed for everyone's free use or not licensed at all.
79     </para>
80     <para>      The precise terms and conditions for copying, distribution and modification 
81       follow.
82     </para>
83   </sect1>
84   <sect1>
85     <title>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</title>
86     <sect2>
87       <title>Section 0</title>
88       <para>    This License applies to any program or other work which contains a notice 
89         placed by the copyright holder saying it may be distributed under the terms 
90         of this General Public License. The "Program", below, refers to any such 
91         program or work, and a 
92         <quote>work based on the Program
93         </quote> means either 
94         the Program or any derivative work under copyright law: that is to say, a 
95         work containing the Program or a portion of it, either verbatim or with 
96         modifications and/or translated into another language. (Hereinafter, translation 
97         is included without limitation in the term 
98         <quote>modification
99         </quote>.) Each licensee is addressed as <quote>you</quote>.
100       </para>
101       <para>    Activities other than copying, distribution and modification are not covered by 
102         this License; they are outside its scope. The act of running the Program is not 
103         restricted, and the output from the Program is covered only if its contents 
104         constitute a work based on the Program (independent of having been made by running 
105         the Program). Whether that is true depends on what the Program does.
106       </para>
107     </sect2>
108     <sect2 id="sect1">
109       <title>Section 1</title>
110       <para>    You may copy and distribute verbatim copies of the Program's source code as you 
111         receive it, in any medium, provided that you conspicuously and appropriately 
112         publish on each copy an appropriate copyright notice and disclaimer of warranty; 
113         keep intact all the notices that refer to this License and to the absence of any 
114         warranty; and give any other recipients of the Program a copy of this License 
115         along with the Program.
116       </para>
117       <para>    You may charge a fee for the physical act of transferring a copy, and you may at 
118         your option offer warranty protection in exchange for a fee.
119       </para>
120     </sect2>
121     <sect2 id="sect2">
122       <title>Section 2</title>
123       <para>    You may modify your copy or copies of the Program or any portion of it, thus 
124         forming a work based on the Program, and copy and distribute such modifications 
125         or work under the terms of 
126         <link linkend="sect1">Section 1
127         </link> above, provided 
128         that you also meet all of these conditions:
129         <orderedlist>
130           <listitem>
131             <para>            You must cause the modified files to carry prominent notices stating that 
132               you changed the files and the date of any change.
133             </para>
134           </listitem>
135           <listitem>
136             <para>            You must cause any work that you distribute or publish, that in whole or 
137               in part contains or is derived from the Program or any part thereof, to be 
138               licensed as a whole at no charge to all third parties under the terms of 
139               this License.
140             </para>
141           </listitem>
142           <listitem>
143             <para>            If the modified program normally reads commands interactively when run, you 
144               must cause it, when started running for such interactive use in the most 
145               ordinary way, to print or display an announcement including an appropriate 
146               copyright notice and a notice that there is no warranty (or else, saying 
147               that you provide a warranty) and that users may redistribute the program 
148               under these conditions, and telling the user how to view a copy of this 
149               License. 
150               <note>
151                 <title>Exception:
152                 </title>
153                 <para>            If the Program itself is interactive but does not normally print such an 
154                   announcement, your work based on the Program is not required to print an 
155                   announcement.) 
156                 </para>
157               </note>
158             </para>
159           </listitem>
160         </orderedlist>
161       </para>
162       <para>    These requirements apply to the modified work as a whole. If identifiable sections 
163         of that work are not derived from the Program, and can be reasonably considered 
164         independent and separate works in themselves, then this License, and its terms, 
165         do not apply to those sections when you distribute them as separate works. But when 
166         you distribute the same sections as part of a whole which is a work based on the 
167         Program, the distribution of the whole must be on the terms of this License, whose 
168         permissions for other licensees extend to the entire whole, and thus to each and 
169         every part regardless of who wrote it.
170       </para>
171       <para>    Thus, it is not the intent of this section to claim rights or contest your rights 
172         to work written entirely by you; rather, the intent is to exercise the right to control 
173         the distribution of derivative or collective works based on the Program.
174       </para>
175       <para>    In addition, mere aggregation of another work not based on the Program with the Program 
176         (or with a work based on the Program) on a volume of a storage or distribution medium 
177         does not bring the other work under the scope of this License.
178       </para>
179     </sect2>
180     <sect2>
181       <title>Section 3
182       </title>
183       <para>    You may copy and distribute the Program (or a work based on it, under 
184         <link linkend="sect2">Section 2
185         </link> in object code or executable form under the terms of 
186         <link linkend="sect1">Sections 1
187         </link> and 
188         <link linkend="sect2">2
189         </link> above provided that you also do one of the following:
190         <orderedlist>
191           <listitem>
192             <para>      Accompany it with the complete corresponding machine-readable source code, which 
193               must be distributed under the terms of Sections 1 and 2 above on a medium 
194               customarily used for software interchange; or,
195             </para>
196           </listitem>
197           <listitem>
198             <para>            Accompany it with a written offer, valid for at least three years, to give any 
199               third party, for a charge no more than your cost of physically performing source 
200               distribution, a complete machine-readable copy of the corresponding source code, 
201               to be distributed under the terms of Sections 1 and 2 above on a medium customarily 
202               used for software interchange; or,
203             </para>
204           </listitem>
205           <listitem>
206             <para>            Accompany it with the information you received as to the offer to distribute 
207               corresponding source code. (This alternative is allowed only for noncommercial 
208               distribution and only if you received the program in object code or executable form 
209               with such an offer, in accord with Subsection b above.)
210             </para>
211           </listitem>
212         </orderedlist>
213       </para>
214       <para>    The source code for a work means the preferred form of the work for making modifications 
215         to it. For an executable work, complete source code means all the source code for all modules 
216         it contains, plus any associated interface definition files, plus the scripts used to control 
217         compilation and installation of the executable. However, as a special exception, the source 
218         code distributed need not include anything that is normally distributed (in either source or 
219         binary form) with the major components (compiler, kernel, and so on) of the operating system 
220         on which the executable runs, unless that component itself accompanies the executable.
221       </para>
222       <para>    If distribution of executable or object code is made by offering access to copy from a 
223         designated place, then offering equivalent access to copy the source code from the same place 
224         counts as distribution of the source code, even though third parties are not compelled to 
225         copy the source along with the object code.
226       </para>
227     </sect2>
228     <sect2>
229       <title>Section 4
230       </title>
231       <para>    You may not copy, modify, sublicense, or distribute the Program except as expressly provided 
232         under this License. Any attempt otherwise to copy, modify, sublicense or distribute the 
233         Program is void, and will automatically terminate your rights under this License. However, 
234         parties who have received copies, or rights, from you under this License will not have their 
235         licenses terminated so long as such parties remain in full compliance.
236       </para>
237     </sect2>
238     <sect2>
239       <title>Section 5
240       </title>
241       <para>    You are not required to accept this License, since you have not signed it. However, nothing 
242         else grants you permission to modify or distribute the Program or its derivative works. 
243         These actions are prohibited by law if you do not accept this License. Therefore, by modifying 
244         or distributing the Program (or any work based on the Program), you indicate your acceptance 
245         of this License to do so, and all its terms and conditions for copying, distributing or 
246         modifying the Program or works based on it.
247       </para>
248     </sect2>
249     <sect2>
250       <title>Section 6
251       </title>
252       <para>    Each time you redistribute the Program (or any work based on the Program), the recipient 
253         automatically receives a license from the original licensor to copy, distribute or modify 
254         the Program subject to these terms and conditions. You may not impose any further restrictions 
255         on the recipients' exercise of the rights granted herein. You are not responsible for enforcing 
256         compliance by third parties to this License.
257       </para>
258     </sect2>
259     <sect2>
260       <title>Section 7
261       </title>
262       <para>    If, as a consequence of a court judgment or allegation of patent infringement or for any other 
263         reason (not limited to patent issues), conditions are imposed on you (whether by court order, 
264         agreement or otherwise) that contradict the conditions of this License, they do not excuse you 
265         from the conditions of this License. If you cannot distribute so as to satisfy simultaneously 
266         your obligations under this License and any other pertinent obligations, then as a consequence 
267         you may not distribute the Program at all. For example, if a patent license would not permit 
268         royalty-free redistribution of the Program by all those who receive copies directly or 
269         indirectly through you, then the only way you could satisfy both it and this License would be 
270         to refrain entirely from distribution of the Program.
271       </para>
272       <para>    If any portion of this section is held invalid or unenforceable under any particular circumstance, 
273         the balance of the section is intended to apply and the section as a whole is intended to apply 
274         in other circumstances.
275       </para>
276       <para>    It is not the purpose of this section to induce you to infringe any patents or other property 
277         right claims or to contest validity of any such claims; this section has the sole purpose of 
278         protecting the integrity of the free software distribution system, which is implemented by public 
279         license practices. Many people have made generous contributions to the wide range of software 
280         distributed through that system in reliance on consistent application of that system; it is up 
281         to the author/donor to decide if he or she is willing to distribute software through any other 
282         system and a licensee cannot impose that choice.
283       </para>
284       <para>    This section is intended to make thoroughly clear what is believed to be a consequence of the 
285         rest of this License.
286       </para>
287     </sect2>
288     <sect2>
289       <title>Section 8
290       </title>
291       <para>    If the distribution and/or use of the Program is restricted in certain countries either by patents 
292         or by copyrighted interfaces, the original copyright holder who places the Program under this License 
293         may add an explicit geographical distribution limitation excluding those countries, so that 
294         distribution is permitted only in or among countries not thus excluded. In such case, this License 
295         incorporates the limitation as if written in the body of this License.
296       </para>
297     </sect2>
298     <sect2>
299       <title>Section 9
300       </title>
301       <para>    The Free Software Foundation may publish revised and/or new versions of the General Public License 
302         from time to time. Such new versions will be similar in spirit to the present version, but may differ 
303         in detail to address new problems or concerns.
304       </para>
305       <para>    Each version is given a distinguishing version number. If the Program specifies a version number of 
306         this License which applies to it and "any later version", you have the option of following the terms 
307         and conditions either of that version or of any later version published by the Free Software 
308         Foundation. If the Program does not specify a version number of this License, you may choose any 
309         version ever published by the Free Software Foundation.
310       </para>
311     </sect2>
312     <sect2>
313       <title>Section 10
314       </title>
315       <para>    If you wish to incorporate parts of the Program into other free programs whose distribution 
316         conditions are different, write to the author to ask for permission. For software which is copyrighted 
317         by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions 
318         for this. Our decision will be guided by the two goals of preserving the free status of all 
319         derivatives of our free software and of promoting the sharing and reuse of software generally.
320       </para>
321     </sect2>
322     <sect2>
323 <title>NO WARRANTY Section 11
324       </title>
325       <para>    BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT 
326         PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 
327         OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, 
328         INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
329         PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 
330         PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
331       </para>
332     </sect2>
333     <sect2>
334       <title>Section 12
335       </title>
336       <para>    IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR 
337         ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU 
338         FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 
339         USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED 
340         INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH 
341         ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 
342         DAMAGES.
343       </para>
344       <para>END OF TERMS AND CONDITIONS
345       </para>
346     </sect2>
347   </sect1>
348   <sect1>
349     <title>How to Apply These Terms to Your New Programs
350     </title>
351     <para>
352       If you develop a new program, and you want it to be of the greatest
353       possible use to the public, the best way to achieve this is to make it
354       free software which everyone can redistribute and change under these terms.
355     </para>
356     <para>
357       To do so, attach the following notices to the program.  It is safest
358       to attach them to the start of each source file to most effectively
359       convey the exclusion of warranty; and each file should have at least
360       the "copyright" line and a pointer to where the full notice is found.
361     </para>
362     <para>
363       &lt;one line to give the program's name and a brief idea of what it does.&gt;
364       Copyright (C) &lt;year&gt;    &lt;name of author&gt;
365     </para>
366     <para>
367       This program is free software; you can redistribute it and/or modify
368       it under the terms of the GNU General Public License as published by
369       the Free Software Foundation; either version 2 of the License, or
370       (at your option) any later version.
371     </para>
372     <para>
373       This program is distributed in the hope that it will be useful,
374       but WITHOUT ANY WARRANTY; without even the implied warranty of
375       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
376       GNU General Public License for more details.
377     </para>
378     <para>
379       You should have received a copy of the GNU General Public License
380       along with this program; if not, write to the Free Software
381       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
382     </para>
383     <para>
384       Also add information on how to contact you by electronic and paper mail.
385     </para>
386     <para>
387       If the program is interactive, make it output a short notice like this
388       when it starts in an interactive mode:
389     </para>
390     <para>
391       Gnomovision version 69, Copyright (C) year name of author
392       Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
393       This is free software, and you are welcome to redistribute it
394       under certain conditions; type `show c' for details.
395     </para>
396     <para>
397       The hypothetical commands `show w' and `show c' should show the appropriate
398       parts of the General Public License.  Of course, the commands you use may
399       be called something other than `show w' and `show c'; they could even be
400       mouse-clicks or menu items--whatever suits your program.
401     </para>
402     <para>
403       You should also get your employer (if you work as a programmer) or your
404       school, if any, to sign a "copyright disclaimer" for the program, if
405       necessary.  Here is a sample; alter the names:
406     </para>
407     <para>
408       Yoyodyne, Inc., hereby disclaims all copyright interest in the program
409       `Gnomovision' (which makes passes at compilers) written by James Hacker.
410     </para>
411     <para>
412       &lt;signature of Ty Coon&gt;, 1 April 1989
413       Ty Coon, President of Vice
414     </para>
415     <para>
416       This General Public License does not permit incorporating your program into
417       proprietary programs.  If your program is a subroutine library, you may
418       consider it more useful to permit linking proprietary applications with the
419       library.  If this is what you want to do, use the GNU Library General
420       Public License instead of this License.
421     </para>
422   </sect1>
423   </appendix>