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: 99e5bde07fc31d1ed8aa23c59de00417
10 Patch0: %{name}-paths.patch
11 Patch100: http://www.cacti.net/downloads/spine/patches/snmp_v3_fix.patch
12 Patch101: http://www.cacti.net/downloads/spine/patches/mysql_client_reconnect.patch
13 Patch102: http://www.cacti.net/downloads/spine/patches/ping_reliability.patch
14 URL: http://www.cacti.net/
15 BuildRequires: autoconf
16 BuildRequires: automake
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 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _webapps /etc/webapps
29 %define _sysconfdir %{_webapps}/%{_webapp}
30 %define _bindir %{_sbindir}
33 A backend data gatherer for cacti. This package represents the future
34 replacement for cacti's cmd.php. It is almost 100% compatible with the
35 legacy cmd.php processor.
37 %description -l pl.UTF-8
38 Backend gromadzący dane dla cacti. Ten pakiet reprezentuje przyszły
39 zamiennik cmd.php z cacti. Jest prawie w 100% kompatybilny ze starym
56 --with-results-buffer=4096 \
58 --with-snmp=%{_prefix}
62 rm -rf $RPM_BUILD_ROOT
64 DESTDIR=$RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_sysconfdir}
67 cp -a spine.conf $RPM_BUILD_ROOT%{_sysconfdir}
68 mv $RPM_BUILD_ROOT%{_sbindir}/{spine,cacti-poller-spine}
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
76 %attr(755,root,root) %{_sbindir}/cacti-poller-spine
77 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/spine.conf