165a6d8ddSPeter MaydellValid-License-Identifier: GPL-2.0
2*77d361b1SEric AugerValid-License-Identifier: GPL-2.0-only
365a6d8ddSPeter MaydellValid-License-Identifier: GPL-2.0+
4*77d361b1SEric AugerValid-License-Identifier: GPL-2.0-or-later
565a6d8ddSPeter MaydellSPDX-URL: https://spdx.org/licenses/GPL-2.0.html
665a6d8ddSPeter MaydellUsage-Guide:
765a6d8ddSPeter Maydell  To use this license in source code, put one of the following SPDX
865a6d8ddSPeter Maydell  tag/value pairs into a comment according to the placement
965a6d8ddSPeter Maydell  guidelines in the licensing rules documentation.
1065a6d8ddSPeter Maydell  For 'GNU General Public License (GPL) version 2 only' use:
1165a6d8ddSPeter Maydell    SPDX-License-Identifier: GPL-2.0
12*77d361b1SEric Auger  or
13*77d361b1SEric Auger    SPDX-License-Identifier: GPL-2.0-only
1465a6d8ddSPeter Maydell  For 'GNU General Public License (GPL) version 2 or any later version' use:
1565a6d8ddSPeter Maydell    SPDX-License-Identifier: GPL-2.0+
16*77d361b1SEric Auger  or
17*77d361b1SEric Auger    SPDX-License-Identifier: GPL-2.0-or-later
1865a6d8ddSPeter MaydellLicense-Text:
1965a6d8ddSPeter Maydell
2065a6d8ddSPeter Maydell		    GNU GENERAL PUBLIC LICENSE
2165a6d8ddSPeter Maydell		       Version 2, June 1991
2265a6d8ddSPeter Maydell
2365a6d8ddSPeter Maydell Copyright (C) 1989, 1991 Free Software Foundation, Inc.
2465a6d8ddSPeter Maydell                       51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
2565a6d8ddSPeter Maydell Everyone is permitted to copy and distribute verbatim copies
2665a6d8ddSPeter Maydell of this license document, but changing it is not allowed.
2765a6d8ddSPeter Maydell
2865a6d8ddSPeter Maydell			    Preamble
2965a6d8ddSPeter Maydell
3065a6d8ddSPeter Maydell  The licenses for most software are designed to take away your
3165a6d8ddSPeter Maydellfreedom to share and change it.  By contrast, the GNU General Public
3265a6d8ddSPeter MaydellLicense is intended to guarantee your freedom to share and change free
3365a6d8ddSPeter Maydellsoftware--to make sure the software is free for all its users.  This
3465a6d8ddSPeter MaydellGeneral Public License applies to most of the Free Software
3565a6d8ddSPeter MaydellFoundation's software and to any other program whose authors commit to
3665a6d8ddSPeter Maydellusing it.  (Some other Free Software Foundation software is covered by
3765a6d8ddSPeter Maydellthe GNU Library General Public License instead.)  You can apply it to
3865a6d8ddSPeter Maydellyour programs, too.
3965a6d8ddSPeter Maydell
4065a6d8ddSPeter Maydell  When we speak of free software, we are referring to freedom, not
4165a6d8ddSPeter Maydellprice.  Our General Public Licenses are designed to make sure that you
4265a6d8ddSPeter Maydellhave the freedom to distribute copies of free software (and charge for
4365a6d8ddSPeter Maydellthis service if you wish), that you receive source code or can get it
4465a6d8ddSPeter Maydellif you want it, that you can change the software or use pieces of it
4565a6d8ddSPeter Maydellin new free programs; and that you know you can do these things.
4665a6d8ddSPeter Maydell
4765a6d8ddSPeter Maydell  To protect your rights, we need to make restrictions that forbid
4865a6d8ddSPeter Maydellanyone to deny you these rights or to ask you to surrender the rights.
4965a6d8ddSPeter MaydellThese restrictions translate to certain responsibilities for you if you
5065a6d8ddSPeter Maydelldistribute copies of the software, or if you modify it.
5165a6d8ddSPeter Maydell
5265a6d8ddSPeter Maydell  For example, if you distribute copies of such a program, whether
5365a6d8ddSPeter Maydellgratis or for a fee, you must give the recipients all the rights that
5465a6d8ddSPeter Maydellyou have.  You must make sure that they, too, receive or can get the
5565a6d8ddSPeter Maydellsource code.  And you must show them these terms so they know their
5665a6d8ddSPeter Maydellrights.
5765a6d8ddSPeter Maydell
5865a6d8ddSPeter Maydell  We protect your rights with two steps: (1) copyright the software, and
5965a6d8ddSPeter Maydell(2) offer you this license which gives you legal permission to copy,
6065a6d8ddSPeter Maydelldistribute and/or modify the software.
6165a6d8ddSPeter Maydell
6265a6d8ddSPeter Maydell  Also, for each author's protection and ours, we want to make certain
6365a6d8ddSPeter Maydellthat everyone understands that there is no warranty for this free
6465a6d8ddSPeter Maydellsoftware.  If the software is modified by someone else and passed on, we
6565a6d8ddSPeter Maydellwant its recipients to know that what they have is not the original, so
6665a6d8ddSPeter Maydellthat any problems introduced by others will not reflect on the original
6765a6d8ddSPeter Maydellauthors' reputations.
6865a6d8ddSPeter Maydell
6965a6d8ddSPeter Maydell  Finally, any free program is threatened constantly by software
7065a6d8ddSPeter Maydellpatents.  We wish to avoid the danger that redistributors of a free
7165a6d8ddSPeter Maydellprogram will individually obtain patent licenses, in effect making the
7265a6d8ddSPeter Maydellprogram proprietary.  To prevent this, we have made it clear that any
7365a6d8ddSPeter Maydellpatent must be licensed for everyone's free use or not licensed at all.
7465a6d8ddSPeter Maydell
7565a6d8ddSPeter Maydell  The precise terms and conditions for copying, distribution and
7665a6d8ddSPeter Maydellmodification follow.
7765a6d8ddSPeter Maydell
7865a6d8ddSPeter Maydell		    GNU GENERAL PUBLIC LICENSE
7965a6d8ddSPeter Maydell   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
8065a6d8ddSPeter Maydell
8165a6d8ddSPeter Maydell  0. This License applies to any program or other work which contains
8265a6d8ddSPeter Maydella notice placed by the copyright holder saying it may be distributed
8365a6d8ddSPeter Maydellunder the terms of this General Public License.  The "Program", below,
8465a6d8ddSPeter Maydellrefers to any such program or work, and a "work based on the Program"
8565a6d8ddSPeter Maydellmeans either the Program or any derivative work under copyright law:
8665a6d8ddSPeter Maydellthat is to say, a work containing the Program or a portion of it,
8765a6d8ddSPeter Maydelleither verbatim or with modifications and/or translated into another
8865a6d8ddSPeter Maydelllanguage.  (Hereinafter, translation is included without limitation in
8965a6d8ddSPeter Maydellthe term "modification".)  Each licensee is addressed as "you".
9065a6d8ddSPeter Maydell
9165a6d8ddSPeter MaydellActivities other than copying, distribution and modification are not
9265a6d8ddSPeter Maydellcovered by this License; they are outside its scope.  The act of
9365a6d8ddSPeter Maydellrunning the Program is not restricted, and the output from the Program
9465a6d8ddSPeter Maydellis covered only if its contents constitute a work based on the
9565a6d8ddSPeter MaydellProgram (independent of having been made by running the Program).
9665a6d8ddSPeter MaydellWhether that is true depends on what the Program does.
9765a6d8ddSPeter Maydell
9865a6d8ddSPeter Maydell  1. You may copy and distribute verbatim copies of the Program's
9965a6d8ddSPeter Maydellsource code as you receive it, in any medium, provided that you
10065a6d8ddSPeter Maydellconspicuously and appropriately publish on each copy an appropriate
10165a6d8ddSPeter Maydellcopyright notice and disclaimer of warranty; keep intact all the
10265a6d8ddSPeter Maydellnotices that refer to this License and to the absence of any warranty;
10365a6d8ddSPeter Maydelland give any other recipients of the Program a copy of this License
10465a6d8ddSPeter Maydellalong with the Program.
10565a6d8ddSPeter Maydell
10665a6d8ddSPeter MaydellYou may charge a fee for the physical act of transferring a copy, and
10765a6d8ddSPeter Maydellyou may at your option offer warranty protection in exchange for a fee.
10865a6d8ddSPeter Maydell
10965a6d8ddSPeter Maydell  2. You may modify your copy or copies of the Program or any portion
11065a6d8ddSPeter Maydellof it, thus forming a work based on the Program, and copy and
11165a6d8ddSPeter Maydelldistribute such modifications or work under the terms of Section 1
11265a6d8ddSPeter Maydellabove, provided that you also meet all of these conditions:
11365a6d8ddSPeter Maydell
11465a6d8ddSPeter Maydell    a) You must cause the modified files to carry prominent notices
11565a6d8ddSPeter Maydell    stating that you changed the files and the date of any change.
11665a6d8ddSPeter Maydell
11765a6d8ddSPeter Maydell    b) You must cause any work that you distribute or publish, that in
11865a6d8ddSPeter Maydell    whole or in part contains or is derived from the Program or any
11965a6d8ddSPeter Maydell    part thereof, to be licensed as a whole at no charge to all third
12065a6d8ddSPeter Maydell    parties under the terms of this License.
12165a6d8ddSPeter Maydell
12265a6d8ddSPeter Maydell    c) If the modified program normally reads commands interactively
12365a6d8ddSPeter Maydell    when run, you must cause it, when started running for such
12465a6d8ddSPeter Maydell    interactive use in the most ordinary way, to print or display an
12565a6d8ddSPeter Maydell    announcement including an appropriate copyright notice and a
12665a6d8ddSPeter Maydell    notice that there is no warranty (or else, saying that you provide
12765a6d8ddSPeter Maydell    a warranty) and that users may redistribute the program under
12865a6d8ddSPeter Maydell    these conditions, and telling the user how to view a copy of this
12965a6d8ddSPeter Maydell    License.  (Exception: if the Program itself is interactive but
13065a6d8ddSPeter Maydell    does not normally print such an announcement, your work based on
13165a6d8ddSPeter Maydell    the Program is not required to print an announcement.)
13265a6d8ddSPeter Maydell
13365a6d8ddSPeter MaydellThese requirements apply to the modified work as a whole.  If
13465a6d8ddSPeter Maydellidentifiable sections of that work are not derived from the Program,
13565a6d8ddSPeter Maydelland can be reasonably considered independent and separate works in
13665a6d8ddSPeter Maydellthemselves, then this License, and its terms, do not apply to those
13765a6d8ddSPeter Maydellsections when you distribute them as separate works.  But when you
13865a6d8ddSPeter Maydelldistribute the same sections as part of a whole which is a work based
13965a6d8ddSPeter Maydellon the Program, the distribution of the whole must be on the terms of
14065a6d8ddSPeter Maydellthis License, whose permissions for other licensees extend to the
14165a6d8ddSPeter Maydellentire whole, and thus to each and every part regardless of who wrote it.
14265a6d8ddSPeter Maydell
14365a6d8ddSPeter MaydellThus, it is not the intent of this section to claim rights or contest
14465a6d8ddSPeter Maydellyour rights to work written entirely by you; rather, the intent is to
14565a6d8ddSPeter Maydellexercise the right to control the distribution of derivative or
14665a6d8ddSPeter Maydellcollective works based on the Program.
14765a6d8ddSPeter Maydell
14865a6d8ddSPeter MaydellIn addition, mere aggregation of another work not based on the Program
14965a6d8ddSPeter Maydellwith the Program (or with a work based on the Program) on a volume of
15065a6d8ddSPeter Maydella storage or distribution medium does not bring the other work under
15165a6d8ddSPeter Maydellthe scope of this License.
15265a6d8ddSPeter Maydell
15365a6d8ddSPeter Maydell  3. You may copy and distribute the Program (or a work based on it,
15465a6d8ddSPeter Maydellunder Section 2) in object code or executable form under the terms of
15565a6d8ddSPeter MaydellSections 1 and 2 above provided that you also do one of the following:
15665a6d8ddSPeter Maydell
15765a6d8ddSPeter Maydell    a) Accompany it with the complete corresponding machine-readable
15865a6d8ddSPeter Maydell    source code, which must be distributed under the terms of Sections
15965a6d8ddSPeter Maydell    1 and 2 above on a medium customarily used for software interchange; or,
16065a6d8ddSPeter Maydell
16165a6d8ddSPeter Maydell    b) Accompany it with a written offer, valid for at least three
16265a6d8ddSPeter Maydell    years, to give any third party, for a charge no more than your
16365a6d8ddSPeter Maydell    cost of physically performing source distribution, a complete
16465a6d8ddSPeter Maydell    machine-readable copy of the corresponding source code, to be
16565a6d8ddSPeter Maydell    distributed under the terms of Sections 1 and 2 above on a medium
16665a6d8ddSPeter Maydell    customarily used for software interchange; or,
16765a6d8ddSPeter Maydell
16865a6d8ddSPeter Maydell    c) Accompany it with the information you received as to the offer
16965a6d8ddSPeter Maydell    to distribute corresponding source code.  (This alternative is
17065a6d8ddSPeter Maydell    allowed only for noncommercial distribution and only if you
17165a6d8ddSPeter Maydell    received the program in object code or executable form with such
17265a6d8ddSPeter Maydell    an offer, in accord with Subsection b above.)
17365a6d8ddSPeter Maydell
17465a6d8ddSPeter MaydellThe source code for a work means the preferred form of the work for
17565a6d8ddSPeter Maydellmaking modifications to it.  For an executable work, complete source
17665a6d8ddSPeter Maydellcode means all the source code for all modules it contains, plus any
17765a6d8ddSPeter Maydellassociated interface definition files, plus the scripts used to
17865a6d8ddSPeter Maydellcontrol compilation and installation of the executable.  However, as a
17965a6d8ddSPeter Maydellspecial exception, the source code distributed need not include
18065a6d8ddSPeter Maydellanything that is normally distributed (in either source or binary
18165a6d8ddSPeter Maydellform) with the major components (compiler, kernel, and so on) of the
18265a6d8ddSPeter Maydelloperating system on which the executable runs, unless that component
18365a6d8ddSPeter Maydellitself accompanies the executable.
18465a6d8ddSPeter Maydell
18565a6d8ddSPeter MaydellIf distribution of executable or object code is made by offering
18665a6d8ddSPeter Maydellaccess to copy from a designated place, then offering equivalent
18765a6d8ddSPeter Maydellaccess to copy the source code from the same place counts as
18865a6d8ddSPeter Maydelldistribution of the source code, even though third parties are not
18965a6d8ddSPeter Maydellcompelled to copy the source along with the object code.
19065a6d8ddSPeter Maydell
19165a6d8ddSPeter Maydell  4. You may not copy, modify, sublicense, or distribute the Program
19265a6d8ddSPeter Maydellexcept as expressly provided under this License.  Any attempt
19365a6d8ddSPeter Maydellotherwise to copy, modify, sublicense or distribute the Program is
19465a6d8ddSPeter Maydellvoid, and will automatically terminate your rights under this License.
19565a6d8ddSPeter MaydellHowever, parties who have received copies, or rights, from you under
19665a6d8ddSPeter Maydellthis License will not have their licenses terminated so long as such
19765a6d8ddSPeter Maydellparties remain in full compliance.
19865a6d8ddSPeter Maydell
19965a6d8ddSPeter Maydell  5. You are not required to accept this License, since you have not
20065a6d8ddSPeter Maydellsigned it.  However, nothing else grants you permission to modify or
20165a6d8ddSPeter Maydelldistribute the Program or its derivative works.  These actions are
20265a6d8ddSPeter Maydellprohibited by law if you do not accept this License.  Therefore, by
20365a6d8ddSPeter Maydellmodifying or distributing the Program (or any work based on the
20465a6d8ddSPeter MaydellProgram), you indicate your acceptance of this License to do so, and
20565a6d8ddSPeter Maydellall its terms and conditions for copying, distributing or modifying
20665a6d8ddSPeter Maydellthe Program or works based on it.
20765a6d8ddSPeter Maydell
20865a6d8ddSPeter Maydell  6. Each time you redistribute the Program (or any work based on the
20965a6d8ddSPeter MaydellProgram), the recipient automatically receives a license from the
21065a6d8ddSPeter Maydelloriginal licensor to copy, distribute or modify the Program subject to
21165a6d8ddSPeter Maydellthese terms and conditions.  You may not impose any further
21265a6d8ddSPeter Maydellrestrictions on the recipients' exercise of the rights granted herein.
21365a6d8ddSPeter MaydellYou are not responsible for enforcing compliance by third parties to
21465a6d8ddSPeter Maydellthis License.
21565a6d8ddSPeter Maydell
21665a6d8ddSPeter Maydell  7. If, as a consequence of a court judgment or allegation of patent
21765a6d8ddSPeter Maydellinfringement or for any other reason (not limited to patent issues),
21865a6d8ddSPeter Maydellconditions are imposed on you (whether by court order, agreement or
21965a6d8ddSPeter Maydellotherwise) that contradict the conditions of this License, they do not
22065a6d8ddSPeter Maydellexcuse you from the conditions of this License.  If you cannot
22165a6d8ddSPeter Maydelldistribute so as to satisfy simultaneously your obligations under this
22265a6d8ddSPeter MaydellLicense and any other pertinent obligations, then as a consequence you
22365a6d8ddSPeter Maydellmay not distribute the Program at all.  For example, if a patent
22465a6d8ddSPeter Maydelllicense would not permit royalty-free redistribution of the Program by
22565a6d8ddSPeter Maydellall those who receive copies directly or indirectly through you, then
22665a6d8ddSPeter Maydellthe only way you could satisfy both it and this License would be to
22765a6d8ddSPeter Maydellrefrain entirely from distribution of the Program.
22865a6d8ddSPeter Maydell
22965a6d8ddSPeter MaydellIf any portion of this section is held invalid or unenforceable under
23065a6d8ddSPeter Maydellany particular circumstance, the balance of the section is intended to
23165a6d8ddSPeter Maydellapply and the section as a whole is intended to apply in other
23265a6d8ddSPeter Maydellcircumstances.
23365a6d8ddSPeter Maydell
23465a6d8ddSPeter MaydellIt is not the purpose of this section to induce you to infringe any
23565a6d8ddSPeter Maydellpatents or other property right claims or to contest validity of any
23665a6d8ddSPeter Maydellsuch claims; this section has the sole purpose of protecting the
23765a6d8ddSPeter Maydellintegrity of the free software distribution system, which is
23865a6d8ddSPeter Maydellimplemented by public license practices.  Many people have made
23965a6d8ddSPeter Maydellgenerous contributions to the wide range of software distributed
24065a6d8ddSPeter Maydellthrough that system in reliance on consistent application of that
24165a6d8ddSPeter Maydellsystem; it is up to the author/donor to decide if he or she is willing
24265a6d8ddSPeter Maydellto distribute software through any other system and a licensee cannot
24365a6d8ddSPeter Maydellimpose that choice.
24465a6d8ddSPeter Maydell
24565a6d8ddSPeter MaydellThis section is intended to make thoroughly clear what is believed to
24665a6d8ddSPeter Maydellbe a consequence of the rest of this License.
24765a6d8ddSPeter Maydell
24865a6d8ddSPeter Maydell  8. If the distribution and/or use of the Program is restricted in
24965a6d8ddSPeter Maydellcertain countries either by patents or by copyrighted interfaces, the
25065a6d8ddSPeter Maydelloriginal copyright holder who places the Program under this License
25165a6d8ddSPeter Maydellmay add an explicit geographical distribution limitation excluding
25265a6d8ddSPeter Maydellthose countries, so that distribution is permitted only in or among
25365a6d8ddSPeter Maydellcountries not thus excluded.  In such case, this License incorporates
25465a6d8ddSPeter Maydellthe limitation as if written in the body of this License.
25565a6d8ddSPeter Maydell
25665a6d8ddSPeter Maydell  9. The Free Software Foundation may publish revised and/or new versions
25765a6d8ddSPeter Maydellof the General Public License from time to time.  Such new versions will
25865a6d8ddSPeter Maydellbe similar in spirit to the present version, but may differ in detail to
25965a6d8ddSPeter Maydelladdress new problems or concerns.
26065a6d8ddSPeter Maydell
26165a6d8ddSPeter MaydellEach version is given a distinguishing version number.  If the Program
26265a6d8ddSPeter Maydellspecifies a version number of this License which applies to it and "any
26365a6d8ddSPeter Maydelllater version", you have the option of following the terms and conditions
26465a6d8ddSPeter Maydelleither of that version or of any later version published by the Free
26565a6d8ddSPeter MaydellSoftware Foundation.  If the Program does not specify a version number of
26665a6d8ddSPeter Maydellthis License, you may choose any version ever published by the Free Software
26765a6d8ddSPeter MaydellFoundation.
26865a6d8ddSPeter Maydell
26965a6d8ddSPeter Maydell  10. If you wish to incorporate parts of the Program into other free
27065a6d8ddSPeter Maydellprograms whose distribution conditions are different, write to the author
27165a6d8ddSPeter Maydellto ask for permission.  For software which is copyrighted by the Free
27265a6d8ddSPeter MaydellSoftware Foundation, write to the Free Software Foundation; we sometimes
27365a6d8ddSPeter Maydellmake exceptions for this.  Our decision will be guided by the two goals
27465a6d8ddSPeter Maydellof preserving the free status of all derivatives of our free software and
27565a6d8ddSPeter Maydellof promoting the sharing and reuse of software generally.
27665a6d8ddSPeter Maydell
27765a6d8ddSPeter Maydell			    NO WARRANTY
27865a6d8ddSPeter Maydell
27965a6d8ddSPeter Maydell  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
28065a6d8ddSPeter MaydellFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
28165a6d8ddSPeter MaydellOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
28265a6d8ddSPeter MaydellPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
28365a6d8ddSPeter MaydellOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
28465a6d8ddSPeter MaydellMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
28565a6d8ddSPeter MaydellTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
28665a6d8ddSPeter MaydellPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
28765a6d8ddSPeter MaydellREPAIR OR CORRECTION.
28865a6d8ddSPeter Maydell
28965a6d8ddSPeter Maydell  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
29065a6d8ddSPeter MaydellWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
29165a6d8ddSPeter MaydellREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
29265a6d8ddSPeter MaydellINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
29365a6d8ddSPeter MaydellOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
29465a6d8ddSPeter MaydellTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
29565a6d8ddSPeter MaydellYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
29665a6d8ddSPeter MaydellPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
29765a6d8ddSPeter MaydellPOSSIBILITY OF SUCH DAMAGES.
29865a6d8ddSPeter Maydell
29965a6d8ddSPeter Maydell		     END OF TERMS AND CONDITIONS
30065a6d8ddSPeter Maydell
30165a6d8ddSPeter Maydell	    How to Apply These Terms to Your New Programs
30265a6d8ddSPeter Maydell
30365a6d8ddSPeter Maydell  If you develop a new program, and you want it to be of the greatest
30465a6d8ddSPeter Maydellpossible use to the public, the best way to achieve this is to make it
30565a6d8ddSPeter Maydellfree software which everyone can redistribute and change under these terms.
30665a6d8ddSPeter Maydell
30765a6d8ddSPeter Maydell  To do so, attach the following notices to the program.  It is safest
30865a6d8ddSPeter Maydellto attach them to the start of each source file to most effectively
30965a6d8ddSPeter Maydellconvey the exclusion of warranty; and each file should have at least
31065a6d8ddSPeter Maydellthe "copyright" line and a pointer to where the full notice is found.
31165a6d8ddSPeter Maydell
31265a6d8ddSPeter Maydell    <one line to give the program's name and a brief idea of what it does.>
31365a6d8ddSPeter Maydell    Copyright (C) <year>  <name of author>
31465a6d8ddSPeter Maydell
31565a6d8ddSPeter Maydell    This program is free software; you can redistribute it and/or modify
31665a6d8ddSPeter Maydell    it under the terms of the GNU General Public License as published by
31765a6d8ddSPeter Maydell    the Free Software Foundation; either version 2 of the License, or
31865a6d8ddSPeter Maydell    (at your option) any later version.
31965a6d8ddSPeter Maydell
32065a6d8ddSPeter Maydell    This program is distributed in the hope that it will be useful,
32165a6d8ddSPeter Maydell    but WITHOUT ANY WARRANTY; without even the implied warranty of
32265a6d8ddSPeter Maydell    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32365a6d8ddSPeter Maydell    GNU General Public License for more details.
32465a6d8ddSPeter Maydell
32565a6d8ddSPeter Maydell    You should have received a copy of the GNU General Public License
32665a6d8ddSPeter Maydell    along with this program; if not, write to the Free Software
32765a6d8ddSPeter Maydell    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
32865a6d8ddSPeter Maydell
32965a6d8ddSPeter Maydell
33065a6d8ddSPeter MaydellAlso add information on how to contact you by electronic and paper mail.
33165a6d8ddSPeter Maydell
33265a6d8ddSPeter MaydellIf the program is interactive, make it output a short notice like this
33365a6d8ddSPeter Maydellwhen it starts in an interactive mode:
33465a6d8ddSPeter Maydell
33565a6d8ddSPeter Maydell    Gnomovision version 69, Copyright (C) year name of author
33665a6d8ddSPeter Maydell    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
33765a6d8ddSPeter Maydell    This is free software, and you are welcome to redistribute it
33865a6d8ddSPeter Maydell    under certain conditions; type `show c' for details.
33965a6d8ddSPeter Maydell
34065a6d8ddSPeter MaydellThe hypothetical commands `show w' and `show c' should show the appropriate
34165a6d8ddSPeter Maydellparts of the General Public License.  Of course, the commands you use may
34265a6d8ddSPeter Maydellbe called something other than `show w' and `show c'; they could even be
34365a6d8ddSPeter Maydellmouse-clicks or menu items--whatever suits your program.
34465a6d8ddSPeter Maydell
34565a6d8ddSPeter MaydellYou should also get your employer (if you work as a programmer) or your
34665a6d8ddSPeter Maydellschool, if any, to sign a "copyright disclaimer" for the program, if
34765a6d8ddSPeter Maydellnecessary.  Here is a sample; alter the names:
34865a6d8ddSPeter Maydell
34965a6d8ddSPeter Maydell  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
35065a6d8ddSPeter Maydell  `Gnomovision' (which makes passes at compilers) written by James Hacker.
35165a6d8ddSPeter Maydell
35265a6d8ddSPeter Maydell  <signature of Ty Coon>, 1 April 1989
35365a6d8ddSPeter Maydell  Ty Coon, President of Vice
35465a6d8ddSPeter Maydell
35565a6d8ddSPeter MaydellThis General Public License does not permit incorporating your program into
35665a6d8ddSPeter Maydellproprietary programs.  If your program is a subroutine library, you may
35765a6d8ddSPeter Maydellconsider it more useful to permit linking proprietary applications with the
35865a6d8ddSPeter Maydelllibrary.  If this is what you want to do, use the GNU Library General
35965a6d8ddSPeter MaydellPublic License instead of this License.
360