git: 7ec953eb84b4 - main - net/slackcat: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 25 Jun 2022 12:40:49 UTC
The branch main has been updated by dmgk:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7ec953eb84b41b8acefcd303877f875fd56f62d6
commit 7ec953eb84b41b8acefcd303877f875fd56f62d6
Author: Norikatsu Shigemura <nork@ninth-nine.com>
AuthorDate: 2022-06-25 12:37:56 +0000
Commit: Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-06-25 12:40:20 +0000
net/slackcat: Add new port
Slackcat is a simple commandline utility to post snippets to Slack.
WWW: https://github.com/bcicen/slackcat
PR: 264874
---
net/Makefile | 1 +
net/slackcat/Makefile | 23 +++++++++++++++++++++++
net/slackcat/distinfo | 5 +++++
net/slackcat/pkg-descr | 3 +++
4 files changed, 32 insertions(+)
diff --git a/net/Makefile b/net/Makefile
index ae8f37429e32..0be6ab909265 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1426,6 +1426,7 @@
SUBDIR += sipsak
SUBDIR += skstream
SUBDIR += sl2tps
+ SUBDIR += slackcat
SUBDIR += smb4k
SUBDIR += smcroute
SUBDIR += smm++
diff --git a/net/slackcat/Makefile b/net/slackcat/Makefile
new file mode 100644
index 000000000000..bd70c0d57b87
--- /dev/null
+++ b/net/slackcat/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= slackcat
+DISTVERSION= 1.7.3
+CATEGORIES= net
+MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod
+DISTFILES= go.mod:gomod
+
+MAINTAINER= nork@ninth-nine.com
+COMMENT= Simple commandline utility to post snippets to Slack
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+USE_GITHUB= yes
+GH_ACCOUNT= bcicen
+GH_TAGNAME= 5c4e4410002c
+
+GO_MODULE= github.com/${GH_ACCOUNT}/${GH_PROJECT}
+GO_BUILDFLAGS= -ldflags="-s -w -X main.version=${DISTVERSION} -X main.build=${GH_TAGNAME}"
+
+PLIST_FILES= bin/slackcat
+
+.include <bsd.port.mk>
diff --git a/net/slackcat/distinfo b/net/slackcat/distinfo
new file mode 100644
index 000000000000..699e69efd289
--- /dev/null
+++ b/net/slackcat/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1656123971
+SHA256 (go/net_slackcat/bcicen-slackcat-1.7.3-5c4e4410002c_GH0/go.mod) = 98640a46a3b3a14c84f7df4e83548785e563c11de563893623766350452ce8e0
+SIZE (go/net_slackcat/bcicen-slackcat-1.7.3-5c4e4410002c_GH0/go.mod) = 355
+SHA256 (go/net_slackcat/bcicen-slackcat-1.7.3-5c4e4410002c_GH0/bcicen-slackcat-1.7.3-5c4e4410002c_GH0.tar.gz) = 680a799ad877d4165a84fc176bb4dc922e0f24ab4ff457715fe1bbefa3785ea2
+SIZE (go/net_slackcat/bcicen-slackcat-1.7.3-5c4e4410002c_GH0/bcicen-slackcat-1.7.3-5c4e4410002c_GH0.tar.gz) = 28255
diff --git a/net/slackcat/pkg-descr b/net/slackcat/pkg-descr
new file mode 100644
index 000000000000..88ed6f90cc72
--- /dev/null
+++ b/net/slackcat/pkg-descr
@@ -0,0 +1,3 @@
+Slackcat is a simple commandline utility to post snippets to Slack.
+
+WWW: https://github.com/bcicen/slackcat