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