pytsk3 20260520__cp312-cp312-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- _build.py +254 -0
- pytsk3-20260520.dist-info/METADATA +57 -0
- pytsk3-20260520.dist-info/RECORD +10 -0
- pytsk3-20260520.dist-info/WHEEL +5 -0
- pytsk3-20260520.dist-info/licenses/LICENSE +202 -0
- pytsk3-20260520.dist-info/licenses/sleuthkit/licenses/IBM-LICENSE +221 -0
- pytsk3-20260520.dist-info/licenses/sleuthkit/licenses/cpl1.0.txt +213 -0
- pytsk3-20260520.dist-info/licenses/talloc/LICENSE +165 -0
- pytsk3-20260520.dist-info/top_level.txt +2 -0
- pytsk3.cp312-win_amd64.pyd +0 -0
_build.py
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
#
|
|
3
|
+
# Copyright 2010, Michael Cohen <scudette@gmail.com>.
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
"""Build back-end for pytsk."""
|
|
17
|
+
|
|
18
|
+
import glob
|
|
19
|
+
import os
|
|
20
|
+
import shlex
|
|
21
|
+
import subprocess
|
|
22
|
+
|
|
23
|
+
from setuptools import Extension
|
|
24
|
+
from setuptools import errors
|
|
25
|
+
from setuptools._distutils import log
|
|
26
|
+
from setuptools._distutils._modified import newer_group
|
|
27
|
+
from setuptools._distutils.ccompiler import new_compiler
|
|
28
|
+
from setuptools.command.build_ext import build_ext
|
|
29
|
+
|
|
30
|
+
# This file does not follow the naming convention specified in .pylintrc.
|
|
31
|
+
# pylint: disable=invalid-name
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class custom_build_ext(build_ext):
|
|
35
|
+
"""Custom build_ext command."""
|
|
36
|
+
|
|
37
|
+
def _get_define_macros(self, compiler_type):
|
|
38
|
+
"""Determine the define macros.
|
|
39
|
+
|
|
40
|
+
Args:
|
|
41
|
+
compiler_type (str): compiler type.
|
|
42
|
+
"""
|
|
43
|
+
if compiler_type == "msvc":
|
|
44
|
+
return [
|
|
45
|
+
("WIN32", "1"),
|
|
46
|
+
("UNICODE", "1"),
|
|
47
|
+
("NOMINMAX", "1"),
|
|
48
|
+
("_CRT_SECURE_NO_WARNINGS", "1"),
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
return [
|
|
52
|
+
("HAVE_CONFIG_H", "1"),
|
|
53
|
+
("LOCALEDIR", '"/usr/share/locale"'),
|
|
54
|
+
# Make libtsk's lock_t and per-thread error storage active in
|
|
55
|
+
# pytsk3's own translation units so they match libtsk's. On
|
|
56
|
+
# MSVC this is set automatically by tsk_os.h via _MSC_VER.
|
|
57
|
+
("TSK_MULTITHREAD_LIB", None),
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
def _get_include_directories(self):
|
|
61
|
+
"""Determine the include directories."""
|
|
62
|
+
return [
|
|
63
|
+
".",
|
|
64
|
+
"talloc",
|
|
65
|
+
os.path.join("sleuthkit"),
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
def _get_libraries(self, compiler_type):
|
|
69
|
+
"""Determine the libraries."""
|
|
70
|
+
if compiler_type == "msvc":
|
|
71
|
+
return []
|
|
72
|
+
|
|
73
|
+
# pthread is needed because TSK_MULTITHREAD_LIB pulls in pthread_key_*
|
|
74
|
+
# and pthread_mutex_* from tsk_error.c and tsk_lock.c. Harmless on
|
|
75
|
+
# glibc 2.34+ (folded into libc) and macOS (libSystem stub).
|
|
76
|
+
return ["stdc++", "pthread"]
|
|
77
|
+
|
|
78
|
+
def _get_sources(self):
|
|
79
|
+
"""Determine the sources."""
|
|
80
|
+
sources = [
|
|
81
|
+
"class.cpp",
|
|
82
|
+
"error.cpp",
|
|
83
|
+
"tsk3.cpp",
|
|
84
|
+
"pytsk3.cpp",
|
|
85
|
+
os.path.join("talloc", "talloc.c"),
|
|
86
|
+
os.path.join("sleuthkit", "tsk", "auto", "guid.cpp"),
|
|
87
|
+
]
|
|
88
|
+
for path in ("base", "docs", "fs", "img", "pool", "util", "vs"):
|
|
89
|
+
for extension in ("*.c", "*.cpp"):
|
|
90
|
+
sources.extend(
|
|
91
|
+
glob.glob(os.path.join("sleuthkit", "tsk", path, extension))
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
return sources
|
|
95
|
+
|
|
96
|
+
def _print_configure_summary(self, output):
|
|
97
|
+
"""Prints the configure summary."""
|
|
98
|
+
print_line = False
|
|
99
|
+
for line in output.split("\n"):
|
|
100
|
+
line = line.rstrip()
|
|
101
|
+
if line == "configure:":
|
|
102
|
+
print_line = True
|
|
103
|
+
|
|
104
|
+
if print_line:
|
|
105
|
+
print(line)
|
|
106
|
+
|
|
107
|
+
def _run_shell_command(self, command):
|
|
108
|
+
"""Runs a command."""
|
|
109
|
+
arguments = shlex.split(f"sh {command:s}")
|
|
110
|
+
|
|
111
|
+
# pylint: disable=consider-using-with
|
|
112
|
+
process = subprocess.Popen(
|
|
113
|
+
arguments,
|
|
114
|
+
cwd="sleuthkit",
|
|
115
|
+
stderr=subprocess.PIPE,
|
|
116
|
+
stdout=subprocess.PIPE,
|
|
117
|
+
universal_newlines=True,
|
|
118
|
+
)
|
|
119
|
+
if not process:
|
|
120
|
+
raise RuntimeError(f"Running: {command:s} failed.")
|
|
121
|
+
|
|
122
|
+
output, error = process.communicate()
|
|
123
|
+
if process.returncode != 0:
|
|
124
|
+
error = "\n".join(error.split("\n")[-5:])
|
|
125
|
+
raise RuntimeError(f"Running: {command:s} failed with error:\n{error:s}.")
|
|
126
|
+
|
|
127
|
+
return output
|
|
128
|
+
|
|
129
|
+
def initialize_options(self):
|
|
130
|
+
"""Initialize build options."""
|
|
131
|
+
super().initialize_options()
|
|
132
|
+
|
|
133
|
+
compiler = new_compiler(compiler=self.compiler)
|
|
134
|
+
|
|
135
|
+
# ext_module can be defined multiple times. It is currently assumed that
|
|
136
|
+
# this is due to the experimental nature of tool.setuptools.ext-modules
|
|
137
|
+
# at this time. Hence ext_modules is redefined as a single extension.
|
|
138
|
+
self.distribution.ext_modules = [
|
|
139
|
+
Extension(
|
|
140
|
+
"pytsk3",
|
|
141
|
+
define_macros=self._get_define_macros(compiler.compiler_type),
|
|
142
|
+
include_dirs=self._get_include_directories(),
|
|
143
|
+
libraries=self._get_libraries(compiler.compiler_type),
|
|
144
|
+
sources=self._get_sources(),
|
|
145
|
+
)
|
|
146
|
+
]
|
|
147
|
+
|
|
148
|
+
# Override build_extension to not have clang on Mac OS fail with:
|
|
149
|
+
# invalid argument '-std=c++14' not allowed with 'C'
|
|
150
|
+
def build_extension(self, ext):
|
|
151
|
+
"""Builds the extension."""
|
|
152
|
+
sources = ext.sources
|
|
153
|
+
if sources is None or not isinstance(sources, (list, tuple)):
|
|
154
|
+
raise errors.SetupError(
|
|
155
|
+
f"in 'ext_modules' option (extension '{ext.name:s}'), 'sources' "
|
|
156
|
+
f"must be present and must be a list of source filenames"
|
|
157
|
+
)
|
|
158
|
+
sources = sorted(sources)
|
|
159
|
+
|
|
160
|
+
extension_path = self.get_ext_fullpath(ext.name)
|
|
161
|
+
depends = ext.sources + ext.depends
|
|
162
|
+
if not (self.force or newer_group(depends, extension_path, "newer")):
|
|
163
|
+
log.debug("skipping '%s' extension (up-to-date)", ext.name)
|
|
164
|
+
return
|
|
165
|
+
|
|
166
|
+
log.info("building '%s' extension", ext.name)
|
|
167
|
+
|
|
168
|
+
c_sources = []
|
|
169
|
+
cxx_sources = []
|
|
170
|
+
for source in ext.sources:
|
|
171
|
+
if source.endswith(".c"):
|
|
172
|
+
c_sources.append(source)
|
|
173
|
+
else:
|
|
174
|
+
cxx_sources.append(source)
|
|
175
|
+
|
|
176
|
+
objects = []
|
|
177
|
+
for lang, sources in (("c", c_sources), ("c++", cxx_sources)):
|
|
178
|
+
extra_args = ext.extra_compile_args or []
|
|
179
|
+
if lang == "c++":
|
|
180
|
+
if self.compiler.compiler_type == "msvc":
|
|
181
|
+
extra_args.append("/EHsc")
|
|
182
|
+
else:
|
|
183
|
+
extra_args.append("-std=c++14")
|
|
184
|
+
|
|
185
|
+
macros = ext.define_macros[:]
|
|
186
|
+
for undef in ext.undef_macros:
|
|
187
|
+
macros.append((undef,))
|
|
188
|
+
|
|
189
|
+
compiled_objects = self.compiler.compile(
|
|
190
|
+
sources,
|
|
191
|
+
output_dir=self.build_temp,
|
|
192
|
+
macros=macros,
|
|
193
|
+
include_dirs=ext.include_dirs,
|
|
194
|
+
debug=self.debug,
|
|
195
|
+
extra_postargs=extra_args,
|
|
196
|
+
depends=ext.depends,
|
|
197
|
+
)
|
|
198
|
+
objects.extend(compiled_objects)
|
|
199
|
+
|
|
200
|
+
# pylint: disable=attribute-defined-outside-init
|
|
201
|
+
self._built_objects = objects[:]
|
|
202
|
+
if ext.extra_objects:
|
|
203
|
+
objects.extend(ext.extra_objects)
|
|
204
|
+
|
|
205
|
+
extra_args = ext.extra_link_args or []
|
|
206
|
+
# When MinGW32 is used statically link libgcc and libstdc++.
|
|
207
|
+
if self.compiler.compiler_type == "mingw32":
|
|
208
|
+
extra_args.extend(["-static-libgcc", "-static-libstdc++"])
|
|
209
|
+
|
|
210
|
+
if ext.extra_objects:
|
|
211
|
+
objects.extend(ext.extra_objects)
|
|
212
|
+
extra_args = ext.extra_link_args or []
|
|
213
|
+
|
|
214
|
+
language = ext.language or self.compiler.detect_language(sources)
|
|
215
|
+
|
|
216
|
+
self.compiler.link_shared_object(
|
|
217
|
+
objects,
|
|
218
|
+
extension_path,
|
|
219
|
+
libraries=self.get_libraries(ext),
|
|
220
|
+
library_dirs=ext.library_dirs,
|
|
221
|
+
runtime_library_dirs=ext.runtime_library_dirs,
|
|
222
|
+
extra_postargs=extra_args,
|
|
223
|
+
export_symbols=self.get_export_symbols(ext),
|
|
224
|
+
debug=self.debug,
|
|
225
|
+
build_temp=self.build_temp,
|
|
226
|
+
target_lang=language,
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
def run(self):
|
|
230
|
+
if not os.access("pytsk3.cpp", os.R_OK):
|
|
231
|
+
raise OSError("Missing pytsk3.cpp")
|
|
232
|
+
|
|
233
|
+
compiler = new_compiler(compiler=self.compiler)
|
|
234
|
+
if compiler.compiler_type != "msvc":
|
|
235
|
+
# We want to build as much as possible self contained Python binding.
|
|
236
|
+
output = self._run_shell_command(
|
|
237
|
+
" ".join(
|
|
238
|
+
[
|
|
239
|
+
"configure",
|
|
240
|
+
"--disable-java",
|
|
241
|
+
"--disable-multithreading",
|
|
242
|
+
"--without-afflib",
|
|
243
|
+
"--without-libbfio",
|
|
244
|
+
"--without-libewf",
|
|
245
|
+
"--without-libvhdi",
|
|
246
|
+
"--without-libvmdk",
|
|
247
|
+
"--without-libvslvm",
|
|
248
|
+
"--without-zlib",
|
|
249
|
+
]
|
|
250
|
+
)
|
|
251
|
+
)
|
|
252
|
+
self._print_configure_summary(output)
|
|
253
|
+
|
|
254
|
+
super().run()
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pytsk3
|
|
3
|
+
Version: 20260520
|
|
4
|
+
Summary: Python bindings for the SleuthKit
|
|
5
|
+
Author-email: Michael Cohen <scudette@gmail.com>
|
|
6
|
+
Maintainer-email: Joachim Metz <joachim.metz@gmail.com>
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
Project-URL: Documentation, https://raw.githubusercontent.com/py4n6/pytsk/refs/heads/main/README
|
|
9
|
+
Project-URL: Homepage, https://github.com/py4n6/pytsk
|
|
10
|
+
Project-URL: Repository, https://github.com/py4n6/pytsk
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
License-File: sleuthkit/licenses/cpl1.0.txt
|
|
17
|
+
License-File: sleuthkit/licenses/IBM-LICENSE
|
|
18
|
+
License-File: talloc/LICENSE
|
|
19
|
+
Dynamic: license-file
|
|
20
|
+
|
|
21
|
+
pytsk is a Python binding for the SleuthKit.
|
|
22
|
+
|
|
23
|
+
This is a Python binding against the libtsk (SleuthKit library). The aim is
|
|
24
|
+
to make the binding reflect the TSK API as much as possible in capabilities,
|
|
25
|
+
while at the same time having a nice Pythonic OO interface:
|
|
26
|
+
|
|
27
|
+
4.15.0: https://www.sleuthkit.org/sleuthkit/docs/api-docs/4.15.0-develop/
|
|
28
|
+
|
|
29
|
+
NOTE: Currently the 4.15.0 API docs are not available, 4.15.0-develop is the
|
|
30
|
+
closest.
|
|
31
|
+
|
|
32
|
+
WARNING: use pytsk at your own risk. libtsk is known to have many defects. For
|
|
33
|
+
processing data from untrusted sources it is highly recommended to add
|
|
34
|
+
additional security measures, such as a security sandbox.
|
|
35
|
+
|
|
36
|
+
If downloaded pytsk using git you'll have to first run:
|
|
37
|
+
|
|
38
|
+
python utils/update_source.py
|
|
39
|
+
|
|
40
|
+
If you want to use the latest version of Sleuthkit that is checked into git
|
|
41
|
+
(also known as HEAD), instead of the currently supported version, you can run:
|
|
42
|
+
|
|
43
|
+
python utils/update_source.py --use-head
|
|
44
|
+
|
|
45
|
+
To build the bindings just use the standard Python build module:
|
|
46
|
+
|
|
47
|
+
python -m build --wheel
|
|
48
|
+
python -m pip install --no-index --find-links=dist pytsk3
|
|
49
|
+
|
|
50
|
+
At the top level of the source tree.
|
|
51
|
+
|
|
52
|
+
The Python binding is autogenerated from the libtsk header files using a small
|
|
53
|
+
OO C shim. This means that most of the fields in many of the structs are already
|
|
54
|
+
available. We aim to provide most of the functionality using this shim (e.g.
|
|
55
|
+
traversing and iterating over lists etc). The authoritative source of
|
|
56
|
+
documentation is the library API linked above.
|
|
57
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
_build.py,sha256=BbqORgpRbodUrShtQsABIE0YyJ76RbsxZlaYBZcQ-No,9146
|
|
2
|
+
pytsk3.cp312-win_amd64.pyd,sha256=JdjUiqTpdd51f4jtd106BIcIJnpT9neto6Vlr-Xx4k4,869888
|
|
3
|
+
pytsk3-20260520.dist-info/licenses/LICENSE,sha256=Pd-b5cKP4n2tFDpdx27qJSIq0d1ok0oEcGTlbtL6QMU,11560
|
|
4
|
+
pytsk3-20260520.dist-info/licenses/sleuthkit/licenses/IBM-LICENSE,sha256=h7D8qtVJ_xxw7NdY9Bw41y4MdrYC-S5QBljr5PhzJRo,12175
|
|
5
|
+
pytsk3-20260520.dist-info/licenses/sleuthkit/licenses/cpl1.0.txt,sha256=QkUVdBBioIKDwUusK-htTrgb3sgbTJueizQXtYRhv58,11826
|
|
6
|
+
pytsk3-20260520.dist-info/licenses/talloc/LICENSE,sha256=6n0EnHcF3BOvwgLdGOGCfzSE-CEv0_p7gvxKDDY0Msk,7816
|
|
7
|
+
pytsk3-20260520.dist-info/METADATA,sha256=EpDZywFawZwaxHxhkFivA62ryTCILHdapB_Jd_u2zLU,2269
|
|
8
|
+
pytsk3-20260520.dist-info/WHEEL,sha256=rR5QfsWcZl3mra5AmSD7Fd0dzQxZ3lHCpDo70IkfDK4,101
|
|
9
|
+
pytsk3-20260520.dist-info/top_level.txt,sha256=Nvtz9DwBxsg8QudUk8Fsay3XSK9YJB7KQBSS9R4ucR8,14
|
|
10
|
+
pytsk3-20260520.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
IBM PUBLIC LICENSE VERSION 1.0 - CORONER TOOLKIT UTILITIES
|
|
2
|
+
|
|
3
|
+
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS IBM PUBLIC
|
|
4
|
+
LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE
|
|
5
|
+
PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
|
|
6
|
+
|
|
7
|
+
1. DEFINITIONS
|
|
8
|
+
|
|
9
|
+
"Contribution" means:
|
|
10
|
+
a) in the case of International Business Machines Corporation ("IBM"),
|
|
11
|
+
the Original Program, and
|
|
12
|
+
b) in the case of each Contributor,
|
|
13
|
+
i) changes to the Program, and
|
|
14
|
+
ii) additions to the Program;
|
|
15
|
+
where such changes and/or additions to the Program originate
|
|
16
|
+
from and are distributed by that particular Contributor.
|
|
17
|
+
A Contribution 'originates' from a Contributor if it was added
|
|
18
|
+
to the Program by such Contributor itself or anyone acting on
|
|
19
|
+
such Contributor's behalf.
|
|
20
|
+
Contributions do not include additions to the Program which:
|
|
21
|
+
(i) are separate modules of software distributed in conjunction
|
|
22
|
+
with the Program under their own license agreement, and
|
|
23
|
+
(ii) are not derivative works of the Program.
|
|
24
|
+
|
|
25
|
+
"Contributor" means IBM and any other entity that distributes the Program.
|
|
26
|
+
|
|
27
|
+
"Licensed Patents " mean patent claims licensable by a Contributor which
|
|
28
|
+
are necessarily infringed by the use or sale of its Contribution alone
|
|
29
|
+
or when combined with the Program.
|
|
30
|
+
|
|
31
|
+
"Original Program" means the original version of the software accompanying
|
|
32
|
+
this Agreement as released by IBM, including source code, object code
|
|
33
|
+
and documentation, if any.
|
|
34
|
+
|
|
35
|
+
"Program" means the Original Program and Contributions.
|
|
36
|
+
|
|
37
|
+
"Recipient" means anyone who receives the Program under this Agreement,
|
|
38
|
+
including all Contributors.
|
|
39
|
+
|
|
40
|
+
2. GRANT OF RIGHTS
|
|
41
|
+
|
|
42
|
+
a) Subject to the terms of this Agreement, each Contributor hereby
|
|
43
|
+
grants Recipient a non-exclusive, worldwide, royalty-free copyright
|
|
44
|
+
license to reproduce, prepare derivative works of, publicly display,
|
|
45
|
+
publicly perform, distribute and sublicense the Contribution of such
|
|
46
|
+
Contributor, if any, and such derivative works, in source code and
|
|
47
|
+
object code form.
|
|
48
|
+
|
|
49
|
+
b) Subject to the terms of this Agreement, each Contributor hereby
|
|
50
|
+
grants Recipient a non-exclusive, worldwide, royalty-free patent
|
|
51
|
+
license under Licensed Patents to make, use, sell, offer to sell,
|
|
52
|
+
import and otherwise transfer the Contribution of such Contributor,
|
|
53
|
+
if any, in source code and object code form. This patent license
|
|
54
|
+
shall apply to the combination of the Contribution and the Program
|
|
55
|
+
if, at the time the Contribution is added by the Contributor, such
|
|
56
|
+
addition of the Contribution causes such combination to be covered
|
|
57
|
+
by the Licensed Patents. The patent license shall not apply to any
|
|
58
|
+
other combinations which include the Contribution. No hardware per
|
|
59
|
+
se is licensed hereunder.
|
|
60
|
+
|
|
61
|
+
c) Recipient understands that although each Contributor grants the
|
|
62
|
+
licenses to its Contributions set forth herein, no assurances are
|
|
63
|
+
provided by any Contributor that the Program does not infringe the
|
|
64
|
+
patent or other intellectual property rights of any other entity.
|
|
65
|
+
Each Contributor disclaims any liability to Recipient for claims
|
|
66
|
+
brought by any other entity based on infringement of intellectual
|
|
67
|
+
property rights or otherwise. As a condition to exercising the rights
|
|
68
|
+
and licenses granted hereunder, each Recipient hereby assumes sole
|
|
69
|
+
responsibility to secure any other intellectual property rights
|
|
70
|
+
needed, if any. For example, if a third party patent license
|
|
71
|
+
is required to allow Recipient to distribute the Program, it is
|
|
72
|
+
Recipient's responsibility to acquire that license before distributing
|
|
73
|
+
the Program.
|
|
74
|
+
|
|
75
|
+
d) Each Contributor represents that to its knowledge it has sufficient
|
|
76
|
+
copyright rights in its Contribution, if any, to grant the copyright
|
|
77
|
+
license set forth in this Agreement.
|
|
78
|
+
|
|
79
|
+
3. REQUIREMENTS
|
|
80
|
+
|
|
81
|
+
A Contributor may choose to distribute the Program in object code form
|
|
82
|
+
under its own license agreement, provided that:
|
|
83
|
+
a) it complies with the terms and conditions of this Agreement; and
|
|
84
|
+
b) its license agreement:
|
|
85
|
+
i) effectively disclaims on behalf of all Contributors all
|
|
86
|
+
warranties and conditions, express and implied, including
|
|
87
|
+
warranties or conditions of title and non-infringement, and
|
|
88
|
+
implied warranties or conditions of merchantability and fitness
|
|
89
|
+
for a particular purpose;
|
|
90
|
+
ii) effectively excludes on behalf of all Contributors all
|
|
91
|
+
liability for damages, including direct, indirect, special,
|
|
92
|
+
incidental and consequential damages, such as lost profits;
|
|
93
|
+
iii) states that any provisions which differ from this Agreement
|
|
94
|
+
are offered by that Contributor alone and not by any other
|
|
95
|
+
party; and
|
|
96
|
+
iv) states that source code for the Program is available from
|
|
97
|
+
such Contributor, and informs licensees how to obtain it in a
|
|
98
|
+
reasonable manner on or through a medium customarily used for
|
|
99
|
+
software exchange.
|
|
100
|
+
|
|
101
|
+
When the Program is made available in source code form:
|
|
102
|
+
a) it must be made available under this Agreement; and
|
|
103
|
+
b) a copy of this Agreement must be included with each copy of the
|
|
104
|
+
Program.
|
|
105
|
+
|
|
106
|
+
Each Contributor must include the following in a conspicuous location
|
|
107
|
+
in the Program:
|
|
108
|
+
|
|
109
|
+
Copyright (c) 1997,1998,1999, International Business Machines
|
|
110
|
+
Corporation and others. All Rights Reserved.
|
|
111
|
+
|
|
112
|
+
In addition, each Contributor must identify itself as the originator of
|
|
113
|
+
its Contribution, if any, in a manner that reasonably allows subsequent
|
|
114
|
+
Recipients to identify the originator of the Contribution.
|
|
115
|
+
|
|
116
|
+
4. COMMERCIAL DISTRIBUTION
|
|
117
|
+
|
|
118
|
+
Commercial distributors of software may accept certain responsibilities
|
|
119
|
+
with respect to end users, business partners and the like. While this
|
|
120
|
+
license is intended to facilitate the commercial use of the Program, the
|
|
121
|
+
Contributor who includes the Program in a commercial product offering
|
|
122
|
+
should do so in a manner which does not create potential liability for
|
|
123
|
+
other Contributors. Therefore, if a Contributor includes the Program in
|
|
124
|
+
a commercial product offering, such Contributor ("Commercial Contributor")
|
|
125
|
+
hereby agrees to defend and indemnify every other Contributor
|
|
126
|
+
("Indemnified Contributor") against any losses, damages and costs
|
|
127
|
+
(collectively "Losses") arising from claims, lawsuits and other legal
|
|
128
|
+
actions brought by a third party against the Indemnified Contributor to
|
|
129
|
+
the extent caused by the acts or omissions of such Commercial Contributor
|
|
130
|
+
in connection with its distribution of the Program in a commercial
|
|
131
|
+
product offering. The obligations in this section do not apply to any
|
|
132
|
+
claims or Losses relating to any actual or alleged intellectual property
|
|
133
|
+
infringement. In order to qualify, an Indemnified Contributor must:
|
|
134
|
+
a) promptly notify the Commercial Contributor in writing of such claim,
|
|
135
|
+
and
|
|
136
|
+
b) allow the Commercial Contributor to control, and cooperate with
|
|
137
|
+
the Commercial Contributor in, the defense and any related
|
|
138
|
+
settlement negotiations. The Indemnified Contributor may
|
|
139
|
+
participate in any such claim at its own expense.
|
|
140
|
+
|
|
141
|
+
For example, a Contributor might include the Program in a commercial
|
|
142
|
+
product offering, Product X. That Contributor is then a Commercial
|
|
143
|
+
Contributor. If that Commercial Contributor then makes performance
|
|
144
|
+
claims, or offers warranties related to Product X, those performance
|
|
145
|
+
claims and warranties are such Commercial Contributor's responsibility
|
|
146
|
+
alone. Under this section, the Commercial Contributor would have to
|
|
147
|
+
defend claims against the other Contributors related to those performance
|
|
148
|
+
claims and warranties, and if a court requires any other Contributor to
|
|
149
|
+
pay any damages as a result, the Commercial Contributor must pay those
|
|
150
|
+
damages.
|
|
151
|
+
|
|
152
|
+
5. NO WARRANTY
|
|
153
|
+
|
|
154
|
+
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED
|
|
155
|
+
ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER
|
|
156
|
+
EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR
|
|
157
|
+
CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A
|
|
158
|
+
PARTICULAR PURPOSE. Each Recipient is solely responsible for determining
|
|
159
|
+
the appropriateness of using and distributing the Program and assumes
|
|
160
|
+
all risks associated with its exercise of rights under this Agreement,
|
|
161
|
+
including but not limited to the risks and costs of program errors,
|
|
162
|
+
compliance with applicable laws, damage to or loss of data, programs or
|
|
163
|
+
equipment, and unavailability or interruption of operations.
|
|
164
|
+
|
|
165
|
+
6. DISCLAIMER OF LIABILITY
|
|
166
|
+
|
|
167
|
+
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR
|
|
168
|
+
ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,
|
|
169
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
|
|
170
|
+
WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
|
|
171
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
172
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION
|
|
173
|
+
OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF
|
|
174
|
+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
175
|
+
|
|
176
|
+
7. GENERAL
|
|
177
|
+
|
|
178
|
+
If any provision of this Agreement is invalid or unenforceable under
|
|
179
|
+
applicable law, it shall not affect the validity or enforceability of
|
|
180
|
+
the remainder of the terms of this Agreement, and without further action
|
|
181
|
+
by the parties hereto, such provision shall be reformed to the minimum
|
|
182
|
+
extent necessary to make such provision valid and enforceable.
|
|
183
|
+
|
|
184
|
+
If Recipient institutes patent litigation against a Contributor with
|
|
185
|
+
respect to a patent applicable to software (including a cross-claim or
|
|
186
|
+
counterclaim in a lawsuit), then any patent licenses granted by that
|
|
187
|
+
Contributor to such Recipient under this Agreement shall terminate
|
|
188
|
+
as of the date such litigation is filed. In addition, If Recipient
|
|
189
|
+
institutes patent litigation against any entity (including a cross-claim
|
|
190
|
+
or counterclaim in a lawsuit) alleging that the Program itself (excluding
|
|
191
|
+
combinations of the Program with other software or hardware) infringes
|
|
192
|
+
such Recipient's patent(s), then such Recipient's rights granted under
|
|
193
|
+
Section 2(b) shall terminate as of the date such litigation is filed.
|
|
194
|
+
|
|
195
|
+
All Recipient's rights under this Agreement shall terminate if it fails
|
|
196
|
+
to comply with any of the material terms or conditions of this Agreement
|
|
197
|
+
and does not cure such failure in a reasonable period of time after
|
|
198
|
+
becoming aware of such noncompliance. If all Recipient's rights under
|
|
199
|
+
this Agreement terminate, Recipient agrees to cease use and distribution
|
|
200
|
+
of the Program as soon as reasonably practicable. However, Recipient's
|
|
201
|
+
obligations under this Agreement and any licenses granted by Recipient
|
|
202
|
+
relating to the Program shall continue and survive.
|
|
203
|
+
|
|
204
|
+
IBM may publish new versions (including revisions) of this Agreement
|
|
205
|
+
from time to time. Each new version of the Agreement will be given a
|
|
206
|
+
distinguishing version number. The Program (including Contributions)
|
|
207
|
+
may always be distributed subject to the version of the Agreement under
|
|
208
|
+
which it was received. In addition, after a new version of the Agreement
|
|
209
|
+
is published, Contributor may elect to distribute the Program (including
|
|
210
|
+
its Contributions) under the new version. No one other than IBM has the
|
|
211
|
+
right to modify this Agreement. Except as expressly stated in Sections
|
|
212
|
+
2(a) and 2(b) above, Recipient receives no rights or licenses to the
|
|
213
|
+
intellectual property of any Contributor under this Agreement, whether
|
|
214
|
+
expressly, by implication, estoppel or otherwise. All rights in the
|
|
215
|
+
Program not expressly granted under this Agreement are reserved.
|
|
216
|
+
|
|
217
|
+
This Agreement is governed by the laws of the State of New York and the
|
|
218
|
+
intellectual property laws of the United States of America. No party to
|
|
219
|
+
this Agreement will bring a legal action under this Agreement more than
|
|
220
|
+
one year after the cause of action arose. Each party waives its rights
|
|
221
|
+
to a jury trial in any resulting litigation.
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
Common Public License Version 1.0
|
|
2
|
+
|
|
3
|
+
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC
|
|
4
|
+
LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM
|
|
5
|
+
CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
|
|
6
|
+
|
|
7
|
+
1. DEFINITIONS
|
|
8
|
+
|
|
9
|
+
"Contribution" means:
|
|
10
|
+
|
|
11
|
+
a) in the case of the initial Contributor, the initial code and
|
|
12
|
+
documentation distributed under this Agreement, and
|
|
13
|
+
|
|
14
|
+
b) in the case of each subsequent Contributor:
|
|
15
|
+
|
|
16
|
+
i) changes to the Program, and
|
|
17
|
+
|
|
18
|
+
ii) additions to the Program;
|
|
19
|
+
|
|
20
|
+
where such changes and/or additions to the Program originate from and are
|
|
21
|
+
distributed by that particular Contributor. A Contribution 'originates' from a
|
|
22
|
+
Contributor if it was added to the Program by such Contributor itself or anyone
|
|
23
|
+
acting on such Contributor's behalf. Contributions do not include additions to
|
|
24
|
+
the Program which: (i) are separate modules of software distributed in
|
|
25
|
+
conjunction with the Program under their own license agreement, and (ii) are not
|
|
26
|
+
derivative works of the Program.
|
|
27
|
+
|
|
28
|
+
"Contributor" means any person or entity that distributes the Program.
|
|
29
|
+
|
|
30
|
+
"Licensed Patents " mean patent claims licensable by a Contributor which are
|
|
31
|
+
necessarily infringed by the use or sale of its Contribution alone or when
|
|
32
|
+
combined with the Program.
|
|
33
|
+
|
|
34
|
+
"Program" means the Contributions distributed in accordance with this Agreement.
|
|
35
|
+
|
|
36
|
+
"Recipient" means anyone who receives the Program under this Agreement,
|
|
37
|
+
including all Contributors.
|
|
38
|
+
|
|
39
|
+
2. GRANT OF RIGHTS
|
|
40
|
+
|
|
41
|
+
a) Subject to the terms of this Agreement, each Contributor hereby grants
|
|
42
|
+
Recipient a non-exclusive, worldwide, royalty-free copyright license to
|
|
43
|
+
reproduce, prepare derivative works of, publicly display, publicly perform,
|
|
44
|
+
distribute and sublicense the Contribution of such Contributor, if any, and such
|
|
45
|
+
derivative works, in source code and object code form.
|
|
46
|
+
|
|
47
|
+
b) Subject to the terms of this Agreement, each Contributor hereby grants
|
|
48
|
+
Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed
|
|
49
|
+
Patents to make, use, sell, offer to sell, import and otherwise transfer the
|
|
50
|
+
Contribution of such Contributor, if any, in source code and object code form.
|
|
51
|
+
This patent license shall apply to the combination of the Contribution and the
|
|
52
|
+
Program if, at the time the Contribution is added by the Contributor, such
|
|
53
|
+
addition of the Contribution causes such combination to be covered by the
|
|
54
|
+
Licensed Patents. The patent license shall not apply to any other combinations
|
|
55
|
+
which include the Contribution. No hardware per se is licensed hereunder.
|
|
56
|
+
|
|
57
|
+
c) Recipient understands that although each Contributor grants the licenses
|
|
58
|
+
to its Contributions set forth herein, no assurances are provided by any
|
|
59
|
+
Contributor that the Program does not infringe the patent or other intellectual
|
|
60
|
+
property rights of any other entity. Each Contributor disclaims any liability to
|
|
61
|
+
Recipient for claims brought by any other entity based on infringement of
|
|
62
|
+
intellectual property rights or otherwise. As a condition to exercising the
|
|
63
|
+
rights and licenses granted hereunder, each Recipient hereby assumes sole
|
|
64
|
+
responsibility to secure any other intellectual property rights needed, if any.
|
|
65
|
+
For example, if a third party patent license is required to allow Recipient to
|
|
66
|
+
distribute the Program, it is Recipient's responsibility to acquire that license
|
|
67
|
+
before distributing the Program.
|
|
68
|
+
|
|
69
|
+
d) Each Contributor represents that to its knowledge it has sufficient
|
|
70
|
+
copyright rights in its Contribution, if any, to grant the copyright license set
|
|
71
|
+
forth in this Agreement.
|
|
72
|
+
|
|
73
|
+
3. REQUIREMENTS
|
|
74
|
+
|
|
75
|
+
A Contributor may choose to distribute the Program in object code form under its
|
|
76
|
+
own license agreement, provided that:
|
|
77
|
+
|
|
78
|
+
a) it complies with the terms and conditions of this Agreement; and
|
|
79
|
+
|
|
80
|
+
b) its license agreement:
|
|
81
|
+
|
|
82
|
+
i) effectively disclaims on behalf of all Contributors all warranties and
|
|
83
|
+
conditions, express and implied, including warranties or conditions of title and
|
|
84
|
+
non-infringement, and implied warranties or conditions of merchantability and
|
|
85
|
+
fitness for a particular purpose;
|
|
86
|
+
|
|
87
|
+
ii) effectively excludes on behalf of all Contributors all liability for
|
|
88
|
+
damages, including direct, indirect, special, incidental and consequential
|
|
89
|
+
damages, such as lost profits;
|
|
90
|
+
|
|
91
|
+
iii) states that any provisions which differ from this Agreement are offered
|
|
92
|
+
by that Contributor alone and not by any other party; and
|
|
93
|
+
|
|
94
|
+
iv) states that source code for the Program is available from such
|
|
95
|
+
Contributor, and informs licensees how to obtain it in a reasonable manner on or
|
|
96
|
+
through a medium customarily used for software exchange.
|
|
97
|
+
|
|
98
|
+
When the Program is made available in source code form:
|
|
99
|
+
|
|
100
|
+
a) it must be made available under this Agreement; and
|
|
101
|
+
|
|
102
|
+
b) a copy of this Agreement must be included with each copy of the Program.
|
|
103
|
+
|
|
104
|
+
Contributors may not remove or alter any copyright notices contained within the
|
|
105
|
+
Program.
|
|
106
|
+
|
|
107
|
+
Each Contributor must identify itself as the originator of its Contribution, if
|
|
108
|
+
any, in a manner that reasonably allows subsequent Recipients to identify the
|
|
109
|
+
originator of the Contribution.
|
|
110
|
+
|
|
111
|
+
4. COMMERCIAL DISTRIBUTION
|
|
112
|
+
|
|
113
|
+
Commercial distributors of software may accept certain responsibilities with
|
|
114
|
+
respect to end users, business partners and the like. While this license is
|
|
115
|
+
intended to facilitate the commercial use of the Program, the Contributor who
|
|
116
|
+
includes the Program in a commercial product offering should do so in a manner
|
|
117
|
+
which does not create potential liability for other Contributors. Therefore, if
|
|
118
|
+
a Contributor includes the Program in a commercial product offering, such
|
|
119
|
+
Contributor ("Commercial Contributor") hereby agrees to defend and indemnify
|
|
120
|
+
every other Contributor ("Indemnified Contributor") against any losses, damages
|
|
121
|
+
and costs (collectively "Losses") arising from claims, lawsuits and other legal
|
|
122
|
+
actions brought by a third party against the Indemnified Contributor to the
|
|
123
|
+
extent caused by the acts or omissions of such Commercial Contributor in
|
|
124
|
+
connection with its distribution of the Program in a commercial product
|
|
125
|
+
offering. The obligations in this section do not apply to any claims or Losses
|
|
126
|
+
relating to any actual or alleged intellectual property infringement. In order
|
|
127
|
+
to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
|
|
128
|
+
Contributor in writing of such claim, and b) allow the Commercial Contributor to
|
|
129
|
+
control, and cooperate with the Commercial Contributor in, the defense and any
|
|
130
|
+
related settlement negotiations. The Indemnified Contributor may participate in
|
|
131
|
+
any such claim at its own expense.
|
|
132
|
+
|
|
133
|
+
For example, a Contributor might include the Program in a commercial product
|
|
134
|
+
offering, Product X. That Contributor is then a Commercial Contributor. If that
|
|
135
|
+
Commercial Contributor then makes performance claims, or offers warranties
|
|
136
|
+
related to Product X, those performance claims and warranties are such
|
|
137
|
+
Commercial Contributor's responsibility alone. Under this section, the
|
|
138
|
+
Commercial Contributor would have to defend claims against the other
|
|
139
|
+
Contributors related to those performance claims and warranties, and if a court
|
|
140
|
+
requires any other Contributor to pay any damages as a result, the Commercial
|
|
141
|
+
Contributor must pay those damages.
|
|
142
|
+
|
|
143
|
+
5. NO WARRANTY
|
|
144
|
+
|
|
145
|
+
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN
|
|
146
|
+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
|
|
147
|
+
IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE,
|
|
148
|
+
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each
|
|
149
|
+
Recipient is solely responsible for determining the appropriateness of using and
|
|
150
|
+
distributing the Program and assumes all risks associated with its exercise of
|
|
151
|
+
rights under this Agreement, including but not limited to the risks and costs of
|
|
152
|
+
program errors, compliance with applicable laws, damage to or loss of data,
|
|
153
|
+
programs or equipment, and unavailability or interruption of operations.
|
|
154
|
+
|
|
155
|
+
6. DISCLAIMER OF LIABILITY
|
|
156
|
+
|
|
157
|
+
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY
|
|
158
|
+
CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
159
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
|
|
160
|
+
PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
161
|
+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
162
|
+
OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS
|
|
163
|
+
GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
164
|
+
|
|
165
|
+
7. GENERAL
|
|
166
|
+
|
|
167
|
+
If any provision of this Agreement is invalid or unenforceable under applicable
|
|
168
|
+
law, it shall not affect the validity or enforceability of the remainder of the
|
|
169
|
+
terms of this Agreement, and without further action by the parties hereto, such
|
|
170
|
+
provision shall be reformed to the minimum extent necessary to make such
|
|
171
|
+
provision valid and enforceable.
|
|
172
|
+
|
|
173
|
+
If Recipient institutes patent litigation against a Contributor with respect to
|
|
174
|
+
a patent applicable to software (including a cross-claim or counterclaim in a
|
|
175
|
+
lawsuit), then any patent licenses granted by that Contributor to such Recipient
|
|
176
|
+
under this Agreement shall terminate as of the date such litigation is filed. In
|
|
177
|
+
addition, if Recipient institutes patent litigation against any entity
|
|
178
|
+
(including a cross-claim or counterclaim in a lawsuit) alleging that the Program
|
|
179
|
+
itself (excluding combinations of the Program with other software or hardware)
|
|
180
|
+
infringes such Recipient's patent(s), then such Recipient's rights granted under
|
|
181
|
+
Section 2(b) shall terminate as of the date such litigation is filed.
|
|
182
|
+
|
|
183
|
+
All Recipient's rights under this Agreement shall terminate if it fails to
|
|
184
|
+
comply with any of the material terms or conditions of this Agreement and does
|
|
185
|
+
not cure such failure in a reasonable period of time after becoming aware of
|
|
186
|
+
such noncompliance. If all Recipient's rights under this Agreement terminate,
|
|
187
|
+
Recipient agrees to cease use and distribution of the Program as soon as
|
|
188
|
+
reasonably practicable. However, Recipient's obligations under this Agreement
|
|
189
|
+
and any licenses granted by Recipient relating to the Program shall continue and
|
|
190
|
+
survive.
|
|
191
|
+
|
|
192
|
+
Everyone is permitted to copy and distribute copies of this Agreement, but in
|
|
193
|
+
order to avoid inconsistency the Agreement is copyrighted and may only be
|
|
194
|
+
modified in the following manner. The Agreement Steward reserves the right to
|
|
195
|
+
publish new versions (including revisions) of this Agreement from time to time.
|
|
196
|
+
No one other than the Agreement Steward has the right to modify this Agreement.
|
|
197
|
+
IBM is the initial Agreement Steward. IBM may assign the responsibility to serve
|
|
198
|
+
as the Agreement Steward to a suitable separate entity. Each new version of the
|
|
199
|
+
Agreement will be given a distinguishing version number. The Program (including
|
|
200
|
+
Contributions) may always be distributed subject to the version of the Agreement
|
|
201
|
+
under which it was received. In addition, after a new version of the Agreement
|
|
202
|
+
is published, Contributor may elect to distribute the Program (including its
|
|
203
|
+
Contributions) under the new version. Except as expressly stated in Sections
|
|
204
|
+
2(a) and 2(b) above, Recipient receives no rights or licenses to the
|
|
205
|
+
intellectual property of any Contributor under this Agreement, whether
|
|
206
|
+
expressly, by implication, estoppel or otherwise. All rights in the Program not
|
|
207
|
+
expressly granted under this Agreement are reserved.
|
|
208
|
+
|
|
209
|
+
This Agreement is governed by the laws of the State of New York and the
|
|
210
|
+
intellectual property laws of the United States of America. No party to this
|
|
211
|
+
Agreement will bring a legal action under this Agreement more than one year
|
|
212
|
+
after the cause of action arose. Each party waives its rights to a jury trial in
|
|
213
|
+
any resulting litigation.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
|
Binary file
|