~ubuntu-branches/ubuntu/precise/nagios-plugins/precise-proposed

« back to all changes in this revision

Viewing changes to nagios-plugins.spec

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2004-06-15 15:37:48 UTC
  • Revision ID: james.westby@ubuntu.com-20040615153748-pq7702qdzghqfcns
Tags: upstream-1.3.1.0
ImportĀ upstreamĀ versionĀ 1.3.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%{!?custom:%global custom 0}
 
2
 
 
3
%define archive nagios-plugins
 
4
 
 
5
%if %custom
 
6
%define name %{archive}-custom
 
7
%else
 
8
%define name %{archive}
 
9
%endif
 
10
 
 
11
%define version 1.3.1
 
12
%define release 1
 
13
%define source %{archive}-%{version}
 
14
 
 
15
Name: %{name}
 
16
Version: %{version}
 
17
Release: %{release}
 
18
Copyright: GPL
 
19
Source: %{source}.tar.gz
 
20
BuildRoot: %{_tmppath}/%{name}-buildroot
 
21
Prefix: %{_prefix}/lib/nagios/plugins
 
22
Packager: Karl DeBisschop <kdebisschop@users.sourceforge.net>
 
23
Vendor: Nagios Plugin Development Group
 
24
%if %custom
 
25
Obsoletes: nagios-plugins nagios-plugins-extras
 
26
%else
 
27
Obsoletes: nagios-plugins-custom
 
28
%endif
 
29
AutoReqProv: no
 
30
Summary: Host/service/network monitoring program plugins for Nagios
 
31
Group: Applications/System
 
32
 
 
33
 
 
34
%description
 
35
 
 
36
Nagios is a program that will monitor hosts and services on your
 
37
network, and to email or page you when a problem arises or is
 
38
resolved. Nagios runs on a unix server as a background or daemon
 
39
process, intermittently running checks on various services that you
 
40
specify. The actual service checks are performed by separate "plugin"
 
41
programs which return the status of the checks to Nagios.
 
42
 
 
43
This package contains the basic plugins necessary for use with the
 
44
Nagios package.  This package should install cleanly on almost any
 
45
RPM-based system.
 
46
 
 
47
 
 
48
%package extras
 
49
Summary: Plugins which depend on the presence of other packages
 
50
Group: Applications/System
 
51
 
 
52
%description extras
 
53
 
 
54
Nagios is a program that will monitor hosts and services on your
 
55
network, and to email or page you when a problem arises or is
 
56
resolved. Nagios runs on a unix server as a background or daemon
 
57
process, intermittently running checks on various services that you
 
58
specify. The actual service checks are performed by separate "plugin"
 
59
programs which return the status of the checks to Nagios.
 
60
 
 
61
This package contains plugins which use additional libraries or system
 
62
calls that are not installed on all systems.  As a result, most users
 
63
will need to install the '--nodeps' option when invoking `rpm`
 
64
 
 
65
 
 
66
%prep
 
67
%setup -q -n %{source}
 
68
 
 
69
 
 
70
%build
 
71
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
 
72
--prefix=%{_prefix}/lib/nagios/plugins \
 
73
--libexecdir=%{_prefix}/lib/nagios/plugins \
 
74
--with-cgiurl=/nagios/cgi-bin
 
75
make
 
76
 
 
77
 
 
78
%install
 
79
make AM_INSTALL_PROGRAM_FLAGS="" DESTDIR=${RPM_BUILD_ROOT} install
 
80
install -d ${RPM_BUILD_ROOT}/etc/nagios
 
81
install -m 664 command.cfg ${RPM_BUILD_ROOT}/etc/nagios
 
82
 
 
83
%clean
 
84
rm -rf $RPM_BUILD_ROOT
 
85
 
 
86
 
 
87
%files
 
88
%defattr(-,root,root)
 
89
%config(missingok,noreplace) /etc/nagios/command.cfg
 
90
%doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT
 
91
%doc ChangeLog command.cfg
 
92
%defattr(775,root,root)
 
93
%dir %{_prefix}/lib/nagios/plugins
 
94
%if %custom
 
95
%{_prefix}/lib/nagios/plugins/*
 
96
%else
 
97
%{_prefix}/lib/nagios/plugins/check_by_ssh
 
98
%{_prefix}/lib/nagios/plugins/check_breeze
 
99
%{_prefix}/lib/nagios/plugins/check_dig
 
100
%{_prefix}/lib/nagios/plugins/check_disk
 
101
%{_prefix}/lib/nagios/plugins/check_disk_smb
 
102
%{_prefix}/lib/nagios/plugins/check_dns
 
103
%{_prefix}/lib/nagios/plugins/check_dummy
 
104
%{_prefix}/lib/nagios/plugins/check_flexlm
 
105
%{_prefix}/lib/nagios/plugins/check_ftp
 
106
%{_prefix}/lib/nagios/plugins/check_http
 
107
%{_prefix}/lib/nagios/plugins/check_ifoperstatus
 
108
%{_prefix}/lib/nagios/plugins/check_ifstatus
 
109
%{_prefix}/lib/nagios/plugins/check_imap
 
110
%{_prefix}/lib/nagios/plugins/check_ircd
 
111
%{_prefix}/lib/nagios/plugins/check_load
 
112
%{_prefix}/lib/nagios/plugins/check_log
 
113
%{_prefix}/lib/nagios/plugins/check_mailq
 
114
%{_prefix}/lib/nagios/plugins/check_mrtg
 
115
%{_prefix}/lib/nagios/plugins/check_mrtgtraf
 
116
%{_prefix}/lib/nagios/plugins/check_nagios
 
117
%{_prefix}/lib/nagios/plugins/check_nntp
 
118
%{_prefix}/lib/nagios/plugins/check_nt
 
119
%{_prefix}/lib/nagios/plugins/check_ntp
 
120
%{_prefix}/lib/nagios/plugins/check_nwstat
 
121
%{_prefix}/lib/nagios/plugins/check_oracle
 
122
%{_prefix}/lib/nagios/plugins/check_overcr
 
123
%{_prefix}/lib/nagios/plugins/check_ping
 
124
%{_prefix}/lib/nagios/plugins/check_pop
 
125
%{_prefix}/lib/nagios/plugins/check_procs
 
126
%{_prefix}/lib/nagios/plugins/check_real
 
127
%{_prefix}/lib/nagios/plugins/check_rpc
 
128
%{_prefix}/lib/nagios/plugins/check_sensors
 
129
%{_prefix}/lib/nagios/plugins/check_smtp
 
130
%{_prefix}/lib/nagios/plugins/check_ssh
 
131
%{_prefix}/lib/nagios/plugins/check_swap
 
132
%{_prefix}/lib/nagios/plugins/check_tcp
 
133
%{_prefix}/lib/nagios/plugins/check_time
 
134
%{_prefix}/lib/nagios/plugins/check_udp
 
135
%{_prefix}/lib/nagios/plugins/check_ups
 
136
%{_prefix}/lib/nagios/plugins/check_users
 
137
%{_prefix}/lib/nagios/plugins/check_vsz
 
138
%{_prefix}/lib/nagios/plugins/check_wave
 
139
%{_prefix}/lib/nagios/plugins/negate
 
140
%{_prefix}/lib/nagios/plugins/utils.pm
 
141
%{_prefix}/lib/nagios/plugins/utils.sh
 
142
%{_prefix}/lib/nagios/plugins/urlize
 
143
%endif
 
144
 
 
145
%if ! %custom
 
146
%files extras
 
147
%defattr(775,root,root)
 
148
%{_prefix}/lib/nagios/plugins/check_fping
 
149
%{_prefix}/lib/nagios/plugins/check_game
 
150
%{_prefix}/lib/nagios/plugins/check_ldap
 
151
%{_prefix}/lib/nagios/plugins/check_mysql
 
152
%{_prefix}/lib/nagios/plugins/check_pgsql
 
153
%{_prefix}/lib/nagios/plugins/check_radius
 
154
%{_prefix}/lib/nagios/plugins/check_snmp
 
155
%{_prefix}/lib/nagios/plugins/check_hpjd
 
156
 
 
157
%endif
 
158
 
 
159
%changelog
 
160
* Wed Jan 17 2001 Karl DeBisschop <karl@debisschop.net> (1.2.9-1)
 
161
- switch from /usr/libexec to /usr/lib because FHS has no libexec
 
162
- use 'custom' macro define to merge with nagios-plugins-custom spec
 
163
- add check_game to extras
 
164
 
 
165
* Mon Jun 26 2000 Karl DeBisschop <karl@debisschop.net>
 
166
- Release 1.2.8-4 (check_ping bug fix)
 
167
- use bzip2 insted of gzip for mandrake compatibility
 
168
 
 
169
* Thu Jun 22 2000 Karl DeBisschop <karl@debisschop.net>
 
170
- Release 1.2.8-3 (bug fixes)
 
171
- Add macros to spec where possible
 
172
 
 
173
* Fri Jun 16 2000 Karl DeBisschop <karl@debisschop.net>
 
174
- Release 1.2.8-2 (bug fixes)
 
175
 
 
176
* Fri Jun 09 2000 Karl DeBisschop <karl@debisschop.net>
 
177
- Release to 1.2.8
 
178
 
 
179
* Wed Jun 07 2000 Karl DeBisschop <karl@debisschop.net>
 
180
- Upgrade to 1.2.8pre7
 
181
 
 
182
* Sat Jun 03 2000 Karl DeBisschop <karl@debisschop.net>
 
183
- Upgraded to 1.2.8pre5
 
184
- use RPM_OPT_FALGS to set compiler options
 
185
- cahneg group to Applications/System
 
186
 
 
187
* Fri May 19 2000 Karl DeBisschop <karl@debisschop.net>
 
188
- Upgraded to 1.2.8pre3 (release-3)
 
189
 
 
190
* Mon Mar 20 2000 Karl DeBisschop <karl@debisschop.net>
 
191
- Upgraded to 1.2.8b2
 
192
 
 
193
* Tue Dec 14 1999 Adam Jacob <adam@cybertrails.com> (1.2.7-1cvs)
 
194
- Upgraded package from 1.2.6 to 1.2.7 from the latest CVS code
 
195
- Modified SPEC file to contain the proper build_root stuff. :)
 
196
 
 
197
* Tue Oct 19 1999 Mike McHenry <mmchen@minn.net> (1.2.6)
 
198
- Upgraded package from 1.2.4 to 1.2.6
 
199
- Resolved dependancy issue with libpq.so
 
200
- Added support for check_fping
 
201
 
 
202
* Fri Sep 03 1999 Mike McHenry <mmchen@minn.net> (1.2.4)
 
203
- Upgraded package from 1.2.2 to 1.2.4
 
204
 
 
205
* Mon Aug 16 1999 Mike McHenry <mmchen@minn.net> (1.2.2)
 
206
- First RPM build (1.2.2)