1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/www/mattermost-server/Makefile
Mikael Urankar c065b1325b www/mattermost-webapp www/mattermost-server: Update to 5.25.0
Changelog:
  https://docs.mattermost.com/administration/changelog.html

PR:		248224
Submitted by:	Greg Fitzgerald <gregf@hugops.pw>
Approved by:	loic.blot@unix-experience.fr (maintainer)
2020-07-25 13:39:53 +00:00

50 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= mattermost-server
PORTVERSION= 5.25.0
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= aarch64 amd64 armv6 armv7 i386
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss \
mattermost-webapp>=${PORTVERSION}:www/mattermost-webapp
USES= go:modules
GO_TARGET= ./cmd/mattermost ./config/config_generator
GO_BUILDFLAGS= -ldflags="-X github.com/mattermost/mattermost-server/model.BuildNumber=${PORTVERSION}"
USE_RC_SUBR= mattermostd
USE_GITHUB= yes
GH_ACCOUNT= mattermost
WWWDIR= ${PREFIX}/www/mattermost
MATTERMOSTD_USER= mattermost
MATTERMOSTD_GROUP= mattermost
USERS= ${MATTERMOSTD_USER}
GROUPS= ${MATTERMOSTD_GROUP}
post-extract:
@${RM} ${WRKSRC}/vendor/modules.txt
post-install:
${MV} ${STAGEDIR}${PREFIX}/bin/mattermost ${STAGEDIR}${PREFIX}/bin/mattermostd
${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
${MKDIR} ${STAGEDIR}${WWWDIR}
cd ${GO_WRKSRC} && ${COPYTREE_SHARE} 'fonts i18n templates' ${STAGEDIR}${WWWDIR}
.include <bsd.port.mk>