1 |
commit: 7ff230924827bfbec127fa6e050885f58191dfa7 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Thu Apr 28 11:16:22 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 9 18:58:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ff23092 |
7 |
|
8 |
app-forensics/sleuthkit: drop 4.10.1-r4 and 4.11.1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/833324 |
11 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
12 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
13 |
|
14 |
app-forensics/sleuthkit/sleuthkit-4.10.1-r4.ebuild | 296 ------------------- |
15 |
app-forensics/sleuthkit/sleuthkit-4.11.1.ebuild | 313 --------------------- |
16 |
2 files changed, 609 deletions(-) |
17 |
|
18 |
diff --git a/app-forensics/sleuthkit/sleuthkit-4.10.1-r4.ebuild b/app-forensics/sleuthkit/sleuthkit-4.10.1-r4.ebuild |
19 |
deleted file mode 100644 |
20 |
index 78faebc794c0..000000000000 |
21 |
--- a/app-forensics/sleuthkit/sleuthkit-4.10.1-r4.ebuild |
22 |
+++ /dev/null |
23 |
@@ -1,296 +0,0 @@ |
24 |
-# Copyright 1999-2021 Gentoo Authors |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
- |
27 |
-EAPI=7 |
28 |
- |
29 |
-JAVA_PKG_BSFIX_NAME="build.xml build-unix.xml" |
30 |
-inherit autotools java-pkg-opt-2 java-ant-2 |
31 |
- |
32 |
-DESCRIPTION="A collection of file system and media management forensic analysis tools" |
33 |
-HOMEPAGE="https://www.sleuthkit.org/sleuthkit/" |
34 |
-# TODO: sqlite-jdbc does not exist in the tree, we bundle it for now |
35 |
-# See: https://bugs.gentoo.org/690010 |
36 |
-# TODO: Upstream uses a very specific version of libewf which is not in |
37 |
-# the tree anymore. So we statically compile and link to sleuthkit. |
38 |
-# Hopefully upstream will figure something out in the future. |
39 |
-# See: https://bugs.gentoo.org/689752 |
40 |
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz |
41 |
- java? ( |
42 |
- http://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.25.2/sqlite-jdbc-3.25.2.jar |
43 |
- ) |
44 |
- ewf? ( https://github.com/sleuthkit/libewf_64bit/archive/VisualStudio_2010.tar.gz -> sleuthkit-libewf_64bit-20130416.tar.gz )" |
45 |
- |
46 |
-LICENSE="BSD CPL-1.0 GPL-2+ IBM java? ( Apache-2.0 )" |
47 |
-SLOT="0/19" # subslot = major soname version |
48 |
-KEYWORDS="~amd64 ~hppa ~ppc ~x86" |
49 |
-IUSE="aff doc ewf java static-libs test +threads zlib" |
50 |
-RESTRICT="!test? ( test )" |
51 |
- |
52 |
-DEPEND=" |
53 |
- dev-db/sqlite:3 |
54 |
- dev-lang/perl:* |
55 |
- aff? ( app-forensics/afflib ) |
56 |
- ewf? ( sys-libs/zlib ) |
57 |
- java? ( |
58 |
- >=dev-java/c3p0-0.9.5:0 |
59 |
- dev-java/commons-lang:3.6 |
60 |
- >=dev-java/commons-validator-1.6:0 |
61 |
- >=dev-java/gson-2.8.5:2.6 |
62 |
- dev-java/guava:20 |
63 |
- >=dev-java/jdbc-postgresql-9.4:0 |
64 |
- >=dev-java/joda-time-2.4:0 |
65 |
- dev-java/sparsebitset:0 |
66 |
- ) |
67 |
- zlib? ( sys-libs/zlib ) |
68 |
-" |
69 |
-# TODO: add support for not-in-tree libraries libvhdi and libvmdk |
70 |
-# libvhdi: https://github.com/libyal/libvhdi |
71 |
-# libvmdk: https://github.com/libyal/libvmdk |
72 |
-# DEPEND="${DEPEND} |
73 |
-# vhdi? ( dev-libs/libvhdi ) |
74 |
-# vmdk? ( dev-libs/libvmdk ) |
75 |
-# " |
76 |
- |
77 |
-RDEPEND="${DEPEND} |
78 |
- java? ( virtual/jre:1.8 ) |
79 |
-" |
80 |
-DEPEND="${DEPEND} |
81 |
- java? ( virtual/jdk:1.8 ) |
82 |
- test? ( >=dev-util/cppunit-1.2.1 ) |
83 |
-" |
84 |
-BDEPEND=" |
85 |
- doc? ( app-doc/doxygen ) |
86 |
-" |
87 |
- |
88 |
-PATCHES=( |
89 |
- "${FILESDIR}"/${PN}-4.1.0-tools-shared-libs.patch |
90 |
- "${FILESDIR}"/${PN}-4.6.4-default-jar-location-fix.patch |
91 |
- "${FILESDIR}"/${PN}-4.10.1-exclude-usr-local.patch |
92 |
-) |
93 |
- |
94 |
-src_unpack() { |
95 |
- local f |
96 |
- |
97 |
- unpack ${P}.tar.gz |
98 |
- |
99 |
- if use ewf; then |
100 |
- pushd "${T}" &>/dev/null || die |
101 |
- unpack sleuthkit-libewf_64bit-20130416.tar.gz |
102 |
- export TSK_LIBEWF_SRCDIR="${T}"/libewf_64bit-VisualStudio_2010 |
103 |
- popd &>/dev/null || die |
104 |
- fi |
105 |
- |
106 |
- # Copy the jar files that don't exist in the tree yet |
107 |
- if use java; then |
108 |
- TSK_JAR_DIR="${T}/lib" |
109 |
- mkdir "${TSK_JAR_DIR}" || die |
110 |
- for f in ${A}; do |
111 |
- if [[ ${f} =~ .jar$ ]]; then |
112 |
- cp "${DISTDIR}"/"${f}" "${TSK_JAR_DIR}" || die |
113 |
- fi |
114 |
- done |
115 |
- export TSK_JAR_DIR |
116 |
- fi |
117 |
-} |
118 |
- |
119 |
-tsk_prepare_libewf() { |
120 |
- # Inlining breaks the compilation, disable it |
121 |
- sed -e 's/LIBUNA_INLINE inline/LIBUNA_INLINE/' \ |
122 |
- -i "${TSK_LIBEWF_SRCDIR}"/libuna/libuna_inline.h || die |
123 |
-} |
124 |
- |
125 |
-src_prepare() { |
126 |
- use ewf && tsk_prepare_libewf |
127 |
- |
128 |
- # Do not pass '-Werror'. This is overkill for user builds. |
129 |
- sed -e '/AM_CXXFLAGS/ s/-Werror//g' \ |
130 |
- -i tsk/util/Makefile.am \ |
131 |
- -i tsk/pool/Makefile.am || die |
132 |
- # Remove -static from LDFLAGS because it doesn't actually create |
133 |
- # a static binary. It confuses libtool, who then inserts rpath |
134 |
- sed -e '/LDFLAGS/ s/-static//' \ |
135 |
- -i tools/pooltools/Makefile.am || die |
136 |
- |
137 |
- if use java; then |
138 |
- pushd "${S}"/bindings/java &>/dev/null || die |
139 |
- |
140 |
- # Prevent "make install" from installing |
141 |
- # jar files under /usr/share/java |
142 |
- # We'll use the java eclasses for this |
143 |
- # See: https://github.com/sleuthkit/sleuthkit/pull/1379 |
144 |
- sed -e '/^jar_DATA/ d;' -i Makefile.am || die |
145 |
- |
146 |
- java-pkg-opt-2_src_prepare |
147 |
- |
148 |
- popd &>/dev/null || die |
149 |
- fi |
150 |
- |
151 |
- # Override the doxygen output directories |
152 |
- if use doc; then |
153 |
- sed -e "/^OUTPUT_DIRECTORY/ s|=.*$|= ${T}/doc|" \ |
154 |
- -i tsk/docs/Doxyfile \ |
155 |
- -i bindings/java/doxygen/Doxyfile || die |
156 |
- fi |
157 |
- |
158 |
- # It's safe to call this even after java-pkg-opt-2_src_prepare |
159 |
- # because future calls to eapply_user do nothing and return 0 |
160 |
- default |
161 |
- |
162 |
- eautoreconf |
163 |
-} |
164 |
- |
165 |
-tsk_compile_libewf() { |
166 |
- local myeconfargs=( |
167 |
- --prefix=/ |
168 |
- --libdir=/lib |
169 |
- --enable-static |
170 |
- --disable-shared |
171 |
- --disable-winapi |
172 |
- --without-libbfio |
173 |
- --with-zlib |
174 |
- --without-bzip2 |
175 |
- --without-libhmac |
176 |
- --without-openssl |
177 |
- --without-libuuid |
178 |
- --without-libfuse |
179 |
- |
180 |
- --with-libcstring=no |
181 |
- --with-libcerror=no |
182 |
- --with-libcdata=no |
183 |
- --with-libclocale=no |
184 |
- --with-libcnotify=no |
185 |
- --with-libcsplit=no |
186 |
- --with-libuna=no |
187 |
- --with-libcfile=no |
188 |
- --with-libcpath=no |
189 |
- --with-libbfio=no |
190 |
- --with-libfcache=no |
191 |
- --with-libfvalue=no |
192 |
- |
193 |
- ) |
194 |
- # We want to contain our build flags |
195 |
- local CFLAGS="${CFLAGS}" |
196 |
- local LDFLAGS="${LDFLAGS}" |
197 |
- |
198 |
- pushd "${TSK_LIBEWF_SRCDIR}" &>/dev/null || die |
199 |
- |
200 |
- # Produce relocatable code |
201 |
- CFLAGS+=" -fPIC" |
202 |
- LDFLAGS+=" -fPIC" |
203 |
- econf "${myeconfargs[@]}" |
204 |
- |
205 |
- # Do not waste CPU cycles on building ewftools |
206 |
- sed -e '/ewftools/ d' -i Makefile || die |
207 |
- emake |
208 |
- |
209 |
- # Only install the headers and the library |
210 |
- emake -C libewf DESTDIR="${T}"/image install |
211 |
- emake -C include DESTDIR="${T}"/image install |
212 |
- find "${T}"/image -name '*.la' -delete || die |
213 |
- |
214 |
- popd &>/dev/null || die |
215 |
-} |
216 |
- |
217 |
-src_configure() { |
218 |
- local myeconfargs=( |
219 |
- --enable-offline="${TSK_JAR_DIR}" |
220 |
- $(use_enable java) |
221 |
- $(use_enable static-libs static) |
222 |
- $(use_enable threads multithreading) |
223 |
- $(use_with aff afflib) |
224 |
- $(use_with zlib) |
225 |
- ) |
226 |
- # TODO: add support for non-existing libraries libvhdi and libvmdk |
227 |
- # myeconfargs+=( |
228 |
- # $(use_with vhdi libvhdi) |
229 |
- # $(use_with vmdk libvmdk) |
230 |
- # ) |
231 |
- myeconfargs+=( |
232 |
- --without-libvhdi |
233 |
- --without-libvmdk |
234 |
- ) |
235 |
- |
236 |
- use ewf && tsk_compile_libewf |
237 |
- myeconfargs+=( $(use_with ewf libewf "${T}"/image) ) |
238 |
- |
239 |
- if use java; then |
240 |
- pushd "${S}"/bindings/java &>/dev/null || die |
241 |
- java-ant-2_src_configure |
242 |
- popd &>/dev/null || die |
243 |
- fi |
244 |
- |
245 |
- econf "${myeconfargs[@]}" |
246 |
-} |
247 |
- |
248 |
-src_compile() { |
249 |
- # Give it an existing bogus ivy home #672220 |
250 |
- local -x IVY_HOME="${T}" |
251 |
- |
252 |
- # Create symlinks of jars for the required dependencies |
253 |
- if use java; then |
254 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" c3p0 |
255 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-lang:3.6 |
256 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-validator |
257 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" gson:2.6 |
258 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" guava:20 |
259 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" jdbc-postgresql |
260 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" joda-time |
261 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" sparsebitset |
262 |
- |
263 |
- # case-uco needs gson and expects it under case-uco/java/lib |
264 |
- # symlink it to the jar dir we create for java bindings |
265 |
- ln -s "${TSK_JAR_DIR}" "${S}"/case-uco/java/lib || die |
266 |
- ln -s ./gson.jar "${TSK_JAR_DIR}"/gson-2.8.5.jar || die |
267 |
- fi |
268 |
- |
269 |
- # Create the doc output dirs if requested |
270 |
- if use doc; then |
271 |
- mkdir -p "${T}"/doc/{api-docs,jni-docs} || die |
272 |
- fi |
273 |
- |
274 |
- emake all $(usex doc api-docs "") |
275 |
-} |
276 |
- |
277 |
-src_install() { |
278 |
- # Give it an existing bogus ivy home #756766 |
279 |
- local -x IVY_HOME="${T}" |
280 |
- local f |
281 |
- |
282 |
- if use java; then |
283 |
- pushd "${S}"/bindings/java &>/dev/null || die |
284 |
- |
285 |
- # Install case-uco |
286 |
- pushd "${S}"/case-uco/java &>/dev/null || die |
287 |
- java-pkg_newjar "dist/${PN}-caseuco-${PV}".jar "${PN}-caseuco.jar" |
288 |
- popd || die |
289 |
- |
290 |
- # Install the bundled jar files as well as the |
291 |
- # sleuthkit jar installed here by case-uco |
292 |
- pushd "${TSK_JAR_DIR}" &>/dev/null || die |
293 |
- for f in *; do |
294 |
- # Skip the symlinks java-pkg_jar-from created |
295 |
- [[ -f ${f} ]] || continue |
296 |
- |
297 |
- # Strip the version numbers as per eclass recommendation |
298 |
- [[ ${f} =~ -([0-9]+\.)+jar$ ]] || continue |
299 |
- |
300 |
- java-pkg_newjar "${f}" "${f/${BASH_REMATCH[0]}/.jar}" |
301 |
- done |
302 |
- popd &>/dev/null || die |
303 |
- |
304 |
- popd &>/dev/null || die |
305 |
- fi |
306 |
- |
307 |
- default |
308 |
- # Default install target for case-uco installs the jar in the wrong place |
309 |
- rm -r "${ED}"/usr/share/java |
310 |
- |
311 |
- # It unconditionally builds both api and jni docs |
312 |
- # We install conditionally based on the provided use flags |
313 |
- if use doc; then |
314 |
- dodoc -r "${T}"/doc/api-docs |
315 |
- use java && dodoc -r "${T}"/doc/jni-docs |
316 |
- fi |
317 |
- |
318 |
- find "${D}" -name '*.la' -delete || die |
319 |
-} |
320 |
|
321 |
diff --git a/app-forensics/sleuthkit/sleuthkit-4.11.1.ebuild b/app-forensics/sleuthkit/sleuthkit-4.11.1.ebuild |
322 |
deleted file mode 100644 |
323 |
index 0221dca95e72..000000000000 |
324 |
--- a/app-forensics/sleuthkit/sleuthkit-4.11.1.ebuild |
325 |
+++ /dev/null |
326 |
@@ -1,313 +0,0 @@ |
327 |
-# Copyright 1999-2022 Gentoo Authors |
328 |
-# Distributed under the terms of the GNU General Public License v2 |
329 |
- |
330 |
-EAPI=8 |
331 |
- |
332 |
-JAVA_PKG_BSFIX_NAME="build.xml build-unix.xml" |
333 |
-inherit autotools java-pkg-opt-2 java-ant-2 |
334 |
- |
335 |
-DESCRIPTION="A collection of file system and media management forensic analysis tools" |
336 |
-HOMEPAGE="https://www.sleuthkit.org/sleuthkit/" |
337 |
-# TODO: sqlite-jdbc does not exist in the tree, we bundle it for now |
338 |
-# See: https://bugs.gentoo.org/690010 |
339 |
-# TODO: Upstream uses a very specific version of libewf which is not in |
340 |
-# the tree anymore. So we statically compile and link to sleuthkit. |
341 |
-# Hopefully upstream will figure something out in the future. |
342 |
-# See: https://bugs.gentoo.org/689752 |
343 |
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz |
344 |
- java? ( |
345 |
- http://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.25.2/sqlite-jdbc-3.25.2.jar |
346 |
- ) |
347 |
- ewf? ( https://github.com/sleuthkit/libewf_64bit/archive/VisualStudio_2010.tar.gz -> sleuthkit-libewf_64bit-20130416.tar.gz )" |
348 |
- |
349 |
-LICENSE="BSD CPL-1.0 GPL-2+ IBM java? ( Apache-2.0 )" |
350 |
-SLOT="0/19" # subslot = major soname version |
351 |
-KEYWORDS="~amd64 ~hppa ~ppc ~x86" |
352 |
-IUSE="aff doc ewf java static-libs test +threads zlib" |
353 |
-RESTRICT="!test? ( test )" |
354 |
- |
355 |
-DEPEND=" |
356 |
- dev-db/sqlite:3 |
357 |
- dev-lang/perl:* |
358 |
- aff? ( app-forensics/afflib ) |
359 |
- ewf? ( sys-libs/zlib ) |
360 |
- java? ( |
361 |
- >=dev-java/c3p0-0.9.5:0 |
362 |
- dev-java/commons-lang:3.6 |
363 |
- >=dev-java/commons-validator-1.6:0 |
364 |
- >=dev-java/gson-2.8.5:2.6 |
365 |
- dev-java/guava:20 |
366 |
- >=dev-java/jdbc-postgresql-9.4:0 |
367 |
- >=dev-java/joda-time-2.4:0 |
368 |
- dev-java/sparsebitset:0 |
369 |
- ) |
370 |
- zlib? ( sys-libs/zlib ) |
371 |
-" |
372 |
-# TODO: add support for not-in-tree libraries libvhdi and libvmdk |
373 |
-# libvhdi: https://github.com/libyal/libvhdi |
374 |
-# libvmdk: https://github.com/libyal/libvmdk |
375 |
-# DEPEND="${DEPEND} |
376 |
-# vhdi? ( dev-libs/libvhdi ) |
377 |
-# vmdk? ( dev-libs/libvmdk ) |
378 |
-# " |
379 |
- |
380 |
-RDEPEND="${DEPEND} |
381 |
- java? ( virtual/jre:1.8 ) |
382 |
-" |
383 |
-DEPEND="${DEPEND} |
384 |
- java? ( virtual/jdk:1.8 ) |
385 |
- test? ( |
386 |
- >=dev-util/cppunit-1.2.1 |
387 |
- ) |
388 |
-" |
389 |
-BDEPEND=" |
390 |
- virtual/pkgconfig |
391 |
- doc? ( app-doc/doxygen ) |
392 |
-" |
393 |
- |
394 |
-PATCHES=( |
395 |
- "${FILESDIR}"/${PN}-4.1.0-tools-shared-libs.patch |
396 |
- "${FILESDIR}"/${PN}-4.6.4-default-jar-location-fix.patch |
397 |
- "${FILESDIR}"/${PN}-4.10.1-exclude-usr-local.patch |
398 |
-) |
399 |
- |
400 |
-src_unpack() { |
401 |
- local f |
402 |
- |
403 |
- unpack ${P}.tar.gz |
404 |
- |
405 |
- if use ewf; then |
406 |
- pushd "${T}" &>/dev/null || die |
407 |
- unpack sleuthkit-libewf_64bit-20130416.tar.gz |
408 |
- export TSK_LIBEWF_SRCDIR="${T}"/libewf_64bit-VisualStudio_2010 |
409 |
- popd &>/dev/null || die |
410 |
- fi |
411 |
- |
412 |
- # Copy the jar files that don't exist in the tree yet |
413 |
- if use java; then |
414 |
- TSK_JAR_DIR="${T}/lib" |
415 |
- mkdir "${TSK_JAR_DIR}" || die |
416 |
- for f in ${A}; do |
417 |
- if [[ ${f} =~ .jar$ ]]; then |
418 |
- cp "${DISTDIR}"/"${f}" "${TSK_JAR_DIR}" || die |
419 |
- fi |
420 |
- done |
421 |
- export TSK_JAR_DIR |
422 |
- fi |
423 |
-} |
424 |
- |
425 |
-tsk_prepare_libewf() { |
426 |
- # Inlining breaks the compilation, disable it |
427 |
- sed -e 's/LIBUNA_INLINE inline/LIBUNA_INLINE/' \ |
428 |
- -i "${TSK_LIBEWF_SRCDIR}"/libuna/libuna_inline.h || die |
429 |
-} |
430 |
- |
431 |
-src_prepare() { |
432 |
- use ewf && tsk_prepare_libewf |
433 |
- |
434 |
- # Do not pass '-Werror'. This is overkill for user builds. |
435 |
- sed -e '/AM_CXXFLAGS/ s/-Werror//g' \ |
436 |
- -i tsk/util/Makefile.am \ |
437 |
- -i tsk/pool/Makefile.am || die |
438 |
- # Remove -static from LDFLAGS because it doesn't actually create |
439 |
- # a static binary. It confuses libtool, who then inserts rpath |
440 |
- sed -e '/LDFLAGS/ s/-static//' \ |
441 |
- -i tools/pooltools/Makefile.am || die |
442 |
- |
443 |
- if use java; then |
444 |
- pushd "${S}"/bindings/java &>/dev/null || die |
445 |
- |
446 |
- # Prevent "make install" from installing |
447 |
- # jar files under /usr/share/java |
448 |
- # We'll use the java eclasses for this |
449 |
- # See: https://github.com/sleuthkit/sleuthkit/pull/1379 |
450 |
- sed -e '/^jar_DATA/ d;' -i Makefile.am || die |
451 |
- |
452 |
- java-pkg-opt-2_src_prepare |
453 |
- |
454 |
- popd &>/dev/null || die |
455 |
- |
456 |
- # Call ant with jar target for case-uco. |
457 |
- # The default invocation of ant tries to |
458 |
- # run junit tests, which there are none. |
459 |
- # It ends up failing with: |
460 |
- # junit.framework.AssertionFailedError: No tests found in org.sleuthkit.caseuco.TestSuite |
461 |
- sed -e '/\tant \$(ant_args)/ s|$| jar|' \ |
462 |
- -i "${S}"/case-uco/java/Makefile.am \ |
463 |
- || die |
464 |
- fi |
465 |
- |
466 |
- # Override the doxygen output directories |
467 |
- if use doc; then |
468 |
- sed -e "/^OUTPUT_DIRECTORY/ s|=.*$|= ${T}/doc|" \ |
469 |
- -i tsk/docs/Doxyfile \ |
470 |
- -i bindings/java/doxygen/Doxyfile || die |
471 |
- fi |
472 |
- |
473 |
- # It's safe to call this even after java-pkg-opt-2_src_prepare |
474 |
- # because future calls to eapply_user do nothing and return 0 |
475 |
- default |
476 |
- |
477 |
- eautoreconf |
478 |
-} |
479 |
- |
480 |
-tsk_compile_libewf() { |
481 |
- local myeconfargs=( |
482 |
- --prefix=/ |
483 |
- --libdir=/lib |
484 |
- --enable-static |
485 |
- --disable-shared |
486 |
- --disable-winapi |
487 |
- --without-libbfio |
488 |
- --with-zlib |
489 |
- --without-bzip2 |
490 |
- --without-libhmac |
491 |
- --without-openssl |
492 |
- --without-libuuid |
493 |
- --without-libfuse |
494 |
- |
495 |
- --with-libcstring=no |
496 |
- --with-libcerror=no |
497 |
- --with-libcdata=no |
498 |
- --with-libclocale=no |
499 |
- --with-libcnotify=no |
500 |
- --with-libcsplit=no |
501 |
- --with-libuna=no |
502 |
- --with-libcfile=no |
503 |
- --with-libcpath=no |
504 |
- --with-libbfio=no |
505 |
- --with-libfcache=no |
506 |
- --with-libfvalue=no |
507 |
- |
508 |
- ) |
509 |
- # We want to contain our build flags |
510 |
- local CFLAGS="${CFLAGS}" |
511 |
- local LDFLAGS="${LDFLAGS}" |
512 |
- |
513 |
- pushd "${TSK_LIBEWF_SRCDIR}" &>/dev/null || die |
514 |
- |
515 |
- # Produce relocatable code |
516 |
- CFLAGS+=" -fPIC" |
517 |
- LDFLAGS+=" -fPIC" |
518 |
- econf "${myeconfargs[@]}" |
519 |
- |
520 |
- # Do not waste CPU cycles on building ewftools |
521 |
- sed -e '/ewftools/ d' -i Makefile || die |
522 |
- emake |
523 |
- |
524 |
- # Only install the headers and the library |
525 |
- emake -C libewf DESTDIR="${T}"/image install |
526 |
- emake -C include DESTDIR="${T}"/image install |
527 |
- find "${T}"/image -name '*.la' -delete || die |
528 |
- |
529 |
- popd &>/dev/null || die |
530 |
-} |
531 |
- |
532 |
-src_configure() { |
533 |
- local myeconfargs=( |
534 |
- --enable-offline="${TSK_JAR_DIR}" |
535 |
- $(use_enable java) |
536 |
- $(use_enable static-libs static) |
537 |
- $(use_enable test cppunit) |
538 |
- $(use_enable threads multithreading) |
539 |
- $(use_with aff afflib) |
540 |
- $(use_with zlib) |
541 |
- ) |
542 |
- # TODO: add support for non-existing libraries libvhdi and libvmdk |
543 |
- # myeconfargs+=( |
544 |
- # $(use_with vhdi libvhdi) |
545 |
- # $(use_with vmdk libvmdk) |
546 |
- # ) |
547 |
- myeconfargs+=( |
548 |
- --without-libvhdi |
549 |
- --without-libvmdk |
550 |
- ) |
551 |
- |
552 |
- use ewf && tsk_compile_libewf |
553 |
- myeconfargs+=( $(use_with ewf libewf "${T}"/image) ) |
554 |
- |
555 |
- if use java; then |
556 |
- pushd "${S}"/bindings/java &>/dev/null || die |
557 |
- java-ant-2_src_configure |
558 |
- popd &>/dev/null || die |
559 |
- fi |
560 |
- |
561 |
- econf "${myeconfargs[@]}" |
562 |
-} |
563 |
- |
564 |
-src_compile() { |
565 |
- # Give it an existing bogus ivy home #672220 |
566 |
- local -x IVY_HOME="${T}" |
567 |
- |
568 |
- # Create symlinks of jars for the required dependencies |
569 |
- if use java; then |
570 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" c3p0 |
571 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-lang:3.6 |
572 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-validator |
573 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" gson:2.6 |
574 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" guava:20 |
575 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" jdbc-postgresql |
576 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" joda-time |
577 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" sparsebitset |
578 |
- |
579 |
- # case-uco needs gson and expects it under case-uco/java/lib |
580 |
- # symlink it to the jar dir we create for java bindings |
581 |
- ln -s "${TSK_JAR_DIR}" "${S}"/case-uco/java/lib || die |
582 |
- ln -s ./gson.jar "${TSK_JAR_DIR}"/gson-2.8.5.jar || die |
583 |
- fi |
584 |
- |
585 |
- # Create the doc output dirs if requested |
586 |
- if use doc; then |
587 |
- mkdir -p "${T}"/doc/{api-docs,jni-docs} || die |
588 |
- fi |
589 |
- |
590 |
- emake all $(usex doc api-docs "") |
591 |
-} |
592 |
- |
593 |
-src_install() { |
594 |
- # Give it an existing bogus ivy home #756766 |
595 |
- local -x IVY_HOME="${T}" |
596 |
- local f |
597 |
- |
598 |
- if use java; then |
599 |
- pushd "${S}"/bindings/java &>/dev/null || die |
600 |
- |
601 |
- # Install case-uco |
602 |
- pushd "${S}"/case-uco/java &>/dev/null || die |
603 |
- java-pkg_newjar "dist/${PN}-caseuco-${PV}".jar "${PN}-caseuco.jar" |
604 |
- popd || die |
605 |
- |
606 |
- # Install the bundled jar files as well as the |
607 |
- # sleuthkit jar installed here by case-uco |
608 |
- pushd "${TSK_JAR_DIR}" &>/dev/null || die |
609 |
- for f in *; do |
610 |
- # Skip the symlinks java-pkg_jar-from created |
611 |
- [[ -L ${f} ]] && continue |
612 |
- |
613 |
- # Strip the version numbers as per eclass recommendation |
614 |
- [[ ${f} =~ -([0-9]+\.)+jar$ ]] || continue |
615 |
- |
616 |
- java-pkg_newjar "${f}" "${f/${BASH_REMATCH[0]}/.jar}" |
617 |
- done |
618 |
- popd &>/dev/null || die |
619 |
- |
620 |
- popd &>/dev/null || die |
621 |
- fi |
622 |
- |
623 |
- default |
624 |
- # Default install target for case-uco installs the jar in the wrong place |
625 |
- rm -r "${ED}"/usr/share/java |
626 |
- |
627 |
- # It unconditionally builds both api and jni docs |
628 |
- # We install conditionally based on the provided use flags |
629 |
- if use doc; then |
630 |
- dodoc -r "${T}"/doc/api-docs |
631 |
- use java && dodoc -r "${T}"/doc/jni-docs |
632 |
- fi |
633 |
- |
634 |
- find "${D}" -name '*.la' -delete || die |
635 |
-} |
636 |
- |
637 |
-src_test() { |
638 |
- emake -C "${S}"/unit_tests check |
639 |
-} |