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
This commit is contained in:
parent
7ca69563ec
commit
462d6e7219
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=490580
@ -71,6 +71,7 @@
|
||||
SUBDIR += licq-qt-gui
|
||||
SUBDIR += linux-telegram-desktop
|
||||
SUBDIR += loudmouth
|
||||
SUBDIR += matterbridge
|
||||
SUBDIR += matterircd
|
||||
SUBDIR += mbpurple
|
||||
SUBDIR += mcabber
|
||||
|
41
net-im/matterbridge/Makefile
Normal file
41
net-im/matterbridge/Makefile
Normal file
@ -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>
|
3
net-im/matterbridge/distinfo
Normal file
3
net-im/matterbridge/distinfo
Normal file
@ -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
|
42
net-im/matterbridge/files/matterbridge.in
Normal file
42
net-im/matterbridge/files/matterbridge.in
Normal file
@ -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
|
5
net-im/matterbridge/pkg-descr
Normal file
5
net-im/matterbridge/pkg-descr
Normal file
@ -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
|
2
net-im/matterbridge/pkg-plist
Normal file
2
net-im/matterbridge/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
bin/matterbridge
|
||||
@sample(%%MATTERBRIDGE_USER%%,%%MATTERBRIDGE_GROUP%%,440) etc/matterbridge.toml.sample
|
Loading…
Reference in New Issue
Block a user