[collectd] Patch : contrib/redhat/collectd.spec
Bruno Mairlot
collectd at maehdros.com
Wed Jan 2 15:29:23 CET 2013
Hello,
You'll find bellow a patch to apply on the collectd.spec file of the
original archive 5.2.0
I have worked on a new .spec file to allow for building RPMs for
CentOS/RHEL, it should probably work on Fedora too, although I haven't
tested (yet).
I tried to build it with as much plugin possible, but I limited them to
those that could be built with the standard package from RedHat-Base (=
CentOS-Base) in order to keep it the most lightweight possible. It could
eventually be adjusted to allow for more flexibility or create multiple
subpackage with the specific plugin but I don't know enough about the
the plugins hierarchy to do that right now.
Hope it helps, and it you want to get the complete file, just drop me a
mail.
Bruno
--- Diff start below this line ---
12c12,15
< BuildPrereq: lm_sensors-devel, rrdtool-devel, libpcap-devel,
net-snmp-devel, libstatgrab-devel, libxml2-devel, libiptcdata-devel
---
> BuildRequires: lm_sensors-devel, rrdtool-devel, libpcap-devel,
net-snmp-devel, libstatgrab-devel, libxml2-devel, libiptcdata-devel
> BuildRequires: libgcrypt-devel, libgpg-error-devel,
perl-ExtUtils-MakeMaker, perl-ExtUtils-Embed, yajl-devel, OpenIPMI-devel
> BuildRequires: mysql-devel , libdbi-devel, libesmtp-devel,
ganglia-devel, libmemcached-devel, libvirt-devel, python-devel,
postgresql-devel
>
14c17
< BuildPrereq: curl-devel,libidn-devel,openssl-devel
---
> BuildRequires: curl-devel,libidn-devel,openssl-devel
149a153
> %attr(0755,root,root) %{_bindir}/collectd-tg
157a162,163
> %attr(0644,root,root) /usr/include/collectd/network.h
> %attr(0644,root,root) /usr/include/collectd/network_buffer.h
189d194
< %plugin_macro iptables
194c199,211
<
---
> %plugin_macro dbi
> %plugin_macro aggregation
> %plugin_macro curl_json
> %plugin_macro ethstat
> %plugin_macro gmond
> %plugin_macro ipmi
> %plugin_macro ipvs
> %plugin_macro libvirt
> %plugin_macro md
> %plugin_macro notify_email
> %plugin_macro numa
> %plugin_macro postgresql
> %plugin_macro write_graphite
247,253c264,269
< %exclude %{_libdir}/perl5/5.8.8/%{_arch}-linux-thread-multi/perllocal.pod
< %attr(0644,root,root)
%{_libdir}/perl5/site_perl/5.8.8/%{_arch}-linux-thread-multi/auto/Collectd/.packlist
< %attr(0644,root,root) /usr/lib/perl5/site_perl/5.8.8/Collectd.pm
< %attr(0644,root,root) /usr/lib/perl5/site_perl/5.8.8/Collectd/Unixsock.pm
< %attr(0644,root,root)
/usr/lib/perl5/site_perl/5.8.8/Collectd/Plugins/OpenVZ.pm
< %attr(0644,root,root)
/usr/lib/perl5/site_perl/5.8.8/Collectd/Plugins/Monitorus.pm
< %attr(0644,root,root) /usr/share/man/man3/Collectd::Unixsock.3pm.gz
---
> %exclude /usr/lib/perl5/%{_arch}-linux-thread-multi/perllocal.pod
> %attr(0644,root,toot)
/usr/lib/perl5/%{_arch}-linux-thread-multi/auto/Collectd/.packlist
> %attr(0644,root,root) /usr/lib/perl5/Collectd.pm
> %attr(0644,root,root) /usr/lib/perl5/Collectd/Unixsock.pm
> %attr(0644,root,root) /usr/lib/perl5/Collectd/Plugins/OpenVZ.pm
> %attr(0644,root,root) /usr/man/man3/Collectd::Unixsock.3pm.gz
More information about the collectd
mailing list