Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
RPM SPEC for collectd carbon plugin.
%define giturl 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
Source0 : %{gituser}-%{name}-%{gitrev}.tar.gz
Source1 : carbon.conf
Vendor : Gregory Szorc
License : Apache License, Version 2
Packager : Dan Carley <>
BuildArch : noarch
BuildRoot : %{_tmppath}/%{name}-%{version}-root
Requires : collectd
This plugin writes obtained values to Graphite's Carbon daemon.
%setup -n %{gituser}-%{name}-%{gitrev}
cp %{SOURCE1} .
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 %{buildroot}/usr/share/collectd/plugins/
rm -rf %{buildroot}
%defattr(-, root, root, -)
%config(noreplace) %{_sysconfdir}/collectd.d/carbon.conf
* Fri May 20 2011 Dan Carley <> 0.0.2-1
- Include pulled fix for derived counters.
* Fri May 13 2011 Dan Carley <> 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.