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