summaryrefslogtreecommitdiff
path: root/net-im/matterbridge/Makefile
blob: 1cec969e156c882b92e51bece6b3f62d3f858192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PORTNAME=	matterbridge
PORTVERSION=	1.22.0
DISTVERSIONPREFIX=	v
CATEGORIES=	net-im

MAINTAINER=	swills@FreeBSD.org
COMMENT=	Chat network bridge

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules

USE_GITHUB=	yes
GH_ACCOUNT=	42wim

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}

post-install:
	${INSTALL_DATA} ${WRKSRC}/matterbridge.toml.sample ${STAGEDIR}${PREFIX}/etc/matterbridge.toml.sample

.include <bsd.port.mk>