63bd84ad2f
- Add NO_ARCH - Fix and unsilence install commands - Switch to @sample Approved by: portmgr blanket
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= statsd
|
|
PORTVERSION= 0.7.0
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= net-mgmt
|
|
|
|
MAINTAINER= kimor79@yahoo.com
|
|
COMMENT= Simple daemon for easy stats aggregation
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= node:${PORTSDIR}/www/node
|
|
|
|
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}/
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/exampleConfig.js \
|
|
${STAGEDIR}${PREFIX}/etc/statsd.js.sample
|
|
|
|
.include <bsd.port.mk>
|