SPECS: collectd.spec - fix %files (webappsdir) - added BR net-snmp-devel - ...
luzik
luzik at pld-linux.org
Sat Jun 14 11:40:50 CEST 2008
Author: luzik Date: Sat Jun 14 09:40:50 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- fix %files (webappsdir)
- added BR net-snmp-devel
- x8664 fix
- powerdns subpackage
---- Files affected:
SPECS:
collectd.spec (1.27 -> 1.28)
---- Diffs:
================================================================
Index: SPECS/collectd.spec
diff -u SPECS/collectd.spec:1.27 SPECS/collectd.spec:1.28
--- SPECS/collectd.spec:1.27 Wed May 28 11:43:37 2008
+++ SPECS/collectd.spec Sat Jun 14 11:40:45 2008
@@ -60,12 +60,20 @@
# vserver . . . . . . yes
# wireless . . . . . yes
# xmms . . . . . . . yes
-
+%bcond_without dns
+%bcond_without iptables
+%bcond_without netlink
+
+#http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358637
+%ifarch %{x8664}
+%undefine with_iptables
+%undefine with_netlink
+%endif
Summary: Collects system information in RRD files
Summary(pl.UTF-8): Zbieranie informacji o systemie w plikach RRD
Name: collectd
Version: 4.4.0
-Release: 0.5
+Release: 0.6
License: GPL v2
Group: Daemons
Source0: http://collectd.org/files/%{name}-%{version}.tar.gz
@@ -89,6 +97,7 @@
BuildRequires: perl-devel
BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: rrdtool-devel
+BuildRequires: net-snmp-devel
BuildRequires: xmms-devel
Requires(post,preun): /sbin/chkconfig
Requires: rc-scripts
@@ -203,6 +212,15 @@
%description ping
ping plugin for collectd.
+%package powerdns
+Summary: powerdns-plugin for collectd
+Summary(pl_PL.UTF-8): Wtyczka powerdns dla collectd
+Group: Daemons
+Requires: %{name} = %{version}-%{release}
+
+%description powerdns
+powerdns plugin for collectd.
+
%package rrdtool
Summary: rrdtool-plugin for collectd
Summary(pl_PL.UTF-8): Wtyczka rrdtool dla collectd
@@ -264,10 +282,16 @@
%{__autoconf}
%{__autoheader}
%{__automake}
+
%configure \
--with-libstatgrab=/usr \
--with-lm-sensors=/usr \
- --with-libmysql=/usr
+ --with-libmysql=/usr \
+ --%{?with_dns:en}%{?!with_dns:dis}able-dns \
+ --%{?with_iptables:en}%{?!with_iptables:dis}able-iptables \
+ --%{?with_netlink:en}%{?!with_netlink:dis}able-netlink
+
+
%{__make} LDFLAGS="%{rpmldflags} -lstatgrab"
%install
@@ -337,7 +361,9 @@
%attr(755,root,root) %{_libdir}/%{name}/entropy.so
%attr(755,root,root) %{_libdir}/%{name}/exec.so
%attr(755,root,root) %{_libdir}/%{name}/interface.so
+%if %{with iptables}
%attr(755,root,root) %{_libdir}/%{name}/iptables.so
+%endif
%attr(755,root,root) %{_libdir}/%{name}/irq.so
%attr(755,root,root) %{_libdir}/%{name}/load.so
%attr(755,root,root) %{_libdir}/%{name}/logfile.so
@@ -345,12 +371,13 @@
%attr(755,root,root) %{_libdir}/%{name}/memcached.so
%attr(755,root,root) %{_libdir}/%{name}/memory.so
%attr(755,root,root) %{_libdir}/%{name}/multimeter.so
+%if %{with netlink}
%attr(755,root,root) %{_libdir}/%{name}/netlink.so
+%endif
%attr(755,root,root) %{_libdir}/%{name}/network.so
%attr(755,root,root) %{_libdir}/%{name}/nfs.so
%attr(755,root,root) %{_libdir}/%{name}/ntpd.so
#%attr(755,root,root) %{_libdir}/%{name}/perl.so
-%attr(755,root,root) %{_libdir}/%{name}/powerdns.so
%attr(755,root,root) %{_libdir}/%{name}/processes.so
%attr(755,root,root) %{_libdir}/%{name}/serial.so
%attr(755,root,root) %{_libdir}/%{name}/swap.so
@@ -396,8 +423,8 @@
%files collection
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_webappdir}/collection.conf
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
%attr(755,root,root) %{_appdir}/cgi-bin/collection.cgi
%files dns
@@ -420,6 +447,10 @@
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/ping.so
+%files powerdns
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/powerdns.so
+
%files rrdtool
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/rrdtool.so
@@ -446,6 +477,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.28 2008-06-14 09:40:45 luzik
+- fix %files (webappsdir)
+- added BR net-snmp-devel
+- x8664 fix
+- powerdns subpackage
+
Revision 1.27 2008-05-28 09:43:37 blues
- webapps support
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/collectd.spec?r1=1.27&r2=1.28&f=u
More information about the pld-cvs-commit
mailing list