1 Summary: A backend data gatherer for cacti
7 Source0: http://www.cacti.net/downloads/cactid/%{name}-%{version}.tar.gz
8 # Source0-md5: 2b102f9029ffaa4fb0e186c6640b1851
9 URL: http://www.cacti.net/
10 BuildRequires: automake
11 BuildRequires: mysql-devel
12 BuildRequires: net-snmp-devel
13 BuildRequires: openssl-devel
14 BuildRequires: zlib-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 A backend data gatherer for cacti. This package represents the future
19 replacement for cacti's cmd.php. It is almost 100% compatible with the
20 legacy cmd.php processor.
26 install /usr/share/automake/config.* config
29 --with-snmp=%{_prefix}
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/
37 DESTDIR=$RPM_BUILD_ROOT
39 install cactid.conf $RPM_BUILD_ROOT%{_sysconfdir}
41 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/%{name}
42 */5 * * * * nobody umask 022; /usr/bin/cactid > /dev/null 2>&1
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
51 %attr(755,root,root) %{_bindir}/*
52 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cactid.conf
53 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}