From 1f4fec42969873f709b90dc18dac0f06be986cf5 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Fri, 30 Mar 2018 22:19:51 +0000 Subject: Cleanup a bit. Sponsored by: Absolight --- www/mattermost-server/Makefile | 10 +++------- www/mattermost-webapp/Makefile | 7 +++---- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/www/mattermost-server/Makefile b/www/mattermost-server/Makefile index 326906ca7d72..d9ccb84d9423 100644 --- a/www/mattermost-server/Makefile +++ b/www/mattermost-server/Makefile @@ -32,8 +32,6 @@ MATTERMOSTD_GROUP= mattermost USERS= ${MATTERMOSTD_USER} GROUPS= ${MATTERMOSTD_GROUP} -.include - pre-build: @${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME} @cd ${WRKSRC} && \ @@ -48,10 +46,8 @@ do-build: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/platform ${STAGEDIR}${PREFIX}/bin/mattermostd ${MKDIR} ${STAGEDIR}${PREFIX}/etc/mattermost - ${CP} ${WRKSRC}/config/default.json ${STAGEDIR}${PREFIX}/etc/mattermost/config.json.sample + ${INSTALL_DATA} ${WRKSRC}/config/default.json ${STAGEDIR}${PREFIX}/etc/mattermost/config.json.sample ${MKDIR} ${STAGEDIR}${WWWDIR} - ${CP} -R ${WRKSRC}/fonts ${STAGEDIR}${WWWDIR} - ${CP} -R ${WRKSRC}/i18n ${STAGEDIR}${WWWDIR} - ${CP} -R ${WRKSRC}/templates ${STAGEDIR}${WWWDIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} 'fonts i18n templates' ${STAGEDIR}${WWWDIR} -.include +.include diff --git a/www/mattermost-webapp/Makefile b/www/mattermost-webapp/Makefile index bbb3ef631dbc..eb7c6f2ac848 100644 --- a/www/mattermost-webapp/Makefile +++ b/www/mattermost-webapp/Makefile @@ -13,6 +13,7 @@ COMMENT= Webapp of Mattermost server LICENSE= APACHE20 NO_BUILD= yes +NO_ARCH= yes WWWDIR= ${PREFIX}/www/mattermost @@ -25,11 +26,9 @@ GROUPS= ${MATTERMOSTD_GROUP} PLIST_SUB= MATTERMOSTD_USER=${MATTERMOSTD_USER} \ MATTERMOSTD_GROUP=${MATTERMOSTD_GROUP} -.include - do-install: ${MKDIR} ${STAGEDIR}${WWWDIR} - ${CP} -R ${WRKDIR}/mattermost/client ${STAGEDIR}${WWWDIR} + cd ${WRKDIR}/mattermost && ${COPYTREE_SHARE} client ${STAGEDIR}${WWWDIR} ${MKDIR} ${STAGEDIR}${WWWDIR}/client/plugins -.include +.include -- cgit v1.2.3