2 # - packages for apis (examples/* that are usable as library)
3 # - packages for clients https://github.com/etsy/statsd/wiki
4 Summary: Lightweight network daemon to collect metrics over UDP
9 Group: Networking/Daemons
10 Source0: https://github.com/etsy/statsd/archive/v0.6.0.tar.gz?/%{name}-%{version}.tgz
11 # Source0-md5: 56eece3aec5fa9745822d1d34a6e193a
12 URL: https://github.com/etsy/statsd
13 BuildRequires: sed >= 4.0
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _appdir %{_datadir}/%{name}
21 A network daemon that runs on the Node.js platform and listens for
22 statistics, like counters and timers, sent over UDP and sends
23 aggregates to one or more pluggable backend services (e.g., Graphite).
27 %{__sed} -i -e '1s,^#!.*node,#!/usr/bin/node,' bin/*
30 rm -rf $RPM_BUILD_ROOT
31 # install the js files which to the work
32 install -d $RPM_BUILD_ROOT%{_appdir}
33 cp -a *.js bin lib backends $RPM_BUILD_ROOT%{_appdir}
35 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
36 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
43 %doc README.md Changelog.md LICENSE
46 %{_appdir}/exampleConfig.js
50 %attr(755,root,root) %{_appdir}/bin/statsd
51 %{_examplesdir}/%{name}-%{version}