]> git.pld-linux.org Git - SPECS.git/blob - statsd.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / statsd.spec
1 # TODO
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
5 Name:           statsd
6 Version:        0.6.0
7 Release:        0.6
8 License:        BSD
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
14 Requires:       nodejs
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _appdir         %{_datadir}/%{name}
19
20 %description
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).
24
25 %prep
26 %setup -q
27 %{__sed} -i -e '1s,^#!.*node,#!/usr/bin/node,' bin/*
28
29 %install
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}
34
35 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
36 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %doc README.md Changelog.md LICENSE
44 %dir %{_appdir}
45 %{_appdir}/stats.js
46 %{_appdir}/exampleConfig.js
47 %{_appdir}/backends
48 %{_appdir}/lib
49 %dir %{_appdir}/bin
50 %attr(755,root,root) %{_appdir}/bin/statsd
51 %{_examplesdir}/%{name}-%{version}
This page took 0.308296 seconds and 3 git commands to generate.