]> git.pld-linux.org Git - packages/cacti-plugin-npc.git/blob - cacti-plugin-npc.spec
- clean and correct R/BR
[packages/cacti-plugin-npc.git] / cacti-plugin-npc.spec
1 # TODO
2 # -  Edit the MySQL options on line 143 of /cacti/plugins/npc/neb/inserter.c
3 %define         namesrc npc
4 %include        /usr/lib/rpm/macros.perl
5 Summary:        Plugin for Cacti - NPC
6 Summary(pl):    Wtyczka do Cacti - NPC
7 Name:           cacti-plugin-npc
8 Version:        0.1.1a
9 Release:        0.1
10 License:        GPL v2
11 Group:          Applications/WWW
12 Source0:        http://www.divagater.com/npc/%{namesrc}-%{version}.tar.gz
13 # Source0-md5:  325f2e49070420346b55b7b4e2994d34
14 Patch0:         %{name}-path_headers.patch
15 URL:            http://www.divagater.com/npc/
16 BuildRequires:  rpm-perlprov
17 BuildRequires:  nagios-devel >= 2.1
18 BuildRequires:  mysql-devel >= 4.1.0
19 Requires:       cacti >= 0.8.6h
20 Requires:       nagios >= 2.1
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
24 %define         pathtonagiosmodules     /path/to/nagios/modules
25
26 %description
27 Plugin for Cacti - A UI replacement for Nagios integrated into Cacti.
28
29 %description -l pl
30 Wtyczka do Cacti - zamiennik interfejsu u¿ytkownika dla Nagiosa
31 zintegrowany z Cacti.
32
33 %prep
34 %setup -q -n %{namesrc}
35 %patch0 -p1
36
37 %build
38 cd ./neb
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
44 install -d $RPM_BUILD_ROOT%{pathtonagiosmodules}
45 install ./neb/inserter.o $RPM_BUILD_ROOT%{pathtonagiosmodules}
46 rm -fr ./neb
47 cp -aRf * $RPM_BUILD_ROOT%{webcactipluginroot}
48
49 # Edit nagios.cfg and set:
50 #
51 #        retain_state_information=0
52 #        event_broker_options=-1
53 #        broker_module=%{pathtonagiosmodules}/inserter.o
54
55 # Setting retain_state_information=0 causes all hosts and services to
56 # go to a pending state until rechecked by Nagios. Without this setting
57 # the inserter module will never update any data in NPC. Its a minor
58 # inconvenience that I will try to fix in the inserter module.
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc TODO README 
66 %{webcactipluginroot}
67 %{pathtonagiosmodules}/inserter.o
This page took 0.065437 seconds and 4 git commands to generate.