Skip to content

Instantly share code, notes, and snippets.

@piotr1212
Last active December 21, 2015 20:39
Show Gist options
  • Save piotr1212/6362752 to your computer and use it in GitHub Desktop.
Save piotr1212/6362752 to your computer and use it in GitHub Desktop.
rpm spec file for gearman-collectd plugin
Summary: Gearman plugin for collectd
Name: collectd-gearman
Version: 1
Release: 1%{?dist}
License: GPLv2
Group: System Environment/Daemons
URL: https://github.com/powdahound/gearman-collectd-plugin
Source0: %{name}-%{version}.tar.gz
Source1: gearman.conf
#BuildRequires:
Requires: collectd
Requires: python
%description
This colllectd plugin collects data from gearman queue's
%prep
%setup -n gearman-collectd-plugin-master
# %build
%install
# make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}/usr/lib/collectd/python
%{__install} -D -p -m 644 gearmand_info.py %{buildroot}/usr/lib/collectd/python/
mkdir -p %{buildroot}/etc/collectd.d/
%{__install} -D -p -m 644 %SOURCE1 %{buildroot}/etc/collectd.d/
%files
# %doc
%dir /usr/lib/collectd/python
/usr/lib/collectd/python/gearmand_info.py
/usr/lib/collectd/python/gearmand_info.pyc
/usr/lib/collectd/python/gearmand_info.pyo
%config /etc/collectd.d/gearman.conf
%changelog
* Tue Aug 20 2013 Piotr Popieluch <[email protected]> 1.0
- initial version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment