Code

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