git: 1d7332796c83 - main - devel/bfg: New port

From: Romain Tartière <romain_at_FreeBSD.org>
Date: Mon, 29 Aug 2022 04:24:44 UTC
The branch main has been updated by romain:

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

commit 1d7332796c83c62335d54d37c4f6d201870eccad
Author:     Romain Tartière <romain@FreeBSD.org>
AuthorDate: 2022-08-29 04:18:11 +0000
Commit:     Romain Tartière <romain@FreeBSD.org>
CommitDate: 2022-08-29 04:21:42 +0000

    devel/bfg: New port
    
    The BFG is a simpler, faster alternative to git-filter-branch for cleansing bad
    data out of your Git repository history:
    
      * Removing Crazy Big Files;
      * Removing Passwords, Credentials & other Private data.
    
    WWW: https://rtyley.github.io/bfg-repo-cleaner/
---
 devel/Makefile         |  1 +
 devel/bfg/Makefile     | 35 +++++++++++++++++++++++++++++++++++
 devel/bfg/distinfo     |  3 +++
 devel/bfg/files/bfg.in |  2 ++
 devel/bfg/pkg-descr    |  7 +++++++
 5 files changed, 48 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index c5e6850f5af8..a90e485f7477 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -268,6 +268,7 @@
     SUBDIR += benchmark
     SUBDIR += bennugd-core
     SUBDIR += bennugd-modules
+    SUBDIR += bfg
     SUBDIR += bglibs
     SUBDIR += binaryen
     SUBDIR += bingrep
diff --git a/devel/bfg/Makefile b/devel/bfg/Makefile
new file mode 100644
index 000000000000..a59bd465cd3b
--- /dev/null
+++ b/devel/bfg/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	bfg
+PORTVERSION=	1.14.0
+CATEGORIES=	devel java
+MASTER_SITES=	https://repo1.maven.org/maven2/com/madgag/${PORTNAME}/${DISTVERSION}/
+EXTRACT_SUFX=	.jar
+
+MAINTAINER=	romain@FreeBSD.org
+COMMENT=	Removes large or troublesome blobs like git-filter-branch does
+
+LICENSE=	GPLv3
+
+USE_JAVA=	yes
+JAVA_RUN=	jre
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+SUB_FILES=	bfg
+SUB_LIST=	JAVA=${JAVA} \
+		DATADIR=${DATADIR} \
+		DISTNAME=${DISTNAME}
+
+PLIST_FILES=	bin/bfg \
+		${DATADIR}/${DISTNAME}.jar
+
+do-extract:
+	@${DO_NADA}
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_SCRIPT} ${WRKDIR}/bfg ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${DISTDIR}/${DISTNAME}.jar \
+		${STAGEDIR}${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/devel/bfg/distinfo b/devel/bfg/distinfo
new file mode 100644
index 000000000000..3582caef3515
--- /dev/null
+++ b/devel/bfg/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1661735783
+SHA256 (bfg-1.14.0.jar) = 1a75e9390541f4b55d9c01256b361b815c1e0a263e2fb3d072b55c2911ead0b7
+SIZE (bfg-1.14.0.jar) = 14483456
diff --git a/devel/bfg/files/bfg.in b/devel/bfg/files/bfg.in
new file mode 100755
index 000000000000..f0a1a39632ab
--- /dev/null
+++ b/devel/bfg/files/bfg.in
@@ -0,0 +1,2 @@
+#!/bin/sh
+%%JAVA%% -jar %%DATADIR%%/%%DISTNAME%%.jar "$@"
diff --git a/devel/bfg/pkg-descr b/devel/bfg/pkg-descr
new file mode 100644
index 000000000000..d8b909e645cd
--- /dev/null
+++ b/devel/bfg/pkg-descr
@@ -0,0 +1,7 @@
+The BFG is a simpler, faster alternative to git-filter-branch for cleansing bad
+data out of your Git repository history:
+
+  * Removing Crazy Big Files;
+  * Removing Passwords, Credentials & other Private data.
+
+WWW: https://rtyley.github.io/bfg-repo-cleaner/