xref: /openbsd/gnu/usr.bin/perl/pod/perlgpl.pod (revision b8851fcc)
185009909Smillert
285009909Smillert=head1 NAME
385009909Smillert
4b39c5158Smillertperlgpl - the GNU General Public License, version 1
585009909Smillert
685009909Smillert=head1 SYNOPSIS
785009909Smillert
885009909Smillert You can refer to this document in Pod via "L<perlgpl>"
985009909Smillert Or you can see this document by entering "perldoc perlgpl"
1085009909Smillert
11b39c5158Smillert=head1 DESCRIPTION
12b39c5158Smillert
13b39c5158SmillertPerl is free software; you can redistribute it and/or modify
14b39c5158Smillertit under the terms of either:
15b39c5158Smillert
16b39c5158Smillert        a) the GNU General Public License as published by the Free
17b39c5158Smillert        Software Foundation; either version 1, or (at your option) any
18b39c5158Smillert        later version, or
19b39c5158Smillert
20b39c5158Smillert        b) the "Artistic License" which comes with this Kit.
21b39c5158Smillert
22b39c5158SmillertThis is the B<"GNU General Public License, version 1">.
23b39c5158SmillertIt's here so that modules, programs, etc., that want to declare
24b39c5158Smillertthis as their distribution license can link to it.
25b39c5158Smillert
26b39c5158SmillertFor the Perl Artistic License, see L<perlartistic>.
27b39c5158Smillert
2885009909Smillert=cut
2985009909Smillert
3085009909Smillert# Because the following document's language disallows "changing"
3185009909Smillert# it, we haven't gone thru and prettied it up with =item's or
3285009909Smillert# anything.  It's good enough the way it is.
3385009909Smillert
3485009909Smillert=head1 GNU GENERAL PUBLIC LICENSE
3585009909Smillert
3685009909Smillert                    GNU GENERAL PUBLIC LICENSE
37b39c5158Smillert                     Version 1, February 1989
3885009909Smillert
39b39c5158Smillert  Copyright (C) 1989 Free Software Foundation, Inc.
40898184e3Ssthen                51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
41898184e3Ssthen
4285009909Smillert  Everyone is permitted to copy and distribute verbatim copies
4385009909Smillert  of this license document, but changing it is not allowed.
4485009909Smillert
4585009909Smillert                            Preamble
4685009909Smillert
47b39c5158Smillert   The license agreements of most software companies try to keep users
48b39c5158Smillert at the mercy of those companies.  By contrast, our General Public
4985009909Smillert License is intended to guarantee your freedom to share and change free
50b39c5158Smillert software--to make sure the software is free for all its users.  The
51b39c5158Smillert General Public License applies to the Free Software Foundation's
52b39c5158Smillert software and to any other program whose authors commit to using it.
53b39c5158Smillert You can use it for your programs, too.
5485009909Smillert
5585009909Smillert   When we speak of free software, we are referring to freedom, not
56b39c5158Smillert price.  Specifically, the General Public License is designed to make
57b39c5158Smillert sure that you have the freedom to give away or sell copies of free
58b39c5158Smillert software, that you receive source code or can get it if you want it,
59b39c5158Smillert that you can change the software or use pieces of it in new free
60b39c5158Smillert programs; and that you know you can do these things.
6185009909Smillert
6285009909Smillert   To protect your rights, we need to make restrictions that forbid
6385009909Smillert anyone to deny you these rights or to ask you to surrender the rights.
6485009909Smillert These restrictions translate to certain responsibilities for you if you
6585009909Smillert distribute copies of the software, or if you modify it.
6685009909Smillert
67b39c5158Smillert   For example, if you distribute copies of a such a program, whether
6885009909Smillert gratis or for a fee, you must give the recipients all the rights that
6985009909Smillert you have.  You must make sure that they, too, receive or can get the
70b39c5158Smillert source code.  And you must tell them their rights.
7185009909Smillert
72*b8851fccSafresh1   We protect your rights with two steps: (1) copyright the software,
73*b8851fccSafresh1 and (2) offer you this license which gives you legal permission to
74*b8851fccSafresh1 copy, distribute and/or modify the software.
7585009909Smillert
7685009909Smillert   Also, for each author's protection and ours, we want to make certain
7785009909Smillert that everyone understands that there is no warranty for this free
78*b8851fccSafresh1 software.  If the software is modified by someone else and passed on,
79*b8851fccSafresh1 we want its recipients to know that what they have is not the original,
80*b8851fccSafresh1 so that any problems introduced by others will not reflect on the
81*b8851fccSafresh1 original authors' reputations.
8285009909Smillert
8385009909Smillert   The precise terms and conditions for copying, distribution and
8485009909Smillert modification follow.
8585009909Smillert
8685009909Smillert                    GNU GENERAL PUBLIC LICENSE
8785009909Smillert    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
8885009909Smillert
89b39c5158Smillert   0. This License Agreement applies to any program or other work which
90b39c5158Smillert contains a notice placed by the copyright holder saying it may be
91b39c5158Smillert distributed under the terms of this General Public License.  The
92b39c5158Smillert "Program", below, refers to any such program or work, and a "work based
93b39c5158Smillert on the Program" means either the Program or any work containing the
94*b8851fccSafresh1 Program or a portion of it, either verbatim or with modifications.
95*b8851fccSafresh1 Each licensee is addressed as "you".
9685009909Smillert
97*b8851fccSafresh1   1. You may copy and distribute verbatim copies of the Program's
98*b8851fccSafresh1 source code as you receive it, in any medium, provided that you
99*b8851fccSafresh1 conspicuously and appropriately publish on each copy an appropriate
100*b8851fccSafresh1 copyright notice and disclaimer of warranty; keep intact all the
101*b8851fccSafresh1 notices that refer to this General Public License and to the absence of
102*b8851fccSafresh1 any warranty; and give any other recipients of the Program a copy of
103*b8851fccSafresh1 this General Public License along with the Program.  You may charge a
104*b8851fccSafresh1 fee for the physical act of transferring a copy.
10585009909Smillert
106*b8851fccSafresh1   2. You may modify your copy or copies of the Program or any portion
107*b8851fccSafresh1 of it, and copy and distribute such modifications under the terms of
108*b8851fccSafresh1 Paragraph 1 above, provided that you also do the following:
10985009909Smillert
110b39c5158Smillert     a) cause the modified files to carry prominent notices stating that
111b39c5158Smillert     you changed the files and the date of any change; and
11285009909Smillert
113b39c5158Smillert     b) cause the whole of any work that you distribute or publish, that
114*b8851fccSafresh1     in whole or in part contains the Program or any part thereof,
115*b8851fccSafresh1     either with or without modifications, to be licensed at no charge
116*b8851fccSafresh1     to all third parties under the terms of this General Public License
117*b8851fccSafresh1     (except that you may choose to grant warranty protection to some or
118*b8851fccSafresh1     all third parties, at your option).
11985009909Smillert
120*b8851fccSafresh1     c) If the modified program normally reads commands interactively
121*b8851fccSafresh1     when run, you must cause it, when started running for such
122*b8851fccSafresh1     interactive use in the simplest and most usual way, to print or
123*b8851fccSafresh1     display an announcement including an appropriate copyright notice
124*b8851fccSafresh1     and a notice that there is no warranty (or else, saying that you
125*b8851fccSafresh1     provide a warranty) and that users may redistribute the program
126*b8851fccSafresh1     under these conditions, and telling the user how to view a copy of
127*b8851fccSafresh1     this General Public License.
12885009909Smillert
129b39c5158Smillert     d) You may charge a fee for the physical act of transferring a
130b39c5158Smillert     copy, and you may at your option offer warranty protection in
131b39c5158Smillert     exchange for a fee.
13285009909Smillert
133b39c5158Smillert Mere aggregation of another independent work with the Program (or its
134*b8851fccSafresh1 derivative) on a volume of a storage or distribution medium does not
135*b8851fccSafresh1 bring the other work under the scope of these terms.
13685009909Smillert
137*b8851fccSafresh1   3. You may copy and distribute the Program (or a portion or
138*b8851fccSafresh1 derivative of it, under Paragraph 2) in object code or executable form
139*b8851fccSafresh1 under the terms of Paragraphs 1 and 2 above provided that you also do
140*b8851fccSafresh1 one of the following:
14185009909Smillert
142b39c5158Smillert     a) accompany it with the complete corresponding machine-readable
143b39c5158Smillert     source code, which must be distributed under the terms of
144b39c5158Smillert     Paragraphs 1 and 2 above; or,
14585009909Smillert
146b39c5158Smillert     b) accompany it with a written offer, valid for at least three
147b39c5158Smillert     years, to give any third party free (except for a nominal charge
148*b8851fccSafresh1     for the cost of distribution) a complete machine-readable copy of
149*b8851fccSafresh1     the corresponding source code, to be distributed under the terms of
150b39c5158Smillert     Paragraphs 1 and 2 above; or,
15185009909Smillert
152b39c5158Smillert     c) accompany it with the information you received as to where the
153b39c5158Smillert     corresponding source code may be obtained.  (This alternative is
15485009909Smillert     allowed only for noncommercial distribution and only if you
155b39c5158Smillert     received the program in object code or executable form alone.)
15685009909Smillert
157b39c5158Smillert Source code for a work means the preferred form of the work for making
158*b8851fccSafresh1 modifications to it.  For an executable file, complete source code
159*b8851fccSafresh1 means all the source code for all modules it contains; but, as a
160*b8851fccSafresh1 special exception, it need not include source code for modules which
161*b8851fccSafresh1 are standard libraries that accompany the operating system on which the
162*b8851fccSafresh1 executable file runs, or for standard header files or definitions files
163*b8851fccSafresh1 that accompany that operating system.
16485009909Smillert
165b39c5158Smillert   4. You may not copy, modify, sublicense, distribute or transfer the
166b39c5158Smillert Program except as expressly provided under this General Public License.
167*b8851fccSafresh1 Any attempt otherwise to copy, modify, sublicense, distribute or
168*b8851fccSafresh1 transfer the Program is void, and will automatically terminate your
169*b8851fccSafresh1 rights to use the Program under this License.  However, parties who
170*b8851fccSafresh1 have received copies, or rights to use copies, from you under this
171*b8851fccSafresh1 General Public License will not have their licenses terminated so long
172*b8851fccSafresh1 as such parties remain in full compliance.
17385009909Smillert
174*b8851fccSafresh1   5. By copying, distributing or modifying the Program (or any work
175*b8851fccSafresh1 based on the Program) you indicate your acceptance of this license to
176*b8851fccSafresh1 do so, and all its terms and conditions.
17785009909Smillert
17885009909Smillert   6. Each time you redistribute the Program (or any work based on the
179*b8851fccSafresh1 Program), the recipient automatically receives a license from the
180*b8851fccSafresh1 original licensor to copy, distribute or modify the Program subject to
181*b8851fccSafresh1 these terms and conditions.  You may not impose any further
182*b8851fccSafresh1 restrictions on the recipients' exercise of the rights granted herein.
18385009909Smillert
184*b8851fccSafresh1   7. The Free Software Foundation may publish revised and/or new
185*b8851fccSafresh1 versions of the General Public License from time to time.  Such new
186*b8851fccSafresh1 versions will be similar in spirit to the present version, but may
187*b8851fccSafresh1 differ in detail to address new problems or concerns.
18885009909Smillert
18985009909Smillert Each version is given a distinguishing version number.  If the Program
190b39c5158Smillert specifies a version number of the license which applies to it and "any
191*b8851fccSafresh1 later version", you have the option of following the terms and
192*b8851fccSafresh1 conditions either of that version or of any later version published by
193*b8851fccSafresh1 the Free Software Foundation.  If the Program does not specify a
194*b8851fccSafresh1 version number of the license, you may choose any version ever
195*b8851fccSafresh1 published by the Free Software Foundation.
19685009909Smillert
197b39c5158Smillert   8. If you wish to incorporate parts of the Program into other free
198*b8851fccSafresh1 programs whose distribution conditions are different, write to the
199*b8851fccSafresh1 author to ask for permission.  For software which is copyrighted by the
200*b8851fccSafresh1 Free Software Foundation, write to the Free Software Foundation; we
201*b8851fccSafresh1 sometimes make exceptions for this.  Our decision will be guided by the
202*b8851fccSafresh1 two goals of preserving the free status of all derivatives of our free
203*b8851fccSafresh1 software and of promoting the sharing and reuse of software generally.
20485009909Smillert
20585009909Smillert                            NO WARRANTY
20685009909Smillert
207*b8851fccSafresh1   9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
208*b8851fccSafresh1 WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
209*b8851fccSafresh1 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
210*b8851fccSafresh1 OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
211*b8851fccSafresh1 EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
212*b8851fccSafresh1 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
213*b8851fccSafresh1 THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS
214*b8851fccSafresh1 WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
215*b8851fccSafresh1 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
21685009909Smillert
217*b8851fccSafresh1   10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
218*b8851fccSafresh1 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
219*b8851fccSafresh1 AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU
220*b8851fccSafresh1 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
221*b8851fccSafresh1 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
222*b8851fccSafresh1 PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
223*b8851fccSafresh1 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
224*b8851fccSafresh1 FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
225*b8851fccSafresh1 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
226*b8851fccSafresh1 DAMAGES.
22785009909Smillert
22885009909Smillert                     END OF TERMS AND CONDITIONS
22985009909Smillert
230b39c5158Smillert        Appendix: How to Apply These Terms to Your New Programs
23185009909Smillert
23285009909Smillert   If you develop a new program, and you want it to be of the greatest
233b39c5158Smillert possible use to humanity, the best way to achieve this is to make it
234850e2753Smillert free software which everyone can redistribute and change under these
235850e2753Smillert terms.
23685009909Smillert
237*b8851fccSafresh1   To do so, attach the following notices to the program.  It is safest
238*b8851fccSafresh1 to attach them to the start of each source file to most effectively
239*b8851fccSafresh1 convey the exclusion of warranty; and each file should have at least
240*b8851fccSafresh1 the "copyright" line and a pointer to where the full notice is found.
24185009909Smillert
242*b8851fccSafresh1     <one line to give the program's name and a brief idea of what it
243*b8851fccSafresh1     does.>
244b39c5158Smillert     Copyright (C) 19yy  <name of author>
24585009909Smillert
246*b8851fccSafresh1     This program is free software; you can redistribute it and/or
247*b8851fccSafresh1     modify it under the terms of the GNU General Public License as
248*b8851fccSafresh1     published by the Free Software Foundation; either version 1, or (at
249*b8851fccSafresh1     your option) any later version.
25085009909Smillert
25185009909Smillert     This program is distributed in the hope that it will be useful,
25285009909Smillert     but WITHOUT ANY WARRANTY; without even the implied warranty of
25385009909Smillert     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25485009909Smillert     GNU General Public License for more details.
25585009909Smillert
25685009909Smillert     You should have received a copy of the GNU General Public License
257898184e3Ssthen     along with this program; if not, write to the Free Software
258898184e3Ssthen     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA
259898184e3Ssthen     02110-1301 USA
260898184e3Ssthen
26185009909Smillert
262*b8851fccSafresh1 Also add information on how to contact you by electronic and paper
263*b8851fccSafresh1 mail.
26485009909Smillert
26585009909Smillert If the program is interactive, make it output a short notice like this
26685009909Smillert when it starts in an interactive mode:
26785009909Smillert
268b39c5158Smillert     Gnomovision version 69, Copyright (C) 19xx name of author
269*b8851fccSafresh1     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type
270*b8851fccSafresh1     'show w'.  This is free software, and you are welcome to
271*b8851fccSafresh1     redistribute it under certain conditions; type 'show c' for
272*b8851fccSafresh1     details.
27385009909Smillert
274898184e3Ssthen The hypothetical commands 'show w' and 'show c' should show the
275b39c5158Smillert appropriate parts of the General Public License.  Of course, the
276898184e3Ssthen commands you use may be called something other than 'show w' and 'show
277b39c5158Smillert c'; they could even be mouse-clicks or menu items--whatever suits your
278b39c5158Smillert program.
27985009909Smillert
28085009909Smillert You should also get your employer (if you work as a programmer) or your
28185009909Smillert school, if any, to sign a "copyright disclaimer" for the program, if
282b39c5158Smillert necessary.  Here a sample; alter the names:
28385009909Smillert
284b39c5158Smillert   Yoyodyne, Inc., hereby disclaims all copyright interest in the
285898184e3Ssthen   program 'Gnomovision' (a program to direct compilers to make passes
286b39c5158Smillert   at assemblers) written by James Hacker.
28785009909Smillert
28885009909Smillert   <signature of Ty Coon>, 1 April 1989
28985009909Smillert   Ty Coon, President of Vice
29085009909Smillert
291b39c5158Smillert That's all there is to it!
29285009909Smillert
29385009909Smillert=cut
294