git: 5ab1207afd12 - main - Add devel/elfcat: ELF visualizer, generates HTML files from ELF binaries

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Sat, 06 Nov 2021 19:30:19 UTC
The branch main has been updated by lwhsu:

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

commit 5ab1207afd128736e16dc12e344d55137622d025
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2021-11-06 19:29:53 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2021-11-06 19:29:53 +0000

    Add devel/elfcat: ELF visualizer, generates HTML files from ELF binaries
---
 devel/Makefile         |  1 +
 devel/elfcat/Makefile  | 20 ++++++++++++++++++++
 devel/elfcat/distinfo  |  3 +++
 devel/elfcat/pkg-descr |  3 +++
 4 files changed, 27 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 7e1fefb2678a..0bb1836fae74 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -558,6 +558,7 @@
     SUBDIR += electron12
     SUBDIR += elf
     SUBDIR += elf-dissector
+    SUBDIR += elfcat
     SUBDIR += elfio
     SUBDIR += elfkickers
     SUBDIR += elfsh
diff --git a/devel/elfcat/Makefile b/devel/elfcat/Makefile
new file mode 100644
index 000000000000..4594c0498ef9
--- /dev/null
+++ b/devel/elfcat/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	elfcat
+DISTVERSION=	0.1.8
+CATEGORIES=	devel
+
+MAINTAINER=	lwhsu@FreeBSD.org
+COMMENT=	ELF visualizer, generates HTML files from ELF binaries
+
+LICENSE=	ZLIB
+LICENSE_FILE=	${WRKSRC}/license
+
+USES=		cargo
+USE_GITHUB=	yes
+GH_ACCOUNT=	ruslashev
+
+PLIST_FILES=	bin/elfcat
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/elfcat
+
+.include <bsd.port.mk>
diff --git a/devel/elfcat/distinfo b/devel/elfcat/distinfo
new file mode 100644
index 000000000000..aa24029c1a6b
--- /dev/null
+++ b/devel/elfcat/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1636225204
+SHA256 (ruslashev-elfcat-0.1.8_GH0.tar.gz) = 91673c29ce9c91545cf4c5e0205a9753c1370d6fc05be4670fb63218a601db2b
+SIZE (ruslashev-elfcat-0.1.8_GH0.tar.gz) = 21042
diff --git a/devel/elfcat/pkg-descr b/devel/elfcat/pkg-descr
new file mode 100644
index 000000000000..ff794ab88719
--- /dev/null
+++ b/devel/elfcat/pkg-descr
@@ -0,0 +1,3 @@
+ELF visualizer. Generates HTML files from ELF binaries.
+
+WWW: https://crates.io/crates/elfcat