2018-02-02 08:50:34 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mattermost-server
|
2019-10-15 13:09:38 +00:00
|
|
|
PORTVERSION= 5.15.0
|
2018-02-02 08:50:34 +00:00
|
|
|
DISTVERSIONPREFIX= v
|
|
|
|
CATEGORIES= www
|
|
|
|
|
|
|
|
MAINTAINER= loic.blot@unix-experience.fr
|
|
|
|
COMMENT= Open source Slack-alternative in Golang and React
|
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss \
|
|
|
|
mattermost-webapp>=${PORTVERSION}:www/mattermost-webapp
|
|
|
|
|
2019-08-16 23:57:39 +00:00
|
|
|
USES= go:modules
|
2019-06-29 03:51:13 +00:00
|
|
|
|
2019-08-16 23:57:39 +00:00
|
|
|
GO_TARGET= ./cmd/mattermost
|
|
|
|
GO_BUILDFLAGS= -ldflags="-X github.com/mattermost/mattermost-server/model.BuildNumber=${PORTVERSION}"
|
2018-02-02 08:50:34 +00:00
|
|
|
|
|
|
|
USE_RC_SUBR= mattermostd
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
2019-05-02 10:18:03 +00:00
|
|
|
GH_ACCOUNT= mattermost
|
2018-02-02 08:50:34 +00:00
|
|
|
|
|
|
|
WWWDIR= ${PREFIX}/www/mattermost
|
|
|
|
|
|
|
|
MATTERMOSTD_USER= mattermost
|
|
|
|
MATTERMOSTD_GROUP= mattermost
|
|
|
|
|
|
|
|
USERS= ${MATTERMOSTD_USER}
|
|
|
|
GROUPS= ${MATTERMOSTD_GROUP}
|
|
|
|
|
2019-08-16 23:57:39 +00:00
|
|
|
post-install:
|
|
|
|
${MV} ${STAGEDIR}${PREFIX}/bin/mattermost ${STAGEDIR}${PREFIX}/bin/mattermostd
|
2018-02-02 08:50:34 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}
|
2019-08-16 23:57:39 +00:00
|
|
|
cd ${GO_WRKSRC} && ${COPYTREE_SHARE} 'fonts i18n templates' ${STAGEDIR}${WWWDIR}
|
2018-02-02 08:50:34 +00:00
|
|
|
|
2018-03-30 22:19:51 +00:00
|
|
|
.include <bsd.port.mk>
|