2 %define php_min_version 5.2.0
3 %include /usr/lib/rpm/macros.php
4 Summary: Automate Creation of Graphs and Tree Entries
5 Name: cacti-plugin-%{plugin}
9 Group: Applications/WWW
10 Source0: http://docs.cacti.net/_media/plugin:%{plugin}-v%{version}.tgz
11 # Source0-md5: a79e33fd85aff9e7e415771d9331ed9a
12 URL: http://docs.cacti.net/plugin:autom8
13 BuildRequires: rpm-php-pearprov >= 4.4.2-11
14 BuildRequires: rpmbuild(macros) >= 1.554
16 Requires: cacti(pia) >= 2.4
19 Requires: php-common >= 4:%{php_min_version}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define cactidir /usr/share/cacti
24 %define plugindir %{cactidir}/plugins/%{plugin}
27 Maintaining a quite decent Cacti installation with lots of devices,
28 graphs and tree items may result in quite a huge amount of
31 Using the CLI scripts allows you to write your own scripts to e.g.
32 create Cacti device entries, graphs, tree items and more. This helps
33 e.g. interfacing a CMDB or some other repository that holds
34 information about devices that shall be monitored.
39 mv %{plugin}/{LICENSE,README,automate_manual.pdf} .
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{plugindir}
44 cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
51 %doc README automate_manual.pdf