2018-02-02 09:50:34 +01:00
|
|
|
PORTNAME= mattermost-server
|
2022-03-13 00:02:51 +01:00
|
|
|
PORTVERSION= 6.4.2
|
2018-02-02 09:50:34 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2023-02-15 12:36:35 +01:00
|
|
|
PORTREVISION= 10
|
2018-02-02 09:50:34 +01:00
|
|
|
CATEGORIES= www
|
|
|
|
|
2021-03-13 02:04:46 +01:00
|
|
|
MAINTAINER= swills@FreeBSD.org
|
2018-02-02 09:50:34 +01:00
|
|
|
COMMENT= Open source Slack-alternative in Golang and React
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://mattermost.org/
|
2018-02-02 09:50:34 +01:00
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
|
2020-07-23 18:47:13 +02:00
|
|
|
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386
|
2018-02-02 09:50:34 +01:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss \
|
|
|
|
mattermost-webapp>=${PORTVERSION}:www/mattermost-webapp
|
|
|
|
|
2019-08-17 01:57:39 +02:00
|
|
|
USES= go:modules
|
2019-06-29 05:51:13 +02:00
|
|
|
|
2021-05-22 20:52:15 +02:00
|
|
|
GO_TARGET= ./cmd/mattermost ./scripts/config_generator
|
2021-10-29 18:34:27 +02:00
|
|
|
GO_BUILDFLAGS= -ldflags="-X github.com/mattermost/mattermost-server/v6/model.BuildNumber=${PORTVERSION}"
|
2018-02-02 09:50:34 +01:00
|
|
|
|
|
|
|
USE_RC_SUBR= mattermostd
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
2019-05-02 12:18:03 +02:00
|
|
|
GH_ACCOUNT= mattermost
|
2018-02-02 09:50:34 +01:00
|
|
|
|
|
|
|
WWWDIR= ${PREFIX}/www/mattermost
|
|
|
|
|
|
|
|
MATTERMOSTD_USER= mattermost
|
|
|
|
MATTERMOSTD_GROUP= mattermost
|
|
|
|
|
|
|
|
USERS= ${MATTERMOSTD_USER}
|
|
|
|
GROUPS= ${MATTERMOSTD_GROUP}
|
|
|
|
|
2020-07-23 18:47:13 +02:00
|
|
|
post-extract:
|
|
|
|
@${RM} ${WRKSRC}/vendor/modules.txt
|
|
|
|
|
2019-08-17 01:57:39 +02:00
|
|
|
post-install:
|
|
|
|
${MV} ${STAGEDIR}${PREFIX}/bin/mattermost ${STAGEDIR}${PREFIX}/bin/mattermostd
|
2020-02-07 00:28:09 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/mattermost
|
|
|
|
${SETENV} OUTPUT_CONFIG=${WRKSRC}/config/default.json ${WRKDIR}/bin/config_generator
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/config/default.json ${STAGEDIR}${PREFIX}/etc/mattermost/config.json.sample
|
|
|
|
${RM} ${STAGEDIR}${PREFIX}/bin/config_generator
|
2021-05-22 20:52:15 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}/templates
|
|
|
|
cd ${GO_WRKSRC} && ${COPYTREE_SHARE} 'fonts i18n' ${STAGEDIR}${WWWDIR}
|
|
|
|
cd ${GO_WRKSRC}/templates && ${CP} *.html *.js ${STAGEDIR}${WWWDIR}/templates
|
2018-02-02 09:50:34 +01:00
|
|
|
|
2018-03-31 00:19:51 +02:00
|
|
|
.include <bsd.port.mk>
|