1 Summary: A backend data gatherer for Cacti
2 Summary(pl.UTF-8): Backend gromadzący dane dla Cacti
8 Source0: http://www.cacti.net/downloads/spine/%{name}-%{version}.tar.gz
9 # Source0-md5: 448c813422f943dc09b237bd8022002a
10 Patch0: %{name}-paths.patch
12 # Official patches http://www.cacti.net/spine_download_patches.php
13 URL: http://www.cacti.net/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: libcap-devel
17 BuildRequires: libtool
18 BuildRequires: mysql-devel
19 BuildRequires: net-snmp-devel
20 BuildRequires: openssl-devel
21 BuildRequires: rpmbuild(macros) >= 1.502
22 BuildRequires: zlib-devel
23 %requires_eq net-snmp-libs
25 Obsoletes: cacti-cactid
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _webapps /etc/webapps
30 %define _sysconfdir %{_webapps}/%{_webapp}
31 %define _bindir %{_sbindir}
34 A backend data gatherer for Cacti. This package represents the future
35 replacement for Cacti's cmd.php. It is almost 100% compatible with the
36 legacy cmd.php processor.
38 %description -l pl.UTF-8
39 Backend gromadzący dane dla Cacti. Ten pakiet reprezentuje przyszły
40 zamiennik cmd.php z Cacti. Jest prawie w 100% kompatybilny ze starym
57 --with-results-buffer=4096 \
60 --with-snmp=%{_prefix}
64 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT
68 mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine}
69 mv $RPM_BUILD_ROOT%{_sysconfdir}/spine.conf{.dist,}
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
77 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
78 %attr(755,root,root) %{_sbindir}/cacti-poller-spine