svn commit: r466052 - in head: . net-im net-im/matterircd net-im/matterircd/files
Danilo G. Baio
dbaio at FreeBSD.org
Sat Mar 31 15:35:24 UTC 2018
Author: dbaio
Date: Sat Mar 31 15:35:22 2018
New Revision: 466052
URL: https://svnweb.freebsd.org/changeset/ports/466052
Log:
Add net-im/matterircd: IRC bridge for Mattermost and Slack
Minimal IRC server which integrates with Mattermost and Slack.
Connect to your local/remote Mattermost installation or to Slack via your
IRC-client.
WWW: https://github.com/42wim/matterircd
PR: 227063
Submitted by: norrland at nullbyte.se
Added:
head/net-im/matterircd/
head/net-im/matterircd/Makefile (contents, props changed)
head/net-im/matterircd/distinfo (contents, props changed)
head/net-im/matterircd/files/
head/net-im/matterircd/files/matterircd.in (contents, props changed)
head/net-im/matterircd/pkg-descr (contents, props changed)
head/net-im/matterircd/pkg-plist (contents, props changed)
Modified:
head/GIDs
head/UIDs
head/net-im/Makefile
Modified: head/GIDs
==============================================================================
--- head/GIDs Sat Mar 31 13:20:32 2018 (r466051)
+++ head/GIDs Sat Mar 31 15:35:22 2018 (r466052)
@@ -830,7 +830,7 @@ chronyd:*:849:
# free: 887
vuls:*:888:
mattermost:*:889:
-# free: 890
+matterircd:*:890:
# free: 891
# free: 892
# free: 893
Modified: head/UIDs
==============================================================================
--- head/UIDs Sat Mar 31 13:20:32 2018 (r466051)
+++ head/UIDs Sat Mar 31 15:35:22 2018 (r466052)
@@ -836,7 +836,7 @@ archiva:*:871:871::0:0:Apache Archiva Daemon:/nonexist
# free: 887
vuls:*:888:888::0:0:VULnerability Scanner:/var/db/vuls:/usr/sbin/nologin
mattermost:*:889:889::0:0:Mattermost:/usr/local/www/mattermost:/usr/sbin/nologin
-# free: 890
+matterircd:*:890:890::0:0:Matterircd User:/nonexistent:/usr/sbin/nologin
# free: 891
# free: 892
# free: 893
Modified: head/net-im/Makefile
==============================================================================
--- head/net-im/Makefile Sat Mar 31 13:20:32 2018 (r466051)
+++ head/net-im/Makefile Sat Mar 31 15:35:22 2018 (r466052)
@@ -74,6 +74,7 @@
SUBDIR += linux-telegram-desktop
SUBDIR += loudmouth
SUBDIR += mastodon
+ SUBDIR += matterircd
SUBDIR += mbpurple
SUBDIR += mcabber
SUBDIR += meanwhile
Added: head/net-im/matterircd/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-im/matterircd/Makefile Sat Mar 31 15:35:22 2018 (r466052)
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME= matterircd
+PORTVERSION= 0.16.7
+DISTVERSIONPREFIX= v
+CATEGORIES= net-im irc
+
+MAINTAINER= norrland at nullbyte.se
+COMMENT= IRC bridge for Mattermost and Slack
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
+
+BUILD_DEPENDS= go>=1.8:lang/go
+
+USE_RC_SUBR= matterircd
+
+USE_GITHUB= yes
+GH_ACCOUNT= 42wim
+GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}
+
+USERS= matterircd
+GROUPS= matterircd
+
+do-build:
+ @cd ${WRKSRC}/${GH_SUBDIR} && \
+ ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/matterircd ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/matterircd.toml.example \
+ ${STAGEDIR}${PREFIX}/etc/matterircd.toml.sample
+
+.include <bsd.port.mk>
Added: head/net-im/matterircd/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-im/matterircd/distinfo Sat Mar 31 15:35:22 2018 (r466052)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1522178987
+SHA256 (42wim-matterircd-v0.16.7_GH0.tar.gz) = 3f9ef394d79c36990a9fff4b809a974d6f0e401377c4fd182de46fa8aefc1ca8
+SIZE (42wim-matterircd-v0.16.7_GH0.tar.gz) = 1595920
Added: head/net-im/matterircd/files/matterircd.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-im/matterircd/files/matterircd.in Sat Mar 31 15:35:22 2018 (r466052)
@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: matterircd
+# REQUIRE: DAEMON NETWORKING
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+#
+# Options to configure matterircd via /etc/rc.conf:
+#
+# matterircd_enable (bool) Enable service on boot
+# Default: NO
+#
+# matterircd_conf (str) Config file to use
+# Default: ${PREFIX}/etc/matterircd.toml
+#
+# matterircd_uid (str) User to run matterircd as
+# Default: matterircd
+#
+# matterircd_flags (str) Extra flags passed to matterircd
+#
+
+. /etc/rc.subr
+
+name="matterircd"
+rcvar="matterircd_enable"
+pidfile="/var/run/matterircd.pid"
+procname="%%PREFIX%%/bin/matterircd"
+
+load_rc_config $name
+
+: ${matterircd_enable:="NO"}
+: ${matterircd_uid:="matterircd"}
+: ${matterircd_flags:=""}
+: ${matterircd_conf:="%%PREFIX%%/etc/matterircd.toml"}
+: ${matterircd_options:="${matterircd_flags} -conf=${matterircd_conf}"}
+
+command="/usr/sbin/daemon"
+command_args="-p ${pidfile} -u ${matterircd_uid} -S -T ${name} ${procname} ${matterircd_options}"
+
+run_rc_command "$1"
Added: head/net-im/matterircd/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-im/matterircd/pkg-descr Sat Mar 31 15:35:22 2018 (r466052)
@@ -0,0 +1,6 @@
+Minimal IRC server which integrates with Mattermost and Slack.
+
+Connect to your local/remote Mattermost installation or to Slack via your
+IRC-client.
+
+WWW: https://github.com/42wim/matterircd
Added: head/net-im/matterircd/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-im/matterircd/pkg-plist Sat Mar 31 15:35:22 2018 (r466052)
@@ -0,0 +1,2 @@
+ at sample etc/matterircd.toml.sample
+bin/matterircd
More information about the svn-ports-head
mailing list