From nobody Thu Oct 28 15:28:50 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1EB3D182DC74; Thu, 28 Oct 2021 15:28:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hg8bk4Ym8z4XCH; Thu, 28 Oct 2021 15:28:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4A30825D76; Thu, 28 Oct 2021 15:28:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19SFSoPB003307; Thu, 28 Oct 2021 15:28:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19SFSoH4003306; Thu, 28 Oct 2021 15:28:50 GMT (envelope-from git) Date: Thu, 28 Oct 2021 15:28:50 GMT Message-Id: <202110281528.19SFSoH4003306@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: MANTANI Nobutaka Subject: git: 32a51f6e9fbe - main - sysutils/bulk_extractor: Update to 2.0.0-beta2 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nobutaka X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 32a51f6e9fbe72b52be17a8c5569314b97ef116b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nobutaka: URL: https://cgit.FreeBSD.org/ports/commit/?id=32a51f6e9fbe72b52be17a8c5569314b97ef116b commit 32a51f6e9fbe72b52be17a8c5569314b97ef116b Author: MANTANI Nobutaka AuthorDate: 2021-10-28 15:26:33 +0000 Commit: MANTANI Nobutaka CommitDate: 2021-10-28 15:27:13 +0000 sysutils/bulk_extractor: Update to 2.0.0-beta2 --- sysutils/bulk_extractor/Makefile | 23 +++---- sysutils/bulk_extractor/distinfo | 5 +- .../patch-plugins_dfxml_src_dfxml__configure.m4 | 8 --- .../files/patch-plugins_dfxml_src_hash__t.h | 78 ---------------------- .../files/patch-src__dfxml__src__dfxml_writer.cpp | 19 ------ .../files/patch-src__image_process.h | 11 --- .../bulk_extractor/files/patch-src__scan_exiv2.cpp | 24 ------- .../files/patch-src_dfxml_src_dfxml__configure.m4 | 8 --- .../files/patch-src_dfxml_src_hash__t.h | 78 ---------------------- 9 files changed, 11 insertions(+), 243 deletions(-) diff --git a/sysutils/bulk_extractor/Makefile b/sysutils/bulk_extractor/Makefile index d215a244a28e..fca59c797ef9 100644 --- a/sysutils/bulk_extractor/Makefile +++ b/sysutils/bulk_extractor/Makefile @@ -1,24 +1,25 @@ # Created by: MANTANI Nobutaka PORTNAME= bulk_extractor -PORTVERSION= 1.5.5 -PORTREVISION= 10 +DISTVERSION= 2.0.0-beta2 CATEGORIES= sysutils -MASTER_SITES= http://digitalcorpora.org/downloads/bulk_extractor/ +MASTER_SITES= https://github.com/simsong/${PORTNAME}/releases/download/v${DISTVERSION}/ MAINTAINER= nobutaka@FreeBSD.org COMMENT= Program that scans a disk image and extracts useful information -LICENSE= GPLv3 +LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libafflib.so:sysutils/afflib \ libboost_system.so:devel/boost-libs \ libewf.so:devel/libewf \ libexiv2.so:graphics/exiv2 \ - libexpat.so:textproc/expat2 + libexpat.so:textproc/expat2 \ + libgcrypt.so:security/libgcrypt \ + libgpg-error.so:security/libgpg-error -USES= autoreconf compiler:c++11-lang gnome iconv:wchar_t localbase \ +USES= compiler:c++17-lang gnome iconv:wchar_t localbase \ sqlite ssl USE_GNOME= libxml2 @@ -28,14 +29,6 @@ CXXFLAGS_powerpcspe= -DBIG_ENDIAN CXXFLAGS_powerpc64= -DBIG_ENDIAN CONFIGURE_ARGS= --enable-exiv2=true -PLIST_FILES= bin/bulk_extractor bin/plugin_test man/man1/bulk_extractor.1.gz - -OPTIONS_DEFINE= BEVIEWER -BEVIEWER_DESC= Build BEViewer (requires Java) -OPTIONS_DEFAULT=BEVIEWER - -BEVIEWER_CONFIGURE_OFF= --disable-BEViewer -BEVIEWER_USE= JAVA=yes -BEVIEWER_PLIST_FILES= bin/BEViewer bin/BEViewer.jar +PLIST_FILES= bin/bulk_extractor bin/test_be man/man1/bulk_extractor.1.gz .include diff --git a/sysutils/bulk_extractor/distinfo b/sysutils/bulk_extractor/distinfo index 6bf0848d0689..11a354ef3b2e 100644 --- a/sysutils/bulk_extractor/distinfo +++ b/sysutils/bulk_extractor/distinfo @@ -1,2 +1,3 @@ -SHA256 (bulk_extractor-1.5.5.tar.gz) = 297a57808c12b81b8e0d82222cf57245ad988804ab467eb0a70cf8669594e8ed -SIZE (bulk_extractor-1.5.5.tar.gz) = 4473107 +TIMESTAMP = 1635429172 +SHA256 (bulk_extractor-2.0.0-beta2.tar.gz) = ef5e37f63d0a9373432659a73ca269b340005e2fedbc6b1e28cb98dbd0ff3fc1 +SIZE (bulk_extractor-2.0.0-beta2.tar.gz) = 5603695 diff --git a/sysutils/bulk_extractor/files/patch-plugins_dfxml_src_dfxml__configure.m4 b/sysutils/bulk_extractor/files/patch-plugins_dfxml_src_dfxml__configure.m4 deleted file mode 100644 index 83809b4abe68..000000000000 --- a/sysutils/bulk_extractor/files/patch-plugins_dfxml_src_dfxml__configure.m4 +++ /dev/null @@ -1,8 +0,0 @@ ---- plugins/dfxml/src/dfxml_configure.m4.orig 2014-09-16 18:34:02 UTC -+++ plugins/dfxml/src/dfxml_configure.m4 -@@ -59,4 +59,5 @@ AC_CHECK_LIB([crypto],[EVP_get_digestbyn - AC_CHECK_LIB([ssl],[SSL_library_init]) - AC_CHECK_FUNCS([EVP_get_digestbyname],, - AC_MSG_ERROR([SSL/OpenSSL support required])) -+AC_CHECK_FUNCS([EVP_MD_CTX_new EVP_MD_CTX_free]) - diff --git a/sysutils/bulk_extractor/files/patch-plugins_dfxml_src_hash__t.h b/sysutils/bulk_extractor/files/patch-plugins_dfxml_src_hash__t.h deleted file mode 100644 index b303dbc6f1de..000000000000 --- a/sysutils/bulk_extractor/files/patch-plugins_dfxml_src_hash__t.h +++ /dev/null @@ -1,78 +0,0 @@ ---- plugins/dfxml/src/hash_t.h.orig 2014-09-16 18:34:02 UTC -+++ plugins/dfxml/src/hash_t.h -@@ -189,7 +189,8 @@ inline std::string digest_name - - template - class hash_generator__ { /* generates the hash */ -- EVP_MD_CTX mdctx; /* the context for computing the value */ -+ private: -+ EVP_MD_CTX* mdctx; /* the context for computing the value */ - bool initialized; /* has the context been initialized? */ - bool finalized; - /* Static function to determine if something is zero */ -@@ -199,24 +200,36 @@ class hash_generator__ { /* generates - } - return true; - } -+ /* Not allowed to copy; these are prototyped but not defined, so any attempt to use them will fail, but we won't get the -Weffc++ warnings */ -+ hash_generator__ & operator=(const hash_generator__ &); -+ hash_generator__(const hash_generator__ &); - public: - int64_t hashed_bytes; - /* This function takes advantage of the fact that different hash functions produce residues with different sizes */ -- hash_generator__():mdctx(),initialized(false),finalized(false),hashed_bytes(0){ } -+ hash_generator__():mdctx(NULL),initialized(false),finalized(false),hashed_bytes(0){ } - ~hash_generator__(){ - release(); - } - void release(){ /* free allocated memory */ - if(initialized){ -- EVP_MD_CTX_cleanup(&mdctx); -+#ifdef HAVE_EVP_MD_CTX_FREE -+ EVP_MD_CTX_free(mdctx); -+#else -+ EVP_MD_CTX_destroy(mdctx); -+#endif - initialized = false; - hashed_bytes = 0; - } - } - void init(){ - if(initialized==false){ -- EVP_MD_CTX_init(&mdctx); -- EVP_DigestInit_ex(&mdctx, md(), NULL); -+#ifdef HAVE_EVP_MD_CTX_NEW -+ mdctx = EVP_MD_CTX_new(); -+#else -+ mdctx = EVP_MD_CTX_create(); -+#endif -+ if (!mdctx) throw std::bad_alloc(); -+ EVP_DigestInit_ex(mdctx, md(), NULL); - initialized = true; - finalized = false; - hashed_bytes = 0; -@@ -228,21 +241,21 @@ public: - std::cerr << "hashgen_t::update called after finalized\n"; - exit(1); - } -- EVP_DigestUpdate(&mdctx,buf,bufsize); -+ EVP_DigestUpdate(mdctx,buf,bufsize); - hashed_bytes += bufsize; - } - hash__ final() { - if(finalized){ - std::cerr << "currently friendly_geneator does not cache the final value\n"; - assert(0); -- /* code below will never be executed after assert(0) */ -+ exit(1); // in case compiled with assertions disabled - } - if(!initialized){ - init(); /* do it now! */ - } - hash__ val; - unsigned int len = sizeof(val.digest); -- EVP_DigestFinal(&mdctx,val.digest,&len); -+ EVP_DigestFinal(mdctx,val.digest,&len); - finalized = true; - return val; - } diff --git a/sysutils/bulk_extractor/files/patch-src__dfxml__src__dfxml_writer.cpp b/sysutils/bulk_extractor/files/patch-src__dfxml__src__dfxml_writer.cpp deleted file mode 100644 index 6e468229a4e8..000000000000 --- a/sysutils/bulk_extractor/files/patch-src__dfxml__src__dfxml_writer.cpp +++ /dev/null @@ -1,19 +0,0 @@ ---- src/dfxml/src/dfxml_writer.cpp.orig 2014-09-16 18:34:02 UTC -+++ src/dfxml/src/dfxml_writer.cpp -@@ -646,6 +646,7 @@ void dfxml_writer::xmlout(const string &tag,const stri - #include - #include - #include -+#include - #endif - - #ifdef HAVE_HASHDB -@@ -653,7 +654,7 @@ void dfxml_writer::xmlout(const string &tag,const stri - #endif - - #ifdef HAVE_AFFLIB_AFFLIB_H --//#pragma GCC diagnostic ignored "-Wreserved-user-defined-literal" // required for C11 -+#pragma GCC diagnostic ignored "-Wreserved-user-defined-literal" // required for C11 - #include - #endif - diff --git a/sysutils/bulk_extractor/files/patch-src__image_process.h b/sysutils/bulk_extractor/files/patch-src__image_process.h deleted file mode 100644 index b93999f012ca..000000000000 --- a/sysutils/bulk_extractor/files/patch-src__image_process.h +++ /dev/null @@ -1,11 +0,0 @@ ---- src/image_process.h.orig 2014-08-06 23:40:34.000000000 +0900 -+++ src/image_process.h 2014-08-06 23:40:05.000000000 +0900 -@@ -157,7 +157,7 @@ - ****************************************************************/ - - #ifdef HAVE_LIBAFFLIB --//#pragma GCC diagnostic ignored "-Wreserved-user-defined-literal" // required for C11 -+#pragma GCC diagnostic ignored "-Wreserved-user-defined-literal" // required for C11 - #include - #include - class process_aff : public image_process { diff --git a/sysutils/bulk_extractor/files/patch-src__scan_exiv2.cpp b/sysutils/bulk_extractor/files/patch-src__scan_exiv2.cpp deleted file mode 100644 index b13b17aca364..000000000000 --- a/sysutils/bulk_extractor/files/patch-src__scan_exiv2.cpp +++ /dev/null @@ -1,24 +0,0 @@ ---- ./src/scan_exiv2.cpp.orig 2013-08-18 16:39:17.000000000 +0000 -+++ ./src/scan_exiv2.cpp 2013-10-19 13:09:32.000000000 +0000 -@@ -68,7 +68,7 @@ - * Used for helping to convert libexiv2's GPS format to decimal lat/long - */ - --static double stod(string s) -+static double be13stod(string s) - { - double d=0; - sscanf(s.c_str(),"%lf",&d); -@@ -78,9 +78,9 @@ - static double rational(string s) - { - std::vector parts = split(s,'/'); -- if(parts.size()!=2) return stod(s); // no slash, so return without -- double top = stod(parts[0]); -- double bot = stod(parts[1]); -+ if(parts.size()!=2) return be13stod(s); // no slash, so return without -+ double top = be13stod(parts[0]); -+ double bot = be13stod(parts[1]); - return bot>0 ? top / bot : top; - } - diff --git a/sysutils/bulk_extractor/files/patch-src_dfxml_src_dfxml__configure.m4 b/sysutils/bulk_extractor/files/patch-src_dfxml_src_dfxml__configure.m4 deleted file mode 100644 index 826ccce1a9ba..000000000000 --- a/sysutils/bulk_extractor/files/patch-src_dfxml_src_dfxml__configure.m4 +++ /dev/null @@ -1,8 +0,0 @@ ---- src/dfxml/src/dfxml_configure.m4.orig 2018-10-10 21:44:10 UTC -+++ src/dfxml/src/dfxml_configure.m4 -@@ -59,4 +59,5 @@ AC_CHECK_LIB([crypto],[EVP_get_digestbyn - AC_CHECK_LIB([ssl],[SSL_library_init]) - AC_CHECK_FUNCS([EVP_get_digestbyname],, - AC_MSG_ERROR([SSL/OpenSSL support required])) -+AC_CHECK_FUNCS([EVP_MD_CTX_new EVP_MD_CTX_free]) - diff --git a/sysutils/bulk_extractor/files/patch-src_dfxml_src_hash__t.h b/sysutils/bulk_extractor/files/patch-src_dfxml_src_hash__t.h deleted file mode 100644 index 35878e920b3b..000000000000 --- a/sysutils/bulk_extractor/files/patch-src_dfxml_src_hash__t.h +++ /dev/null @@ -1,78 +0,0 @@ ---- src/dfxml/src/hash_t.h.orig 2014-09-16 18:34:02 UTC -+++ src/dfxml/src/hash_t.h -@@ -189,7 +189,8 @@ inline std::string digest_name - - template - class hash_generator__ { /* generates the hash */ -- EVP_MD_CTX mdctx; /* the context for computing the value */ -+ private: -+ EVP_MD_CTX* mdctx; /* the context for computing the value */ - bool initialized; /* has the context been initialized? */ - bool finalized; - /* Static function to determine if something is zero */ -@@ -199,24 +200,36 @@ class hash_generator__ { /* generates - } - return true; - } -+ /* Not allowed to copy; these are prototyped but not defined, so any attempt to use them will fail, but we won't get the -Weffc++ warnings */ -+ hash_generator__ & operator=(const hash_generator__ &); -+ hash_generator__(const hash_generator__ &); - public: - int64_t hashed_bytes; - /* This function takes advantage of the fact that different hash functions produce residues with different sizes */ -- hash_generator__():mdctx(),initialized(false),finalized(false),hashed_bytes(0){ } -+ hash_generator__():mdctx(NULL),initialized(false),finalized(false),hashed_bytes(0){ } - ~hash_generator__(){ - release(); - } - void release(){ /* free allocated memory */ - if(initialized){ -- EVP_MD_CTX_cleanup(&mdctx); -+#ifdef HAVE_EVP_MD_CTX_FREE -+ EVP_MD_CTX_free(mdctx); -+#else -+ EVP_MD_CTX_destroy(mdctx); -+#endif - initialized = false; - hashed_bytes = 0; - } - } - void init(){ - if(initialized==false){ -- EVP_MD_CTX_init(&mdctx); -- EVP_DigestInit_ex(&mdctx, md(), NULL); -+#ifdef HAVE_EVP_MD_CTX_NEW -+ mdctx = EVP_MD_CTX_new(); -+#else -+ mdctx = EVP_MD_CTX_create(); -+#endif -+ if (!mdctx) throw std::bad_alloc(); -+ EVP_DigestInit_ex(mdctx, md(), NULL); - initialized = true; - finalized = false; - hashed_bytes = 0; -@@ -228,21 +241,21 @@ public: - std::cerr << "hashgen_t::update called after finalized\n"; - exit(1); - } -- EVP_DigestUpdate(&mdctx,buf,bufsize); -+ EVP_DigestUpdate(mdctx,buf,bufsize); - hashed_bytes += bufsize; - } - hash__ final() { - if(finalized){ - std::cerr << "currently friendly_geneator does not cache the final value\n"; - assert(0); -- /* code below will never be executed after assert(0) */ -+ exit(1); // in case compiled with assertions disabled - } - if(!initialized){ - init(); /* do it now! */ - } - hash__ val; - unsigned int len = sizeof(val.digest); -- EVP_DigestFinal(&mdctx,val.digest,&len); -+ EVP_DigestFinal(mdctx,val.digest,&len); - finalized = true; - return val; - }