diff options
Diffstat (limited to 'nagios-plugins.spec.in')
| -rw-r--r-- | nagios-plugins.spec.in | 124 |
1 files changed, 65 insertions, 59 deletions
diff --git a/nagios-plugins.spec.in b/nagios-plugins.spec.in index 912f5b34..2431f358 100644 --- a/nagios-plugins.spec.in +++ b/nagios-plugins.spec.in | |||
| @@ -8,8 +8,8 @@ | |||
| 8 | %define name %{archive} | 8 | %define name %{archive} |
| 9 | %endif | 9 | %endif |
| 10 | 10 | ||
| 11 | %define version %%{VER} | 11 | %define version %%{VERSION} |
| 12 | %define release %%{REL} | 12 | %define release %%{RELEASE} |
| 13 | %define source %{archive}-%{version} | 13 | %define source %{archive}-%{version} |
| 14 | 14 | ||
| 15 | Name: %{name} | 15 | Name: %{name} |
| @@ -69,8 +69,11 @@ will need to install the '--nodeps' option when invoking `rpm` | |||
| 69 | 69 | ||
| 70 | %build | 70 | %build |
| 71 | CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ | 71 | CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ |
| 72 | --prefix=%{_prefix}/lib/nagios/plugins \ | 72 | --prefix=%{_prefix} \ |
| 73 | --libexecdir=%{_prefix}/lib/nagios/plugins \ | 73 | --exec-prefix=%{_exec_prefix} \ |
| 74 | --libexecdir=%{_exec_prefix}/lib/nagios/plugins \ | ||
| 75 | --sysconfdir=%{_sysconfdir}/nagios \ | ||
| 76 | --datadir=%{_datadir} \ | ||
| 74 | --with-cgiurl=/nagios/cgi-bin | 77 | --with-cgiurl=/nagios/cgi-bin |
| 75 | make | 78 | make |
| 76 | 79 | ||
| @@ -90,68 +93,71 @@ rm -rf $RPM_BUILD_ROOT | |||
| 90 | %doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT | 93 | %doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT |
| 91 | %doc ChangeLog command.cfg | 94 | %doc ChangeLog command.cfg |
| 92 | %defattr(775,root,root) | 95 | %defattr(775,root,root) |
| 93 | %dir %{_prefix}/lib/nagios/plugins | 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 | ||
| 94 | %if %custom | 99 | %if %custom |
| 95 | %{_prefix}/lib/nagios/plugins/* | 100 | %{_exec_prefix}/lib/nagios/plugins/* |
| 96 | %else | 101 | %else |
| 97 | %{_prefix}/lib/nagios/plugins/check_by_ssh | 102 | %{_exec_prefix}/lib/nagios/plugins/check_by_ssh |
| 98 | %{_prefix}/lib/nagios/plugins/check_breeze | 103 | %{_exec_prefix}/lib/nagios/plugins/check_breeze |
| 99 | %{_prefix}/lib/nagios/plugins/check_dig | 104 | %{_exec_prefix}/lib/nagios/plugins/check_dig |
| 100 | %{_prefix}/lib/nagios/plugins/check_disk | 105 | %{_exec_prefix}/lib/nagios/plugins/check_disk |
| 101 | %{_prefix}/lib/nagios/plugins/check_disk_smb | 106 | %{_exec_prefix}/lib/nagios/plugins/check_disk_smb |
| 102 | %{_prefix}/lib/nagios/plugins/check_dns | 107 | %{_exec_prefix}/lib/nagios/plugins/check_dns |
| 103 | %{_prefix}/lib/nagios/plugins/check_dummy | 108 | %{_exec_prefix}/lib/nagios/plugins/check_dummy |
| 104 | %{_prefix}/lib/nagios/plugins/check_flexlm | 109 | %{_exec_prefix}/lib/nagios/plugins/check_flexlm |
| 105 | %{_prefix}/lib/nagios/plugins/check_ftp | 110 | %{_exec_prefix}/lib/nagios/plugins/check_ftp |
| 106 | %{_prefix}/lib/nagios/plugins/check_http | 111 | %{_exec_prefix}/lib/nagios/plugins/check_http |
| 107 | %{_prefix}/lib/nagios/plugins/check_ifoperstatus | 112 | %{_exec_prefix}/lib/nagios/plugins/check_ifoperstatus |
| 108 | %{_prefix}/lib/nagios/plugins/check_ifstatus | 113 | %{_exec_prefix}/lib/nagios/plugins/check_ifstatus |
| 109 | %{_prefix}/lib/nagios/plugins/check_imap | 114 | %{_exec_prefix}/lib/nagios/plugins/check_imap |
| 110 | %{_prefix}/lib/nagios/plugins/check_ircd | 115 | %{_exec_prefix}/lib/nagios/plugins/check_ircd |
| 111 | %{_prefix}/lib/nagios/plugins/check_load | 116 | %{_exec_prefix}/lib/nagios/plugins/check_load |
| 112 | %{_prefix}/lib/nagios/plugins/check_log | 117 | %{_exec_prefix}/lib/nagios/plugins/check_log |
| 113 | %{_prefix}/lib/nagios/plugins/check_mailq | 118 | %{_exec_prefix}/lib/nagios/plugins/check_mailq |
| 114 | %{_prefix}/lib/nagios/plugins/check_mrtg | 119 | %{_exec_prefix}/lib/nagios/plugins/check_mrtg |
| 115 | %{_prefix}/lib/nagios/plugins/check_mrtgtraf | 120 | %{_exec_prefix}/lib/nagios/plugins/check_mrtgtraf |
| 116 | %{_prefix}/lib/nagios/plugins/check_nagios | 121 | %{_exec_prefix}/lib/nagios/plugins/check_nagios |
| 117 | %{_prefix}/lib/nagios/plugins/check_nntp | 122 | %{_exec_prefix}/lib/nagios/plugins/check_nntp |
| 118 | %{_prefix}/lib/nagios/plugins/check_nt | 123 | %{_exec_prefix}/lib/nagios/plugins/check_nt |
| 119 | %{_prefix}/lib/nagios/plugins/check_ntp | 124 | %{_exec_prefix}/lib/nagios/plugins/check_ntp |
| 120 | %{_prefix}/lib/nagios/plugins/check_nwstat | 125 | %{_exec_prefix}/lib/nagios/plugins/check_nwstat |
| 121 | %{_prefix}/lib/nagios/plugins/check_oracle | 126 | %{_exec_prefix}/lib/nagios/plugins/check_oracle |
| 122 | %{_prefix}/lib/nagios/plugins/check_overcr | 127 | %{_exec_prefix}/lib/nagios/plugins/check_overcr |
| 123 | %{_prefix}/lib/nagios/plugins/check_ping | 128 | %{_exec_prefix}/lib/nagios/plugins/check_ping |
| 124 | %{_prefix}/lib/nagios/plugins/check_pop | 129 | %{_exec_prefix}/lib/nagios/plugins/check_pop |
| 125 | %{_prefix}/lib/nagios/plugins/check_procs | 130 | %{_exec_prefix}/lib/nagios/plugins/check_procs |
| 126 | %{_prefix}/lib/nagios/plugins/check_real | 131 | %{_exec_prefix}/lib/nagios/plugins/check_real |
| 127 | %{_prefix}/lib/nagios/plugins/check_rpc | 132 | %{_exec_prefix}/lib/nagios/plugins/check_rpc |
| 128 | %{_prefix}/lib/nagios/plugins/check_sensors | 133 | %{_exec_prefix}/lib/nagios/plugins/check_sensors |
| 129 | %{_prefix}/lib/nagios/plugins/check_smtp | 134 | %{_exec_prefix}/lib/nagios/plugins/check_smtp |
| 130 | %{_prefix}/lib/nagios/plugins/check_ssh | 135 | %{_exec_prefix}/lib/nagios/plugins/check_ssh |
| 131 | %{_prefix}/lib/nagios/plugins/check_swap | 136 | %{_exec_prefix}/lib/nagios/plugins/check_swap |
| 132 | %{_prefix}/lib/nagios/plugins/check_tcp | 137 | %{_exec_prefix}/lib/nagios/plugins/check_tcp |
| 133 | %{_prefix}/lib/nagios/plugins/check_time | 138 | %{_exec_prefix}/lib/nagios/plugins/check_time |
| 134 | %{_prefix}/lib/nagios/plugins/check_udp | 139 | %{_exec_prefix}/lib/nagios/plugins/check_udp |
| 135 | %{_prefix}/lib/nagios/plugins/check_ups | 140 | %{_exec_prefix}/lib/nagios/plugins/check_ups |
| 136 | %{_prefix}/lib/nagios/plugins/check_users | 141 | %{_exec_prefix}/lib/nagios/plugins/check_users |
| 137 | %{_prefix}/lib/nagios/plugins/check_wave | 142 | %{_exec_prefix}/lib/nagios/plugins/check_wave |
| 138 | %{_prefix}/lib/nagios/plugins/negate | 143 | %{_exec_prefix}/lib/nagios/plugins/negate |
| 139 | %{_prefix}/lib/nagios/plugins/utils.pm | 144 | %{_exec_prefix}/lib/nagios/plugins/utils.pm |
| 140 | %{_prefix}/lib/nagios/plugins/utils.sh | 145 | %{_exec_prefix}/lib/nagios/plugins/utils.sh |
| 141 | %{_prefix}/lib/nagios/plugins/urlize | 146 | %{_exec_prefix}/lib/nagios/plugins/urlize |
| 147 | %{_exec_prefix}/lib/nagios/plugins/check_file_age | ||
| 142 | %endif | 148 | %endif |
| 143 | 149 | ||
| 144 | %if ! %custom | 150 | %if ! %custom |
| 145 | %files extras | 151 | %files extras |
| 146 | %defattr(775,root,root) | 152 | %defattr(775,root,root) |
| 147 | %{_prefix}/lib/nagios/plugins/check_fping | 153 | %{_exec_prefix}/lib/nagios/plugins/check_fping |
| 148 | %{_prefix}/lib/nagios/plugins/check_game | 154 | %{_exec_prefix}/lib/nagios/plugins/check_game |
| 149 | %{_prefix}/lib/nagios/plugins/check_ldap | 155 | %{_exec_prefix}/lib/nagios/plugins/check_ldap |
| 150 | %{_prefix}/lib/nagios/plugins/check_mysql | 156 | %{_exec_prefix}/lib/nagios/plugins/check_mysql |
| 151 | %{_prefix}/lib/nagios/plugins/check_pgsql | 157 | %{_exec_prefix}/lib/nagios/plugins/check_pgsql |
| 152 | %{_prefix}/lib/nagios/plugins/check_radius | 158 | %{_exec_prefix}/lib/nagios/plugins/check_radius |
| 153 | %{_prefix}/lib/nagios/plugins/check_snmp | 159 | %{_exec_prefix}/lib/nagios/plugins/check_snmp |
| 154 | %{_prefix}/lib/nagios/plugins/check_hpjd | 160 | %{_exec_prefix}/lib/nagios/plugins/check_hpjd |
| 155 | 161 | ||
| 156 | %endif | 162 | %endif |
| 157 | 163 | ||
