1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

- Add LICENSE

- Add NO_ARCH
- Fix and unsilence install commands
- Switch to @sample

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-08-31 12:10:30 +00:00
parent 11badad381
commit 63bd84ad2f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395664
2 changed files with 9 additions and 7 deletions

View File

@ -8,9 +8,13 @@ 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
@ -30,12 +34,12 @@ do-install:
(cd ${WRKSRC}/backends/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/backends)
${MKDIR} ${STAGEDIR}${DATADIR}/lib
(cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/lib)
${CP} ${WRKSRC}/exampleConfig.js ${STAGEDIR}${DATADIR}/exampleConfig.js
${CP} ${WRKSRC}/exampleProxyConfig.js ${STAGEDIR}${DATADIR}/exampleProxyConfig.js
${CP} ${WRKSRC}/stats.js ${STAGEDIR}${DATADIR}/stats.js
${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 \
${INSTALL_DATA} ${WRKSRC}/exampleConfig.js \
${STAGEDIR}${PREFIX}/etc/statsd.js.sample
.include <bsd.port.mk>

View File

@ -1,3 +1,4 @@
@sample etc/statsd.js.sample
%%DATADIR%%/backends/console.js
%%DATADIR%%/backends/graphite.js
%%DATADIR%%/backends/repeater.js
@ -11,6 +12,3 @@
%%DATADIR%%/lib/process_mgmt.js
%%DATADIR%%/lib/set.js
%%DATADIR%%/stats.js
@unexec if cmp -s %D/etc/statsd.js.sample %D/etc/statsd.js; then rm -f %D/etc/statsd.js; fi
etc/statsd.js.sample
@exec [ -f %B/statsd.js ] || cp %B/%f %B/statsd.js