Code

checkins for internationalization
[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 %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
34 %description
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.
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.
48 %package extras
49 Summary: Plugins which depend on the presence of other packages
50 Group: Applications/System
52 %description extras
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.
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`
66 %prep
67 %setup -q -n %{source}
70 %build
71 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
72 --prefix=%{_prefix} \
73 --exec-prefix=%{_exec_prefix} \
74 --libexecdir=%{_exec_prefix}/lib/nagios/plugins \
75 --sysconfdir=%{_sysconfdir}/nagios \
76 --datadir=%{_datadir} \
77 --with-cgiurl=/nagios/cgi-bin
78 make
81 %install
82 make AM_INSTALL_PROGRAM_FLAGS="" DESTDIR=${RPM_BUILD_ROOT} install
83 install -d ${RPM_BUILD_ROOT}/etc/nagios
84 install -m 664 command.cfg ${RPM_BUILD_ROOT}/etc/nagios
86 %clean
87 rm -rf $RPM_BUILD_ROOT
90 %files
91 %defattr(-,root,root)
92 %config(missingok,noreplace) /etc/nagios/command.cfg
93 %doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT
94 %doc ChangeLog command.cfg
95 %defattr(775,root,root)
96 %dir %{_exec_prefix}/lib/nagios/plugins
97 %{_datadir}/locale/de/LC_MESSAGES/nagios-plugins.mo
98 %{_datadir}/locale/fr/LC_MESSAGES/nagios-plugins.mo
99 %if %custom
100 %{_exec_prefix}/lib/nagios/plugins/*
101 %else
102 %{_exec_prefix}/lib/nagios/plugins/check_by_ssh
103 %{_exec_prefix}/lib/nagios/plugins/check_breeze
104 %{_exec_prefix}/lib/nagios/plugins/check_dig
105 %{_exec_prefix}/lib/nagios/plugins/check_disk
106 %{_exec_prefix}/lib/nagios/plugins/check_disk_smb
107 %{_exec_prefix}/lib/nagios/plugins/check_dns
108 %{_exec_prefix}/lib/nagios/plugins/check_dummy
109 %{_exec_prefix}/lib/nagios/plugins/check_flexlm
110 %{_exec_prefix}/lib/nagios/plugins/check_ftp
111 %{_exec_prefix}/lib/nagios/plugins/check_http
112 %{_exec_prefix}/lib/nagios/plugins/check_ifoperstatus
113 %{_exec_prefix}/lib/nagios/plugins/check_ifstatus
114 %{_exec_prefix}/lib/nagios/plugins/check_imap
115 %{_exec_prefix}/lib/nagios/plugins/check_ircd
116 %{_exec_prefix}/lib/nagios/plugins/check_load
117 %{_exec_prefix}/lib/nagios/plugins/check_log
118 %{_exec_prefix}/lib/nagios/plugins/check_mailq
119 %{_exec_prefix}/lib/nagios/plugins/check_mrtg
120 %{_exec_prefix}/lib/nagios/plugins/check_mrtgtraf
121 %{_exec_prefix}/lib/nagios/plugins/check_nagios
122 %{_exec_prefix}/lib/nagios/plugins/check_nntp
123 %{_exec_prefix}/lib/nagios/plugins/check_nt
124 %{_exec_prefix}/lib/nagios/plugins/check_ntp
125 %{_exec_prefix}/lib/nagios/plugins/check_nwstat
126 %{_exec_prefix}/lib/nagios/plugins/check_oracle
127 %{_exec_prefix}/lib/nagios/plugins/check_overcr
128 %{_exec_prefix}/lib/nagios/plugins/check_ping
129 %{_exec_prefix}/lib/nagios/plugins/check_pop
130 %{_exec_prefix}/lib/nagios/plugins/check_procs
131 %{_exec_prefix}/lib/nagios/plugins/check_real
132 %{_exec_prefix}/lib/nagios/plugins/check_rpc
133 %{_exec_prefix}/lib/nagios/plugins/check_sensors
134 %{_exec_prefix}/lib/nagios/plugins/check_smtp
135 %{_exec_prefix}/lib/nagios/plugins/check_ssh
136 %{_exec_prefix}/lib/nagios/plugins/check_swap
137 %{_exec_prefix}/lib/nagios/plugins/check_tcp
138 %{_exec_prefix}/lib/nagios/plugins/check_time
139 %{_exec_prefix}/lib/nagios/plugins/check_udp
140 %{_exec_prefix}/lib/nagios/plugins/check_ups
141 %{_exec_prefix}/lib/nagios/plugins/check_users
142 %{_exec_prefix}/lib/nagios/plugins/check_wave
143 %{_exec_prefix}/lib/nagios/plugins/negate
144 %{_exec_prefix}/lib/nagios/plugins/utils.pm
145 %{_exec_prefix}/lib/nagios/plugins/utils.sh
146 %{_exec_prefix}/lib/nagios/plugins/urlize
147 %{_exec_prefix}/lib/nagios/plugins/check_file_age
148 %endif
150 %if ! %custom
151 %files extras
152 %defattr(775,root,root)
153 %{_exec_prefix}/lib/nagios/plugins/check_fping
154 %{_exec_prefix}/lib/nagios/plugins/check_game
155 %{_exec_prefix}/lib/nagios/plugins/check_ldap
156 %{_exec_prefix}/lib/nagios/plugins/check_mysql
157 %{_exec_prefix}/lib/nagios/plugins/check_pgsql
158 %{_exec_prefix}/lib/nagios/plugins/check_radius
159 %{_exec_prefix}/lib/nagios/plugins/check_snmp
160 %{_exec_prefix}/lib/nagios/plugins/check_hpjd
162 %endif
164 %changelog
165 * Wed Jan 17 2001 Karl DeBisschop <karl@debisschop.net> (1.2.9-1)
166 - switch from /usr/libexec to /usr/lib because FHS has no libexec
167 - use 'custom' macro define to merge with nagios-plugins-custom spec
168 - add check_game to extras
170 * Mon Jun 26 2000 Karl DeBisschop <karl@debisschop.net>
171 - Release 1.2.8-4 (check_ping bug fix)
172 - use bzip2 insted of gzip for mandrake compatibility
174 * Thu Jun 22 2000 Karl DeBisschop <karl@debisschop.net>
175 - Release 1.2.8-3 (bug fixes)
176 - Add macros to spec where possible
178 * Fri Jun 16 2000 Karl DeBisschop <karl@debisschop.net>
179 - Release 1.2.8-2 (bug fixes)
181 * Fri Jun 09 2000 Karl DeBisschop <karl@debisschop.net>
182 - Release to 1.2.8
184 * Wed Jun 07 2000 Karl DeBisschop <karl@debisschop.net>
185 - Upgrade to 1.2.8pre7
187 * Sat Jun 03 2000 Karl DeBisschop <karl@debisschop.net>
188 - Upgraded to 1.2.8pre5
189 - use RPM_OPT_FALGS to set compiler options
190 - cahneg group to Applications/System
192 * Fri May 19 2000 Karl DeBisschop <karl@debisschop.net>
193 - Upgraded to 1.2.8pre3 (release-3)
195 * Mon Mar 20 2000 Karl DeBisschop <karl@debisschop.net>
196 - Upgraded to 1.2.8b2
198 * Tue Dec 14 1999 Adam Jacob <adam@cybertrails.com> (1.2.7-1cvs)
199 - Upgraded package from 1.2.6 to 1.2.7 from the latest CVS code
200 - Modified SPEC file to contain the proper build_root stuff. :)
202 * Tue Oct 19 1999 Mike McHenry <mmchen@minn.net> (1.2.6)
203 - Upgraded package from 1.2.4 to 1.2.6
204 - Resolved dependancy issue with libpq.so
205 - Added support for check_fping
207 * Fri Sep 03 1999 Mike McHenry <mmchen@minn.net> (1.2.4)
208 - Upgraded package from 1.2.2 to 1.2.4
210 * Mon Aug 16 1999 Mike McHenry <mmchen@minn.net> (1.2.2)
211 - First RPM build (1.2.2)