Created
June 1, 2011 13:54
-
-
Save dcarley/1002332 to your computer and use it in GitHub Desktop.
RPM SPEC for collectd carbon plugin.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%define giturl git://github.com/indygreg/collectd-carbon.git | |
%define gitrev e20819b | |
%define gituser indygreg | |
Name : collectd-carbon | |
Version : 0.0.2 | |
Release : 1.%{gitrev} | |
Summary : Carbon plugin for collectd | |
Group : System Environment/Daemons | |
# http://github.com/%{gituser}/%{name}/tarball/%{gitrev} | |
Source0 : %{gituser}-%{name}-%{gitrev}.tar.gz | |
Source1 : carbon.conf | |
URL : https://github.com/indygreg/collectd-carbon | |
Vendor : Gregory Szorc | |
License : Apache License, Version 2 | |
Packager : Dan Carley <[email protected]> | |
BuildArch : noarch | |
BuildRoot : %{_tmppath}/%{name}-%{version}-root | |
Requires : collectd | |
%description | |
This plugin writes obtained values to Graphite's Carbon daemon. | |
%prep | |
%setup -n %{gituser}-%{name}-%{gitrev} | |
cp %{SOURCE1} . | |
%install | |
rm -rf %{buildroot} | |
install -d -m 755 %{buildroot}/etc/collectd.d | |
install carbon.conf %{buildroot}/etc/collectd.d/ | |
install -d -m 755 %{buildroot}/usr/share/collectd/plugins | |
install carbon_writer.py %{buildroot}/usr/share/collectd/plugins/ | |
%clean | |
rm -rf %{buildroot} | |
%files | |
%defattr(-, root, root, -) | |
%config(noreplace) %{_sysconfdir}/collectd.d/carbon.conf | |
/usr/share/collectd/plugins/carbon_writer.py* | |
%doc README.md | |
%changelog | |
* Fri May 20 2011 Dan Carley <[email protected]> 0.0.2-1 | |
- Include pulled fix for derived counters. | |
* Fri May 13 2011 Dan Carley <[email protected]> 0.0.1-1 | |
- Initial version from Gregory Szorc. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment