Date: Thu, 17 Jan 2019 17:34:17 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r490580 - in head/net-im: . matterbridge matterbridge/files Message-ID: <201901171734.x0HHYHGU052545@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Thu Jan 17 17:34:17 2019 New Revision: 490580 URL: https://svnweb.freebsd.org/changeset/ports/490580 Log: net-im/matterbridge: create port Bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocket.chat,hipchat (via xmpp), steam, twitch, ssh-chat, zulip and matrix with REST API (mattermost not required!) WWW: https://github.com/42wim/matterbridge Added: head/net-im/matterbridge/ head/net-im/matterbridge/Makefile (contents, props changed) head/net-im/matterbridge/distinfo (contents, props changed) head/net-im/matterbridge/files/ head/net-im/matterbridge/files/matterbridge.in (contents, props changed) head/net-im/matterbridge/pkg-descr (contents, props changed) head/net-im/matterbridge/pkg-plist (contents, props changed) Modified: head/net-im/Makefile (contents, props changed) Modified: head/net-im/Makefile ============================================================================== --- head/net-im/Makefile Thu Jan 17 17:32:35 2019 (r490579) +++ head/net-im/Makefile Thu Jan 17 17:34:17 2019 (r490580) @@ -71,6 +71,7 @@ SUBDIR += licq-qt-gui SUBDIR += linux-telegram-desktop SUBDIR += loudmouth + SUBDIR += matterbridge SUBDIR += matterircd SUBDIR += mbpurple SUBDIR += mcabber Added: head/net-im/matterbridge/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/matterbridge/Makefile Thu Jan 17 17:34:17 2019 (r490580) @@ -0,0 +1,41 @@ +# $FreeBSD$ + +PORTNAME= matterbridge +PORTVERSION= 1.12.3 +DISTVERSIONPREFIX= v +CATEGORIES= net-im + +MAINTAINER= swills@FreeBSD.org +COMMENT= Chat network bridge + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= go:lang/go + +USE_GITHUB= yes +GH_ACCOUNT= 42wim +GH_SUBDIR= src/github.com/42wim/matterbridge + +USE_RC_SUBR= matterbridge + +MATTERBRIDGE_USER?= mattermost +MATTERBRIDGE_GROUP?= mattermost +USERS= ${MATTERBRIDGE_USER} +GROUPS= ${MATTERBRIDGE_GROUP} +SUB_LIST= \ + MATTERBRIDGE_USER=${MATTERBRIDGE_USER} \ + MATTERBRIDGE_GROUP=${MATTERBRIDGE_GROUP} +PLIST_SUB= \ + MATTERBRIDGE_USER=${MATTERBRIDGE_USER} \ + MATTERBRIDGE_GROUP=${MATTERBRIDGE_GROUP} + +do-build: + @cd ${WRKSRC}/src/github.com/42wim/matterbridge && \ + ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build -o bin/${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/matterbridge.toml.sample ${STAGEDIR}${PREFIX}/etc/matterbridge.toml.sample + +.include <bsd.port.mk> Added: head/net-im/matterbridge/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/matterbridge/distinfo Thu Jan 17 17:34:17 2019 (r490580) @@ -0,0 +1,3 @@ +TIMESTAMP = 1546657042 +SHA256 (42wim-matterbridge-v1.12.3_GH0.tar.gz) = 240a76ea0c6d1cd4e671edf2684a606d052236e1140ce3c45582831f01d3ae12 +SIZE (42wim-matterbridge-v1.12.3_GH0.tar.gz) = 4719145 Added: head/net-im/matterbridge/files/matterbridge.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/matterbridge/files/matterbridge.in Thu Jan 17 17:34:17 2019 (r490580) @@ -0,0 +1,42 @@ +#!/bin/sh +# PROVIDE: matterbridge +# REQUIRE: DAEMON NETWORKING +# KEYWORD: shutdown + +# +# Add the following line to /etc/rc.conf to enable matterbridge: +# +# matterbridge_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable matterbridge +# matterbridge_config (str): Set to "%%PREFIX%%/etc/matterbridge.toml" by default. +# Set it to path to mattermost config file +# matterbridge_user (str): Set to "%%MATTERBRIDGE_USER%%" by default. +# Set it to user to run matterbridge under +# matterbridge_group (str): Set to "%%MATTERBRIDGE_GROUP%%" by default. +# Set it to group to run matterbridge under +# matterbridge_syslogtag (str):Set to "matterbridge" by default. +# Set it to tag to be used by syslog +# + +. /etc/rc.subr + +name="matterbridge" +rcvar="matterbridge_enable" + +load_rc_config $name + +: ${matterbridge_enable:="NO"} +: ${matterbridge_config:="%%PREFIX%%/etc/matterbridge.toml"} +: ${matterbridge_user:="%%MATTERBRIDGE_USER%%"} +: ${matterbridge_group:="%%MATTERBRIDGE_GROUP%%"} +: ${matterbridge_syslogtag:="matterbridge"} + +pidfile="/var/run/matterbridge/${name}.pid" + +command="/usr/sbin/daemon" +command_args="-S -T ${matterbridge_syslogtag} -m 3 -c -p ${pidfile} env ${matterbridge_env} %%PREFIX%%/bin/matterbridge -conf ${matterbridge_config} ${matterbridge_args}" +procname=%%PREFIX%%/bin/matterbridge + +start_precmd="install -d -m 775 -o ${matterbridge_user} -g ${matterbridge_group} /var/run/matterbridge" + +run_rc_command $1 Added: head/net-im/matterbridge/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/matterbridge/pkg-descr Thu Jan 17 17:34:17 2019 (r490580) @@ -0,0 +1,5 @@ +Bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, +rocket.chat,hipchat (via xmpp), steam, twitch, ssh-chat, zulip and matrix with +REST API (mattermost not required!) + +WWW: https://github.com/42wim/matterbridge Added: head/net-im/matterbridge/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/matterbridge/pkg-plist Thu Jan 17 17:34:17 2019 (r490580) @@ -0,0 +1,2 @@ +bin/matterbridge +@sample(%%MATTERBRIDGE_USER%%,%%MATTERBRIDGE_GROUP%%,440) etc/matterbridge.toml.sample
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901171734.x0HHYHGU052545>