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