Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RPM SPEC for collectd carbon plugin.
%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 <dan.carley@gmail.com>
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 <dan.carley@gmail.com> 0.0.2-1
- Include pulled fix for derived counters.
* Fri May 13 2011 Dan Carley <dan.carley@gmail.com> 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
You can’t perform that action at this time.