1 Summary: A backend data gatherer for cacti
7 Source0: http://www.cacti.net/downloads/cactid/%{name}-%{version}.tar.gz
8 # Source0-md5: 2b102f9029ffaa4fb0e186c6640b1851
10 Source2: %{name}.sysconfig
11 URL: http://www.cacti.net/
12 BuildRequires: automake
13 BuildRequires: mysql-devel
14 BuildRequires: net-snmp-devel
15 BuildRequires: openssl-devel
16 BuildRequires: zlib-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 A backend data gatherer for cacti. This package represents the future
21 replacement for cacti's cmd.php. It is almost 100% compatible with the
22 legacy cmd.php processor.
28 install /usr/share/automake/config.* config
31 --with-snmp=%{_prefix}
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig}
39 DESTDIR=$RPM_BUILD_ROOT
41 install cactid.conf $RPM_BUILD_ROOT%{_sysconfdir}
42 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/cactid
43 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/cactid
46 rm -rf $RPM_BUILD_ROOT
49 /sbin/chkconfig --add cactid
50 if [ -f /var/lock/subsys/cactid ]; then
51 /etc/rc.d/init.d/cactid restart 1>&2
53 echo "Run \"/etc/rc.d/init.d/cactid start\" to start cactid daemon."
57 if [ "$1" = "0" ]; then
58 if [ -f /var/lock/subsys/cactid ]; then
59 /etc/rc.d/init.d/cactid stop 1>&2
61 /sbin/chkconfig --del cactid
66 %defattr(644,root,root,755)
68 %attr(755,root,root) %{_bindir}/*
69 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cactid.conf
70 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sysconfig/cactid
71 %attr(754,root,root) /etc/rc.d/init.d/cactid