freebsd-ports/www/mattermost-webapp/Makefile

37 lines
948 B
Makefile
Raw Normal View History

PORTNAME= mattermost-webapp
PORTVERSION= 6.4.2
DISTVERSIONPREFIX= v
CATEGORIES= www
MASTER_SITES= https://releases.mattermost.com/${PORTVERSION}/
DISTNAME= mattermost-${PORTVERSION}-linux-amd64
MAINTAINER= swills@FreeBSD.org
COMMENT= Webapp of Mattermost server
LICENSE= APACHE20
NO_BUILD= yes
2018-03-31 00:19:51 +02:00
NO_ARCH= yes
WWWDIR= ${PREFIX}/www/mattermost
MATTERMOSTD_USER= mattermost
MATTERMOSTD_GROUP= mattermost
USERS= ${MATTERMOSTD_USER}
GROUPS= ${MATTERMOSTD_GROUP}
PLIST_SUB= MATTERMOSTD_USER=${MATTERMOSTD_USER} \
MATTERMOSTD_GROUP=${MATTERMOSTD_GROUP}
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
2018-03-31 00:19:51 +02:00
cd ${WRKDIR}/mattermost && ${COPYTREE_SHARE} client ${STAGEDIR}${WWWDIR}
${MKDIR} ${STAGEDIR}${WWWDIR}/client/plugins
post-install:
(cd ${STAGEDIR}${PREFIX} && \
2021-05-22 20:52:15 +02:00
${FIND} -E -s ${WWWDIR_REL}/client -type f -regex '.*[0-9a-f]{20,}.*\.(apng|css|eot|gif|jpg|js|json|map|mp3|png|svg|ttf|txt|woff|woff2)$$' >> ${TMPPLIST})
2018-03-31 00:19:51 +02:00
.include <bsd.port.mk>