diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /app-forensics/sleuthkit | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'app-forensics/sleuthkit')
-rw-r--r-- | app-forensics/sleuthkit/Manifest | 9 | ||||
-rw-r--r-- | app-forensics/sleuthkit/sleuthkit-4.10.1-r5.ebuild (renamed from app-forensics/sleuthkit/sleuthkit-4.10.1-r4.ebuild) | 6 | ||||
-rw-r--r-- | app-forensics/sleuthkit/sleuthkit-4.11.0.ebuild | 296 | ||||
-rw-r--r-- | app-forensics/sleuthkit/sleuthkit-4.11.1-r1.ebuild (renamed from app-forensics/sleuthkit/sleuthkit-4.11.1.ebuild) | 4 | ||||
-rw-r--r-- | app-forensics/sleuthkit/sleuthkit-4.9.0-r1.ebuild | 298 |
5 files changed, 7 insertions, 606 deletions
diff --git a/app-forensics/sleuthkit/Manifest b/app-forensics/sleuthkit/Manifest index 98c0bf48379e..950642ada999 100644 --- a/app-forensics/sleuthkit/Manifest +++ b/app-forensics/sleuthkit/Manifest @@ -1,18 +1,13 @@ AUX sleuthkit-4.1.0-tools-shared-libs.patch 1678 BLAKE2B f60496480425fd78bc211a663be80db2472a9683f1ff76c747f8190d5544df532857f6e1fb4343d0405f8bf51aa7b7bf86ed55fffbeea0153341ce9f2dca077b SHA512 b559f669837194bed447ac269884ab50e6ea746aba2df799688964245c22814567871f12f96d43ba74016d5c448247b02bef5d7bdfd32fd782ef5e668686238e AUX sleuthkit-4.10.1-exclude-usr-local.patch 858 BLAKE2B 706aee34f3555fb703e2b2d88ebe63919b02ac93f1627dda12116bea89f0303a5d4b9adc5f1695e4e96d643d09f88514fe41d144fca1a4f8cd7618b22d21b2f7 SHA512 a4d5d31b63483e6fb88c4a1b06f40587d2b66f63092c67755fec41c29e9f671e9e2e508c0752d2894e77b059a96ae15fd33e663fd23a13dad16acf5184959c88 AUX sleuthkit-4.6.4-default-jar-location-fix.patch 1768 BLAKE2B d9a0675223506649a5db7aa4e0ef883ecea84c8484836d2020528696f13e14bbe9334c2967c7b698126fb1cedd6a6719fbbe3fb945b4ea9b89d643a61232d5e8 SHA512 acc076ca74d3e5d7c75425292730783801a7afe858ea119186229a319ba4fd2e076c1214daca3e4aa3d5a7717c5ed08a9ca0bf11bb4dc2a04d3aad190dbf57c6 -DIST SparseBitSet-1.1.jar 23706 BLAKE2B 8623a723f11f97386a108c775fefddd324997b68bea7f7ade0581ec5800bfa8d32f699ab903ad66c631b7b5c69ba1ef377243653f5044f39234dac07543eb129 SHA512 cf75431c5f705961800ce5cbca2acb9b2459eaf98ec37b5ee21c5a90d204ffb466fa25457b0560fbb024489777efbea0276201024c7b1b2853124930ac490983 DIST commons-validator-1.6.jar 186077 BLAKE2B 39080bebfde71d87847b65f212d47a51bab9567cb0aaf7122359a67a8eb817877a6cc80495a15aefb12936d0e36532ed771dc0a2dff8401fc301f658ed38ef88 SHA512 aded530d3b79ead6ba5c44668c6d6964d7721f9617249f6aaa1c8f558ad4b3d3c1b6d78b639a4cb8dd27a671879b662fdbba0502fd04e131f3286169507df30c DIST gson-2.8.5.jar 241622 BLAKE2B b13887177b5d5f2a11b2dde1fdbaa3a95b55bb7b5500624c7eb0745e861c897ed1e27868bad19d30a1670c90f3068a8fd40e1b81e5e25e96819fa5c371a5e1af SHA512 5dd7214c542a7b93aab3eab0ba13e4ac3d6ddb05c795fb6d3992e21925a98dce87cb186ac67b4d3ad146f96e14d38b3892837eca57a27b4e845aca6d4e4f708a DIST sleuthkit-4.10.1.tar.gz 3524246 BLAKE2B ddea16693730a993032868ea60423d4bfcf3cba470010854c7bd36ab0a033325d906a0e4760501d59fdda4f37e12052f8672d33e4e374d1a6cdb03e22d0de367 SHA512 3ee335ba98bbb16985207ad50bc15a607ea2bcf550bba392be1cace8982c893a29e9de64e6598d02f41f9f745dc720f829317ed31f068e6cb1f6c230699e47bf -DIST sleuthkit-4.11.0.tar.gz 3619891 BLAKE2B ce18579d1e82ab26fd05c92da6bac84a50b856b321fa9cb21c42cb36c1795794e72b71225b392b1a3f732738e9da0161c4e93c17359730ab6dabba6fa3a77154 SHA512 fabaf0e7815145f82cf7d8c342d403939511afa36f29318a89212a8aa1a3465e2050629ff9e308b34cfeb3c2c98efa94f9546737cba749c075c4e583b8808580 DIST sleuthkit-4.11.1.tar.gz 3718417 BLAKE2B 4ce1fa68f770e61942e00e6a05ac751afdd7f33d781ec1069e9a8cb9a27d22f0ed506e9affeaddaf9ecfa98e6d30f468314b5a00d35b20ba01fc312765dbef14 SHA512 04e4ca1c18bda56c816aa493eb3b887f2f62162e16c35079d4208b89464a78109fc189fec55ea6db8a60ab01a4e46c87902f00286abee203ff0c53ab572cfeda -DIST sleuthkit-4.9.0.tar.gz 3473764 BLAKE2B 3950e586595f53a81c845b3b1fbaf4939a84ee3d81e8141cabf41c9fbee1b1f5cf1b8bd6cab95b157d60364541736f750c8ada61c76da89e663721b9a67330ef SHA512 1db8b9f825aa551fe5bdf01285832b903fb4f2d6a8fd9a57a5cd5c9005dfdbec22d3dd49d394616d838e2a2111110018e787f2ed467a1c27a500fc75bed0dd0b DIST sleuthkit-libewf_64bit-20130416.tar.gz 23818247 BLAKE2B 23be933ed8a74e4834ee6571a28d81ba16e98e4e4e27b5b1b3b655d1d92a6eadcba35aadf96aa404e6e0a225b27f3f5daff2836879b87fe58440a3ad5645de44 SHA512 611cbb57de17600caee0330bbe9917c4481d7711a35dba8c072fd49cd3e1714e0a3ce30fd8fcac9981db848e80870bf5d215326c56808bb6f5b4c8dcc1e5a3c9 DIST sqlite-jdbc-3.25.2.jar 7064881 BLAKE2B 3917da6127137bab710a9e61f326f59320ce94654ebb8ae5e694b05aed6b9b1bd367ade2f08ce5bb52c3ac296992240ad949969f5eff712615d07a18588c6a17 SHA512 efd1ea26d7f4f9bc66bf0d5f80234a0c535829bd498e4c5a0cab42873b58ac69133497d8c45689a1d3a39e657a2d0474d6b930c7bc415dd623801ee4a7354ffb EBUILD sleuthkit-4.10.1-r3.ebuild 8387 BLAKE2B 832c89db383af53b50b5bae028ec6aafce52f42fedb73ade88894af8f8c7f76fb46d0fe2177c459aa28307144399ff5962d92323db5fdd98a33e71180940452c SHA512 1ff1f735609032ca8d46196f202195369e31e8a8bea90d5be5e5e6807f0dae0a4e910c07a3efff8e28e00a3beb81bfbd97d5923acab033b929a8a29ee3e93286 -EBUILD sleuthkit-4.10.1-r4.ebuild 7873 BLAKE2B 27dc0eb205ec70dd4949f00539ffe4cf6824b2c0727ee05151e46a099b4727482eebd79454a9a1ca6e34dfc9287213ab6592599ccc3ed4fe05adfeb603e70dc7 SHA512 7f7e7ecd7f4282c0ac9144d2a4dd3aafd2883dd81037335a1c68c842781786f56c90cf9ab0a5031b7c051734e8551694b0c97ef3a7b1013af15f0041da6f298d -EBUILD sleuthkit-4.11.0.ebuild 7873 BLAKE2B 27dc0eb205ec70dd4949f00539ffe4cf6824b2c0727ee05151e46a099b4727482eebd79454a9a1ca6e34dfc9287213ab6592599ccc3ed4fe05adfeb603e70dc7 SHA512 7f7e7ecd7f4282c0ac9144d2a4dd3aafd2883dd81037335a1c68c842781786f56c90cf9ab0a5031b7c051734e8551694b0c97ef3a7b1013af15f0041da6f298d -EBUILD sleuthkit-4.11.1.ebuild 8320 BLAKE2B 1b621be9383b949536b336008769299d59b6fe7f09118bb12d1eed89a99b615225ae0e05bde9bc30631b9c0d5170e48b5df7f9406d092bf0a077b004addb908e SHA512 e9c0c39e9653353ffe121e48f85769a1bb95db0a92f244d83a6a8db5595f36b161e04ee4a3f3b9c21a64fbfc8bfbdbbd64fb1880ae7de85984d0b31d9c514fb7 -EBUILD sleuthkit-4.9.0-r1.ebuild 8231 BLAKE2B 7b4f0e8dd2d27fe04c9206b1f9730457f3f66d872bb03cedd2ac7c59b9f25bf9a690ba44e8d7c4b3c8088835dd7ccb0d3d74bc86869994e08b07b2596213ad1e SHA512 686c92fd1fe586c9f77f166e37a6a22b71f8eb9d43961873ab41b9fddf81c949895b40c7349ca85e326a5e9f79df8310347eb13828c035dde132d49a49655628 +EBUILD sleuthkit-4.10.1-r5.ebuild 7869 BLAKE2B 33799750817fe23eec655770f4e3af6a55c173d7924b6ccee9bb064b1d213849e1f4594d8f7c518637aa0ea9396e205190e9e9e459f88f2b5c15c3ff4ca20c62 SHA512 34548ccea8fea1e0ad79bcf2ae3a9610f69b6c4e972cecfd3c9fcecc468b6f28d1847be9d3b17621895e17f7759bc8564bc2a964d1ffce0fc0eeec09fdee3531 +EBUILD sleuthkit-4.11.1-r1.ebuild 8316 BLAKE2B 8f3c29334299cbde16fed19b86d1f44d6a8e7afa6b06d3bb7b1b1681e81da64662691ccae22789817e77890c1fb551d14fd57cedbe2fb836d4010b3f1eadba02 SHA512 5292e74a8ce4fc34b0c89f5533c43666d71ebcd3e393c21114de99ec2fe632dd1ce14ad939fb205ece4ce416030fb47349753e4e2359637b5e6c2ef425859302 MISC metadata.xml 608 BLAKE2B 4ffbcef7c2ce2700da294752bdc19b2e98323f2fe3f73aa8f8bfe430fa6a148b8a464959a21300398ae4f6933f1383bc014a697283d148dcbe9616e6a38b01d6 SHA512 59fc9a08d8fa875adc1b9cf8a2f47e38611e474a160ef00a7b75582601cb503bb10f19ab303487658d5f16c25991eba2b7a98d4ff5182b8c4ca8dc6e905a04f3 diff --git a/app-forensics/sleuthkit/sleuthkit-4.10.1-r4.ebuild b/app-forensics/sleuthkit/sleuthkit-4.10.1-r5.ebuild index 78faebc794c0..2376e0f7e793 100644 --- a/app-forensics/sleuthkit/sleuthkit-4.10.1-r4.ebuild +++ b/app-forensics/sleuthkit/sleuthkit-4.10.1-r5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -36,7 +36,7 @@ DEPEND=" dev-java/commons-lang:3.6 >=dev-java/commons-validator-1.6:0 >=dev-java/gson-2.8.5:2.6 - dev-java/guava:20 + dev-java/guava:0 >=dev-java/jdbc-postgresql-9.4:0 >=dev-java/joda-time-2.4:0 dev-java/sparsebitset:0 @@ -232,7 +232,7 @@ src_compile() { java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-lang:3.6 java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-validator java-pkg_jar-from --into "${TSK_JAR_DIR}" gson:2.6 - java-pkg_jar-from --into "${TSK_JAR_DIR}" guava:20 + java-pkg_jar-from --into "${TSK_JAR_DIR}" guava java-pkg_jar-from --into "${TSK_JAR_DIR}" jdbc-postgresql java-pkg_jar-from --into "${TSK_JAR_DIR}" joda-time java-pkg_jar-from --into "${TSK_JAR_DIR}" sparsebitset diff --git a/app-forensics/sleuthkit/sleuthkit-4.11.0.ebuild b/app-forensics/sleuthkit/sleuthkit-4.11.0.ebuild deleted file mode 100644 index 78faebc794c0..000000000000 --- a/app-forensics/sleuthkit/sleuthkit-4.11.0.ebuild +++ /dev/null @@ -1,296 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -JAVA_PKG_BSFIX_NAME="build.xml build-unix.xml" -inherit autotools java-pkg-opt-2 java-ant-2 - -DESCRIPTION="A collection of file system and media management forensic analysis tools" -HOMEPAGE="https://www.sleuthkit.org/sleuthkit/" -# TODO: sqlite-jdbc does not exist in the tree, we bundle it for now -# See: https://bugs.gentoo.org/690010 -# TODO: Upstream uses a very specific version of libewf which is not in -# the tree anymore. So we statically compile and link to sleuthkit. -# Hopefully upstream will figure something out in the future. -# See: https://bugs.gentoo.org/689752 -SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz - java? ( - http://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.25.2/sqlite-jdbc-3.25.2.jar - ) - ewf? ( https://github.com/sleuthkit/libewf_64bit/archive/VisualStudio_2010.tar.gz -> sleuthkit-libewf_64bit-20130416.tar.gz )" - -LICENSE="BSD CPL-1.0 GPL-2+ IBM java? ( Apache-2.0 )" -SLOT="0/19" # subslot = major soname version -KEYWORDS="~amd64 ~hppa ~ppc ~x86" -IUSE="aff doc ewf java static-libs test +threads zlib" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-db/sqlite:3 - dev-lang/perl:* - aff? ( app-forensics/afflib ) - ewf? ( sys-libs/zlib ) - java? ( - >=dev-java/c3p0-0.9.5:0 - dev-java/commons-lang:3.6 - >=dev-java/commons-validator-1.6:0 - >=dev-java/gson-2.8.5:2.6 - dev-java/guava:20 - >=dev-java/jdbc-postgresql-9.4:0 - >=dev-java/joda-time-2.4:0 - dev-java/sparsebitset:0 - ) - zlib? ( sys-libs/zlib ) -" -# TODO: add support for not-in-tree libraries libvhdi and libvmdk -# libvhdi: https://github.com/libyal/libvhdi -# libvmdk: https://github.com/libyal/libvmdk -# DEPEND="${DEPEND} -# vhdi? ( dev-libs/libvhdi ) -# vmdk? ( dev-libs/libvmdk ) -# " - -RDEPEND="${DEPEND} - java? ( virtual/jre:1.8 ) -" -DEPEND="${DEPEND} - java? ( virtual/jdk:1.8 ) - test? ( >=dev-util/cppunit-1.2.1 ) -" -BDEPEND=" - doc? ( app-doc/doxygen ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-4.1.0-tools-shared-libs.patch - "${FILESDIR}"/${PN}-4.6.4-default-jar-location-fix.patch - "${FILESDIR}"/${PN}-4.10.1-exclude-usr-local.patch -) - -src_unpack() { - local f - - unpack ${P}.tar.gz - - if use ewf; then - pushd "${T}" &>/dev/null || die - unpack sleuthkit-libewf_64bit-20130416.tar.gz - export TSK_LIBEWF_SRCDIR="${T}"/libewf_64bit-VisualStudio_2010 - popd &>/dev/null || die - fi - - # Copy the jar files that don't exist in the tree yet - if use java; then - TSK_JAR_DIR="${T}/lib" - mkdir "${TSK_JAR_DIR}" || die - for f in ${A}; do - if [[ ${f} =~ .jar$ ]]; then - cp "${DISTDIR}"/"${f}" "${TSK_JAR_DIR}" || die - fi - done - export TSK_JAR_DIR - fi -} - -tsk_prepare_libewf() { - # Inlining breaks the compilation, disable it - sed -e 's/LIBUNA_INLINE inline/LIBUNA_INLINE/' \ - -i "${TSK_LIBEWF_SRCDIR}"/libuna/libuna_inline.h || die -} - -src_prepare() { - use ewf && tsk_prepare_libewf - - # Do not pass '-Werror'. This is overkill for user builds. - sed -e '/AM_CXXFLAGS/ s/-Werror//g' \ - -i tsk/util/Makefile.am \ - -i tsk/pool/Makefile.am || die - # Remove -static from LDFLAGS because it doesn't actually create - # a static binary. It confuses libtool, who then inserts rpath - sed -e '/LDFLAGS/ s/-static//' \ - -i tools/pooltools/Makefile.am || die - - if use java; then - pushd "${S}"/bindings/java &>/dev/null || die - - # Prevent "make install" from installing - # jar files under /usr/share/java - # We'll use the java eclasses for this - # See: https://github.com/sleuthkit/sleuthkit/pull/1379 - sed -e '/^jar_DATA/ d;' -i Makefile.am || die - - java-pkg-opt-2_src_prepare - - popd &>/dev/null || die - fi - - # Override the doxygen output directories - if use doc; then - sed -e "/^OUTPUT_DIRECTORY/ s|=.*$|= ${T}/doc|" \ - -i tsk/docs/Doxyfile \ - -i bindings/java/doxygen/Doxyfile || die - fi - - # It's safe to call this even after java-pkg-opt-2_src_prepare - # because future calls to eapply_user do nothing and return 0 - default - - eautoreconf -} - -tsk_compile_libewf() { - local myeconfargs=( - --prefix=/ - --libdir=/lib - --enable-static - --disable-shared - --disable-winapi - --without-libbfio - --with-zlib - --without-bzip2 - --without-libhmac - --without-openssl - --without-libuuid - --without-libfuse - - --with-libcstring=no - --with-libcerror=no - --with-libcdata=no - --with-libclocale=no - --with-libcnotify=no - --with-libcsplit=no - --with-libuna=no - --with-libcfile=no - --with-libcpath=no - --with-libbfio=no - --with-libfcache=no - --with-libfvalue=no - - ) - # We want to contain our build flags - local CFLAGS="${CFLAGS}" - local LDFLAGS="${LDFLAGS}" - - pushd "${TSK_LIBEWF_SRCDIR}" &>/dev/null || die - - # Produce relocatable code - CFLAGS+=" -fPIC" - LDFLAGS+=" -fPIC" - econf "${myeconfargs[@]}" - - # Do not waste CPU cycles on building ewftools - sed -e '/ewftools/ d' -i Makefile || die - emake - - # Only install the headers and the library - emake -C libewf DESTDIR="${T}"/image install - emake -C include DESTDIR="${T}"/image install - find "${T}"/image -name '*.la' -delete || die - - popd &>/dev/null || die -} - -src_configure() { - local myeconfargs=( - --enable-offline="${TSK_JAR_DIR}" - $(use_enable java) - $(use_enable static-libs static) - $(use_enable threads multithreading) - $(use_with aff afflib) - $(use_with zlib) - ) - # TODO: add support for non-existing libraries libvhdi and libvmdk - # myeconfargs+=( - # $(use_with vhdi libvhdi) - # $(use_with vmdk libvmdk) - # ) - myeconfargs+=( - --without-libvhdi - --without-libvmdk - ) - - use ewf && tsk_compile_libewf - myeconfargs+=( $(use_with ewf libewf "${T}"/image) ) - - if use java; then - pushd "${S}"/bindings/java &>/dev/null || die - java-ant-2_src_configure - popd &>/dev/null || die - fi - - econf "${myeconfargs[@]}" -} - -src_compile() { - # Give it an existing bogus ivy home #672220 - local -x IVY_HOME="${T}" - - # Create symlinks of jars for the required dependencies - if use java; then - java-pkg_jar-from --into "${TSK_JAR_DIR}" c3p0 - java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-lang:3.6 - java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-validator - java-pkg_jar-from --into "${TSK_JAR_DIR}" gson:2.6 - java-pkg_jar-from --into "${TSK_JAR_DIR}" guava:20 - java-pkg_jar-from --into "${TSK_JAR_DIR}" jdbc-postgresql - java-pkg_jar-from --into "${TSK_JAR_DIR}" joda-time - java-pkg_jar-from --into "${TSK_JAR_DIR}" sparsebitset - - # case-uco needs gson and expects it under case-uco/java/lib - # symlink it to the jar dir we create for java bindings - ln -s "${TSK_JAR_DIR}" "${S}"/case-uco/java/lib || die - ln -s ./gson.jar "${TSK_JAR_DIR}"/gson-2.8.5.jar || die - fi - - # Create the doc output dirs if requested - if use doc; then - mkdir -p "${T}"/doc/{api-docs,jni-docs} || die - fi - - emake all $(usex doc api-docs "") -} - -src_install() { - # Give it an existing bogus ivy home #756766 - local -x IVY_HOME="${T}" - local f - - if use java; then - pushd "${S}"/bindings/java &>/dev/null || die - - # Install case-uco - pushd "${S}"/case-uco/java &>/dev/null || die - java-pkg_newjar "dist/${PN}-caseuco-${PV}".jar "${PN}-caseuco.jar" - popd || die - - # Install the bundled jar files as well as the - # sleuthkit jar installed here by case-uco - pushd "${TSK_JAR_DIR}" &>/dev/null || die - for f in *; do - # Skip the symlinks java-pkg_jar-from created - [[ -f ${f} ]] || continue - - # Strip the version numbers as per eclass recommendation - [[ ${f} =~ -([0-9]+\.)+jar$ ]] || continue - - java-pkg_newjar "${f}" "${f/${BASH_REMATCH[0]}/.jar}" - done - popd &>/dev/null || die - - popd &>/dev/null || die - fi - - default - # Default install target for case-uco installs the jar in the wrong place - rm -r "${ED}"/usr/share/java - - # It unconditionally builds both api and jni docs - # We install conditionally based on the provided use flags - if use doc; then - dodoc -r "${T}"/doc/api-docs - use java && dodoc -r "${T}"/doc/jni-docs - fi - - find "${D}" -name '*.la' -delete || die -} diff --git a/app-forensics/sleuthkit/sleuthkit-4.11.1.ebuild b/app-forensics/sleuthkit/sleuthkit-4.11.1-r1.ebuild index 0221dca95e72..145498c3e809 100644 --- a/app-forensics/sleuthkit/sleuthkit-4.11.1.ebuild +++ b/app-forensics/sleuthkit/sleuthkit-4.11.1-r1.ebuild @@ -36,7 +36,7 @@ DEPEND=" dev-java/commons-lang:3.6 >=dev-java/commons-validator-1.6:0 >=dev-java/gson-2.8.5:2.6 - dev-java/guava:20 + dev-java/guava:0 >=dev-java/jdbc-postgresql-9.4:0 >=dev-java/joda-time-2.4:0 dev-java/sparsebitset:0 @@ -245,7 +245,7 @@ src_compile() { java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-lang:3.6 java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-validator java-pkg_jar-from --into "${TSK_JAR_DIR}" gson:2.6 - java-pkg_jar-from --into "${TSK_JAR_DIR}" guava:20 + java-pkg_jar-from --into "${TSK_JAR_DIR}" guava java-pkg_jar-from --into "${TSK_JAR_DIR}" jdbc-postgresql java-pkg_jar-from --into "${TSK_JAR_DIR}" joda-time java-pkg_jar-from --into "${TSK_JAR_DIR}" sparsebitset diff --git a/app-forensics/sleuthkit/sleuthkit-4.9.0-r1.ebuild b/app-forensics/sleuthkit/sleuthkit-4.9.0-r1.ebuild deleted file mode 100644 index 14c04f32bf32..000000000000 --- a/app-forensics/sleuthkit/sleuthkit-4.9.0-r1.ebuild +++ /dev/null @@ -1,298 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -JAVA_PKG_BSFIX_NAME="build.xml build-unix.xml" -inherit autotools java-pkg-opt-2 java-ant-2 - -DESCRIPTION="A collection of file system and media management forensic analysis tools" -HOMEPAGE="https://www.sleuthkit.org/sleuthkit/" -# TODO: sqlite-jdbc does not exist in the tree, we bundle it for now -# See: https://bugs.gentoo.org/690010 -# TODO: SparseBitSet does not exist in the tree, we bundle it for now -# See: https://bugs.gentoo.org/690012 -# TODO: Upstream uses a very specific version of libewf which is not in -# the tree anymore. So we statically compile and link to sleuthkit. -# Hopefully upstream will figure something out in the future. -# See: https://bugs.gentoo.org/689752 -# TODO: gson-2.8.5 does not exist in the tree. Building it seems to -# require Java 9. We have Java 11 in the tree but I don't see a -# way to use it as a gentoo-vm in order to build gson. Sleuthkit -# upstream still uses Java 8. -# See: https://bugs.gentoo.org/706274 -# TODO: commons-validator-1.6 does not exist in the tree. The latest version -# as of writing this ebuild is 1.4.1, for which the build fails. As -# per #711930, this is a security sensitive bump. We're gonna fetch -# the jar file here and file a bug request for a bump as well: -# https://bugs.gentoo.org/721020 -SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz - java? ( - https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar - http://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.25.2/sqlite-jdbc-3.25.2.jar - http://repo1.maven.org/maven2/com/zaxxer/SparseBitSet/1.1/SparseBitSet-1.1.jar - https://repo1.maven.org/maven2/commons-validator/commons-validator/1.6/commons-validator-1.6.jar - ) - ewf? ( https://github.com/sleuthkit/libewf_64bit/archive/VisualStudio_2010.tar.gz -> sleuthkit-libewf_64bit-20130416.tar.gz )" - -LICENSE="BSD CPL-1.0 GPL-2+ IBM java? ( Apache-2.0 )" -SLOT="0/13" # subslot = major soname version -KEYWORDS="amd64 ~hppa ppc x86" -IUSE="aff doc ewf java postgres static-libs test +threads zlib" -RESTRICT="!test? ( test )" - -# -# Note: It is not possible to move the dep on dev-java/jdbc-postgresql -# inside a conditional postgres? block because java sources import -# org.postgres unconditionally as of writing this (version 4.6.4). The -# postgres USE flag will be used for the TSK postgresql support however. -# -DEPEND=" - dev-db/sqlite:3 - dev-lang/perl:* - aff? ( app-forensics/afflib ) - ewf? ( sys-libs/zlib ) - java? ( - >=dev-java/c3p0-0.9.5:0 - dev-java/commons-lang:3.6 - dev-java/guava:20 - >=dev-java/jdbc-postgresql-9.4:0 - >=dev-java/joda-time-2.4:0 - ) - postgres? ( dev-db/postgresql:= ) - zlib? ( sys-libs/zlib ) -" -# TODO: add support for not-in-tree libraries libvhdi and libvmdk -# libvhdi: https://github.com/libyal/libvhdi -# libvmdk: https://github.com/libyal/libvmdk -# DEPEND="${DEPEND} -# vhdi? ( dev-libs/libvhdi ) -# vmdk? ( dev-libs/libvmdk ) -# " - -RDEPEND="${DEPEND} - java? ( virtual/jre:1.8 ) -" -DEPEND="${DEPEND} - java? ( virtual/jdk:1.8 ) - doc? ( app-doc/doxygen ) - test? ( >=dev-util/cppunit-1.2.1 ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-4.1.0-tools-shared-libs.patch - "${FILESDIR}"/${PN}-4.6.4-default-jar-location-fix.patch -) - -src_unpack() { - local f - - unpack ${P}.tar.gz - - if use ewf; then - pushd "${T}" &>/dev/null || die - unpack sleuthkit-libewf_64bit-20130416.tar.gz - export TSK_LIBEWF_SRCDIR="${T}"/libewf_64bit-VisualStudio_2010 - popd &>/dev/null || die - fi - - # Copy the jar files that don't exist in the tree yet - if use java; then - TSK_JAR_DIR="${T}/lib" - mkdir "${TSK_JAR_DIR}" || die - for f in ${A}; do - if [[ ${f} =~ .jar$ ]]; then - cp "${DISTDIR}"/"${f}" "${TSK_JAR_DIR}" || die - fi - done - export TSK_JAR_DIR - fi -} - -tsk_prepare_libewf() { - # Inlining breaks the compilation, disable it - sed -e 's/LIBUNA_INLINE inline/LIBUNA_INLINE/' \ - -i "${TSK_LIBEWF_SRCDIR}"/libuna/libuna_inline.h || die -} - -src_prepare() { - use ewf && tsk_prepare_libewf - - # Do not pass '-Werror'. This is overkill for user builds. - sed -e '/AM_CXXFLAGS/ s/-Werror//g' \ - -i tsk/util/Makefile.am \ - -i tsk/pool/Makefile.am || die - - if use java; then - pushd "${S}"/bindings/java &>/dev/null || die - - # Prevent "make install" from installing - # jar files under /usr/share/java - # We'll use the java eclasses for this - # See: https://github.com/sleuthkit/sleuthkit/pull/1379 - sed -e '/^jar_DATA/ d;' -i Makefile.am || die - - java-pkg-opt-2_src_prepare - - popd &>/dev/null || die - fi - - # Override the doxygen output directories - if use doc; then - sed -e "/^OUTPUT_DIRECTORY/ s|=.*$|= ${T}/doc|" \ - -i tsk/docs/Doxyfile \ - -i bindings/java/doxygen/Doxyfile || die - fi - - # It's safe to call this even after java-pkg-opt-2_src_prepare - # because future calls to eapply_user do nothing and return 0 - default - - eautoreconf -} - -tsk_compile_libewf() { - local myeconfargs=( - --prefix=/ - --libdir=/lib - --enable-static - --disable-shared - --disable-winapi - --without-libbfio - --with-zlib - --without-bzip2 - --without-libhmac - --without-openssl - --without-libuuid - --without-libfuse - - --with-libcstring=no - --with-libcerror=no - --with-libcdata=no - --with-libclocale=no - --with-libcnotify=no - --with-libcsplit=no - --with-libuna=no - --with-libcfile=no - --with-libcpath=no - --with-libbfio=no - --with-libfcache=no - --with-libfvalue=no - - ) - # We want to contain our build flags - local CFLAGS="${CFLAGS}" - local LDFLAGS="${LDFLAGS}" - - pushd "${TSK_LIBEWF_SRCDIR}" &>/dev/null || die - - # Produce relocatable code - CFLAGS+=" -fPIC" - LDFLAGS+=" -fPIC" - econf "${myeconfargs[@]}" - - # Do not waste CPU cycles on building ewftools - sed -e '/ewftools/ d' -i Makefile || die - emake - - # Only install the headers and the library - emake -C libewf DESTDIR="${T}"/image install - emake -C include DESTDIR="${T}"/image install - find "${T}"/image -name '*.la' -delete || die - - popd &>/dev/null || die -} - -src_configure() { - local myeconfargs=( - --enable-offline="${TSK_JAR_DIR}" - $(use_enable java) - $(use_enable static-libs static) - $(use_enable threads multithreading) - $(use_with aff afflib) - $(use_with zlib) - ) - # Workaround the automagic detection of postgresql - local -x ac_cv_lib_pq_PQlibVersion="$(usex postgres)" - # TODO: add support for non-existing libraries libvhdi and libvmdk - # myeconfargs+=( - # $(use_with vhdi libvhdi) - # $(use_with vmdk libvmdk) - # ) - myeconfargs+=( - --without-libvhdi - --without-libvmdk - ) - - use ewf && tsk_compile_libewf - myeconfargs+=( $(use_with ewf libewf "${T}"/image) ) - - if use java; then - pushd "${S}"/bindings/java &>/dev/null || die - java-ant-2_src_configure - popd &>/dev/null || die - fi - - econf "${myeconfargs[@]}" -} - -src_compile() { - # Give it an existing bogus ivy home #672220 - local -x IVY_HOME="${T}" - - # Create symlinks of jars for the required dependencies - if use java; then - pushd "${S}"/bindings/java &>/dev/null || die - - java-pkg_jar-from --into "${TSK_JAR_DIR}" c3p0 - java-pkg_jar-from --into "${TSK_JAR_DIR}" commons-lang:3.6 - java-pkg_jar-from --into "${TSK_JAR_DIR}" guava:20 - java-pkg_jar-from --into "${TSK_JAR_DIR}" jdbc-postgresql - java-pkg_jar-from --into "${TSK_JAR_DIR}" joda-time - - popd &>/dev/null || die - fi - - # Create the doc output dirs if requested - if use doc; then - mkdir -p "${T}"/doc/{api-docs,jni-docs} || die - fi - - emake all $(usex doc api-docs "") -} - -src_install() { - local f - - if use java; then - pushd "${S}"/bindings/java &>/dev/null || die - - java-pkg_newjar "dist/${P}.jar" "${PN}.jar" - - # Install the bundled jar files - pushd "${TSK_JAR_DIR}" &>/dev/null || die - for f in *; do - # Skip the symlinks java-pkg_jar-from created - [[ -f ${f} ]] || continue - - # Strip the version numbers as per eclass recommendation - [[ ${f} =~ -([0-9]+\.)+jar$ ]] || continue - - java-pkg_newjar "${f}" "${f/${BASH_REMATCH[0]}/.jar}" - done - popd &>/dev/null || die - - popd &>/dev/null || die - fi - - default - - # It unconditionally builds both api and jni docs - # We install conditionally based on the provided use flags - if use doc; then - dodoc -r "${T}"/doc/api-docs - use java && dodoc -r "${T}"/doc/jni-docs - fi - - find "${D}" -name '*.la' -delete || die -} |