dev-libs/hashdb: new ebuild (need for app-forensics/bulk_extractor)

Package-Manager: Portage-2.3.62, Repoman-2.3.11
This commit is contained in:
Yury Martynov 2019-03-16 22:42:48 +03:00
parent 391a394e42
commit 7fa362bcc1
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
4 changed files with 95 additions and 0 deletions

1
dev-libs/hashdb/Manifest Normal file
View file

@ -0,0 +1 @@
DIST hashdb-3.1.0.tar.gz 746116 BLAKE2B e19e393715a0b86c9e751dc2d3eb1313c4e2ebe2e372780b0314d5bf531bd202f494b1fe7865a529ce7b9cfd6abd1ce831211b45264239daa78fa5d9833ee8c7 SHA512 2515102217f279b139cb62a71f138ae64b1a163196fcab3490b48afa9aee24c38af680380d9d2da66d89956a1d223bb0ecada1c4ab0748c118a5dc7a58498f42

View file

@ -0,0 +1,24 @@
diff -ur a/configure.ac b/configure.ac
--- a/configure.ac 2017-05-19 21:40:12.000000000 +0300
+++ b/configure.ac 2019-03-16 13:18:05.500004975 +0300
@@ -218,7 +218,7 @@
# LIBEWF is required for ingest and scan media interfaces
# Newer LIBEWF requires bz2
AC_CHECK_HEADER([libewf.h])
-AC_CHECK_LIB([ewf], libewf_handle_read_random, [], [AC_MSG_ERROR([Could not find libewf])])
+AC_CHECK_LIB([ewf], libewf_handle_read_buffer_at_offset, [], [AC_MSG_ERROR([Could not find libewf])])
if test x"$mingw" != x"yes"; then
AC_CHECK_LIB([bz2], BZ2_bzlibVersion, [], [AC_MSG_ERROR([Could not find bz2])])
fi
diff -ur a/src_libhashdb/hasher/ewf_file_reader.hpp b/src_libhashdb/hasher/ewf_file_reader.hpp
--- a/src_libhashdb/hasher/ewf_file_reader.hpp 2017-05-19 21:40:12.000000000 +0300
+++ b/src_libhashdb/hasher/ewf_file_reader.hpp 2019-03-16 13:21:05.563172559 +0300
@@ -186,7 +186,7 @@
size_t* const bytes_read) const {
libewf_error_t *error=0;
- ssize_t ret = libewf_handle_read_random(libewf_handle,buffer,buffer_size,
+ ssize_t ret = libewf_handle_read_buffer_at_offset(libewf_handle,buffer,buffer_size,
offset,&error);
if(ret<0){
*bytes_read = 0;

View file

@ -0,0 +1,58 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{4,5,6,7} )
inherit autotools flag-o-matic python-single-r1
DESCRIPTION="The hashdb block hash database tool and API"
HOMEPAGE="https://github.com/NPS-DEEP/hashdb"
SRC_URI="https://github.com/NPS-DEEP/hashdb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~hppa ~ppc ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
LICENSE="Unlicense"
RESTRICT="mirror"
SLOT="0"
IUSE="python static-libs"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="
app-forensics/libewf
dev-libs/icu
dev-libs/openssl:0=
python? ( ${PYTHON_DEPS} )
sys-libs/zlib"
DEPEND="${RDEPEND}
python? ( dev-lang/swig )
sys-devel/libtool"
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
eapply "${FILESDIR}"/fix_undefined_reference_to_libewf_handle_read_random.patch
eautoreconf
eapply_user
}
src_configure() {
append-cxxflags -std=c++11
econf \
--without-o3 \
$(use_enable python SWIG_Python) \
$(use_enable static-libs static)
}
src_install() {
default
if use python; then
rm -f "${D%/}$(python_get_sitedir)"/*.a || die
fi
if ! use static-libs; then
find "${D}" -name '*.la' -delete || die
fi
}

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
</pkgmetadata>