freebsd-ports/net-mgmt/statsd/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

43 lines
1 KiB
Makefile

# $FreeBSD$
PORTNAME= statsd
PORTVERSION= 0.7.2
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: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}/
${INSTALL_DATA} ${WRKSRC}/exampleConfig.js \
${STAGEDIR}${PREFIX}/etc/statsd.js.sample
.include <bsd.port.mk>