133
GNU GENERAL PUBLIC LICENSE
Version 2, J
u
ne 1991
Copyright © 1989, 1991 Free Soft
w
are Fo
u
ndation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
E
v
eryone is permitted to copy and distri
bu
te
v
er
b
atim copies of this license doc
u
ment,
bu
t changing it is not allo
w
ed.
Preamble
The licenses for most soft
w
are are designed to take a
w
ay yo
u
r freedom to
share and change it. By contrast, the G
N
U General P
ub
lic License is intended
to g
u
arantee yo
u
r freedom to share and change free soft
w
are—to make s
u
re
the soft
w
are is free for all its
u
sers. This General P
ub
lic License applies to
most of the Free Soft
w
are Fo
u
ndation’s soft
w
are and to any other program
w
hose a
u
thors commit to
u
sing it. (Some other Free Soft
w
are Fo
u
ndation
soft
w
are is co
v
ered
b
y the G
N
U Lesser General P
ub
lic License instead.) Yo
u
can apply it to yo
u
r programs, too.
W
hen
w
e speak of free soft
w
are,
w
e are referring to freedom, not price. O
u
r
General P
ub
lic Licenses are designed to make s
u
re that yo
u
ha
v
e the
freedom to distri
bu
te copies of free soft
w
are (and charge for this ser
v
ice if yo
u
w
ish), that yo
u
recei
v
e so
u
rce code or can get it if yo
u
w
ant it, that yo
u
can
change the soft
w
are or
u
se pieces of it in ne
w
free programs; and that yo
u
kno
w
yo
u
can do these things.
To protect yo
u
r rights,
w
e need to make restrictions that for
b
id anyone to deny
yo
u
these rights or to ask yo
u
to s
u
rrender the rights. These restrictions
translate to certain responsi
b
ilities for yo
u
if yo
u
distri
bu
te copies of the
soft
w
are, or if yo
u
modify it.
For example, if yo
u
distri
bu
te copies of s
u
ch a program,
w
hether gratis or for a
fee, yo
u
m
u
st gi
v
e the recipients all the rights that yo
u
ha
v
e. Yo
u
m
u
st make
s
u
re that they, too, recei
v
e or can get the so
u
rce code. And yo
u
m
u
st sho
w
them these terms so they kno
w
their rights.
W
e protect yo
u
r rights
w
ith t
w
o steps: (1) copyright the soft
w
are, and (2) offer
yo
u
this license
w
hich gi
v
es yo
u
legal permission to copy, distri
bu
te and/or
modify the soft
w
are.
Also, for each a
u
thor
'
s protection and o
u
rs,
w
e
w
ant to make certain that
e
v
eryone
u
nderstands that there is no
w
arranty for this free soft
w
are. If the
soft
w
are is modified
b
y someone else and passed on,
w
e
w
ant its recipients
to kno
w
that
w
hat they ha
v
e is not the original, so that any pro
b
lems
introd
u
ced
b
y others
w
ill not reflect on the original a
u
thors’ rep
u
tations.
Finally, any free program is threatened constantly
b
y soft
w
are patents.
W
e
w
ish to a
v
oid the danger that redistri
bu
tors of a free program
w
ill indi
v
id
u
ally
o
b
tain patent licenses, in effect making the program proprietary. To pre
v
ent
this,
w
e ha
v
e made it clear that any patent m
u
st
b
e licensed for e
v
eryone’s
free
u
se or not licensed at all.
The precise terms and conditions for copying, distri
bu
tion and modification
follo
w
.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING,
DISTRIBUTION AND MODIFICATION
0.
This License applies to any program or other
w
ork
w
hich contains a notice
placed
b
y the copyright holder saying it may
b
e distri
bu
ted
u
nder the
terms of this General P
ub
lic License. The “Program”,
b
elo
w
, refers to any
s
u
ch program or
w
ork, and a “
w
ork
b
ased on the Program” means either
the Program or any deri
v
ati
v
e
w
ork
u
nder copyright la
w
: that is to say, a
w
ork containing the Program or a portion of it, either
v
er
b
atim or
w
ith
modifications and/or translated into another lang
u
age. (Hereinafter,
translation is incl
u
ded
w
itho
u
t limitation in the term “modification”.) Each
licensee is addressed as “yo
u
”.
Acti
v
ities other than copying, distri
bu
tion and modification are not co
v
ered
b
y this License; they are o
u
tside its scope. The act of r
u
nning the
Program is not restricted, and the o
u
tp
u
t from the Program is co
v
ered
only if its contents constit
u
te a
w
ork
b
ased on the Program (independent
of ha
v
ing
b
een made
b
y r
u
nning the Program).
W
hether that is tr
u
e
depends on
w
hat the Program does.
1.
Yo
u
may copy and distri
bu
te
v
er
b
atim copies of the Program’s so
u
rce
code as yo
u
recei
v
e it, in any medi
u
m, pro
v
ided that yo
u
conspic
u
o
u
sly
and appropriately p
ub
lish on each copy an appropriate copyright notice
and disclaimer of
w
arranty; keep intact all the notices that refer to this
License and to the a
b
sence of any
w
arranty; and gi
v
e any other
recipients of the Program a copy of this License along
w
ith the Program.
Yo
u
may charge a fee for the physical act of transferring a copy, and yo
u
may at yo
u
r option offer
w
arranty protection in exchange for a fee.
2.
Yo
u
may modify yo
u
r copy or copies of the Program or any portion of it,
th
u
s forming a
w
ork
b
ased on the Program, and copy and distri
bu
te s
u
ch
modifications or
w
ork
u
nder the terms of Section 1 a
b
o
v
e, pro
v
ided that
yo
u
also meet all of these conditions:
a)
Yo
u
m
u
st ca
u
se the modified files to carry prominent notices stating
that yo
u
changed the files and the date of any change.
b)
Yo
u
m
u
st ca
u
se any
w
ork that yo
u
distri
bu
te or p
ub
lish, that in
w
hole
or in part contains or is deri
v
ed from the Program or any part thereof,
to
b
e licensed as a
w
hole at no charge to all third parties
u
nder the
terms of this License.
c)
If the modified program normally reads commands interacti
v
ely
w
hen
r
u
n, yo
u
m
u
st ca
u
se it,
w
hen started r
u
nning for s
u
ch interacti
v
e
u
se
in the most ordinary
w
ay, to print or display an anno
u
ncement
incl
u
ding an appropriate copyright notice and a notice that there is no
w
arranty (or else, saying that yo
u
pro
v
ide a
w
arranty) and that
u
sers
may redistri
bu
te the program
u
nder these conditions, and telling the
u
ser ho
w
to
v
ie
w
a copy of this License. (Exception: if the Program
itself is interacti
v
e
bu
t does not normally print s
u
ch an anno
u
ncement,
yo
u
r
w
ork
b
ased on the Program is not re
qu
ired to print an
anno
u
ncement.)
These re
qu
irements apply to the modified
w
ork as a
w
hole. If identifia
b
le
sections of that
w
ork are not deri
v
ed from the Program, and can
b
e
reasona
b
ly considered independent and separate
w
orks in themsel
v
es,
then this License, and its terms, do not apply to those sections
w
hen yo
u
distri
bu
te them as separate
w
orks. B
u
t
w
hen yo
u
distri
bu
te the same
sections as part of a
w
hole
w
hich is a
w
ork
b
ased on the Program, the
distri
bu
tion of the
w
hole m
u
st
b
e on the terms of this License,
w
hose
permissions for other licensees extend to the entire
w
hole, and th
u
s to
each and e
v
ery part regardless of
w
ho
w
rote it.
Th
u
s, it is not the intent of this section to claim rights or contest yo
u
r
rights to
w
ork
w
ritten entirely
b
y yo
u
; rather, the intent is to exercise the
right to control the distri
bu
tion of deri
v
ati
v
e or collecti
v
e
w
orks
b
ased on
the Program.
In addition, mere aggregation of another
w
ork not
b
ased on the Program
w
ith the Program (or
w
ith a
w
ork
b
ased on the Program) on a
v
ol
u
me of a
storage or distri
bu
tion medi
u
m does not
b
ring the other
w
ork
u
nder the
scope of this License.
3.
Yo
u
may copy and distri
bu
te the Program (or a
w
ork
b
ased on it,
u
nder
Section 2) in o
b
ject code or exec
u
ta
b
le form
u
nder the terms of Sections
1 and 2 a
b
o
v
e pro
v
ided that yo
u
also do one of the follo
w
ing:
a)
Accompany it
w
ith the complete corresponding machine- reada
b
le
so
u
rce code,
w
hich m
u
st
b
e distri
bu
ted
u
nder the terms of Sections 1
and 2 a
b
o
v
e on a medi
u
m c
u
stomarily
u
sed for soft
w
are interchange;
or,
b)
Accompany it
w
ith a
w
ritten offer,
v
alid for at least three years, to gi
v
e
any third party, for a charge no more than yo
u
r cost of physically
performing so
u
rce distri
bu
tion, a complete machine- reada
b
le copy of
the corresponding so
u
rce code, to
b
e distri
bu
ted
u
nder the terms of
Sections 1 and 2 a
b
o
v
e on a medi
u
m c
u
stomarily
u
sed for soft
w
are
interchange; or,
c)
Accompany it
w
ith the information yo
u
recei
v
ed as to the offer to
distri
bu
te corresponding so
u
rce code. (This alternati
v
e is allo
w
ed only
for noncommercial distri
bu
tion and only if yo
u
recei
v
ed the program in
o
b
ject code or exec
u
ta
b
le form
w
ith s
u
ch an offer, in accord
w
ith
S
ub
section
b
a
b
o
v
e.)
The so
u
rce code for a
w
ork means the preferred form of the
w
ork for
making modifications to it. For an exec
u
ta
b
le
w
ork, complete so
u
rce code
means all the so
u
rce code for all mod
u
les it contains, pl
u
s any associated
interface definition files, pl
u
s the scripts
u
sed to control compilation and
installation of the exec
u
ta
b
le. Ho
w
e
v
er, as a special exception, the so
u
rce
code distri
bu
ted need not incl
u
de anything that is normally distri
bu
ted (in
either so
u
rce or
b
inary form)
w
ith the major components (compiler,
kernel, and so on) of the operating system on
w
hich the exec
u
ta
b
le r
u
ns,
u
nless that component itself accompanies the exec
u
ta
b
le.
If distri
bu
tion of exec
u
ta
b
le or o
b
ject code is made
b
y offering access to
copy from a designated place, then offering e
qu
i
v
alent access to copy the
so
u
rce code from the same place co
u
nts as distri
bu
tion of the so
u
rce
code, e
v
en tho
u
gh third parties are not compelled to copy the so
u
rce
along
w
ith the o
b
ject code.
4.
Yo
u
may not copy, modify, s
ub
license, or distri
bu
te the Program except as
expressly pro
v
ided
u
nder this License. Any attempt other
w
ise to copy,
modify, s
ub
license or distri
bu
te the Program is
v
oid, and
w
ill a
u
tomatically
terminate yo
u
r rights
u
nder this License. Ho
w
e
v
er, parties
w
ho ha
v
e
recei
v
ed copies, or rights, from yo
u
u
nder this License
w
ill not ha
v
e their
licenses terminated so long as s
u
ch parties remain in f
u
ll compliance.
5.
Yo
u
are not re
qu
ired to accept this License, since yo
u
ha
v
e not signed it.
Ho
w
e
v
er, nothing else grants yo
u
permission to modify or distri
bu
te the
Program or its deri
v
ati
v
e
w
orks. These actions are prohi
b
ited
b
y la
w
if yo
u
do not accept this License. Therefore,
b
y modifying or distri
bu
ting the
Program (or any
w
ork
b
ased on the Program), yo
u
indicate yo
u
r
acceptance of this License to do so, and all its terms and conditions for
copying, distri
bu
ting or modifying the Program or
w
orks
b
ased on it.