git: ef2588fbc063 - main - misc/binbloom: New port: Raw binary firmware analysis software

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 25 Feb 2023 17:54:23 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ef2588fbc0637488d4a2fcda7f27cde1bc6e1e0d

commit ef2588fbc0637488d4a2fcda7f27cde1bc6e1e0d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-02-25 17:26:25 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-02-25 17:54:20 +0000

    misc/binbloom: New port: Raw binary firmware analysis software
---
 misc/Makefile           |  1 +
 misc/binbloom/Makefile  | 24 ++++++++++++++++++++++++
 misc/binbloom/distinfo  |  3 +++
 misc/binbloom/pkg-descr | 11 +++++++++++
 4 files changed, 39 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index aae619ca966b..847f3a81b5fa 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -24,6 +24,7 @@
     SUBDIR += biblesync
     SUBDIR += bibletime
     SUBDIR += biblical-curse
+    SUBDIR += binbloom
     SUBDIR += binclock
     SUBDIR += binocle
     SUBDIR += biosfont-demos
diff --git a/misc/binbloom/Makefile b/misc/binbloom/Makefile
new file mode 100644
index 000000000000..ee0e68275627
--- /dev/null
+++ b/misc/binbloom/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	binbloom
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.0-12
+DISTVERSIONSUFFIX=	-g95cfaac
+CATEGORIES=	misc
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Raw binary firmware analysis software
+WWW=		https://github.com/quarkslab/binbloom
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		autoreconf gmake
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	quarkslab
+
+GNU_CONFIGURE=	yes
+
+PLIST_FILES=	bin/binbloom \
+		man/man1/binbloom.1.gz
+
+.include <bsd.port.mk>
diff --git a/misc/binbloom/distinfo b/misc/binbloom/distinfo
new file mode 100644
index 000000000000..114bc0b9c0ad
--- /dev/null
+++ b/misc/binbloom/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1677345574
+SHA256 (quarkslab-binbloom-v2.0-12-g95cfaac_GH0.tar.gz) = c483ed8d024da733199b337c6a4ae20af2a96fd49a691594b4583ef46e7f0423
+SIZE (quarkslab-binbloom-v2.0-12-g95cfaac_GH0.tar.gz) = 32458
diff --git a/misc/binbloom/pkg-descr b/misc/binbloom/pkg-descr
new file mode 100644
index 000000000000..f8b9b0c1c317
--- /dev/null
+++ b/misc/binbloom/pkg-descr
@@ -0,0 +1,11 @@
+The purpose of the binbloom project is to analyse a raw binary firmware and
+determine automatically some of its features. This tool is compatible with all
+architectures as basically, it just does simple statistics on it.
+
+Main features:
+* Loading address: binbloom can parse a raw binary firmware and determine its
+  loading address.
+* Endianness: binbloom can use heuristics to determine the endianness of a
+  firmware.
+* UDS Database: binbloom can parse a raw binary firmware and check if it
+  contains an array containing UDS command IDs.