git: a1fdf88a43cf - main - ports-mgmt/fallout: Add new port

From: Dmitri Goutnik <dmgk_at_FreeBSD.org>
Date: Fri, 15 Jul 2022 14:18:16 UTC
The branch main has been updated by dmgk:

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

commit a1fdf88a43cfcdece35eb468ba98c93d1ae33bcb
Author:     Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2022-07-15 13:55:53 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-07-15 14:17:52 +0000

    ports-mgmt/fallout: Add new port
    
    Download and search FreeBSD build cluster fallout logs.
    
    `fallout fetch` downloads build failure logs so they can be accessed and
    searched from the local file system. It organizes these logs into a directory
    hierarchy under ~/.cache by the builder name and port origin.
    
    `fallout grep` finds failure logs matching a given set of conditions and
    regular expressions. Combining it with portgrep allows advanced
    searching for e.g. specific maintainer, failures of ports with specific USES,
    with specific dependency, etc.
    
    WWW: https://github.com/dmgk/fallout
---
 ports-mgmt/Makefile          |  1 +
 ports-mgmt/fallout/Makefile  | 19 +++++++++++++++++++
 ports-mgmt/fallout/distinfo  |  5 +++++
 ports-mgmt/fallout/pkg-descr | 12 ++++++++++++
 4 files changed, 37 insertions(+)

diff --git a/ports-mgmt/Makefile b/ports-mgmt/Makefile
index d9813df62010..993169d1b3e8 100644
--- a/ports-mgmt/Makefile
+++ b/ports-mgmt/Makefile
@@ -7,6 +7,7 @@
     SUBDIR += dialog4ports
     SUBDIR += dialog4ports-static
     SUBDIR += distilator
+    SUBDIR += fallout
     SUBDIR += fastest_pkg
     SUBDIR += freebsd-bugzilla-cli
     SUBDIR += genpatch
diff --git a/ports-mgmt/fallout/Makefile b/ports-mgmt/fallout/Makefile
new file mode 100644
index 000000000000..6271e38ac2f1
--- /dev/null
+++ b/ports-mgmt/fallout/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	fallout
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.0.2
+CATEGORIES=	ports-mgmt
+
+MAINTAINER=	dmgk@FreeBSD.org
+COMMENT=	Download and search pkg-fallout logs
+
+LICENSE=	BSD0CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+
+GO_MODULE=	github.com/dmgk/fallout
+GO_BUILDFLAGS=	-ldflags="-s -w -X main.version=${DISTVERSION}"
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/ports-mgmt/fallout/distinfo b/ports-mgmt/fallout/distinfo
new file mode 100644
index 000000000000..49290ac3a20e
--- /dev/null
+++ b/ports-mgmt/fallout/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1657894482
+SHA256 (go/ports-mgmt_fallout/fallout-v1.0.2/v1.0.2.mod) = 3a131acb3f00f99f80613322d01f9f6e89933f1fa74e856eae41e68a1ee2002c
+SIZE (go/ports-mgmt_fallout/fallout-v1.0.2/v1.0.2.mod) = 1098
+SHA256 (go/ports-mgmt_fallout/fallout-v1.0.2/v1.0.2.zip) = fbef23683a437e86fdfb778bfc032fa8df2236d49bb2a2201eb6d99664a2bf41
+SIZE (go/ports-mgmt_fallout/fallout-v1.0.2/v1.0.2.zip) = 26359
diff --git a/ports-mgmt/fallout/pkg-descr b/ports-mgmt/fallout/pkg-descr
new file mode 100644
index 000000000000..952a7e91df74
--- /dev/null
+++ b/ports-mgmt/fallout/pkg-descr
@@ -0,0 +1,12 @@
+Download and search FreeBSD build cluster fallout logs.
+
+`fallout fetch` downloads build failure logs so they can be accessed and
+searched from the local file system. It organizes these logs into a directory
+hierarchy under ~/.cache by the builder name and port origin.
+
+`fallout grep` finds failure logs matching a given set of conditions and
+regular expressions. Combining it with portgrep allows advanced
+searching for e.g. specific maintainer, failures of ports with specific USES,
+with specific dependency, etc.
+
+WWW: https://github.com/dmgk/fallout