Browse code

CMake: CPack generate Windows installer with WIX

Also creates a ZIP for non-Admin (per-user) installs.

WIX requires the license file to have a .txt or .rtf extension so I
added the .txt extension. I've taken the opportunity to migrate the 3rd
party licenses to a COPYING subdirectory and have added licensing
details to the README.md file.

To build the installer, install WIX and simply run `cpack -C Release`

Also removed the explicit --config option from the
clamav-clamonacc.service file because it should not be required and
isn't being generated correctly when using autotools anyways, especially
after changes in this commit.

Micah Snyder authored on 2020/11/12 16:36:09
Showing 50 changed files
... ...
@@ -187,6 +187,19 @@ endif()
187 187
 # Find Library Dependencies
188 188
 #
189 189
 if (WIN32)
190
+    set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION .)
191
+    include(InstallRequiredSystemLibraries)
192
+
193
+    set(CPACK_GENERATOR                  "ZIP;WIX")
194
+    SET(CPACK_WIX_UPGRADE_GUID           D9F136C1-3691-47E3-9079-4FE9C9C5EB32)
195
+    SET(CPACK_RESOURCE_FILE_LICENSE      ${CMAKE_CURRENT_SOURCE_DIR}/COPYING.txt)
196
+    SET(CPACK_WIX_PRODUCT_ICON           ${CMAKE_CURRENT_SOURCE_DIR}/win32/res/clam.ico)
197
+    SET(CPACK_WIX_UI_BANNER              ${CMAKE_CURRENT_SOURCE_DIR}/win32/wix_ui_banner.bmp)
198
+    SET(CPACK_WIX_UI_DIALOG              ${CMAKE_CURRENT_SOURCE_DIR}/win32/wix_ui_dialog.bmp)
199
+    SET(CPACK_WIX_CMAKE_PACKAGE_REGISTRY ClamAV)
200
+    set(CPACK_PACKAGE_INSTALL_DIRECTORY  "ClamAV")
201
+    include(CPack)
202
+
190 203
     find_package(PThreadW32)
191 204
     set(HAVE_PTHREAD_H 1)
192 205
     set(_REENTRANT 1)
... ...
@@ -633,7 +646,7 @@ set(includedir  "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
633 633
 set(VERSION     "${PACKAGE_VERSION}")
634 634
 
635 635
 # DBDIR for systemd service.in files
636
-set(DBDIR       "${DATABASE_DIRECTORY}")
636
+set(DBDIR       "${CMAKE_INSTALL_PREFIX}/${DATABASE_DIRECTORY}")
637 637
 
638 638
 if(ENABLE_DEBUG)
639 639
     set(CL_DEBUG 1)
... ...
@@ -2,17 +2,17 @@
2 2
 
3 3
 if (WIN32)
4 4
     set(APP_CONFIG_DIRECTORY
5
-        "${CMAKE_INSTALL_PREFIX}" CACHE STRING
5
+        "." CACHE STRING
6 6
         "App Config directory.")
7 7
     set(DATABASE_DIRECTORY
8
-        "${CMAKE_INSTALL_PREFIX}/database" CACHE STRING
8
+        "database" CACHE STRING
9 9
         "Database directory.")
10 10
 else()
11 11
     set(APP_CONFIG_DIRECTORY
12
-        "${CMAKE_INSTALL_PREFIX}/etc" CACHE STRING
12
+        "etc" CACHE STRING
13 13
         "App Config directory.")
14 14
     set(DATABASE_DIRECTORY
15
-        "${CMAKE_INSTALL_PREFIX}/share/clamav" CACHE STRING
15
+        "share/clamav" CACHE STRING
16 16
         "Database directory.")
17 17
 endif()
18 18
 
19 19
deleted file mode 100644
... ...
@@ -1,356 +0,0 @@
1
-		    GNU GENERAL PUBLIC LICENSE
2
-		       Version 2, June 1991
3
-
4
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
-     51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
6
- Everyone is permitted to copy and distribute verbatim copies
7
- of this license document, but changing it is not allowed.
8
-
9
-			    Preamble
10
-
11
-  The licenses for most software are designed to take away your
12
-freedom to share and change it.  By contrast, the GNU General Public
13
-License is intended to guarantee your freedom to share and change free
14
-software--to make sure the software is free for all its users.  This
15
-General Public License applies to most of the Free Software
16
-Foundation's software and to any other program whose authors commit to
17
-using it.  (Some other Free Software Foundation software is covered by
18
-the GNU Library General Public License instead.)  You can apply it to
19
-your programs, too.
20
-
21
-  When we speak of free software, we are referring to freedom, not
22
-price.  Our General Public Licenses are designed to make sure that you
23
-have the freedom to distribute copies of free software (and charge for
24
-this service if you wish), that you receive source code or can get it
25
-if you want it, that you can change the software or use pieces of it
26
-in new free programs; and that you know you can do these things.
27
-
28
-  To protect your rights, we need to make restrictions that forbid
29
-anyone to deny you these rights or to ask you to surrender the rights.
30
-These restrictions translate to certain responsibilities for you if you
31
-distribute copies of the software, or if you modify it.
32
-
33
-  For example, if you distribute copies of such a program, whether
34
-gratis or for a fee, you must give the recipients all the rights that
35
-you have.  You must make sure that they, too, receive or can get the
36
-source code.  And you must show them these terms so they know their
37
-rights.
38
-
39
-  We protect your rights with two steps: (1) copyright the software, and
40
-(2) offer you this license which gives you legal permission to copy,
41
-distribute and/or modify the software.
42
-
43
-  Also, for each author's protection and ours, we want to make certain
44
-that everyone understands that there is no warranty for this free
45
-software.  If the software is modified by someone else and passed on, we
46
-want its recipients to know that what they have is not the original, so
47
-that any problems introduced by others will not reflect on the original
48
-authors' reputations.
49
-
50
-  Finally, any free program is threatened constantly by software
51
-patents.  We wish to avoid the danger that redistributors of a free
52
-program will individually obtain patent licenses, in effect making the
53
-program proprietary.  To prevent this, we have made it clear that any
54
-patent must be licensed for everyone's free use or not licensed at all.
55
-
56
-  The precise terms and conditions for copying, distribution and
57
-modification follow.
58
-
59
-		    GNU GENERAL PUBLIC LICENSE
60
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
-
62
-  0. This License applies to any program or other work which contains
63
-a notice placed by the copyright holder saying it may be distributed
64
-under the terms of this General Public License.  The "Program", below,
65
-refers to any such program or work, and a "work based on the Program"
66
-means either the Program or any derivative work under copyright law:
67
-that is to say, a work containing the Program or a portion of it,
68
-either verbatim or with modifications and/or translated into another
69
-language.  (Hereinafter, translation is included without limitation in
70
-the term "modification".)  Each licensee is addressed as "you".
71
-
72
-Activities other than copying, distribution and modification are not
73
-covered by this License; they are outside its scope.  The act of
74
-running the Program is not restricted, and the output from the Program
75
-is covered only if its contents constitute a work based on the
76
-Program (independent of having been made by running the Program).
77
-Whether that is true depends on what the Program does.
78
-
79
-  1. You may copy and distribute verbatim copies of the Program's
80
-source code as you receive it, in any medium, provided that you
81
-conspicuously and appropriately publish on each copy an appropriate
82
-copyright notice and disclaimer of warranty; keep intact all the
83
-notices that refer to this License and to the absence of any warranty;
84
-and give any other recipients of the Program a copy of this License
85
-along with the Program.
86
-
87
-You may charge a fee for the physical act of transferring a copy, and
88
-you may at your option offer warranty protection in exchange for a fee.
89
-
90
-  2. You may modify your copy or copies of the Program or any portion
91
-of it, thus forming a work based on the Program, and copy and
92
-distribute such modifications or work under the terms of Section 1
93
-above, provided that you also meet all of these conditions:
94
-
95
-    a) You must cause the modified files to carry prominent notices
96
-    stating that you changed the files and the date of any change.
97
-
98
-    b) You must cause any work that you distribute or publish, that in
99
-    whole or in part contains or is derived from the Program or any
100
-    part thereof, to be licensed as a whole at no charge to all third
101
-    parties under the terms of this License.
102
-
103
-    c) If the modified program normally reads commands interactively
104
-    when run, you must cause it, when started running for such
105
-    interactive use in the most ordinary way, to print or display an
106
-    announcement including an appropriate copyright notice and a
107
-    notice that there is no warranty (or else, saying that you provide
108
-    a warranty) and that users may redistribute the program under
109
-    these conditions, and telling the user how to view a copy of this
110
-    License.  (Exception: if the Program itself is interactive but
111
-    does not normally print such an announcement, your work based on
112
-    the Program is not required to print an announcement.)
113
-
114
-These requirements apply to the modified work as a whole.  If
115
-identifiable sections of that work are not derived from the Program,
116
-and can be reasonably considered independent and separate works in
117
-themselves, then this License, and its terms, do not apply to those
118
-sections when you distribute them as separate works.  But when you
119
-distribute the same sections as part of a whole which is a work based
120
-on the Program, the distribution of the whole must be on the terms of
121
-this License, whose permissions for other licensees extend to the
122
-entire whole, and thus to each and every part regardless of who wrote it.
123
-
124
-Thus, it is not the intent of this section to claim rights or contest
125
-your rights to work written entirely by you; rather, the intent is to
126
-exercise the right to control the distribution of derivative or
127
-collective works based on the Program.
128
-
129
-In addition, mere aggregation of another work not based on the Program
130
-with the Program (or with a work based on the Program) on a volume of
131
-a storage or distribution medium does not bring the other work under
132
-the scope of this License.
133
-
134
-  3. You may copy and distribute the Program (or a work based on it,
135
-under Section 2) in object code or executable form under the terms of
136
-Sections 1 and 2 above provided that you also do one of the following:
137
-
138
-    a) Accompany it with the complete corresponding machine-readable
139
-    source code, which must be distributed under the terms of Sections
140
-    1 and 2 above on a medium customarily used for software interchange; or,
141
-
142
-    b) Accompany it with a written offer, valid for at least three
143
-    years, to give any third party, for a charge no more than your
144
-    cost of physically performing source distribution, a complete
145
-    machine-readable copy of the corresponding source code, to be
146
-    distributed under the terms of Sections 1 and 2 above on a medium
147
-    customarily used for software interchange; or,
148
-
149
-    c) Accompany it with the information you received as to the offer
150
-    to distribute corresponding source code.  (This alternative is
151
-    allowed only for noncommercial distribution and only if you
152
-    received the program in object code or executable form with such
153
-    an offer, in accord with Subsection b above.)
154
-
155
-The source code for a work means the preferred form of the work for
156
-making modifications to it.  For an executable work, complete source
157
-code means all the source code for all modules it contains, plus any
158
-associated interface definition files, plus the scripts used to
159
-control compilation and installation of the executable.  However, as a
160
-special exception, the source code distributed need not include
161
-anything that is normally distributed (in either source or binary
162
-form) with the major components (compiler, kernel, and so on) of the
163
-operating system on which the executable runs, unless that component
164
-itself accompanies the executable.
165
-
166
-If distribution of executable or object code is made by offering
167
-access to copy from a designated place, then offering equivalent
168
-access to copy the source code from the same place counts as
169
-distribution of the source code, even though third parties are not
170
-compelled to copy the source along with the object code.
171
-
172
-  4. You may not copy, modify, sublicense, or distribute the Program
173
-except as expressly provided under this License.  Any attempt
174
-otherwise to copy, modify, sublicense or distribute the Program is
175
-void, and will automatically terminate your rights under this License.
176
-However, parties who have received copies, or rights, from you under
177
-this License will not have their licenses terminated so long as such
178
-parties remain in full compliance.
179
-
180
-  5. You are not required to accept this License, since you have not
181
-signed it.  However, nothing else grants you permission to modify or
182
-distribute the Program or its derivative works.  These actions are
183
-prohibited by law if you do not accept this License.  Therefore, by
184
-modifying or distributing the Program (or any work based on the
185
-Program), you indicate your acceptance of this License to do so, and
186
-all its terms and conditions for copying, distributing or modifying
187
-the Program or works based on it.
188
-
189
-  6. Each time you redistribute the Program (or any work based on the
190
-Program), the recipient automatically receives a license from the
191
-original licensor to copy, distribute or modify the Program subject to
192
-these terms and conditions.  You may not impose any further
193
-restrictions on the recipients' exercise of the rights granted herein.
194
-You are not responsible for enforcing compliance by third parties to
195
-this License.
196
-
197
-  7. If, as a consequence of a court judgment or allegation of patent
198
-infringement or for any other reason (not limited to patent issues),
199
-conditions are imposed on you (whether by court order, agreement or
200
-otherwise) that contradict the conditions of this License, they do not
201
-excuse you from the conditions of this License.  If you cannot
202
-distribute so as to satisfy simultaneously your obligations under this
203
-License and any other pertinent obligations, then as a consequence you
204
-may not distribute the Program at all.  For example, if a patent
205
-license would not permit royalty-free redistribution of the Program by
206
-all those who receive copies directly or indirectly through you, then
207
-the only way you could satisfy both it and this License would be to
208
-refrain entirely from distribution of the Program.
209
-
210
-If any portion of this section is held invalid or unenforceable under
211
-any particular circumstance, the balance of the section is intended to
212
-apply and the section as a whole is intended to apply in other
213
-circumstances.
214
-
215
-It is not the purpose of this section to induce you to infringe any
216
-patents or other property right claims or to contest validity of any
217
-such claims; this section has the sole purpose of protecting the
218
-integrity of the free software distribution system, which is
219
-implemented by public license practices.  Many people have made
220
-generous contributions to the wide range of software distributed
221
-through that system in reliance on consistent application of that
222
-system; it is up to the author/donor to decide if he or she is willing
223
-to distribute software through any other system and a licensee cannot
224
-impose that choice.
225
-
226
-This section is intended to make thoroughly clear what is believed to
227
-be a consequence of the rest of this License.
228
-
229
-  8. If the distribution and/or use of the Program is restricted in
230
-certain countries either by patents or by copyrighted interfaces, the
231
-original copyright holder who places the Program under this License
232
-may add an explicit geographical distribution limitation excluding
233
-those countries, so that distribution is permitted only in or among
234
-countries not thus excluded.  In such case, this License incorporates
235
-the limitation as if written in the body of this License.
236
-
237
-  9. The Free Software Foundation may publish revised and/or new versions
238
-of the General Public License from time to time.  Such new versions will
239
-be similar in spirit to the present version, but may differ in detail to
240
-address new problems or concerns.
241
-
242
-Each version is given a distinguishing version number.  If the Program
243
-specifies a version number of this License which applies to it and "any
244
-later version", you have the option of following the terms and conditions
245
-either of that version or of any later version published by the Free
246
-Software Foundation.  If the Program does not specify a version number of
247
-this License, you may choose any version ever published by the Free Software
248
-Foundation.
249
-
250
-  10. If you wish to incorporate parts of the Program into other free
251
-programs whose distribution conditions are different, write to the author
252
-to ask for permission.  For software which is copyrighted by the Free
253
-Software Foundation, write to the Free Software Foundation; we sometimes
254
-make exceptions for this.  Our decision will be guided by the two goals
255
-of preserving the free status of all derivatives of our free software and
256
-of promoting the sharing and reuse of software generally.
257
-
258
-			    NO WARRANTY
259
-
260
-  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
262
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
266
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
267
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
-REPAIR OR CORRECTION.
269
-
270
-  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
-POSSIBILITY OF SUCH DAMAGES.
279
-
280
-		     END OF TERMS AND CONDITIONS
281
-
282
-	    How to Apply These Terms to Your New Programs
283
-
284
-  If you develop a new program, and you want it to be of the greatest
285
-possible use to the public, the best way to achieve this is to make it
286
-free software which everyone can redistribute and change under these terms.
287
-
288
-  To do so, attach the following notices to the program.  It is safest
289
-to attach them to the start of each source file to most effectively
290
-convey the exclusion of warranty; and each file should have at least
291
-the "copyright" line and a pointer to where the full notice is found.
292
-
293
-    <one line to give the program's name and a brief idea of what it does.>
294
-    Copyright (C) <year>  <name of author>
295
-
296
-    This program is free software; you can redistribute it and/or modify
297
-    it under the terms of the GNU General Public License as published by
298
-    the Free Software Foundation; either version 2 of the License, or
299
-    (at your option) any later version.
300
-
301
-    This program is distributed in the hope that it will be useful,
302
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
303
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
304
-    GNU General Public License for more details.
305
-
306
-    You should have received a copy of the GNU General Public License
307
-    along with this program; if not, write to the Free Software
308
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
309
-
310
-
311
-Also add information on how to contact you by electronic and paper mail.
312
-
313
-If the program is interactive, make it output a short notice like this
314
-when it starts in an interactive mode:
315
-
316
-    Gnomovision version 69, Copyright (C) year  name of author
317
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318
-    This is free software, and you are welcome to redistribute it
319
-    under certain conditions; type `show c' for details.
320
-
321
-The hypothetical commands `show w' and `show c' should show the appropriate
322
-parts of the General Public License.  Of course, the commands you use may
323
-be called something other than `show w' and `show c'; they could even be
324
-mouse-clicks or menu items--whatever suits your program.
325
-
326
-You should also get your employer (if you work as a programmer) or your
327
-school, if any, to sign a "copyright disclaimer" for the program, if
328
-necessary.  Here is a sample; alter the names:
329
-
330
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
331
-  `Gnomovision' (which makes passes at compilers) written by James Hacker.
332
-
333
-  <signature of Ty Coon>, 1 April 1989
334
-  Ty Coon, President of Vice
335
-
336
-This General Public License does not permit incorporating your program into
337
-proprietary programs.  If your program is a subroutine library, you may
338
-consider it more useful to permit linking proprietary applications with the
339
-library.  If this is what you want to do, use the GNU Library General
340
-Public License instead of this License.
341
-
342
-            REGARDING OPENSSL
343
-
344
- In addition, as a special exception, the copyright holders give
345
- permission to link the code of portions of this program with the
346
- OpenSSL library under certain conditions as described in each
347
- individual source file, and distribute linked combinations
348
- including the two.
349
-
350
- You must obey the GNU General Public License in all respects
351
- for all of the code used other than OpenSSL.  If you modify
352
- file(s) with this exception, you may extend this exception to your
353
- version of the file(s), but you are not obligated to do so.  If you
354
- do not wish to do so, delete this exception statement from your
355
- version.  If you delete this exception statement from all source
356
- files in the program, then also delete it here.
357 1
deleted file mode 100644
... ...
@@ -1,510 +0,0 @@
1
-
2
-                  GNU LESSER GENERAL PUBLIC LICENSE
3
-                       Version 2.1, February 1999
4
-
5
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
6
-	51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
7
- Everyone is permitted to copy and distribute verbatim copies
8
- of this license document, but changing it is not allowed.
9
-
10
-[This is the first released version of the Lesser GPL.  It also counts
11
- as the successor of the GNU Library Public License, version 2, hence
12
- the version number 2.1.]
13
-
14
-                            Preamble
15
-
16
-  The licenses for most software are designed to take away your
17
-freedom to share and change it.  By contrast, the GNU General Public
18
-Licenses are intended to guarantee your freedom to share and change
19
-free software--to make sure the software is free for all its users.
20
-
21
-  This license, the Lesser General Public License, applies to some
22
-specially designated software packages--typically libraries--of the
23
-Free Software Foundation and other authors who decide to use it.  You
24
-can use it too, but we suggest you first think carefully about whether
25
-this license or the ordinary General Public License is the better
26
-strategy to use in any particular case, based on the explanations
27
-below.
28
-
29
-  When we speak of free software, we are referring to freedom of use,
30
-not price.  Our General Public Licenses are designed to make sure that
31
-you have the freedom to distribute copies of free software (and charge
32
-for this service if you wish); that you receive source code or can get
33
-it if you want it; that you can change the software and use pieces of
34
-it in new free programs; and that you are informed that you can do
35
-these things.
36
-
37
-  To protect your rights, we need to make restrictions that forbid
38
-distributors to deny you these rights or to ask you to surrender these
39
-rights.  These restrictions translate to certain responsibilities for
40
-you if you distribute copies of the library or if you modify it.
41
-
42
-  For example, if you distribute copies of the library, whether gratis
43
-or for a fee, you must give the recipients all the rights that we gave
44
-you.  You must make sure that they, too, receive or can get the source
45
-code.  If you link other code with the library, you must provide
46
-complete object files to the recipients, so that they can relink them
47
-with the library after making changes to the library and recompiling
48
-it.  And you must show them these terms so they know their rights.
49
-
50
-  We protect your rights with a two-step method: (1) we copyright the
51
-library, and (2) we offer you this license, which gives you legal
52
-permission to copy, distribute and/or modify the library.
53
-
54
-  To protect each distributor, we want to make it very clear that
55
-there is no warranty for the free library.  Also, if the library is
56
-modified by someone else and passed on, the recipients should know
57
-that what they have is not the original version, so that the original
58
-author's reputation will not be affected by problems that might be
59
-introduced by others.
60
-
61
-  Finally, software patents pose a constant threat to the existence of
62
-any free program.  We wish to make sure that a company cannot
63
-effectively restrict the users of a free program by obtaining a
64
-restrictive license from a patent holder.  Therefore, we insist that
65
-any patent license obtained for a version of the library must be
66
-consistent with the full freedom of use specified in this license.
67
-
68
-  Most GNU software, including some libraries, is covered by the
69
-ordinary GNU General Public License.  This license, the GNU Lesser
70
-General Public License, applies to certain designated libraries, and
71
-is quite different from the ordinary General Public License.  We use
72
-this license for certain libraries in order to permit linking those
73
-libraries into non-free programs.
74
-
75
-  When a program is linked with a library, whether statically or using
76
-a shared library, the combination of the two is legally speaking a
77
-combined work, a derivative of the original library.  The ordinary
78
-General Public License therefore permits such linking only if the
79
-entire combination fits its criteria of freedom.  The Lesser General
80
-Public License permits more lax criteria for linking other code with
81
-the library.
82
-
83
-  We call this license the "Lesser" General Public License because it
84
-does Less to protect the user's freedom than the ordinary General
85
-Public License.  It also provides other free software developers Less
86
-of an advantage over competing non-free programs.  These disadvantages
87
-are the reason we use the ordinary General Public License for many
88
-libraries.  However, the Lesser license provides advantages in certain
89
-special circumstances.
90
-
91
-  For example, on rare occasions, there may be a special need to
92
-encourage the widest possible use of a certain library, so that it
93
-becomes a de-facto standard.  To achieve this, non-free programs must
94
-be allowed to use the library.  A more frequent case is that a free
95
-library does the same job as widely used non-free libraries.  In this
96
-case, there is little to gain by limiting the free library to free
97
-software only, so we use the Lesser General Public License.
98
-
99
-  In other cases, permission to use a particular library in non-free
100
-programs enables a greater number of people to use a large body of
101
-free software.  For example, permission to use the GNU C Library in
102
-non-free programs enables many more people to use the whole GNU
103
-operating system, as well as its variant, the GNU/Linux operating
104
-system.
105
-
106
-  Although the Lesser General Public License is Less protective of the
107
-users' freedom, it does ensure that the user of a program that is
108
-linked with the Library has the freedom and the wherewithal to run
109
-that program using a modified version of the Library.
110
-
111
-  The precise terms and conditions for copying, distribution and
112
-modification follow.  Pay close attention to the difference between a
113
-"work based on the library" and a "work that uses the library".  The
114
-former contains code derived from the library, whereas the latter must
115
-be combined with the library in order to run.
116
-
117
-                  GNU LESSER GENERAL PUBLIC LICENSE
118
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
119
-
120
-  0. This License Agreement applies to any software library or other
121
-program which contains a notice placed by the copyright holder or
122
-other authorized party saying it may be distributed under the terms of
123
-this Lesser General Public License (also called "this License").
124
-Each licensee is addressed as "you".
125
-
126
-  A "library" means a collection of software functions and/or data
127
-prepared so as to be conveniently linked with application programs
128
-(which use some of those functions and data) to form executables.
129
-
130
-  The "Library", below, refers to any such software library or work
131
-which has been distributed under these terms.  A "work based on the
132
-Library" means either the Library or any derivative work under
133
-copyright law: that is to say, a work containing the Library or a
134
-portion of it, either verbatim or with modifications and/or translated
135
-straightforwardly into another language.  (Hereinafter, translation is
136
-included without limitation in the term "modification".)
137
-
138
-  "Source code" for a work means the preferred form of the work for
139
-making modifications to it.  For a library, complete source code means
140
-all the source code for all modules it contains, plus any associated
141
-interface definition files, plus the scripts used to control
142
-compilation and installation of the library.
143
-
144
-  Activities other than copying, distribution and modification are not
145
-covered by this License; they are outside its scope.  The act of
146
-running a program using the Library is not restricted, and output from
147
-such a program is covered only if its contents constitute a work based
148
-on the Library (independent of the use of the Library in a tool for
149
-writing it).  Whether that is true depends on what the Library does
150
-and what the program that uses the Library does.
151
-
152
-  1. You may copy and distribute verbatim copies of the Library's
153
-complete source code as you receive it, in any medium, provided that
154
-you conspicuously and appropriately publish on each copy an
155
-appropriate copyright notice and disclaimer of warranty; keep intact
156
-all the notices that refer to this License and to the absence of any
157
-warranty; and distribute a copy of this License along with the
158
-Library.
159
-
160
-  You may charge a fee for the physical act of transferring a copy,
161
-and you may at your option offer warranty protection in exchange for a
162
-fee.
163
-
164
-  2. You may modify your copy or copies of the Library or any portion
165
-of it, thus forming a work based on the Library, and copy and
166
-distribute such modifications or work under the terms of Section 1
167
-above, provided that you also meet all of these conditions:
168
-
169
-    a) The modified work must itself be a software library.
170
-
171
-    b) You must cause the files modified to carry prominent notices
172
-    stating that you changed the files and the date of any change.
173
-
174
-    c) You must cause the whole of the work to be licensed at no
175
-    charge to all third parties under the terms of this License.
176
-
177
-    d) If a facility in the modified Library refers to a function or a
178
-    table of data to be supplied by an application program that uses
179
-    the facility, other than as an argument passed when the facility
180
-    is invoked, then you must make a good faith effort to ensure that,
181
-    in the event an application does not supply such function or
182
-    table, the facility still operates, and performs whatever part of
183
-    its purpose remains meaningful.
184
-
185
-    (For example, a function in a library to compute square roots has
186
-    a purpose that is entirely well-defined independent of the
187
-    application.  Therefore, Subsection 2d requires that any
188
-    application-supplied function or table used by this function must
189
-    be optional: if the application does not supply it, the square
190
-    root function must still compute square roots.)
191
-
192
-These requirements apply to the modified work as a whole.  If
193
-identifiable sections of that work are not derived from the Library,
194
-and can be reasonably considered independent and separate works in
195
-themselves, then this License, and its terms, do not apply to those
196
-sections when you distribute them as separate works.  But when you
197
-distribute the same sections as part of a whole which is a work based
198
-on the Library, the distribution of the whole must be on the terms of
199
-this License, whose permissions for other licensees extend to the
200
-entire whole, and thus to each and every part regardless of who wrote
201
-it.
202
-
203
-Thus, it is not the intent of this section to claim rights or contest
204
-your rights to work written entirely by you; rather, the intent is to
205
-exercise the right to control the distribution of derivative or
206
-collective works based on the Library.
207
-
208
-In addition, mere aggregation of another work not based on the Library
209
-with the Library (or with a work based on the Library) on a volume of
210
-a storage or distribution medium does not bring the other work under
211
-the scope of this License.
212
-
213
-  3. You may opt to apply the terms of the ordinary GNU General Public
214
-License instead of this License to a given copy of the Library.  To do
215
-this, you must alter all the notices that refer to this License, so
216
-that they refer to the ordinary GNU General Public License, version 2,
217
-instead of to this License.  (If a newer version than version 2 of the
218
-ordinary GNU General Public License has appeared, then you can specify
219
-that version instead if you wish.)  Do not make any other change in
220
-these notices.
221
-
222
-  Once this change is made in a given copy, it is irreversible for
223
-that copy, so the ordinary GNU General Public License applies to all
224
-subsequent copies and derivative works made from that copy.
225
-
226
-  This option is useful when you wish to copy part of the code of
227
-the Library into a program that is not a library.
228
-
229
-  4. You may copy and distribute the Library (or a portion or
230
-derivative of it, under Section 2) in object code or executable form
231
-under the terms of Sections 1 and 2 above provided that you accompany
232
-it with the complete corresponding machine-readable source code, which
233
-must be distributed under the terms of Sections 1 and 2 above on a
234
-medium customarily used for software interchange.
235
-
236
-  If distribution of object code is made by offering access to copy
237
-from a designated place, then offering equivalent access to copy the
238
-source code from the same place satisfies the requirement to
239
-distribute the source code, even though third parties are not
240
-compelled to copy the source along with the object code.
241
-
242
-  5. A program that contains no derivative of any portion of the
243
-Library, but is designed to work with the Library by being compiled or
244
-linked with it, is called a "work that uses the Library".  Such a
245
-work, in isolation, is not a derivative work of the Library, and
246
-therefore falls outside the scope of this License.
247
-
248
-  However, linking a "work that uses the Library" with the Library
249
-creates an executable that is a derivative of the Library (because it
250
-contains portions of the Library), rather than a "work that uses the
251
-library".  The executable is therefore covered by this License.
252
-Section 6 states terms for distribution of such executables.
253
-
254
-  When a "work that uses the Library" uses material from a header file
255
-that is part of the Library, the object code for the work may be a
256
-derivative work of the Library even though the source code is not.
257
-Whether this is true is especially significant if the work can be
258
-linked without the Library, or if the work is itself a library.  The
259
-threshold for this to be true is not precisely defined by law.
260
-
261
-  If such an object file uses only numerical parameters, data
262
-structure layouts and accessors, and small macros and small inline
263
-functions (ten lines or less in length), then the use of the object
264
-file is unrestricted, regardless of whether it is legally a derivative
265
-work.  (Executables containing this object code plus portions of the
266
-Library will still fall under Section 6.)
267
-
268
-  Otherwise, if the work is a derivative of the Library, you may
269
-distribute the object code for the work under the terms of Section 6.
270
-Any executables containing that work also fall under Section 6,
271
-whether or not they are linked directly with the Library itself.
272
-
273
-  6. As an exception to the Sections above, you may also combine or
274
-link a "work that uses the Library" with the Library to produce a
275
-work containing portions of the Library, and distribute that work
276
-under terms of your choice, provided that the terms permit
277
-modification of the work for the customer's own use and reverse
278
-engineering for debugging such modifications.
279
-
280
-  You must give prominent notice with each copy of the work that the
281
-Library is used in it and that the Library and its use are covered by
282
-this License.  You must supply a copy of this License.  If the work
283
-during execution displays copyright notices, you must include the
284
-copyright notice for the Library among them, as well as a reference
285
-directing the user to the copy of this License.  Also, you must do one
286
-of these things:
287
-
288
-    a) Accompany the work with the complete corresponding
289
-    machine-readable source code for the Library including whatever
290
-    changes were used in the work (which must be distributed under
291
-    Sections 1 and 2 above); and, if the work is an executable linked
292
-    with the Library, with the complete machine-readable "work that
293
-    uses the Library", as object code and/or source code, so that the
294
-    user can modify the Library and then relink to produce a modified
295
-    executable containing the modified Library.  (It is understood
296
-    that the user who changes the contents of definitions files in the
297
-    Library will not necessarily be able to recompile the application
298
-    to use the modified definitions.)
299
-
300
-    b) Use a suitable shared library mechanism for linking with the
301
-    Library.  A suitable mechanism is one that (1) uses at run time a
302
-    copy of the library already present on the user's computer system,
303
-    rather than copying library functions into the executable, and (2)
304
-    will operate properly with a modified version of the library, if
305
-    the user installs one, as long as the modified version is
306
-    interface-compatible with the version that the work was made with.
307
-
308
-    c) Accompany the work with a written offer, valid for at least
309
-    three years, to give the same user the materials specified in
310
-    Subsection 6a, above, for a charge no more than the cost of
311
-    performing this distribution.
312
-
313
-    d) If distribution of the work is made by offering access to copy
314
-    from a designated place, offer equivalent access to copy the above
315
-    specified materials from the same place.
316
-
317
-    e) Verify that the user has already received a copy of these
318
-    materials or that you have already sent this user a copy.
319
-
320
-  For an executable, the required form of the "work that uses the
321
-Library" must include any data and utility programs needed for
322
-reproducing the executable from it.  However, as a special exception,
323
-the materials to be distributed need not include anything that is
324
-normally distributed (in either source or binary form) with the major
325
-components (compiler, kernel, and so on) of the operating system on
326
-which the executable runs, unless that component itself accompanies
327
-the executable.
328
-
329
-  It may happen that this requirement contradicts the license
330
-restrictions of other proprietary libraries that do not normally
331
-accompany the operating system.  Such a contradiction means you cannot
332
-use both them and the Library together in an executable that you
333
-distribute.
334
-
335
-  7. You may place library facilities that are a work based on the
336
-Library side-by-side in a single library together with other library
337
-facilities not covered by this License, and distribute such a combined
338
-library, provided that the separate distribution of the work based on
339
-the Library and of the other library facilities is otherwise
340
-permitted, and provided that you do these two things:
341
-
342
-    a) Accompany the combined library with a copy of the same work
343
-    based on the Library, uncombined with any other library
344
-    facilities.  This must be distributed under the terms of the
345
-    Sections above.
346
-
347
-    b) Give prominent notice with the combined library of the fact
348
-    that part of it is a work based on the Library, and explaining
349
-    where to find the accompanying uncombined form of the same work.
350
-
351
-  8. You may not copy, modify, sublicense, link with, or distribute
352
-the Library except as expressly provided under this License.  Any
353
-attempt otherwise to copy, modify, sublicense, link with, or
354
-distribute the Library is void, and will automatically terminate your
355
-rights under this License.  However, parties who have received copies,
356
-or rights, from you under this License will not have their licenses
357
-terminated so long as such parties remain in full compliance.
358
-
359
-  9. You are not required to accept this License, since you have not
360
-signed it.  However, nothing else grants you permission to modify or
361
-distribute the Library or its derivative works.  These actions are
362
-prohibited by law if you do not accept this License.  Therefore, by
363
-modifying or distributing the Library (or any work based on the
364
-Library), you indicate your acceptance of this License to do so, and
365
-all its terms and conditions for copying, distributing or modifying
366
-the Library or works based on it.
367
-
368
-  10. Each time you redistribute the Library (or any work based on the
369
-Library), the recipient automatically receives a license from the
370
-original licensor to copy, distribute, link with or modify the Library
371
-subject to these terms and conditions.  You may not impose any further
372
-restrictions on the recipients' exercise of the rights granted herein.
373
-You are not responsible for enforcing compliance by third parties with
374
-this License.
375
-
376
-  11. If, as a consequence of a court judgment or allegation of patent
377
-infringement or for any other reason (not limited to patent issues),
378
-conditions are imposed on you (whether by court order, agreement or
379
-otherwise) that contradict the conditions of this License, they do not
380
-excuse you from the conditions of this License.  If you cannot
381
-distribute so as to satisfy simultaneously your obligations under this
382
-License and any other pertinent obligations, then as a consequence you
383
-may not distribute the Library at all.  For example, if a patent
384
-license would not permit royalty-free redistribution of the Library by
385
-all those who receive copies directly or indirectly through you, then
386
-the only way you could satisfy both it and this License would be to
387
-refrain entirely from distribution of the Library.
388
-
389
-If any portion of this section is held invalid or unenforceable under
390
-any particular circumstance, the balance of the section is intended to
391
-apply, and the section as a whole is intended to apply in other
392
-circumstances.
393
-
394
-It is not the purpose of this section to induce you to infringe any
395
-patents or other property right claims or to contest validity of any
396
-such claims; this section has the sole purpose of protecting the
397
-integrity of the free software distribution system which is
398
-implemented by public license practices.  Many people have made
399
-generous contributions to the wide range of software distributed
400
-through that system in reliance on consistent application of that
401
-system; it is up to the author/donor to decide if he or she is willing
402
-to distribute software through any other system and a licensee cannot
403
-impose that choice.
404
-
405
-This section is intended to make thoroughly clear what is believed to
406
-be a consequence of the rest of this License.
407
-
408
-  12. If the distribution and/or use of the Library is restricted in
409
-certain countries either by patents or by copyrighted interfaces, the
410
-original copyright holder who places the Library under this License
411
-may add an explicit geographical distribution limitation excluding those
412
-countries, so that distribution is permitted only in or among
413
-countries not thus excluded.  In such case, this License incorporates
414
-the limitation as if written in the body of this License.
415
-
416
-  13. The Free Software Foundation may publish revised and/or new
417
-versions of the Lesser General Public License from time to time.
418
-Such new versions will be similar in spirit to the present version,
419
-but may differ in detail to address new problems or concerns.
420
-
421
-Each version is given a distinguishing version number.  If the Library
422
-specifies a version number of this License which applies to it and
423
-"any later version", you have the option of following the terms and
424
-conditions either of that version or of any later version published by
425
-the Free Software Foundation.  If the Library does not specify a
426
-license version number, you may choose any version ever published by
427
-the Free Software Foundation.
428
-
429
-  14. If you wish to incorporate parts of the Library into other free
430
-programs whose distribution conditions are incompatible with these,
431
-write to the author to ask for permission.  For software which is
432
-copyrighted by the Free Software Foundation, write to the Free
433
-Software Foundation; we sometimes make exceptions for this.  Our
434
-decision will be guided by the two goals of preserving the free status
435
-of all derivatives of our free software and of promoting the sharing
436
-and reuse of software generally.
437
-
438
-                            NO WARRANTY
439
-
440
-  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
441
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
442
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
443
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
444
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
445
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
446
-PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
447
-LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
448
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
449
-
450
-  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
451
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
452
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
453
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
454
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
455
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
456
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
457
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
458
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
459
-DAMAGES.
460
-
461
-                     END OF TERMS AND CONDITIONS
462
-
463
-           How to Apply These Terms to Your New Libraries
464
-
465
-  If you develop a new library, and you want it to be of the greatest
466
-possible use to the public, we recommend making it free software that
467
-everyone can redistribute and change.  You can do so by permitting
468
-redistribution under these terms (or, alternatively, under the terms
469
-of the ordinary General Public License).
470
-
471
-  To apply these terms, attach the following notices to the library.
472
-It is safest to attach them to the start of each source file to most
473
-effectively convey the exclusion of warranty; and each file should
474
-have at least the "copyright" line and a pointer to where the full
475
-notice is found.
476
-
477
-
478
-    <one line to give the library's name and a brief idea of what it does.>
479
-    Copyright (C) <year>  <name of author>
480
-
481
-    This library is free software; you can redistribute it and/or
482
-    modify it under the terms of the GNU Lesser General Public
483
-    License as published by the Free Software Foundation; either
484
-    version 2.1 of the License, or (at your option) any later version.
485
-
486
-    This library is distributed in the hope that it will be useful,
487
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
488
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
489
-    Lesser General Public License for more details.
490
-
491
-    You should have received a copy of the GNU Lesser General Public
492
-    License along with this library; if not, write to the Free Software
493
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
494
-
495
-Also add information on how to contact you by electronic and paper mail.
496
-
497
-You should also get your employer (if you work as a programmer) or
498
-your school, if any, to sign a "copyright disclaimer" for the library,
499
-if necessary.  Here is a sample; alter the names:
500
-
501
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the
502
-  library `Frob' (a library for tweaking knobs) written by James
503
-  Random Hacker.
504
-
505
-  <signature of Ty Coon>, 1 April 1990
506
-  Ty Coon, President of Vice
507
-
508
-That's all there is to it!
509
-
510
-
511 1
deleted file mode 100644
... ...
@@ -1,206 +0,0 @@
1
-Modified files from the YARA project exist in libclamav. These have file
2
-names with "yara_" prefixing the original yara file names. The YARA project
3
-uses the license below:
4
-
5
-
6
-                                 Apache License
7
-                           Version 2.0, January 2004
8
-                        http://www.apache.org/licenses/
9
-
10
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
-
12
-   1. Definitions.
13
-
14
-      "License" shall mean the terms and conditions for use, reproduction,
15
-      and distribution as defined by Sections 1 through 9 of this document.
16
-
17
-      "Licensor" shall mean the copyright owner or entity authorized by
18
-      the copyright owner that is granting the License.
19
-
20
-      "Legal Entity" shall mean the union of the acting entity and all
21
-      other entities that control, are controlled by, or are under common
22
-      control with that entity. For the purposes of this definition,
23
-      "control" means (i) the power, direct or indirect, to cause the
24
-      direction or management of such entity, whether by contract or
25
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
-      outstanding shares, or (iii) beneficial ownership of such entity.
27
-
28
-      "You" (or "Your") shall mean an individual or Legal Entity
29
-      exercising permissions granted by this License.
30
-
31
-      "Source" form shall mean the preferred form for making modifications,
32
-      including but not limited to software source code, documentation
33
-      source, and configuration files.
34
-
35
-      "Object" form shall mean any form resulting from mechanical
36
-      transformation or translation of a Source form, including but
37
-      not limited to compiled object code, generated documentation,
38
-      and conversions to other media types.
39
-
40
-      "Work" shall mean the work of authorship, whether in Source or
41
-      Object form, made available under the License, as indicated by a
42
-      copyright notice that is included in or attached to the work
43
-      (an example is provided in the Appendix below).
44
-
45
-      "Derivative Works" shall mean any work, whether in Source or Object
46
-      form, that is based on (or derived from) the Work and for which the
47
-      editorial revisions, annotations, elaborations, or other modifications
48
-      represent, as a whole, an original work of authorship. For the purposes
49
-      of this License, Derivative Works shall not include works that remain
50
-      separable from, or merely link (or bind by name) to the interfaces of,
51
-      the Work and Derivative Works thereof.
52
-
53
-      "Contribution" shall mean any work of authorship, including
54
-      the original version of the Work and any modifications or additions
55
-      to that Work or Derivative Works thereof, that is intentionally
56
-      submitted to Licensor for inclusion in the Work by the copyright owner
57
-      or by an individual or Legal Entity authorized to submit on behalf of
58
-      the copyright owner. For the purposes of this definition, "submitted"
59
-      means any form of electronic, verbal, or written communication sent
60
-      to the Licensor or its representatives, including but not limited to
61
-      communication on electronic mailing lists, source code control systems,
62
-      and issue tracking systems that are managed by, or on behalf of, the
63
-      Licensor for the purpose of discussing and improving the Work, but
64
-      excluding communication that is conspicuously marked or otherwise
65
-      designated in writing by the copyright owner as "Not a Contribution."
66
-
67
-      "Contributor" shall mean Licensor and any individual or Legal Entity
68
-      on behalf of whom a Contribution has been received by Licensor and
69
-      subsequently incorporated within the Work.
70
-
71
-   2. Grant of Copyright License. Subject to the terms and conditions of
72
-      this License, each Contributor hereby grants to You a perpetual,
73
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
74
-      copyright license to reproduce, prepare Derivative Works of,
75
-      publicly display, publicly perform, sublicense, and distribute the
76
-      Work and such Derivative Works in Source or Object form.
77
-
78
-   3. Grant of Patent License. Subject to the terms and conditions of
79
-      this License, each Contributor hereby grants to You a perpetual,
80
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
81
-      (except as stated in this section) patent license to make, have made,
82
-      use, offer to sell, sell, import, and otherwise transfer the Work,
83
-      where such license applies only to those patent claims licensable
84
-      by such Contributor that are necessarily infringed by their
85
-      Contribution(s) alone or by combination of their Contribution(s)
86
-      with the Work to which such Contribution(s) was submitted. If You
87
-      institute patent litigation against any entity (including a
88
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
89
-      or a Contribution incorporated within the Work constitutes direct
90
-      or contributory patent infringement, then any patent licenses
91
-      granted to You under this License for that Work shall terminate
92
-      as of the date such litigation is filed.
93
-
94
-   4. Redistribution. You may reproduce and distribute copies of the
95
-      Work or Derivative Works thereof in any medium, with or without
96
-      modifications, and in Source or Object form, provided that You
97
-      meet the following conditions:
98
-
99
-      (a) You must give any other recipients of the Work or
100
-          Derivative Works a copy of this License; and
101
-
102
-      (b) You must cause any modified files to carry prominent notices
103
-          stating that You changed the files; and
104
-
105
-      (c) You must retain, in the Source form of any Derivative Works
106
-          that You distribute, all copyright, patent, trademark, and
107
-          attribution notices from the Source form of the Work,
108
-          excluding those notices that do not pertain to any part of
109
-          the Derivative Works; and
110
-
111
-      (d) If the Work includes a "NOTICE" text file as part of its
112
-          distribution, then any Derivative Works that You distribute must
113
-          include a readable copy of the attribution notices contained
114
-          within such NOTICE file, excluding those notices that do not
115
-          pertain to any part of the Derivative Works, in at least one
116
-          of the following places: within a NOTICE text file distributed
117
-          as part of the Derivative Works; within the Source form or
118
-          documentation, if provided along with the Derivative Works; or,
119
-          within a display generated by the Derivative Works, if and
120
-          wherever such third-party notices normally appear. The contents
121
-          of the NOTICE file are for informational purposes only and
122
-          do not modify the License. You may add Your own attribution
123
-          notices within Derivative Works that You distribute, alongside
124
-          or as an addendum to the NOTICE text from the Work, provided
125
-          that such additional attribution notices cannot be construed
126
-          as modifying the License.
127
-
128
-      You may add Your own copyright statement to Your modifications and
129
-      may provide additional or different license terms and conditions
130
-      for use, reproduction, or distribution of Your modifications, or
131
-      for any such Derivative Works as a whole, provided Your use,
132
-      reproduction, and distribution of the Work otherwise complies with
133
-      the conditions stated in this License.
134
-
135
-   5. Submission of Contributions. Unless You explicitly state otherwise,
136
-      any Contribution intentionally submitted for inclusion in the Work
137
-      by You to the Licensor shall be under the terms and conditions of
138
-      this License, without any additional terms or conditions.
139
-      Notwithstanding the above, nothing herein shall supersede or modify
140
-      the terms of any separate license agreement you may have executed
141
-      with Licensor regarding such Contributions.
142
-
143
-   6. Trademarks. This License does not grant permission to use the trade
144
-      names, trademarks, service marks, or product names of the Licensor,
145
-      except as required for reasonable and customary use in describing the
146
-      origin of the Work and reproducing the content of the NOTICE file.
147
-
148
-   7. Disclaimer of Warranty. Unless required by applicable law or
149
-      agreed to in writing, Licensor provides the Work (and each
150
-      Contributor provides its Contributions) on an "AS IS" BASIS,
151
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
152
-      implied, including, without limitation, any warranties or conditions
153
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
154
-      PARTICULAR PURPOSE. You are solely responsible for determining the
155
-      appropriateness of using or redistributing the Work and assume any
156
-      risks associated with Your exercise of permissions under this License.
157
-
158
-   8. Limitation of Liability. In no event and under no legal theory,
159
-      whether in tort (including negligence), contract, or otherwise,
160
-      unless required by applicable law (such as deliberate and grossly
161
-      negligent acts) or agreed to in writing, shall any Contributor be
162
-      liable to You for damages, including any direct, indirect, special,
163
-      incidental, or consequential damages of any character arising as a
164
-      result of this License or out of the use or inability to use the
165
-      Work (including but not limited to damages for loss of goodwill,
166
-      work stoppage, computer failure or malfunction, or any and all
167
-      other commercial damages or losses), even if such Contributor
168
-      has been advised of the possibility of such damages.
169
-
170
-   9. Accepting Warranty or Additional Liability. While redistributing
171
-      the Work or Derivative Works thereof, You may choose to offer,
172
-      and charge a fee for, acceptance of support, warranty, indemnity,
173
-      or other liability obligations and/or rights consistent with this
174
-      License. However, in accepting such obligations, You may act only
175
-      on Your own behalf and on Your sole responsibility, not on behalf
176
-      of any other Contributor, and only if You agree to indemnify,
177
-      defend, and hold each Contributor harmless for any liability
178
-      incurred by, or claims asserted against, such Contributor by reason
179
-      of your accepting any such warranty or additional liability.
180
-
181
-   END OF TERMS AND CONDITIONS
182
-
183
-   APPENDIX: How to apply the Apache License to your work.
184
-
185
-      To apply the Apache License to your work, attach the following
186
-      boilerplate notice, with the fields enclosed by brackets "[]"
187
-      replaced with your own identifying information. (Don't include
188
-      the brackets!)  The text should be enclosed in the appropriate
189
-      comment syntax for the file format. We also recommend that a
190
-      file or class name and description of purpose be included on the
191
-      same "printed page" as the copyright notice for easier
192
-      identification within third-party archives.
193
-
194
-   Copyright [yyyy] [name of copyright owner]
195
-
196
-   Licensed under the Apache License, Version 2.0 (the "License");
197
-   you may not use this file except in compliance with the License.
198
-   You may obtain a copy of the License at
199
-
200
-       http://www.apache.org/licenses/LICENSE-2.0
201
-
202
-   Unless required by applicable law or agreed to in writing, software
203
-   distributed under the License is distributed on an "AS IS" BASIS,
204
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
205
-   See the License for the specific language governing permissions and
206
-   limitations under the License.
207 1
deleted file mode 100644
... ...
@@ -1,45 +0,0 @@
1
-Modified files from libbzip2 are present under libclamav/nsis.
2
-The original LICENSE file for bzip2 and libbzip2 is reproduced below.
3
-
4
-
5
-This program, "bzip2", the associated library "libbzip2", and all
6
-documentation, are copyright (C) 1996-2006 Julian R Seward.  All
7
-rights reserved.
8
-
9
-Redistribution and use in source and binary forms, with or without
10
-modification, are permitted provided that the following conditions
11
-are met:
12
-
13
-1. Redistributions of source code must retain the above copyright
14
-   notice, this list of conditions and the following disclaimer.
15
-
16
-2. The origin of this software must not be misrepresented; you must 
17
-   not claim that you wrote the original software.  If you use this 
18
-   software in a product, an acknowledgment in the product 
19
-   documentation would be appreciated but is not required.
20
-
21
-3. Altered source versions must be plainly marked as such, and must
22
-   not be misrepresented as being the original software.
23
-
24
-4. The name of the author may not be used to endorse or promote 
25
-   products derived from this software without specific prior written 
26
-   permission.
27
-
28
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
29
-OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
30
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31
-ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
32
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
34
-GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
36
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
37
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
38
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
-
40
-Julian Seward, Cambridge, UK.
41
-jseward@bzip.org
42
-bzip2/libbzip2 version 1.0.4 of 20 December 2006
43
-
44 1
deleted file mode 100644
... ...
@@ -1,22 +0,0 @@
1
-COPYRIGHT AND PERMISSION NOTICE
2
-
3
-Copyright (c) 1996 - 2019, Daniel Stenberg, <daniel@haxx.se>, and many
4
-contributors, see the THANKS file.
5
-
6
-All rights reserved.
7
-
8
-Permission to use, copy, modify, and distribute this software for any purpose
9
-with or without fee is hereby granted, provided that the above copyright
10
-notice and this permission notice appear in all copies.
11
-
12
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
15
-NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16
-DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
17
-OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
18
-OR OTHER DEALINGS IN THE SOFTWARE.
19
-
20
-Except as contained in this notice, the name of a copyright holder shall not
21
-be used in advertising or otherwise to promote the sale, use or other dealings
22
-in this Software without prior written authorization of the copyright holder.
23 1
deleted file mode 100644
... ...
@@ -1,33 +0,0 @@
1
-libclamav/textdet.c includes modified code from file-4.23/src/ascmagic.c.
2
-The original LEGAL.NOTICE file for file-4.23 is reproduced below.
3
-
4
-$File: LEGAL.NOTICE,v 1.15 2006/05/03 18:48:33 christos Exp $
5
-Copyright (c) Ian F. Darwin 1986, 1987, 1989, 1990, 1991, 1992, 1994, 1995.
6
-Software written by Ian F. Darwin and others;
7
-maintained 1994- Christos Zoulas.
8
-
9
-This software is not subject to any export provision of the United States
10
-Department of Commerce, and may be exported to any country or planet.
11
-
12
-Redistribution and use in source and binary forms, with or without
13
-modification, are permitted provided that the following conditions
14
-are met:
15
-1. Redistributions of source code must retain the above copyright
16
-   notice immediately at the beginning of the file, without modification,
17
-   this list of conditions, and the following disclaimer.
18
-2. Redistributions in binary form must reproduce the above copyright
19
-   notice, this list of conditions and the following disclaimer in the
20
-   documentation and/or other materials provided with the distribution.
21
- 
22
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
-ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
26
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28
-OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29
-HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31
-OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32
-SUCH DAMAGE.
33 1
deleted file mode 100644
... ...
@@ -1,22 +0,0 @@
1
-getopt.c - my re-implementation of getopt.
2
-Copyright 1997, 2000, 2001, 2002, 2006, Benjamin Sittler
3
-
4
-Permission is hereby granted, free of charge, to any person
5
-obtaining a copy of this software and associated documentation
6
-files (the "Software"), to deal in the Software without
7
-restriction, including without limitation the rights to use, copy,
8
-modify, merge, publish, distribute, sublicense, and/or sell copies
9
-of the Software, and to permit persons to whom the Software is
10
-furnished to do so, subject to the following conditions:
11
-
12
-The above copyright notice and this permission notice shall be
13
-included in all copies or substantial portions of the Software.
14
-
15
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
-NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
-DEALINGS IN THE SOFTWARE.
23 1
deleted file mode 100644
... ...
@@ -1,72 +0,0 @@
1
-The files in libclamav/c++/llvm are from the LLVM project, original license is
2
-in libclamav/c++/llvm/LICENSE.TXT:
3
-
4
-==============================================================================
5
-LLVM Release License
6
-==============================================================================
7
-University of Illinois/NCSA
8
-Open Source License
9
-
10
-Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
11
-All rights reserved.
12
-
13
-Developed by:
14
-
15
-    LLVM Team
16
-
17
-    University of Illinois at Urbana-Champaign
18
-
19
-    http://llvm.org
20
-
21
-Permission is hereby granted, free of charge, to any person obtaining a copy of
22
-this software and associated documentation files (the "Software"), to deal with
23
-the Software without restriction, including without limitation the rights to
24
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
25
-of the Software, and to permit persons to whom the Software is furnished to do
26
-so, subject to the following conditions:
27
-
28
-    * Redistributions of source code must retain the above copyright notice,
29
-      this list of conditions and the following disclaimers.
30
-
31
-    * Redistributions in binary form must reproduce the above copyright notice,
32
-      this list of conditions and the following disclaimers in the
33
-      documentation and/or other materials provided with the distribution.
34
-
35
-    * Neither the names of the LLVM Team, University of Illinois at
36
-      Urbana-Champaign, nor the names of its contributors may be used to
37
-      endorse or promote products derived from this Software without specific
38
-      prior written permission.
39
-
40
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
42
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
43
-CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
46
-SOFTWARE.
47
-
48
-==============================================================================
49
-Copyrights and Licenses for Third Party Software Distributed with LLVM:
50
-==============================================================================
51
-The LLVM software contains code written by third parties.  Such software will
52
-have its own individual LICENSE.TXT file in the directory in which it appears.
53
-This file will describe the copyrights, license, and restrictions which apply
54
-to that code.
55
-
56
-The disclaimer of warranty in the University of Illinois Open Source License
57
-applies to all code in the LLVM Distribution, and nothing in any of the
58
-other licenses gives permission to use the names of the LLVM Team or the
59
-University of Illinois to endorse or promote products derived from this
60
-Software.
61
-
62
-The following pieces of software have additional or alternate copyrights,
63
-licenses, and/or restrictions:
64
-
65
-Program             Directory
66
-Autoconf            llvm/autoconf
67
-                    llvm/projects/ModuleMaker/autoconf
68
-                    llvm/projects/sample/autoconf
69
-CellSPU backend     llvm/lib/Target/CellSPU/README.txt
70
-Google Test         llvm/utils/unittest/googletest
71
-
72 1
deleted file mode 100644
... ...
@@ -1,7 +0,0 @@
1
-The original lzma.txt license file, a small portion of which is reproduced below,
2
-is available under libclamav/7z/lzma.txt.
3
-
4
-LICENSE
5
-
6
-LZMA SDK is written and placed in the public domain by Igor Pavlov.
7 1
deleted file mode 100644
... ...
@@ -1,68 +0,0 @@
1
-PCRE LICENCE
2
-
3
-PCRE is a library of functions to support regular expressions whose syntax
4
-and semantics are as close as possible to those of the Perl 5 language.
5
-
6
-Release 7 of PCRE is distributed under the terms of the "BSD" licence, as
7
-specified below. The documentation for PCRE, supplied in the "doc"
8
-directory, is distributed under the same terms as the software itself.
9
-
10
-The basic library functions are written in C and are freestanding. Also
11
-included in the distribution is a set of C++ wrapper functions.
12
-
13
-
14
-THE BASIC LIBRARY FUNCTIONS
15
-
16
-Written by:       Philip Hazel
17
-Email local part: ph10
18
-Email domain:     cam.ac.uk
19
-
20
-University of Cambridge Computing Service,
21
-Cambridge, England. Phone: +44 1223 334714.
22
-
23
-Copyright (c) 1997-2006 University of Cambridge
24
-All rights reserved.
25
-
26
-
27
-THE C++ WRAPPER FUNCTIONS
28
-
29
-Contributed by:   Google Inc.
30
-
31
-Copyright (c) 2006, Google Inc.
32
-All rights reserved.
33
-
34
-
35
-THE "BSD" LICENCE
36
-
37
-Redistribution and use in source and binary forms, with or without
38
-modification, are permitted provided that the following conditions are met:
39
-
40
-    * Redistributions of source code must retain the above copyright notice,
41
-      this list of conditions and the following disclaimer.
42
-
43
-    * Redistributions in binary form must reproduce the above copyright
44
-      notice, this list of conditions and the following disclaimer in the
45
-      documentation and/or other materials provided with the distribution.
46
-
47
-    * Neither the name of the University of Cambridge nor the name of Google
48
-      Inc. nor the names of their contributors may be used to endorse or
49
-      promote products derived from this software without specific prior
50
-      written permission.
51
-
52
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
53
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
54
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
55
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
56
-LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
57
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
58
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
59
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
60
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
61
-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
62
-POSSIBILITY OF SUCH DAMAGE.
63
-
64
-End
65 1
deleted file mode 100644
... ...
@@ -1,32 +0,0 @@
1
-The code in libclamav/regex/ is derived from OpenBSD's libc/regex, original license follows:
2
-
3
- Copyright (c) 1992, 1993, 1994 Henry Spencer.
4
- Copyright (c) 1992, 1993, 1994
5
-	The Regents of the University of California.  All rights reserved.
6
-
7
- This code is derived from software contributed to Berkeley by
8
- Henry Spencer.
9
-
10
- Redistribution and use in source and binary forms, with or without
11
- modification, are permitted provided that the following conditions
12
- are met:
13
- 1. Redistributions of source code must retain the above copyright
14
-    notice, this list of conditions and the following disclaimer.
15
- 2. Redistributions in binary form must reproduce the above copyright
16
-    notice, this list of conditions and the following disclaimer in the
17
-    documentation and/or other materials provided with the distribution.
18
- 3. Neither the name of the University nor the names of its contributors
19
-    may be used to endorse or promote products derived from this software
20
-    without specific prior written permission.
21
-
22
- THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
- ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28
- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29
- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30
- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31
- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32
- SUCH DAMAGE.
33 1
new file mode 100644
... ...
@@ -0,0 +1,356 @@
0
+		    GNU GENERAL PUBLIC LICENSE
1
+		       Version 2, June 1991
2
+
3
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
4
+     51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+			    Preamble
9
+
10
+  The licenses for most software are designed to take away your
11
+freedom to share and change it.  By contrast, the GNU General Public
12
+License is intended to guarantee your freedom to share and change free
13
+software--to make sure the software is free for all its users.  This
14
+General Public License applies to most of the Free Software
15
+Foundation's software and to any other program whose authors commit to
16
+using it.  (Some other Free Software Foundation software is covered by
17
+the GNU Library General Public License instead.)  You can apply it to
18
+your programs, too.
19
+
20
+  When we speak of free software, we are referring to freedom, not
21
+price.  Our General Public Licenses are designed to make sure that you
22
+have the freedom to distribute copies of free software (and charge for
23
+this service if you wish), that you receive source code or can get it
24
+if you want it, that you can change the software or use pieces of it
25
+in new free programs; and that you know you can do these things.
26
+
27
+  To protect your rights, we need to make restrictions that forbid
28
+anyone to deny you these rights or to ask you to surrender the rights.
29
+These restrictions translate to certain responsibilities for you if you
30
+distribute copies of the software, or if you modify it.
31
+
32
+  For example, if you distribute copies of such a program, whether
33
+gratis or for a fee, you must give the recipients all the rights that
34
+you have.  You must make sure that they, too, receive or can get the
35
+source code.  And you must show them these terms so they know their
36
+rights.
37
+
38
+  We protect your rights with two steps: (1) copyright the software, and
39
+(2) offer you this license which gives you legal permission to copy,
40
+distribute and/or modify the software.
41
+
42
+  Also, for each author's protection and ours, we want to make certain
43
+that everyone understands that there is no warranty for this free
44
+software.  If the software is modified by someone else and passed on, we
45
+want its recipients to know that what they have is not the original, so
46
+that any problems introduced by others will not reflect on the original
47
+authors' reputations.
48
+
49
+  Finally, any free program is threatened constantly by software
50
+patents.  We wish to avoid the danger that redistributors of a free
51
+program will individually obtain patent licenses, in effect making the
52
+program proprietary.  To prevent this, we have made it clear that any
53
+patent must be licensed for everyone's free use or not licensed at all.
54
+
55
+  The precise terms and conditions for copying, distribution and
56
+modification follow.
57
+
58
+		    GNU GENERAL PUBLIC LICENSE
59
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
60
+
61
+  0. This License applies to any program or other work which contains
62
+a notice placed by the copyright holder saying it may be distributed
63
+under the terms of this General Public License.  The "Program", below,
64
+refers to any such program or work, and a "work based on the Program"
65
+means either the Program or any derivative work under copyright law:
66
+that is to say, a work containing the Program or a portion of it,
67
+either verbatim or with modifications and/or translated into another
68
+language.  (Hereinafter, translation is included without limitation in
69
+the term "modification".)  Each licensee is addressed as "you".
70
+
71
+Activities other than copying, distribution and modification are not
72
+covered by this License; they are outside its scope.  The act of
73
+running the Program is not restricted, and the output from the Program
74
+is covered only if its contents constitute a work based on the
75
+Program (independent of having been made by running the Program).
76
+Whether that is true depends on what the Program does.
77
+
78
+  1. You may copy and distribute verbatim copies of the Program's
79
+source code as you receive it, in any medium, provided that you
80
+conspicuously and appropriately publish on each copy an appropriate
81
+copyright notice and disclaimer of warranty; keep intact all the
82
+notices that refer to this License and to the absence of any warranty;
83
+and give any other recipients of the Program a copy of this License
84
+along with the Program.
85
+
86
+You may charge a fee for the physical act of transferring a copy, and
87
+you may at your option offer warranty protection in exchange for a fee.
88
+
89
+  2. You may modify your copy or copies of the Program or any portion
90
+of it, thus forming a work based on the Program, and copy and
91
+distribute such modifications or work under the terms of Section 1
92
+above, provided that you also meet all of these conditions:
93
+
94
+    a) You must cause the modified files to carry prominent notices
95
+    stating that you changed the files and the date of any change.
96
+
97
+    b) You must cause any work that you distribute or publish, that in
98
+    whole or in part contains or is derived from the Program or any
99
+    part thereof, to be licensed as a whole at no charge to all third
100
+    parties under the terms of this License.
101
+
102
+    c) If the modified program normally reads commands interactively
103
+    when run, you must cause it, when started running for such
104
+    interactive use in the most ordinary way, to print or display an
105
+    announcement including an appropriate copyright notice and a
106
+    notice that there is no warranty (or else, saying that you provide
107
+    a warranty) and that users may redistribute the program under
108
+    these conditions, and telling the user how to view a copy of this
109
+    License.  (Exception: if the Program itself is interactive but
110
+    does not normally print such an announcement, your work based on
111
+    the Program is not required to print an announcement.)
112
+
113
+These requirements apply to the modified work as a whole.  If
114
+identifiable sections of that work are not derived from the Program,
115
+and can be reasonably considered independent and separate works in
116
+themselves, then this License, and its terms, do not apply to those
117
+sections when you distribute them as separate works.  But when you
118
+distribute the same sections as part of a whole which is a work based
119
+on the Program, the distribution of the whole must be on the terms of
120
+this License, whose permissions for other licensees extend to the
121
+entire whole, and thus to each and every part regardless of who wrote it.
122
+
123
+Thus, it is not the intent of this section to claim rights or contest
124
+your rights to work written entirely by you; rather, the intent is to
125
+exercise the right to control the distribution of derivative or
126
+collective works based on the Program.
127
+
128
+In addition, mere aggregation of another work not based on the Program
129
+with the Program (or with a work based on the Program) on a volume of
130
+a storage or distribution medium does not bring the other work under
131
+the scope of this License.
132
+
133
+  3. You may copy and distribute the Program (or a work based on it,
134
+under Section 2) in object code or executable form under the terms of
135
+Sections 1 and 2 above provided that you also do one of the following:
136
+
137
+    a) Accompany it with the complete corresponding machine-readable
138
+    source code, which must be distributed under the terms of Sections
139
+    1 and 2 above on a medium customarily used for software interchange; or,
140
+
141
+    b) Accompany it with a written offer, valid for at least three
142
+    years, to give any third party, for a charge no more than your
143
+    cost of physically performing source distribution, a complete
144
+    machine-readable copy of the corresponding source code, to be
145
+    distributed under the terms of Sections 1 and 2 above on a medium
146
+    customarily used for software interchange; or,
147
+
148
+    c) Accompany it with the information you received as to the offer
149
+    to distribute corresponding source code.  (This alternative is
150
+    allowed only for noncommercial distribution and only if you
151
+    received the program in object code or executable form with such
152
+    an offer, in accord with Subsection b above.)
153
+
154
+The source code for a work means the preferred form of the work for
155
+making modifications to it.  For an executable work, complete source
156
+code means all the source code for all modules it contains, plus any
157
+associated interface definition files, plus the scripts used to
158
+control compilation and installation of the executable.  However, as a
159
+special exception, the source code distributed need not include
160
+anything that is normally distributed (in either source or binary
161
+form) with the major components (compiler, kernel, and so on) of the
162
+operating system on which the executable runs, unless that component
163
+itself accompanies the executable.
164
+
165
+If distribution of executable or object code is made by offering
166
+access to copy from a designated place, then offering equivalent
167
+access to copy the source code from the same place counts as
168
+distribution of the source code, even though third parties are not
169
+compelled to copy the source along with the object code.
170
+
171
+  4. You may not copy, modify, sublicense, or distribute the Program
172
+except as expressly provided under this License.  Any attempt
173
+otherwise to copy, modify, sublicense or distribute the Program is
174
+void, and will automatically terminate your rights under this License.
175
+However, parties who have received copies, or rights, from you under
176
+this License will not have their licenses terminated so long as such
177
+parties remain in full compliance.
178
+
179
+  5. You are not required to accept this License, since you have not
180
+signed it.  However, nothing else grants you permission to modify or
181
+distribute the Program or its derivative works.  These actions are
182
+prohibited by law if you do not accept this License.  Therefore, by
183
+modifying or distributing the Program (or any work based on the
184
+Program), you indicate your acceptance of this License to do so, and
185
+all its terms and conditions for copying, distributing or modifying
186
+the Program or works based on it.
187
+
188
+  6. Each time you redistribute the Program (or any work based on the
189
+Program), the recipient automatically receives a license from the
190
+original licensor to copy, distribute or modify the Program subject to
191
+these terms and conditions.  You may not impose any further
192
+restrictions on the recipients' exercise of the rights granted herein.
193
+You are not responsible for enforcing compliance by third parties to
194
+this License.
195
+
196
+  7. If, as a consequence of a court judgment or allegation of patent
197
+infringement or for any other reason (not limited to patent issues),
198
+conditions are imposed on you (whether by court order, agreement or
199
+otherwise) that contradict the conditions of this License, they do not
200
+excuse you from the conditions of this License.  If you cannot
201
+distribute so as to satisfy simultaneously your obligations under this
202
+License and any other pertinent obligations, then as a consequence you
203
+may not distribute the Program at all.  For example, if a patent
204
+license would not permit royalty-free redistribution of the Program by
205
+all those who receive copies directly or indirectly through you, then
206
+the only way you could satisfy both it and this License would be to
207
+refrain entirely from distribution of the Program.
208
+
209
+If any portion of this section is held invalid or unenforceable under
210
+any particular circumstance, the balance of the section is intended to
211
+apply and the section as a whole is intended to apply in other
212
+circumstances.
213
+
214
+It is not the purpose of this section to induce you to infringe any
215
+patents or other property right claims or to contest validity of any
216
+such claims; this section has the sole purpose of protecting the
217
+integrity of the free software distribution system, which is
218
+implemented by public license practices.  Many people have made
219
+generous contributions to the wide range of software distributed
220
+through that system in reliance on consistent application of that
221
+system; it is up to the author/donor to decide if he or she is willing
222
+to distribute software through any other system and a licensee cannot
223
+impose that choice.
224
+
225
+This section is intended to make thoroughly clear what is believed to
226
+be a consequence of the rest of this License.
227
+
228
+  8. If the distribution and/or use of the Program is restricted in
229
+certain countries either by patents or by copyrighted interfaces, the
230
+original copyright holder who places the Program under this License
231
+may add an explicit geographical distribution limitation excluding
232
+those countries, so that distribution is permitted only in or among
233
+countries not thus excluded.  In such case, this License incorporates
234
+the limitation as if written in the body of this License.
235
+
236
+  9. The Free Software Foundation may publish revised and/or new versions
237
+of the General Public License from time to time.  Such new versions will
238
+be similar in spirit to the present version, but may differ in detail to
239
+address new problems or concerns.
240
+
241
+Each version is given a distinguishing version number.  If the Program
242
+specifies a version number of this License which applies to it and "any
243
+later version", you have the option of following the terms and conditions
244
+either of that version or of any later version published by the Free
245
+Software Foundation.  If the Program does not specify a version number of
246
+this License, you may choose any version ever published by the Free Software
247
+Foundation.
248
+
249
+  10. If you wish to incorporate parts of the Program into other free
250
+programs whose distribution conditions are different, write to the author
251
+to ask for permission.  For software which is copyrighted by the Free
252
+Software Foundation, write to the Free Software Foundation; we sometimes
253
+make exceptions for this.  Our decision will be guided by the two goals
254
+of preserving the free status of all derivatives of our free software and
255
+of promoting the sharing and reuse of software generally.
256
+
257
+			    NO WARRANTY
258
+
259
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
260
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
261
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
262
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
263
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
264
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
265
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
266
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
267
+REPAIR OR CORRECTION.
268
+
269
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
270
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
271
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
272
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
273
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
274
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
275
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
276
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
277
+POSSIBILITY OF SUCH DAMAGES.
278
+
279
+		     END OF TERMS AND CONDITIONS
280
+
281
+	    How to Apply These Terms to Your New Programs
282
+
283
+  If you develop a new program, and you want it to be of the greatest
284
+possible use to the public, the best way to achieve this is to make it
285
+free software which everyone can redistribute and change under these terms.
286
+
287
+  To do so, attach the following notices to the program.  It is safest
288
+to attach them to the start of each source file to most effectively
289
+convey the exclusion of warranty; and each file should have at least
290
+the "copyright" line and a pointer to where the full notice is found.
291
+
292
+    <one line to give the program's name and a brief idea of what it does.>
293
+    Copyright (C) <year>  <name of author>
294
+
295
+    This program is free software; you can redistribute it and/or modify
296
+    it under the terms of the GNU General Public License as published by
297
+    the Free Software Foundation; either version 2 of the License, or
298
+    (at your option) any later version.
299
+
300
+    This program is distributed in the hope that it will be useful,
301
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
302
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
303
+    GNU General Public License for more details.
304
+
305
+    You should have received a copy of the GNU General Public License
306
+    along with this program; if not, write to the Free Software
307
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
308
+
309
+
310
+Also add information on how to contact you by electronic and paper mail.
311
+
312
+If the program is interactive, make it output a short notice like this
313
+when it starts in an interactive mode:
314
+
315
+    Gnomovision version 69, Copyright (C) year  name of author
316
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+    This is free software, and you are welcome to redistribute it
318
+    under certain conditions; type `show c' for details.
319
+
320
+The hypothetical commands `show w' and `show c' should show the appropriate
321
+parts of the General Public License.  Of course, the commands you use may
322
+be called something other than `show w' and `show c'; they could even be
323
+mouse-clicks or menu items--whatever suits your program.
324
+
325
+You should also get your employer (if you work as a programmer) or your
326
+school, if any, to sign a "copyright disclaimer" for the program, if
327
+necessary.  Here is a sample; alter the names:
328
+
329
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+  <signature of Ty Coon>, 1 April 1989
333
+  Ty Coon, President of Vice
334
+
335
+This General Public License does not permit incorporating your program into
336
+proprietary programs.  If your program is a subroutine library, you may
337
+consider it more useful to permit linking proprietary applications with the
338
+library.  If this is what you want to do, use the GNU Library General
339
+Public License instead of this License.
340
+
341
+            REGARDING OPENSSL
342
+
343
+ In addition, as a special exception, the copyright holders give
344
+ permission to link the code of portions of this program with the
345
+ OpenSSL library under certain conditions as described in each
346
+ individual source file, and distribute linked combinations
347
+ including the two.
348
+
349
+ You must obey the GNU General Public License in all respects
350
+ for all of the code used other than OpenSSL.  If you modify
351
+ file(s) with this exception, you may extend this exception to your
352
+ version of the file(s), but you are not obligated to do so.  If you
353
+ do not wish to do so, delete this exception statement from your
354
+ version.  If you delete this exception statement from all source
355
+ files in the program, then also delete it here.
0 356
deleted file mode 100644
... ...
@@ -1,52 +0,0 @@
1
-The libclamunrar code is based on the work of Alexander L. Roshal (C)
2
-
3
-The UnRAR sources may be used in any software to handle RAR
4
-archives without limitations free of charge, but cannot be used
5
-to re-create the RAR compression algorithm, which is proprietary.
6
-Distribution of modified unRAR sources in separate form or as a
7
-part of other software is permitted, provided that it is clearly
8
-stated in the documentation and source comments that the code may
9
-not be used to develop a RAR (WinRAR) compatible archiver.
10
-
11
-Original UnRAR licence:
12
-
13
- ******    *****   ******   UnRAR - free utility for RAR archives
14
- **   **  **   **  **   **  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
- ******   *******  ******    License for use and distribution of
16
- **   **  **   **  **   **   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17
- **   **  **   **  **   **         FREE portable version
18
-                                   ~~~~~~~~~~~~~~~~~~~~~
19
-
20
-      The source code of UnRAR utility is freeware. This means:
21
-
22
-   1. All copyrights to RAR and the utility UnRAR are exclusively
23
-      owned by the author - Alexander Roshal.
24
-
25
-   2. The UnRAR sources may be used in any software to handle RAR
26
-      archives without limitations free of charge, but cannot be used
27
-      to re-create the RAR compression algorithm, which is proprietary.
28
-      Distribution of modified UnRAR sources in separate form or as a
29
-      part of other software is permitted, provided that it is clearly
30
-      stated in the documentation and source comments that the code may
31
-      not be used to develop a RAR (WinRAR) compatible archiver.
32
-
33
-   3. The UnRAR utility may be freely distributed. It is allowed
34
-      to distribute UnRAR inside of other software packages.
35
-
36
-   4. THE RAR ARCHIVER AND THE UnRAR UTILITY ARE DISTRIBUTED "AS IS".
37
-      NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED.  YOU USE AT 
38
-      YOUR OWN RISK. THE AUTHOR WILL NOT BE LIABLE FOR DATA LOSS, 
39
-      DAMAGES, LOSS OF PROFITS OR ANY OTHER KIND OF LOSS WHILE USING
40
-      OR MISUSING THIS SOFTWARE.
41
-
42
-   5. Installing and using the UnRAR utility signifies acceptance of
43
-      these terms and conditions of the license.
44
-
45
-   6. If you don't agree with terms of the license you must remove
46
-      UnRAR files from your storage devices and cease to use the
47
-      utility.
48
-
49
-      Thank you for your interest in RAR and UnRAR.
50
-
51
-
52
-                                            Alexander L. Roshal
53 1
deleted file mode 100644
... ...
@@ -1,21 +0,0 @@
1
-zlib/libpng license 
2
-
3
-This software is provided 'as-is', without any express or implied warranty. In 
4
-no event will the authors be held liable for any damages arising from the use
5
-of this software. 
6
-
7
-Permission is granted to anyone to use this software for any purpose, including 
8
-commercial applications, and to alter it and redistribute it freely, subject to 
9
-the following restrictions: 
10
-
11
-  1. The origin of this software must not be misrepresented; you must not
12
-     claim that you wrote the original software. If you use this software in
13
-     a product, an acknowledgment in the product documentation would be
14
-     appreciated but is not required. 
15
-
16
-  2. Altered source versions must be plainly marked as such, and must not be
17
-     misrepresented as being the original software. 
18
-
19
-  3. This notice may not be removed or altered from any source distribution. 
20
-
21 1
new file mode 100644
... ...
@@ -0,0 +1,510 @@
0
+
1
+                  GNU LESSER GENERAL PUBLIC LICENSE
2
+                       Version 2.1, February 1999
3
+
4
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
5
+	51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+[This is the first released version of the Lesser GPL.  It also counts
10
+ as the successor of the GNU Library Public License, version 2, hence
11
+ the version number 2.1.]
12
+
13
+                            Preamble
14
+
15
+  The licenses for most software are designed to take away your
16
+freedom to share and change it.  By contrast, the GNU General Public
17
+Licenses are intended to guarantee your freedom to share and change
18
+free software--to make sure the software is free for all its users.
19
+
20
+  This license, the Lesser General Public License, applies to some
21
+specially designated software packages--typically libraries--of the
22
+Free Software Foundation and other authors who decide to use it.  You
23
+can use it too, but we suggest you first think carefully about whether
24
+this license or the ordinary General Public License is the better
25
+strategy to use in any particular case, based on the explanations
26
+below.
27
+
28
+  When we speak of free software, we are referring to freedom of use,
29
+not price.  Our General Public Licenses are designed to make sure that
30
+you have the freedom to distribute copies of free software (and charge
31
+for this service if you wish); that you receive source code or can get
32
+it if you want it; that you can change the software and use pieces of
33
+it in new free programs; and that you are informed that you can do
34
+these things.
35
+
36
+  To protect your rights, we need to make restrictions that forbid
37
+distributors to deny you these rights or to ask you to surrender these
38
+rights.  These restrictions translate to certain responsibilities for
39
+you if you distribute copies of the library or if you modify it.
40
+
41
+  For example, if you distribute copies of the library, whether gratis
42
+or for a fee, you must give the recipients all the rights that we gave
43
+you.  You must make sure that they, too, receive or can get the source
44
+code.  If you link other code with the library, you must provide
45
+complete object files to the recipients, so that they can relink them
46
+with the library after making changes to the library and recompiling
47
+it.  And you must show them these terms so they know their rights.
48
+
49
+  We protect your rights with a two-step method: (1) we copyright the
50
+library, and (2) we offer you this license, which gives you legal
51
+permission to copy, distribute and/or modify the library.
52
+
53
+  To protect each distributor, we want to make it very clear that
54
+there is no warranty for the free library.  Also, if the library is
55
+modified by someone else and passed on, the recipients should know
56
+that what they have is not the original version, so that the original
57
+author's reputation will not be affected by problems that might be
58
+introduced by others.
59
+
60
+  Finally, software patents pose a constant threat to the existence of
61
+any free program.  We wish to make sure that a company cannot
62
+effectively restrict the users of a free program by obtaining a
63
+restrictive license from a patent holder.  Therefore, we insist that
64
+any patent license obtained for a version of the library must be
65
+consistent with the full freedom of use specified in this license.
66
+
67
+  Most GNU software, including some libraries, is covered by the
68
+ordinary GNU General Public License.  This license, the GNU Lesser
69
+General Public License, applies to certain designated libraries, and
70
+is quite different from the ordinary General Public License.  We use
71
+this license for certain libraries in order to permit linking those
72
+libraries into non-free programs.
73
+
74
+  When a program is linked with a library, whether statically or using
75
+a shared library, the combination of the two is legally speaking a
76
+combined work, a derivative of the original library.  The ordinary
77
+General Public License therefore permits such linking only if the
78
+entire combination fits its criteria of freedom.  The Lesser General
79
+Public License permits more lax criteria for linking other code with
80
+the library.
81
+
82
+  We call this license the "Lesser" General Public License because it
83
+does Less to protect the user's freedom than the ordinary General
84
+Public License.  It also provides other free software developers Less
85
+of an advantage over competing non-free programs.  These disadvantages
86
+are the reason we use the ordinary General Public License for many
87
+libraries.  However, the Lesser license provides advantages in certain
88
+special circumstances.
89
+
90
+  For example, on rare occasions, there may be a special need to
91
+encourage the widest possible use of a certain library, so that it
92
+becomes a de-facto standard.  To achieve this, non-free programs must
93
+be allowed to use the library.  A more frequent case is that a free
94
+library does the same job as widely used non-free libraries.  In this
95
+case, there is little to gain by limiting the free library to free
96
+software only, so we use the Lesser General Public License.
97
+
98
+  In other cases, permission to use a particular library in non-free
99
+programs enables a greater number of people to use a large body of
100
+free software.  For example, permission to use the GNU C Library in
101
+non-free programs enables many more people to use the whole GNU
102
+operating system, as well as its variant, the GNU/Linux operating
103
+system.
104
+
105
+  Although the Lesser General Public License is Less protective of the
106
+users' freedom, it does ensure that the user of a program that is
107
+linked with the Library has the freedom and the wherewithal to run
108
+that program using a modified version of the Library.
109
+
110
+  The precise terms and conditions for copying, distribution and
111
+modification follow.  Pay close attention to the difference between a
112
+"work based on the library" and a "work that uses the library".  The
113
+former contains code derived from the library, whereas the latter must
114
+be combined with the library in order to run.
115
+
116
+                  GNU LESSER GENERAL PUBLIC LICENSE
117
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
118
+
119
+  0. This License Agreement applies to any software library or other
120
+program which contains a notice placed by the copyright holder or
121
+other authorized party saying it may be distributed under the terms of
122
+this Lesser General Public License (also called "this License").
123
+Each licensee is addressed as "you".
124
+
125
+  A "library" means a collection of software functions and/or data
126
+prepared so as to be conveniently linked with application programs
127
+(which use some of those functions and data) to form executables.
128
+
129
+  The "Library", below, refers to any such software library or work
130
+which has been distributed under these terms.  A "work based on the
131
+Library" means either the Library or any derivative work under
132
+copyright law: that is to say, a work containing the Library or a
133
+portion of it, either verbatim or with modifications and/or translated
134
+straightforwardly into another language.  (Hereinafter, translation is
135
+included without limitation in the term "modification".)
136
+
137
+  "Source code" for a work means the preferred form of the work for
138
+making modifications to it.  For a library, complete source code means
139
+all the source code for all modules it contains, plus any associated
140
+interface definition files, plus the scripts used to control
141
+compilation and installation of the library.
142
+
143
+  Activities other than copying, distribution and modification are not
144
+covered by this License; they are outside its scope.  The act of
145
+running a program using the Library is not restricted, and output from
146
+such a program is covered only if its contents constitute a work based
147
+on the Library (independent of the use of the Library in a tool for
148
+writing it).  Whether that is true depends on what the Library does
149
+and what the program that uses the Library does.
150
+
151
+  1. You may copy and distribute verbatim copies of the Library's
152
+complete source code as you receive it, in any medium, provided that
153
+you conspicuously and appropriately publish on each copy an
154
+appropriate copyright notice and disclaimer of warranty; keep intact
155
+all the notices that refer to this License and to the absence of any
156
+warranty; and distribute a copy of this License along with the
157
+Library.
158
+
159
+  You may charge a fee for the physical act of transferring a copy,
160
+and you may at your option offer warranty protection in exchange for a
161
+fee.
162
+
163
+  2. You may modify your copy or copies of the Library or any portion
164
+of it, thus forming a work based on the Library, and copy and
165
+distribute such modifications or work under the terms of Section 1
166
+above, provided that you also meet all of these conditions:
167
+
168
+    a) The modified work must itself be a software library.
169
+
170
+    b) You must cause the files modified to carry prominent notices
171
+    stating that you changed the files and the date of any change.
172
+
173
+    c) You must cause the whole of the work to be licensed at no
174
+    charge to all third parties under the terms of this License.
175
+
176
+    d) If a facility in the modified Library refers to a function or a
177
+    table of data to be supplied by an application program that uses
178
+    the facility, other than as an argument passed when the facility
179
+    is invoked, then you must make a good faith effort to ensure that,
180
+    in the event an application does not supply such function or
181
+    table, the facility still operates, and performs whatever part of
182
+    its purpose remains meaningful.
183
+
184
+    (For example, a function in a library to compute square roots has
185
+    a purpose that is entirely well-defined independent of the
186
+    application.  Therefore, Subsection 2d requires that any
187
+    application-supplied function or table used by this function must
188
+    be optional: if the application does not supply it, the square
189
+    root function must still compute square roots.)
190
+
191
+These requirements apply to the modified work as a whole.  If
192
+identifiable sections of that work are not derived from the Library,
193
+and can be reasonably considered independent and separate works in
194
+themselves, then this License, and its terms, do not apply to those
195
+sections when you distribute them as separate works.  But when you
196
+distribute the same sections as part of a whole which is a work based
197
+on the Library, the distribution of the whole must be on the terms of
198
+this License, whose permissions for other licensees extend to the
199
+entire whole, and thus to each and every part regardless of who wrote
200
+it.
201
+
202
+Thus, it is not the intent of this section to claim rights or contest
203
+your rights to work written entirely by you; rather, the intent is to
204
+exercise the right to control the distribution of derivative or
205
+collective works based on the Library.
206
+
207
+In addition, mere aggregation of another work not based on the Library
208
+with the Library (or with a work based on the Library) on a volume of
209
+a storage or distribution medium does not bring the other work under
210
+the scope of this License.
211
+
212
+  3. You may opt to apply the terms of the ordinary GNU General Public
213
+License instead of this License to a given copy of the Library.  To do
214
+this, you must alter all the notices that refer to this License, so
215
+that they refer to the ordinary GNU General Public License, version 2,
216
+instead of to this License.  (If a newer version than version 2 of the
217
+ordinary GNU General Public License has appeared, then you can specify
218
+that version instead if you wish.)  Do not make any other change in
219
+these notices.
220
+
221
+  Once this change is made in a given copy, it is irreversible for
222
+that copy, so the ordinary GNU General Public License applies to all
223
+subsequent copies and derivative works made from that copy.
224
+
225
+  This option is useful when you wish to copy part of the code of
226
+the Library into a program that is not a library.
227
+
228
+  4. You may copy and distribute the Library (or a portion or
229
+derivative of it, under Section 2) in object code or executable form
230
+under the terms of Sections 1 and 2 above provided that you accompany
231
+it with the complete corresponding machine-readable source code, which
232
+must be distributed under the terms of Sections 1 and 2 above on a
233
+medium customarily used for software interchange.
234
+
235
+  If distribution of object code is made by offering access to copy
236
+from a designated place, then offering equivalent access to copy the
237
+source code from the same place satisfies the requirement to
238
+distribute the source code, even though third parties are not
239
+compelled to copy the source along with the object code.
240
+
241
+  5. A program that contains no derivative of any portion of the
242
+Library, but is designed to work with the Library by being compiled or
243
+linked with it, is called a "work that uses the Library".  Such a
244
+work, in isolation, is not a derivative work of the Library, and
245
+therefore falls outside the scope of this License.
246
+
247
+  However, linking a "work that uses the Library" with the Library
248
+creates an executable that is a derivative of the Library (because it
249
+contains portions of the Library), rather than a "work that uses the
250
+library".  The executable is therefore covered by this License.
251
+Section 6 states terms for distribution of such executables.
252
+
253
+  When a "work that uses the Library" uses material from a header file
254
+that is part of the Library, the object code for the work may be a
255
+derivative work of the Library even though the source code is not.
256
+Whether this is true is especially significant if the work can be
257
+linked without the Library, or if the work is itself a library.  The
258
+threshold for this to be true is not precisely defined by law.
259
+
260
+  If such an object file uses only numerical parameters, data
261
+structure layouts and accessors, and small macros and small inline
262
+functions (ten lines or less in length), then the use of the object
263
+file is unrestricted, regardless of whether it is legally a derivative
264
+work.  (Executables containing this object code plus portions of the
265
+Library will still fall under Section 6.)
266
+
267
+  Otherwise, if the work is a derivative of the Library, you may
268
+distribute the object code for the work under the terms of Section 6.
269
+Any executables containing that work also fall under Section 6,
270
+whether or not they are linked directly with the Library itself.
271
+
272
+  6. As an exception to the Sections above, you may also combine or
273
+link a "work that uses the Library" with the Library to produce a
274
+work containing portions of the Library, and distribute that work
275
+under terms of your choice, provided that the terms permit
276
+modification of the work for the customer's own use and reverse
277
+engineering for debugging such modifications.
278
+
279
+  You must give prominent notice with each copy of the work that the
280
+Library is used in it and that the Library and its use are covered by
281
+this License.  You must supply a copy of this License.  If the work
282
+during execution displays copyright notices, you must include the
283
+copyright notice for the Library among them, as well as a reference
284
+directing the user to the copy of this License.  Also, you must do one
285
+of these things:
286
+
287
+    a) Accompany the work with the complete corresponding
288
+    machine-readable source code for the Library including whatever
289
+    changes were used in the work (which must be distributed under
290
+    Sections 1 and 2 above); and, if the work is an executable linked
291
+    with the Library, with the complete machine-readable "work that
292
+    uses the Library", as object code and/or source code, so that the
293
+    user can modify the Library and then relink to produce a modified
294
+    executable containing the modified Library.  (It is understood
295
+    that the user who changes the contents of definitions files in the
296
+    Library will not necessarily be able to recompile the application
297
+    to use the modified definitions.)
298
+
299
+    b) Use a suitable shared library mechanism for linking with the
300
+    Library.  A suitable mechanism is one that (1) uses at run time a
301
+    copy of the library already present on the user's computer system,
302
+    rather than copying library functions into the executable, and (2)
303
+    will operate properly with a modified version of the library, if
304
+    the user installs one, as long as the modified version is
305
+    interface-compatible with the version that the work was made with.
306
+
307
+    c) Accompany the work with a written offer, valid for at least
308
+    three years, to give the same user the materials specified in
309
+    Subsection 6a, above, for a charge no more than the cost of
310
+    performing this distribution.
311
+
312
+    d) If distribution of the work is made by offering access to copy
313
+    from a designated place, offer equivalent access to copy the above
314
+    specified materials from the same place.
315
+
316
+    e) Verify that the user has already received a copy of these
317
+    materials or that you have already sent this user a copy.
318
+
319
+  For an executable, the required form of the "work that uses the
320
+Library" must include any data and utility programs needed for
321
+reproducing the executable from it.  However, as a special exception,
322
+the materials to be distributed need not include anything that is
323
+normally distributed (in either source or binary form) with the major
324
+components (compiler, kernel, and so on) of the operating system on
325
+which the executable runs, unless that component itself accompanies
326
+the executable.
327
+
328
+  It may happen that this requirement contradicts the license
329
+restrictions of other proprietary libraries that do not normally
330
+accompany the operating system.  Such a contradiction means you cannot
331
+use both them and the Library together in an executable that you
332
+distribute.
333
+
334
+  7. You may place library facilities that are a work based on the
335
+Library side-by-side in a single library together with other library
336
+facilities not covered by this License, and distribute such a combined
337
+library, provided that the separate distribution of the work based on
338
+the Library and of the other library facilities is otherwise
339
+permitted, and provided that you do these two things:
340
+
341
+    a) Accompany the combined library with a copy of the same work
342
+    based on the Library, uncombined with any other library
343
+    facilities.  This must be distributed under the terms of the
344
+    Sections above.
345
+
346
+    b) Give prominent notice with the combined library of the fact
347
+    that part of it is a work based on the Library, and explaining
348
+    where to find the accompanying uncombined form of the same work.
349
+
350
+  8. You may not copy, modify, sublicense, link with, or distribute
351
+the Library except as expressly provided under this License.  Any
352
+attempt otherwise to copy, modify, sublicense, link with, or
353
+distribute the Library is void, and will automatically terminate your
354
+rights under this License.  However, parties who have received copies,
355
+or rights, from you under this License will not have their licenses
356
+terminated so long as such parties remain in full compliance.
357
+
358
+  9. You are not required to accept this License, since you have not
359
+signed it.  However, nothing else grants you permission to modify or
360
+distribute the Library or its derivative works.  These actions are
361
+prohibited by law if you do not accept this License.  Therefore, by
362
+modifying or distributing the Library (or any work based on the
363
+Library), you indicate your acceptance of this License to do so, and
364
+all its terms and conditions for copying, distributing or modifying
365
+the Library or works based on it.
366
+
367
+  10. Each time you redistribute the Library (or any work based on the
368
+Library), the recipient automatically receives a license from the
369
+original licensor to copy, distribute, link with or modify the Library
370
+subject to these terms and conditions.  You may not impose any further
371
+restrictions on the recipients' exercise of the rights granted herein.
372
+You are not responsible for enforcing compliance by third parties with
373
+this License.
374
+
375
+  11. If, as a consequence of a court judgment or allegation of patent
376
+infringement or for any other reason (not limited to patent issues),
377
+conditions are imposed on you (whether by court order, agreement or
378
+otherwise) that contradict the conditions of this License, they do not
379
+excuse you from the conditions of this License.  If you cannot
380
+distribute so as to satisfy simultaneously your obligations under this
381
+License and any other pertinent obligations, then as a consequence you
382
+may not distribute the Library at all.  For example, if a patent
383
+license would not permit royalty-free redistribution of the Library by
384
+all those who receive copies directly or indirectly through you, then
385
+the only way you could satisfy both it and this License would be to
386
+refrain entirely from distribution of the Library.
387
+
388
+If any portion of this section is held invalid or unenforceable under
389
+any particular circumstance, the balance of the section is intended to
390
+apply, and the section as a whole is intended to apply in other
391
+circumstances.
392
+
393
+It is not the purpose of this section to induce you to infringe any
394
+patents or other property right claims or to contest validity of any
395
+such claims; this section has the sole purpose of protecting the
396
+integrity of the free software distribution system which is
397
+implemented by public license practices.  Many people have made
398
+generous contributions to the wide range of software distributed
399
+through that system in reliance on consistent application of that
400
+system; it is up to the author/donor to decide if he or she is willing
401
+to distribute software through any other system and a licensee cannot
402
+impose that choice.
403
+
404
+This section is intended to make thoroughly clear what is believed to
405
+be a consequence of the rest of this License.
406
+
407
+  12. If the distribution and/or use of the Library is restricted in
408
+certain countries either by patents or by copyrighted interfaces, the
409
+original copyright holder who places the Library under this License
410
+may add an explicit geographical distribution limitation excluding those
411
+countries, so that distribution is permitted only in or among
412
+countries not thus excluded.  In such case, this License incorporates
413
+the limitation as if written in the body of this License.
414
+
415
+  13. The Free Software Foundation may publish revised and/or new
416
+versions of the Lesser General Public License from time to time.
417
+Such new versions will be similar in spirit to the present version,
418
+but may differ in detail to address new problems or concerns.
419
+
420
+Each version is given a distinguishing version number.  If the Library
421
+specifies a version number of this License which applies to it and
422
+"any later version", you have the option of following the terms and
423
+conditions either of that version or of any later version published by
424
+the Free Software Foundation.  If the Library does not specify a
425
+license version number, you may choose any version ever published by
426
+the Free Software Foundation.
427
+
428
+  14. If you wish to incorporate parts of the Library into other free
429
+programs whose distribution conditions are incompatible with these,
430
+write to the author to ask for permission.  For software which is
431
+copyrighted by the Free Software Foundation, write to the Free
432
+Software Foundation; we sometimes make exceptions for this.  Our
433
+decision will be guided by the two goals of preserving the free status
434
+of all derivatives of our free software and of promoting the sharing
435
+and reuse of software generally.
436
+
437
+                            NO WARRANTY
438
+
439
+  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
440
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
441
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
442
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
443
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
444
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
445
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
446
+LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
447
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
448
+
449
+  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
450
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
451
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
452
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
453
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
454
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
455
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
456
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
457
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
458
+DAMAGES.
459
+
460
+                     END OF TERMS AND CONDITIONS
461
+
462
+           How to Apply These Terms to Your New Libraries
463
+
464
+  If you develop a new library, and you want it to be of the greatest
465
+possible use to the public, we recommend making it free software that
466
+everyone can redistribute and change.  You can do so by permitting
467
+redistribution under these terms (or, alternatively, under the terms
468
+of the ordinary General Public License).
469
+
470
+  To apply these terms, attach the following notices to the library.
471
+It is safest to attach them to the start of each source file to most
472
+effectively convey the exclusion of warranty; and each file should
473
+have at least the "copyright" line and a pointer to where the full
474
+notice is found.
475
+
476
+
477
+    <one line to give the library's name and a brief idea of what it does.>
478
+    Copyright (C) <year>  <name of author>
479
+
480
+    This library is free software; you can redistribute it and/or
481
+    modify it under the terms of the GNU Lesser General Public
482
+    License as published by the Free Software Foundation; either
483
+    version 2.1 of the License, or (at your option) any later version.
484
+
485
+    This library is distributed in the hope that it will be useful,
486
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
487
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
488
+    Lesser General Public License for more details.
489
+
490
+    You should have received a copy of the GNU Lesser General Public
491
+    License along with this library; if not, write to the Free Software
492
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
493
+
494
+Also add information on how to contact you by electronic and paper mail.
495
+
496
+You should also get your employer (if you work as a programmer) or
497
+your school, if any, to sign a "copyright disclaimer" for the library,
498
+if necessary.  Here is a sample; alter the names:
499
+
500
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
501
+  library `Frob' (a library for tweaking knobs) written by James
502
+  Random Hacker.
503
+
504
+  <signature of Ty Coon>, 1 April 1990
505
+  Ty Coon, President of Vice
506
+
507
+That's all there is to it!
508
+
509
+
0 510
new file mode 100644
... ...
@@ -0,0 +1,206 @@
0
+Modified files from the YARA project exist in libclamav. These have file
1
+names with "yara_" prefixing the original yara file names. The YARA project
2
+uses the license below:
3
+
4
+
5
+                                 Apache License
6
+                           Version 2.0, January 2004
7
+                        http://www.apache.org/licenses/
8
+
9
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
+
11
+   1. Definitions.
12
+
13
+      "License" shall mean the terms and conditions for use, reproduction,
14
+      and distribution as defined by Sections 1 through 9 of this document.
15
+
16
+      "Licensor" shall mean the copyright owner or entity authorized by
17
+      the copyright owner that is granting the License.
18
+
19
+      "Legal Entity" shall mean the union of the acting entity and all
20
+      other entities that control, are controlled by, or are under common
21
+      control with that entity. For the purposes of this definition,
22
+      "control" means (i) the power, direct or indirect, to cause the
23
+      direction or management of such entity, whether by contract or
24
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
25
+      outstanding shares, or (iii) beneficial ownership of such entity.
26
+
27
+      "You" (or "Your") shall mean an individual or Legal Entity
28
+      exercising permissions granted by this License.
29
+
30
+      "Source" form shall mean the preferred form for making modifications,
31
+      including but not limited to software source code, documentation
32
+      source, and configuration files.
33
+
34
+      "Object" form shall mean any form resulting from mechanical
35
+      transformation or translation of a Source form, including but
36
+      not limited to compiled object code, generated documentation,
37
+      and conversions to other media types.
38
+
39
+      "Work" shall mean the work of authorship, whether in Source or
40
+      Object form, made available under the License, as indicated by a
41
+      copyright notice that is included in or attached to the work
42
+      (an example is provided in the Appendix below).
43
+
44
+      "Derivative Works" shall mean any work, whether in Source or Object
45
+      form, that is based on (or derived from) the Work and for which the
46
+      editorial revisions, annotations, elaborations, or other modifications
47
+      represent, as a whole, an original work of authorship. For the purposes
48
+      of this License, Derivative Works shall not include works that remain
49
+      separable from, or merely link (or bind by name) to the interfaces of,
50
+      the Work and Derivative Works thereof.
51
+
52
+      "Contribution" shall mean any work of authorship, including
53
+      the original version of the Work and any modifications or additions
54
+      to that Work or Derivative Works thereof, that is intentionally
55
+      submitted to Licensor for inclusion in the Work by the copyright owner
56
+      or by an individual or Legal Entity authorized to submit on behalf of
57
+      the copyright owner. For the purposes of this definition, "submitted"
58
+      means any form of electronic, verbal, or written communication sent
59
+      to the Licensor or its representatives, including but not limited to
60
+      communication on electronic mailing lists, source code control systems,
61
+      and issue tracking systems that are managed by, or on behalf of, the
62
+      Licensor for the purpose of discussing and improving the Work, but
63
+      excluding communication that is conspicuously marked or otherwise
64
+      designated in writing by the copyright owner as "Not a Contribution."
65
+
66
+      "Contributor" shall mean Licensor and any individual or Legal Entity
67
+      on behalf of whom a Contribution has been received by Licensor and
68
+      subsequently incorporated within the Work.
69
+
70
+   2. Grant of Copyright License. Subject to the terms and conditions of
71
+      this License, each Contributor hereby grants to You a perpetual,
72
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+      copyright license to reproduce, prepare Derivative Works of,
74
+      publicly display, publicly perform, sublicense, and distribute the
75
+      Work and such Derivative Works in Source or Object form.
76
+
77
+   3. Grant of Patent License. Subject to the terms and conditions of
78
+      this License, each Contributor hereby grants to You a perpetual,
79
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80
+      (except as stated in this section) patent license to make, have made,
81
+      use, offer to sell, sell, import, and otherwise transfer the Work,
82
+      where such license applies only to those patent claims licensable
83
+      by such Contributor that are necessarily infringed by their
84
+      Contribution(s) alone or by combination of their Contribution(s)
85
+      with the Work to which such Contribution(s) was submitted. If You
86
+      institute patent litigation against any entity (including a
87
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
88
+      or a Contribution incorporated within the Work constitutes direct
89
+      or contributory patent infringement, then any patent licenses
90
+      granted to You under this License for that Work shall terminate
91
+      as of the date such litigation is filed.
92
+
93
+   4. Redistribution. You may reproduce and distribute copies of the
94
+      Work or Derivative Works thereof in any medium, with or without
95
+      modifications, and in Source or Object form, provided that You
96
+      meet the following conditions:
97
+
98
+      (a) You must give any other recipients of the Work or
99
+          Derivative Works a copy of this License; and
100
+
101
+      (b) You must cause any modified files to carry prominent notices
102
+          stating that You changed the files; and
103
+
104
+      (c) You must retain, in the Source form of any Derivative Works
105
+          that You distribute, all copyright, patent, trademark, and
106
+          attribution notices from the Source form of the Work,
107
+          excluding those notices that do not pertain to any part of
108
+          the Derivative Works; and
109
+
110
+      (d) If the Work includes a "NOTICE" text file as part of its
111
+          distribution, then any Derivative Works that You distribute must
112
+          include a readable copy of the attribution notices contained
113
+          within such NOTICE file, excluding those notices that do not
114
+          pertain to any part of the Derivative Works, in at least one
115
+          of the following places: within a NOTICE text file distributed
116
+          as part of the Derivative Works; within the Source form or
117
+          documentation, if provided along with the Derivative Works; or,
118
+          within a display generated by the Derivative Works, if and
119
+          wherever such third-party notices normally appear. The contents
120
+          of the NOTICE file are for informational purposes only and
121
+          do not modify the License. You may add Your own attribution
122
+          notices within Derivative Works that You distribute, alongside
123
+          or as an addendum to the NOTICE text from the Work, provided
124
+          that such additional attribution notices cannot be construed
125
+          as modifying the License.
126
+
127
+      You may add Your own copyright statement to Your modifications and
128
+      may provide additional or different license terms and conditions
129
+      for use, reproduction, or distribution of Your modifications, or
130
+      for any such Derivative Works as a whole, provided Your use,
131
+      reproduction, and distribution of the Work otherwise complies with
132
+      the conditions stated in this License.
133
+
134
+   5. Submission of Contributions. Unless You explicitly state otherwise,
135
+      any Contribution intentionally submitted for inclusion in the Work
136
+      by You to the Licensor shall be under the terms and conditions of
137
+      this License, without any additional terms or conditions.
138
+      Notwithstanding the above, nothing herein shall supersede or modify
139
+      the terms of any separate license agreement you may have executed
140
+      with Licensor regarding such Contributions.
141
+
142
+   6. Trademarks. This License does not grant permission to use the trade
143
+      names, trademarks, service marks, or product names of the Licensor,
144
+      except as required for reasonable and customary use in describing the
145
+      origin of the Work and reproducing the content of the NOTICE file.
146
+
147
+   7. Disclaimer of Warranty. Unless required by applicable law or
148
+      agreed to in writing, Licensor provides the Work (and each
149
+      Contributor provides its Contributions) on an "AS IS" BASIS,
150
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
151
+      implied, including, without limitation, any warranties or conditions
152
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
153
+      PARTICULAR PURPOSE. You are solely responsible for determining the
154
+      appropriateness of using or redistributing the Work and assume any
155
+      risks associated with Your exercise of permissions under this License.
156
+
157
+   8. Limitation of Liability. In no event and under no legal theory,
158
+      whether in tort (including negligence), contract, or otherwise,
159
+      unless required by applicable law (such as deliberate and grossly
160
+      negligent acts) or agreed to in writing, shall any Contributor be
161
+      liable to You for damages, including any direct, indirect, special,
162
+      incidental, or consequential damages of any character arising as a
163
+      result of this License or out of the use or inability to use the
164
+      Work (including but not limited to damages for loss of goodwill,
165
+      work stoppage, computer failure or malfunction, or any and all
166
+      other commercial damages or losses), even if such Contributor
167
+      has been advised of the possibility of such damages.
168
+
169
+   9. Accepting Warranty or Additional Liability. While redistributing
170
+      the Work or Derivative Works thereof, You may choose to offer,
171
+      and charge a fee for, acceptance of support, warranty, indemnity,
172
+      or other liability obligations and/or rights consistent with this
173
+      License. However, in accepting such obligations, You may act only
174
+      on Your own behalf and on Your sole responsibility, not on behalf
175
+      of any other Contributor, and only if You agree to indemnify,
176
+      defend, and hold each Contributor harmless for any liability
177
+      incurred by, or claims asserted against, such Contributor by reason
178
+      of your accepting any such warranty or additional liability.
179
+
180
+   END OF TERMS AND CONDITIONS
181
+
182
+   APPENDIX: How to apply the Apache License to your work.
183
+
184
+      To apply the Apache License to your work, attach the following
185
+      boilerplate notice, with the fields enclosed by brackets "[]"
186
+      replaced with your own identifying information. (Don't include
187
+      the brackets!)  The text should be enclosed in the appropriate
188
+      comment syntax for the file format. We also recommend that a
189
+      file or class name and description of purpose be included on the
190
+      same "printed page" as the copyright notice for easier
191
+      identification within third-party archives.
192
+
193
+   Copyright [yyyy] [name of copyright owner]
194
+
195
+   Licensed under the Apache License, Version 2.0 (the "License");
196
+   you may not use this file except in compliance with the License.
197
+   You may obtain a copy of the License at
198
+
199
+       http://www.apache.org/licenses/LICENSE-2.0
200
+
201
+   Unless required by applicable law or agreed to in writing, software
202
+   distributed under the License is distributed on an "AS IS" BASIS,
203
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204
+   See the License for the specific language governing permissions and
205
+   limitations under the License.
0 206
new file mode 100644
... ...
@@ -0,0 +1,45 @@
0
+Modified files from libbzip2 are present under libclamav/nsis.
1
+The original LICENSE file for bzip2 and libbzip2 is reproduced below.
2
+
3
+--------------------------------------------------------------------------
4
+
5
+This program, "bzip2", the associated library "libbzip2", and all
6
+documentation, are copyright (C) 1996-2006 Julian R Seward.  All
7
+rights reserved.
8
+
9
+Redistribution and use in source and binary forms, with or without
10
+modification, are permitted provided that the following conditions
11
+are met:
12
+
13
+1. Redistributions of source code must retain the above copyright
14
+   notice, this list of conditions and the following disclaimer.
15
+
16
+2. The origin of this software must not be misrepresented; you must 
17
+   not claim that you wrote the original software.  If you use this 
18
+   software in a product, an acknowledgment in the product 
19
+   documentation would be appreciated but is not required.
20
+
21
+3. Altered source versions must be plainly marked as such, and must
22
+   not be misrepresented as being the original software.
23
+
24
+4. The name of the author may not be used to endorse or promote 
25
+   products derived from this software without specific prior written 
26
+   permission.
27
+
28
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
29
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
30
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31
+ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
32
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
34
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
36
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
37
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
38
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
+
40
+Julian Seward, Cambridge, UK.
41
+jseward@bzip.org
42
+bzip2/libbzip2 version 1.0.4 of 20 December 2006
43
+
44
+--------------------------------------------------------------------------
0 45
new file mode 100644
... ...
@@ -0,0 +1,22 @@
0
+COPYRIGHT AND PERMISSION NOTICE
1
+
2
+Copyright (c) 1996 - 2019, Daniel Stenberg, <daniel@haxx.se>, and many
3
+contributors, see the THANKS file.
4
+
5
+All rights reserved.
6
+
7
+Permission to use, copy, modify, and distribute this software for any purpose
8
+with or without fee is hereby granted, provided that the above copyright
9
+notice and this permission notice appear in all copies.
10
+
11
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
14
+NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
17
+OR OTHER DEALINGS IN THE SOFTWARE.
18
+
19
+Except as contained in this notice, the name of a copyright holder shall not
20
+be used in advertising or otherwise to promote the sale, use or other dealings
21
+in this Software without prior written authorization of the copyright holder.
0 22
new file mode 100644
... ...
@@ -0,0 +1,33 @@
0
+libclamav/textdet.c includes modified code from file-4.23/src/ascmagic.c.
1
+The original LEGAL.NOTICE file for file-4.23 is reproduced below.
2
+
3
+--------------------------------------------------------------------------
4
+$File: LEGAL.NOTICE,v 1.15 2006/05/03 18:48:33 christos Exp $
5
+Copyright (c) Ian F. Darwin 1986, 1987, 1989, 1990, 1991, 1992, 1994, 1995.
6
+Software written by Ian F. Darwin and others;
7
+maintained 1994- Christos Zoulas.
8
+
9
+This software is not subject to any export provision of the United States
10
+Department of Commerce, and may be exported to any country or planet.
11
+
12
+Redistribution and use in source and binary forms, with or without
13
+modification, are permitted provided that the following conditions
14
+are met:
15
+1. Redistributions of source code must retain the above copyright
16
+   notice immediately at the beginning of the file, without modification,
17
+   this list of conditions, and the following disclaimer.
18
+2. Redistributions in binary form must reproduce the above copyright
19
+   notice, this list of conditions and the following disclaimer in the
20
+   documentation and/or other materials provided with the distribution.
21
+ 
22
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
26
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32
+SUCH DAMAGE.
0 33
new file mode 100644
... ...
@@ -0,0 +1,22 @@
0
+getopt.c - my re-implementation of getopt.
1
+Copyright 1997, 2000, 2001, 2002, 2006, Benjamin Sittler
2
+
3
+Permission is hereby granted, free of charge, to any person
4
+obtaining a copy of this software and associated documentation
5
+files (the "Software"), to deal in the Software without
6
+restriction, including without limitation the rights to use, copy,
7
+modify, merge, publish, distribute, sublicense, and/or sell copies
8
+of the Software, and to permit persons to whom the Software is
9
+furnished to do so, subject to the following conditions:
10
+
11
+The above copyright notice and this permission notice shall be
12
+included in all copies or substantial portions of the Software.
13
+
14
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+DEALINGS IN THE SOFTWARE.
0 22
new file mode 100644
... ...
@@ -0,0 +1,72 @@
0
+The files in libclamav/c++/llvm are from the LLVM project, original license is
1
+in libclamav/c++/llvm/LICENSE.TXT:
2
+
3
+==============================================================================
4
+LLVM Release License
5
+==============================================================================
6
+University of Illinois/NCSA
7
+Open Source License
8
+
9
+Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
10
+All rights reserved.
11
+
12
+Developed by:
13
+
14
+    LLVM Team
15
+
16
+    University of Illinois at Urbana-Champaign
17
+
18
+    http://llvm.org
19
+
20
+Permission is hereby granted, free of charge, to any person obtaining a copy of
21
+this software and associated documentation files (the "Software"), to deal with
22
+the Software without restriction, including without limitation the rights to
23
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
24
+of the Software, and to permit persons to whom the Software is furnished to do
25
+so, subject to the following conditions:
26
+
27
+    * Redistributions of source code must retain the above copyright notice,
28
+      this list of conditions and the following disclaimers.
29
+
30
+    * Redistributions in binary form must reproduce the above copyright notice,
31
+      this list of conditions and the following disclaimers in the
32
+      documentation and/or other materials provided with the distribution.
33
+
34
+    * Neither the names of the LLVM Team, University of Illinois at
35
+      Urbana-Champaign, nor the names of its contributors may be used to
36
+      endorse or promote products derived from this Software without specific
37
+      prior written permission.
38
+
39
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
41
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
42
+CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
44
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
45
+SOFTWARE.
46
+
47
+==============================================================================
48
+Copyrights and Licenses for Third Party Software Distributed with LLVM:
49
+==============================================================================
50
+The LLVM software contains code written by third parties.  Such software will
51
+have its own individual LICENSE.TXT file in the directory in which it appears.
52
+This file will describe the copyrights, license, and restrictions which apply
53
+to that code.
54
+
55
+The disclaimer of warranty in the University of Illinois Open Source License
56
+applies to all code in the LLVM Distribution, and nothing in any of the
57
+other licenses gives permission to use the names of the LLVM Team or the
58
+University of Illinois to endorse or promote products derived from this
59
+Software.
60
+
61
+The following pieces of software have additional or alternate copyrights,
62
+licenses, and/or restrictions:
63
+
64
+Program             Directory
65
+-------             ---------
66
+Autoconf            llvm/autoconf
67
+                    llvm/projects/ModuleMaker/autoconf
68
+                    llvm/projects/sample/autoconf
69
+CellSPU backend     llvm/lib/Target/CellSPU/README.txt
70
+Google Test         llvm/utils/unittest/googletest
71
+
0 72
new file mode 100644
... ...
@@ -0,0 +1,7 @@
0
+The original lzma.txt license file, a small portion of which is reproduced below,
1
+is available under libclamav/7z/lzma.txt.
2
+
3
+LICENSE
4
+-------
5
+
6
+LZMA SDK is written and placed in the public domain by Igor Pavlov.
0 7
new file mode 100644
... ...
@@ -0,0 +1,68 @@
0
+PCRE LICENCE
1
+------------
2
+
3
+PCRE is a library of functions to support regular expressions whose syntax
4
+and semantics are as close as possible to those of the Perl 5 language.
5
+
6
+Release 7 of PCRE is distributed under the terms of the "BSD" licence, as
7
+specified below. The documentation for PCRE, supplied in the "doc"
8
+directory, is distributed under the same terms as the software itself.
9
+
10
+The basic library functions are written in C and are freestanding. Also
11
+included in the distribution is a set of C++ wrapper functions.
12
+
13
+
14
+THE BASIC LIBRARY FUNCTIONS
15
+---------------------------
16
+
17
+Written by:       Philip Hazel
18
+Email local part: ph10
19
+Email domain:     cam.ac.uk
20
+
21
+University of Cambridge Computing Service,
22
+Cambridge, England. Phone: +44 1223 334714.
23
+
24
+Copyright (c) 1997-2006 University of Cambridge
25
+All rights reserved.
26
+
27
+
28
+THE C++ WRAPPER FUNCTIONS
29
+-------------------------
30
+
31
+Contributed by:   Google Inc.
32
+
33
+Copyright (c) 2006, Google Inc.
34
+All rights reserved.
35
+
36
+
37
+THE "BSD" LICENCE
38
+-----------------
39
+
40
+Redistribution and use in source and binary forms, with or without
41
+modification, are permitted provided that the following conditions are met:
42
+
43
+    * Redistributions of source code must retain the above copyright notice,
44
+      this list of conditions and the following disclaimer.
45
+
46
+    * Redistributions in binary form must reproduce the above copyright
47
+      notice, this list of conditions and the following disclaimer in the
48
+      documentation and/or other materials provided with the distribution.
49
+
50
+    * Neither the name of the University of Cambridge nor the name of Google
51
+      Inc. nor the names of their contributors may be used to endorse or
52
+      promote products derived from this software without specific prior
53
+      written permission.
54
+
55
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
56
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
57
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
58
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
59
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
60
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
61
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
62
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
63
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
64
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
65
+POSSIBILITY OF SUCH DAMAGE.
66
+
67
+End
0 68
new file mode 100644
... ...
@@ -0,0 +1,32 @@
0
+The code in libclamav/regex/ is derived from OpenBSD's libc/regex, original license follows:
1
+
2
+ Copyright (c) 1992, 1993, 1994 Henry Spencer.
3
+ Copyright (c) 1992, 1993, 1994
4
+	The Regents of the University of California.  All rights reserved.
5
+
6
+ This code is derived from software contributed to Berkeley by
7
+ Henry Spencer.
8
+
9
+ Redistribution and use in source and binary forms, with or without
10
+ modification, are permitted provided that the following conditions
11
+ are met:
12
+ 1. Redistributions of source code must retain the above copyright
13
+    notice, this list of conditions and the following disclaimer.
14
+ 2. Redistributions in binary form must reproduce the above copyright
15
+    notice, this list of conditions and the following disclaimer in the
16
+    documentation and/or other materials provided with the distribution.
17
+ 3. Neither the name of the University nor the names of its contributors
18
+    may be used to endorse or promote products derived from this software
19
+    without specific prior written permission.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24
+ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31
+ SUCH DAMAGE.
0 32
new file mode 100644
... ...
@@ -0,0 +1,52 @@
0
+The libclamunrar code is based on the work of Alexander L. Roshal (C)
1
+
2
+The UnRAR sources may be used in any software to handle RAR
3
+archives without limitations free of charge, but cannot be used
4
+to re-create the RAR compression algorithm, which is proprietary.
5
+Distribution of modified unRAR sources in separate form or as a
6
+part of other software is permitted, provided that it is clearly
7
+stated in the documentation and source comments that the code may
8
+not be used to develop a RAR (WinRAR) compatible archiver.
9
+
10
+Original UnRAR licence:
11
+
12
+ ******    *****   ******   UnRAR - free utility for RAR archives
13
+ **   **  **   **  **   **  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14
+ ******   *******  ******    License for use and distribution of
15
+ **   **  **   **  **   **   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16
+ **   **  **   **  **   **         FREE portable version
17
+                                   ~~~~~~~~~~~~~~~~~~~~~
18
+
19
+      The source code of UnRAR utility is freeware. This means:
20
+
21
+   1. All copyrights to RAR and the utility UnRAR are exclusively
22
+      owned by the author - Alexander Roshal.
23
+
24
+   2. The UnRAR sources may be used in any software to handle RAR
25
+      archives without limitations free of charge, but cannot be used
26
+      to re-create the RAR compression algorithm, which is proprietary.
27
+      Distribution of modified UnRAR sources in separate form or as a
28
+      part of other software is permitted, provided that it is clearly
29
+      stated in the documentation and source comments that the code may
30
+      not be used to develop a RAR (WinRAR) compatible archiver.
31
+
32
+   3. The UnRAR utility may be freely distributed. It is allowed
33
+      to distribute UnRAR inside of other software packages.
34
+
35
+   4. THE RAR ARCHIVER AND THE UnRAR UTILITY ARE DISTRIBUTED "AS IS".
36
+      NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED.  YOU USE AT 
37
+      YOUR OWN RISK. THE AUTHOR WILL NOT BE LIABLE FOR DATA LOSS, 
38
+      DAMAGES, LOSS OF PROFITS OR ANY OTHER KIND OF LOSS WHILE USING
39
+      OR MISUSING THIS SOFTWARE.
40
+
41
+   5. Installing and using the UnRAR utility signifies acceptance of
42
+      these terms and conditions of the license.
43
+
44
+   6. If you don't agree with terms of the license you must remove
45
+      UnRAR files from your storage devices and cease to use the
46
+      utility.
47
+
48
+      Thank you for your interest in RAR and UnRAR.
49
+
50
+
51
+                                            Alexander L. Roshal
0 52
new file mode 100644
... ...
@@ -0,0 +1,21 @@
0
+zlib/libpng license 
1
+-------------------
2
+
3
+This software is provided 'as-is', without any express or implied warranty. In 
4
+no event will the authors be held liable for any damages arising from the use
5
+of this software. 
6
+
7
+Permission is granted to anyone to use this software for any purpose, including 
8
+commercial applications, and to alter it and redistribute it freely, subject to 
9
+the following restrictions: 
10
+
11
+  1. The origin of this software must not be misrepresented; you must not
12
+     claim that you wrote the original software. If you use this software in
13
+     a product, an acknowledgment in the product documentation would be
14
+     appreciated but is not required. 
15
+
16
+  2. Altered source versions must be plainly marked as such, and must not be
17
+     misrepresented as being the original software. 
18
+
19
+  3. This notice may not be removed or altered from any source distribution. 
20
+
... ...
@@ -430,6 +430,14 @@ _Tip_: If you're having include-path issues, try building with detailed verbosit
430 430
 cmake --build . --config Release --target install -- /verbosity:detailed
431 431
 ```
432 432
 
433
+To build the installer, you must have WIX Toolset installed. If you're using
434
+Chocolatey, you can install it simply with `choco install wixtoolset` and then
435
+open a new terminal so that WIX will be in your PATH.
436
+
437
+```ps1
438
+cpack -C Release
439
+```
440
+
433 441
 ### External Depedencies
434 442
 
435 443
 The CMake tooling is good about finding installed dependencies on POSIX systems.
... ...
@@ -26,7 +26,7 @@ bin_SCRIPTS=clamav-config
26 26
 
27 27
 else
28 28
 SUBDIRS = libltdl libclamav shared libfreshclam clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter test clamdtop clambc unit_tests
29
-EXTRA_DIST = examples shared libclamav.pc.in COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.llvm COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.YARA COPYING.pcre platform.h.in libclamunrar libclamunrar_iface libclammspack clamdscan/clamdscan.map win32 ChangeLog.md INSTALL.cmake.md INSTALL.autotools.md NEWS.md README.md cmake CMakeLists.txt CMakeOptions.cmake $(top_srcdir)/**/CMakeLists.txt libclammspack/config.h.in.cmake clamav-config.h.cmake.in target.h.cmake.in autogen.sh
29
+EXTRA_DIST = examples shared libclamav.pc.in COPYING.txt COPYING platform.h.in libclamunrar libclamunrar_iface libclammspack clamdscan/clamdscan.map win32 ChangeLog.md INSTALL.cmake.md INSTALL.autotools.md NEWS.md README.md cmake CMakeLists.txt CMakeOptions.cmake $(top_srcdir)/**/CMakeLists.txt libclammspack/config.h.in.cmake clamav-config.h.cmake.in target.h.cmake.in autogen.sh
30 30
 
31 31
 bin_SCRIPTS=clamav-config
32 32
 
... ...
@@ -88,6 +88,46 @@ The ClamAV development team welcomes
88 88
 improvements to [our documentation](https://github.com/Cisco-Talos/clamav-faq),
89 89
 and also [bug reports](https://bugzilla.clamav.net/). Thanks for joining us!
90 90
 
91
+## Licensing
92
+
93
+ClamAV is licensed for public/open source use under the GNU General Public
94
+License, Version 2 (GPLv2).
95
+
96
+See `COPYING.txt` for a copy of the license.
97
+
98
+### 3rd Party Code
99
+
100
+ClamAV contains a number of components that include code copied in part or in
101
+whole from 3rd party projects and whose code is not owned by Cisco and which
102
+are licensed differently than ClamAV. These include:
103
+
104
+- tomsfastmath:  public domain
105
+- LLVM: Illinois Open Source License (BSD-like)
106
+- Yara: Apache 2.0 license
107
+  - Yara has since switched to the BSD 3-Clause License;
108
+    Our source is out-of-date and needs to be updated.
109
+- 7z / lzma: public domain
110
+- libclamav's NSIS/NulSoft parser includes:
111
+  - zlib: permissive free software license
112
+  - bzip2 / libbzip2: BSD-like license
113
+- OpenBSD's libc/regex: BSD license
114
+- file: BSD license
115
+- str.c: Contains BSD licensed modified-implementations of strtol(), stroul()
116
+  functions, Copyright (c) 1990 The Regents of the University of California.
117
+- pngcheck (png.c): MIT/X11-style license
118
+- getopt.c: MIT license
119
+- Curl: license inspired by MIT/X, but not identical
120
+- libmspack: LGPL license
121
+- UnRAR (libclamunrar): a non-free/restricted open source license
122
+  - Note: The UnRAR license is incompatible with GPLv2 because it contains a
123
+    clause that prohibits reverse engineering a RAR compression algorithm from
124
+    the UnRAR decompression code.
125
+    For this reason, libclamunrar/libclamunrar_iface is not linked at all with
126
+    libclamav. It is instead loaded at run-time. If it fails to load, ClamAV
127
+    will continue running without RAR support.
128
+
129
+See the `COPYING` directory for a copy of the 3rd party project licenses.
130
+
91 131
 ## Credits
92 132
 
93 133
 [The ClamAV Team](https://www.clamav.net/about.html#credits)
... ...
@@ -74,10 +74,10 @@
74 74
 
75 75
 #ifndef _WIN32
76 76
 /* Path to virus database directory. */
77
-#define DATADIR "@DATABASE_DIRECTORY@"
77
+#define DATADIR "@CMAKE_INSTALL_PREFIX@/@DATABASE_DIRECTORY@"
78 78
 
79 79
 /* where to look for the config file */
80
-#define CONFDIR "@APP_CONFIG_DIRECTORY@"
80
+#define CONFDIR "@CMAKE_INSTALL_PREFIX@/@APP_CONFIG_DIRECTORY@"
81 81
 #endif
82 82
 
83 83
 /* Have sys/fanotify.h */
... ...
@@ -28,7 +28,7 @@ target_link_libraries( clambc
28 28
         ClamAV::libclamav
29 29
         ClamAV::shared )
30 30
 if(WIN32)
31
-    install(TARGETS clambc DESTINATION ${CMAKE_INSTALL_PREFIX})
31
+    install(TARGETS clambc DESTINATION .)
32 32
 else()
33 33
     install(TARGETS clambc DESTINATION ${CMAKE_INSTALL_BINDIR})
34 34
 endif()
... ...
@@ -28,7 +28,7 @@ target_link_libraries( clamconf
28 28
         ClamAV::libclamav
29 29
         ClamAV::shared )
30 30
 if(WIN32)
31
-    install(TARGETS clamconf DESTINATION ${CMAKE_INSTALL_PREFIX})
31
+    install(TARGETS clamconf DESTINATION .)
32 32
 else()
33 33
     install(TARGETS clamconf DESTINATION ${CMAKE_INSTALL_BINDIR})
34 34
 endif()
... ...
@@ -43,9 +43,9 @@ target_link_libraries( clamd
43 43
         ClamAV::libclamav
44 44
         ClamAV::shared )
45 45
 if(WIN32)
46
-    install(TARGETS clamd DESTINATION ${CMAKE_INSTALL_PREFIX})
46
+    install(TARGETS clamd DESTINATION .)
47 47
 else()
48
-    install(TARGETS clamd DESTINATION ${CMAKE_INSTALL_SBINDIR})
48
+    install(TARGETS clamd DESTINATION sbin)
49 49
 endif()
50 50
 
51 51
 if(SYSTEMD_FOUND)
... ...
@@ -32,7 +32,7 @@ target_link_libraries( clamdscan
32 32
         ClamAV::libclamav
33 33
         ClamAV::shared )
34 34
 if(WIN32)
35
-    install(TARGETS clamdscan DESTINATION ${CMAKE_INSTALL_PREFIX})
35
+    install(TARGETS clamdscan DESTINATION .)
36 36
 else()
37
-    install(TARGETS clamdscan DESTINATION ${CMAKE_INSTALL_BINDIR})
37
+    install(TARGETS clamdscan DESTINATION bin)
38 38
 endif()
... ...
@@ -29,7 +29,7 @@ target_link_libraries( clamdtop
29 29
         ClamAV::shared
30 30
         Curses::curses )
31 31
 if(WIN32)
32
-    install(TARGETS clamdtop DESTINATION ${CMAKE_INSTALL_PREFIX})
32
+    install(TARGETS clamdtop DESTINATION .)
33 33
     # Also install shared library (DLL) dependencies
34 34
     install(CODE [[
35 35
         file(GET_RUNTIME_DEPENDENCIES
... ...
@@ -54,5 +54,5 @@ if(WIN32)
54 54
         #message("UNRESOLVED_DEPENDENCIES_VAR: ${_u_deps}")
55 55
     ]])
56 56
 else()
57
-    install(TARGETS clamdtop DESTINATION ${CMAKE_INSTALL_BINDIR})
57
+    install(TARGETS clamdtop DESTINATION bin)
58 58
 endif()
... ...
@@ -49,7 +49,7 @@ target_link_libraries( clamonacc
49 49
         ClamAV::libclamav
50 50
         ClamAV::shared
51 51
         CURL::libcurl )
52
-install(TARGETS clamonacc DESTINATION ${CMAKE_INSTALL_SBINDIR})
52
+install(TARGETS clamonacc DESTINATION sbin)
53 53
 
54 54
 if(SYSTEMD_FOUND)
55 55
     configure_file(
... ...
@@ -11,7 +11,7 @@ After=clamav-daemon.service syslog.target network.target
11 11
 Type=simple
12 12
 User=root
13 13
 ExecStartPre=/bin/bash -c "while [ ! -S /run/clamav/clamd.ctl ]; do sleep 1; done"
14
-ExecStart=@prefix@/sbin/clamonacc -F --config-file=@APP_CONFIG_DIRECTORY@/clamd.conf --log=/var/log/clamav/clamonacc.log --move=/root/quarantine
14
+ExecStart=@prefix@/sbin/clamonacc -F --log=/var/log/clamav/clamonacc.log --move=/root/quarantine
15 15
 
16 16
 [Install]
17 17
 WantedBy=multi-user.target
... ...
@@ -31,7 +31,7 @@ target_link_libraries( clamscan
31 31
         ClamAV::libclamav
32 32
         ClamAV::shared )
33 33
 if(WIN32)
34
-    install(TARGETS clamscan DESTINATION ${CMAKE_INSTALL_PREFIX})
34
+    install(TARGETS clamscan DESTINATION .)
35 35
 else()
36
-    install(TARGETS clamscan DESTINATION ${CMAKE_INSTALL_BINDIR})
36
+    install(TARGETS clamscan DESTINATION bin)
37 37
 endif()
... ...
@@ -36,7 +36,7 @@ if(APPLE)
36 36
             ${APPLE_SECURITY} )
37 37
 endif()
38 38
 if(WIN32)
39
-    install(TARGETS clamsubmit DESTINATION ${CMAKE_INSTALL_PREFIX})
39
+    install(TARGETS clamsubmit DESTINATION .)
40 40
     # Also install shared library (DLL) dependencies
41 41
     install(CODE [[
42 42
         file(GET_RUNTIME_DEPENDENCIES
... ...
@@ -62,5 +62,5 @@ if(WIN32)
62 62
         #message("UNRESOLVED_DEPENDENCIES_VAR: ${_u_deps}")
63 63
     ]])
64 64
 else()
65
-    install(TARGETS clamsubmit DESTINATION ${CMAKE_INSTALL_BINDIR})
65
+    install(TARGETS clamsubmit DESTINATION bin)
66 66
 endif()
... ...
@@ -30,9 +30,9 @@ target_link_libraries(freshclam-bin
30 30
         ClamAV::libclamav
31 31
         ClamAV::shared )
32 32
 if(WIN32)
33
-    install(TARGETS freshclam-bin DESTINATION ${CMAKE_INSTALL_PREFIX})
33
+    install(TARGETS freshclam-bin DESTINATION .)
34 34
 else()
35
-    install(TARGETS freshclam-bin DESTINATION ${CMAKE_INSTALL_BINDIR})
35
+    install(TARGETS freshclam-bin DESTINATION bin)
36 36
 endif()
37 37
 
38 38
 # Install an empty database directory
... ...
@@ -566,7 +566,7 @@ if(ENABLE_SHARED_LIB)
566 566
         target_link_libraries( clamav PUBLIC ICONV::Iconv )
567 567
     endif()
568 568
     if(WIN32)
569
-        install( TARGETS clamav DESTINATION ${CMAKE_INSTALL_PREFIX} )
569
+        install( TARGETS clamav DESTINATION . )
570 570
 
571 571
         # Also install shared library (DLL) dependencies
572 572
         install( CODE [[
... ...
@@ -641,7 +641,7 @@ if(ENABLE_STATIC_LIB)
641 641
         VERSION ${LIBCLAMAV_VERSION} SOVERSION ${LIBCLAMAV_SOVERSION} )
642 642
     target_compile_definitions( clamav_static PUBLIC clamav_staticLIB )
643 643
     if(WIN32)
644
-        install( TARGETS clamav_static DESTINATION ${CMAKE_INSTALL_PREFIX} )
644
+        install( TARGETS clamav_static DESTINATION . )
645 645
     else()
646 646
         install( TARGETS clamav_static DESTINATION ${CMAKE_INSTALL_LIBDIR} )
647 647
     endif()
... ...
@@ -74,9 +74,9 @@ if(ENABLE_SHARED_LIB)
74 74
         PUBLIC
75 75
             ${CMAKE_CURRENT_SOURCE_DIR}/mspack/mspack.h )
76 76
     if(WIN32)
77
-        install(TARGETS mspack DESTINATION ${CMAKE_INSTALL_PREFIX})
77
+        install(TARGETS mspack DESTINATION .)
78 78
     else()
79
-        install(TARGETS mspack DESTINATION ${CMAKE_INSTALL_LIBDIR})
79
+        install(TARGETS mspack DESTINATION lib)
80 80
     endif()
81 81
 
82 82
     # Public (forwarded) dependencies.
... ...
@@ -90,9 +90,9 @@ if(ENABLE_SHARED_LIB)
90 90
             unrar_obj )
91 91
 
92 92
     if(WIN32)
93
-        install(TARGETS clamunrar DESTINATION ${CMAKE_INSTALL_PREFIX})
93
+        install(TARGETS clamunrar DESTINATION .)
94 94
     else()
95
-        install(TARGETS clamunrar DESTINATION ${CMAKE_INSTALL_LIBDIR})
95
+        install(TARGETS clamunrar DESTINATION lib)
96 96
     endif()
97 97
 
98 98
     add_library( ClamAV::libunrar ALIAS clamunrar )
... ...
@@ -64,9 +64,9 @@ if(ENABLE_UNRAR)
64 64
                 ClamAV::libunrar_iface_iface)
65 65
 
66 66
         if(WIN32)
67
-            install(TARGETS clamunrar_iface DESTINATION ${CMAKE_INSTALL_PREFIX})
67
+            install(TARGETS clamunrar_iface DESTINATION .)
68 68
         else()
69
-            install(TARGETS clamunrar_iface DESTINATION ${CMAKE_INSTALL_LIBDIR})
69
+            install(TARGETS clamunrar_iface DESTINATION lib)
70 70
         endif()
71 71
 
72 72
         add_library( ClamAV::libunrar_iface ALIAS clamunrar_iface )
... ...
@@ -67,7 +67,7 @@ if(ENABLE_SHARED_LIB)
67 67
         COMPILE_FLAGS "${WARNCFLAGS}"
68 68
         VERSION ${LIBFRESHCLAM_VERSION} SOVERSION ${LIBFRESHCLAM_SOVERSION})
69 69
     if(WIN32)
70
-        install(TARGETS freshclam DESTINATION ${CMAKE_INSTALL_PREFIX})
70
+        install(TARGETS freshclam DESTINATION .)
71 71
         # Also install shared library (DLL) dependencies
72 72
         install(CODE [[
73 73
             file(GET_RUNTIME_DEPENDENCIES
... ...
@@ -94,7 +94,7 @@ if(ENABLE_SHARED_LIB)
94 94
             #message("UNRESOLVED_DEPENDENCIES_VAR: ${_u_deps}")
95 95
         ]])
96 96
     else()
97
-        install(TARGETS freshclam DESTINATION ${CMAKE_INSTALL_LIBDIR})
97
+        install(TARGETS freshclam DESTINATION lib)
98 98
     endif()
99 99
 
100 100
     add_library( ClamAV::libfreshclam ALIAS freshclam )
... ...
@@ -115,9 +115,9 @@ if(ENABLE_STATIC_LIB)
115 115
         VERSION ${LIBFRESHCLAM_VERSION} SOVERSION ${LIBFRESHCLAM_SOVERSION})
116 116
     target_compile_definitions(freshclam_static PUBLIC freshclam_staticLIB)
117 117
     if(WIN32)
118
-        install(TARGETS freshclam_static DESTINATION ${CMAKE_INSTALL_PREFIX})
118
+        install(TARGETS freshclam_static DESTINATION .)
119 119
     else()
120
-        install(TARGETS freshclam_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
120
+        install(TARGETS freshclam_static DESTINATION lib)
121 121
     endif()
122 122
 
123 123
     add_library( ClamAV::libfreshclam_static ALIAS freshclam_static )
... ...
@@ -30,7 +30,7 @@ target_link_libraries( sigtool
30 30
         ClamAV::libclamav
31 31
         ClamAV::shared )
32 32
 if(WIN32)
33
-    install(TARGETS sigtool DESTINATION ${CMAKE_INSTALL_PREFIX})
33
+    install(TARGETS sigtool DESTINATION .)
34 34
 else()
35
-    install(TARGETS sigtool DESTINATION ${CMAKE_INSTALL_BINDIR})
35
+    install(TARGETS sigtool DESTINATION bin)
36 36
 endif()
37 37
new file mode 100644
38 38
Binary files /dev/null and b/win32/wix_ui_banner.bmp differ
39 39
new file mode 100644
40 40
Binary files /dev/null and b/win32/wix_ui_dialog.bmp differ