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: 22c2b1986c880b9c587876c18d5c3f9f
10 Patch0: %{name}-paths.patch
11 URL: http://www.cacti.net/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: libtool
15 BuildRequires: mysql-devel
16 BuildRequires: net-snmp-devel
17 BuildRequires: openssl-devel
18 BuildRequires: rpmbuild(macros) >= 1.502
19 BuildRequires: zlib-devel
20 %requires_eq net-snmp-libs
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _webapps /etc/webapps
26 %define _sysconfdir %{_webapps}/%{_webapp}
27 %define _bindir %{_sbindir}
30 A backend data gatherer for cacti. This package represents the future
31 replacement for cacti's cmd.php. It is almost 100% compatible with the
32 legacy cmd.php processor.
34 %description -l pl.UTF-8
35 Backend gromadzący dane dla cacti. Ten pakiet reprezentuje przyszły
36 zamiennik cmd.php z cacti. Jest prawie w 100% kompatybilny ze starym
50 --with-results-buffer=4096 \
52 --with-snmp=%{_prefix}
56 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
60 mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine}
61 mv $RPM_BUILD_ROOT%{_sysconfdir}/spine.conf{.dist,}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf
70 %attr(755,root,root) %{_sbindir}/cacti-poller-spine