1 |
commit: 9944924df280c7380b86e99ff19abca5af2aadad |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 23 08:08:14 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 23 08:13:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9944924d |
7 |
|
8 |
app-forensics/sleuthkit: removed obsolete 4.9.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
app-forensics/sleuthkit/sleuthkit-4.9.0.ebuild | 303 ------------------------- |
14 |
1 file changed, 303 deletions(-) |
15 |
|
16 |
diff --git a/app-forensics/sleuthkit/sleuthkit-4.9.0.ebuild b/app-forensics/sleuthkit/sleuthkit-4.9.0.ebuild |
17 |
deleted file mode 100644 |
18 |
index 4d51d37dde0..00000000000 |
19 |
--- a/app-forensics/sleuthkit/sleuthkit-4.9.0.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,303 +0,0 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-JAVA_PKG_BSFIX_NAME="build.xml build-unix.xml" |
28 |
-inherit autotools java-pkg-opt-2 java-ant-2 |
29 |
- |
30 |
-DESCRIPTION="A collection of file system and media management forensic analysis tools" |
31 |
-HOMEPAGE="https://www.sleuthkit.org/sleuthkit/" |
32 |
-# TODO: sqlite-jdbc does not exist in the tree, we bundle it for now |
33 |
-# See: https://bugs.gentoo.org/690010 |
34 |
-# TODO: SparseBitSet does not exist in the tree, we bundle it for now |
35 |
-# See: https://bugs.gentoo.org/690012 |
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 |
-# TODO: gson-2.8.5 does not exist in the tree. Building it seems to |
41 |
-# require Java 9. We have Java 11 in the tree but I don't see a |
42 |
-# way to use it as a gentoo-vm in order to build gson. Sleuthkit |
43 |
-# upstream still uses Java 8. |
44 |
-# See: https://bugs.gentoo.org/706274 |
45 |
-# TODO: commons-validator-1.6 does not exist in the tree. The latest version |
46 |
-# as of writing this ebuild is 1.4.1, for which the build fails. As |
47 |
-# per #711930, this is a security sensitive bump. We're gonna fetch |
48 |
-# the jar file here and file a bug request for a bump as well: |
49 |
-# https://bugs.gentoo.org/721020 |
50 |
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz |
51 |
- java? ( |
52 |
- https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar |
53 |
- http://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.25.2/sqlite-jdbc-3.25.2.jar |
54 |
- http://repo1.maven.org/maven2/com/zaxxer/SparseBitSet/1.1/SparseBitSet-1.1.jar |
55 |
- https://repo1.maven.org/maven2/commons-validator/commons-validator/1.6/commons-validator-1.6.jar |
56 |
- ) |
57 |
- ewf? ( https://github.com/sleuthkit/libewf_64bit/archive/VisualStudio_2010.tar.gz -> sleuthkit-libewf_64bit-20130416.tar.gz )" |
58 |
- |
59 |
-LICENSE="BSD CPL-1.0 GPL-2+ IBM java? ( Apache-2.0 )" |
60 |
-SLOT="0/13" # subslot = major soname version |
61 |
-KEYWORDS="amd64 ~hppa ppc x86" |
62 |
-IUSE="aff doc ewf java postgres static-libs test +threads zlib" |
63 |
-RESTRICT="!test? ( test )" |
64 |
- |
65 |
-# |
66 |
-# Note: It is not possible to move the dep on dev-java/jdbc-postgresql |
67 |
-# inside a conditional postgres? block because java sources import |
68 |
-# org.postgres unconditionally as of writing this (version 4.6.4). The |
69 |
-# postgres USE flag will be used for the TSK postgresql support however. |
70 |
-# |
71 |
-DEPEND=" |
72 |
- dev-db/sqlite:3 |
73 |
- dev-lang/perl:* |
74 |
- aff? ( app-forensics/afflib ) |
75 |
- ewf? ( sys-libs/zlib ) |
76 |
- java? ( |
77 |
- >=dev-java/c3p0-0.9.5:0 |
78 |
- dev-java/commons-lang:3.1 |
79 |
- dev-java/guava:20 |
80 |
- >=dev-java/jdbc-postgresql-9.4:0 |
81 |
- >=dev-java/joda-time-2.4:0 |
82 |
- ) |
83 |
- postgres? ( dev-db/postgresql:= ) |
84 |
- zlib? ( sys-libs/zlib ) |
85 |
-" |
86 |
-# TODO: add support for not-in-tree libraries libvhdi and libvmdk |
87 |
-# libvhdi: https://github.com/libyal/libvhdi |
88 |
-# libvmdk: https://github.com/libyal/libvmdk |
89 |
-# DEPEND="${DEPEND} |
90 |
-# vhdi? ( dev-libs/libvhdi ) |
91 |
-# vmdk? ( dev-libs/libvmdk ) |
92 |
-# " |
93 |
- |
94 |
-RDEPEND="${DEPEND} |
95 |
- java? ( |
96 |
- || ( |
97 |
- virtual/jre:1.8 |
98 |
- virtual/jdk:1.8 |
99 |
- ) |
100 |
- ) |
101 |
-" |
102 |
-DEPEND="${DEPEND} |
103 |
- java? ( virtual/jdk:1.8 ) |
104 |
- doc? ( app-doc/doxygen ) |
105 |
- test? ( >=dev-util/cppunit-1.2.1 ) |
106 |
-" |
107 |
- |
108 |
-PATCHES=( |
109 |
- "${FILESDIR}"/${PN}-4.1.0-tools-shared-libs.patch |
110 |
- "${FILESDIR}"/${PN}-4.6.4-default-jar-location-fix.patch |
111 |
-) |
112 |
- |
113 |
-src_unpack() { |
114 |
- local f |
115 |
- |
116 |
- unpack ${P}.tar.gz |
117 |
- |
118 |
- if use ewf; then |
119 |
- pushd "${T}" &>/dev/null || die |
120 |
- unpack sleuthkit-libewf_64bit-20130416.tar.gz |
121 |
- export TSK_LIBEWF_SRCDIR="${T}"/libewf_64bit-VisualStudio_2010 |
122 |
- popd &>/dev/null || die |
123 |
- fi |
124 |
- |
125 |
- # Copy the jar files that don't exist in the tree yet |
126 |
- if use java; then |
127 |
- TSK_JAR_DIR="${T}/lib" |
128 |
- mkdir "${TSK_JAR_DIR}" || die |
129 |
- for f in ${A}; do |
130 |
- if [[ ${f} =~ .jar$ ]]; then |
131 |
- cp "${DISTDIR}"/"${f}" "${TSK_JAR_DIR}" || die |
132 |
- fi |
133 |
- done |
134 |
- export TSK_JAR_DIR |
135 |
- fi |
136 |
-} |
137 |
- |
138 |
-tsk_prepare_libewf() { |
139 |
- # Inlining breaks the compilation, disable it |
140 |
- sed -e 's/LIBUNA_INLINE inline/LIBUNA_INLINE/' \ |
141 |
- -i "${TSK_LIBEWF_SRCDIR}"/libuna/libuna_inline.h || die |
142 |
-} |
143 |
- |
144 |
-src_prepare() { |
145 |
- use ewf && tsk_prepare_libewf |
146 |
- |
147 |
- # Do not pass '-Werror'. This is overkill for user builds. |
148 |
- sed -e '/AM_CXXFLAGS/ s/-Werror//g' \ |
149 |
- -i tsk/util/Makefile.am \ |
150 |
- -i tsk/pool/Makefile.am || die |
151 |
- |
152 |
- if use java; then |
153 |
- pushd "${S}"/bindings/java &>/dev/null || die |
154 |
- |
155 |
- # Prevent "make install" from installing |
156 |
- # jar files under /usr/share/java |
157 |
- # We'll use the java eclasses for this |
158 |
- # See: https://github.com/sleuthkit/sleuthkit/pull/1379 |
159 |
- sed -e '/^jar_DATA/ d;' -i Makefile.am || die |
160 |
- |
161 |
- java-pkg-opt-2_src_prepare |
162 |
- |
163 |
- popd &>/dev/null || die |
164 |
- fi |
165 |
- |
166 |
- # Override the doxygen output directories |
167 |
- if use doc; then |
168 |
- sed -e "/^OUTPUT_DIRECTORY/ s|=.*$|= ${T}/doc|" \ |
169 |
- -i tsk/docs/Doxyfile \ |
170 |
- -i bindings/java/doxygen/Doxyfile || die |
171 |
- fi |
172 |
- |
173 |
- # It's safe to call this even after java-pkg-opt-2_src_prepare |
174 |
- # because future calls to eapply_user do nothing and return 0 |
175 |
- default |
176 |
- |
177 |
- eautoreconf |
178 |
-} |
179 |
- |
180 |
-tsk_compile_libewf() { |
181 |
- local myeconfargs=( |
182 |
- --prefix=/ |
183 |
- --libdir=/lib |
184 |
- --enable-static |
185 |
- --disable-shared |
186 |
- --disable-winapi |
187 |
- --without-libbfio |
188 |
- --with-zlib |
189 |
- --without-bzip2 |
190 |
- --without-libhmac |
191 |
- --without-openssl |
192 |
- --without-libuuid |
193 |
- --without-libfuse |
194 |
- |
195 |
- --with-libcstring=no |
196 |
- --with-libcerror=no |
197 |
- --with-libcdata=no |
198 |
- --with-libclocale=no |
199 |
- --with-libcnotify=no |
200 |
- --with-libcsplit=no |
201 |
- --with-libuna=no |
202 |
- --with-libcfile=no |
203 |
- --with-libcpath=no |
204 |
- --with-libbfio=no |
205 |
- --with-libfcache=no |
206 |
- --with-libfvalue=no |
207 |
- |
208 |
- ) |
209 |
- # We want to contain our build flags |
210 |
- local CFLAGS="${CFLAGS}" |
211 |
- local LDFLAGS="${LDFLAGS}" |
212 |
- |
213 |
- pushd "${TSK_LIBEWF_SRCDIR}" &>/dev/null || die |
214 |
- |
215 |
- # Produce relocatable code |
216 |
- CFLAGS+=" -fPIC" |
217 |
- LDFLAGS+=" -fPIC" |
218 |
- econf "${myeconfargs[@]}" |
219 |
- |
220 |
- # Do not waste CPU cycles on building ewftools |
221 |
- sed -e '/ewftools/ d' -i Makefile || die |
222 |
- emake |
223 |
- |
224 |
- # Only install the headers and the library |
225 |
- emake -C libewf DESTDIR="${T}"/image install |
226 |
- emake -C include DESTDIR="${T}"/image install |
227 |
- find "${T}"/image -name '*.la' -delete || die |
228 |
- |
229 |
- popd &>/dev/null || die |
230 |
-} |
231 |
- |
232 |
-src_configure() { |
233 |
- local myeconfargs=( |
234 |
- --enable-offline="${TSK_JAR_DIR}" |
235 |
- $(use_enable java) |
236 |
- $(use_enable static-libs static) |
237 |
- $(use_enable threads multithreading) |
238 |
- $(use_with aff afflib) |
239 |
- $(use_with zlib) |
240 |
- ) |
241 |
- # Workaround the automagic detection of postgresql |
242 |
- local -x ac_cv_lib_pq_PQlibVersion="$(usex postgres)" |
243 |
- # TODO: add support for non-existing libraries libvhdi and libvmdk |
244 |
- # myeconfargs+=( |
245 |
- # $(use_with vhdi libvhdi) |
246 |
- # $(use_with vmdk libvmdk) |
247 |
- # ) |
248 |
- myeconfargs+=( |
249 |
- --without-libvhdi |
250 |
- --without-libvmdk |
251 |
- ) |
252 |
- |
253 |
- use ewf && tsk_compile_libewf |
254 |
- myeconfargs+=( $(use_with ewf libewf "${T}"/image) ) |
255 |
- |
256 |
- if use java; then |
257 |
- pushd "${S}"/bindings/java &>/dev/null || die |
258 |
- java-ant-2_src_configure |
259 |
- popd &>/dev/null || die |
260 |
- fi |
261 |
- |
262 |
- econf "${myeconfargs[@]}" |
263 |
-} |
264 |
- |
265 |
-src_compile() { |
266 |
- # Give it an existing bogus ivy home #672220 |
267 |
- local -x IVY_HOME="${T}" |
268 |
- |
269 |
- # Create symlinks of jars for the required dependencies |
270 |
- if use java; then |
271 |
- pushd "${S}"/bindings/java &>/dev/null || die |
272 |
- |
273 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" c3p0 |
274 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-lang:3.1 |
275 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" guava:20 |
276 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" jdbc-postgresql |
277 |
- java-pkg_jar-from --into "${TSK_JAR_DIR}" joda-time |
278 |
- |
279 |
- popd &>/dev/null || die |
280 |
- fi |
281 |
- |
282 |
- # Create the doc output dirs if requested |
283 |
- if use doc; then |
284 |
- mkdir -p "${T}"/doc/{api-docs,jni-docs} || die |
285 |
- fi |
286 |
- |
287 |
- emake all $(usex doc api-docs "") |
288 |
-} |
289 |
- |
290 |
-src_install() { |
291 |
- local f |
292 |
- |
293 |
- if use java; then |
294 |
- pushd "${S}"/bindings/java &>/dev/null || die |
295 |
- |
296 |
- java-pkg_newjar "dist/${P}.jar" "${PN}.jar" |
297 |
- |
298 |
- # Install the bundled jar files |
299 |
- pushd "${TSK_JAR_DIR}" &>/dev/null || die |
300 |
- for f in *; do |
301 |
- # Skip the symlinks java-pkg_jar-from created |
302 |
- [[ -f ${f} ]] || continue |
303 |
- |
304 |
- # Strip the version numbers as per eclass recommendation |
305 |
- [[ ${f} =~ -([0-9]+\.)+jar$ ]] || continue |
306 |
- |
307 |
- java-pkg_newjar "${f}" "${f/${BASH_REMATCH[0]}/.jar}" |
308 |
- done |
309 |
- popd &>/dev/null || die |
310 |
- |
311 |
- popd &>/dev/null || die |
312 |
- fi |
313 |
- |
314 |
- default |
315 |
- |
316 |
- # It unconditionally builds both api and jni docs |
317 |
- # We install conditionally based on the provided use flags |
318 |
- if use doc; then |
319 |
- dodoc -r "${T}"/doc/api-docs |
320 |
- use java && dodoc -r "${T}"/doc/jni-docs |
321 |
- fi |
322 |
- |
323 |
- find "${D}" -name '*.la' -delete || die |
324 |
-} |