freebsd-ports/net-mgmt/statsd/Makefile
Steve Wills 6ddd89dc66 net-mgmt/statsd: require older node
PR:		228134
Approved by:	maintainer timeout (kimor79@yahoo.com, > 1 month)
2018-06-14 23:48:29 +00:00

44 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= statsd
PORTVERSION= 0.7.2
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= net-mgmt
MAINTAINER= kimor79@yahoo.com
COMMENT= Simple daemon for easy stats aggregation
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= node6>=0:www/node6
NO_BUILD= yes
NO_ARCH= yes
USERS= statsd
GROUPS= statsd
USE_RC_SUBR= statsd
SUB_FILES+= statsd
SUB_LIST+= USERS=${USERS} GROUPS=${GROUPS}
USE_GITHUB= yes
GH_ACCOUNT= etsy
post-patch:
@${REINPLACE_CMD} \
-e 's;\./;${DATADIR}/;' \
${WRKSRC}/stats.js
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}/backends
(cd ${WRKSRC}/backends/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/backends)
${MKDIR} ${STAGEDIR}${DATADIR}/lib
(cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/lib)
${INSTALL_DATA} ${WRKSRC}/exampleConfig.js ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/exampleProxyConfig.js ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/stats.js ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/exampleConfig.js \
${STAGEDIR}${PREFIX}/etc/statsd.js.sample
.include <bsd.port.mk>