Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
nagios-plugins
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 65
[-]
[+]
Changed
nagios-plugins.spec
@@ -48,9 +48,15 @@ %endif + %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?redhat_version} || 0%{?sl_version} +%if 0%{?rhel} == 8 +BuildRequires: openldap-devel freeradius samba-common openldap-devel glibc-common qstat +%else BuildRequires: tcp_wrappers openldap-devel freeradius samba-common openldap-devel net-snmp-perl glibc-common qstat %endif +%endif + # fping is in EPEL for EL BuildRequires: openssl-devel postgresql-devel mysql-devel zlib-devel glibc-devel gcc gcc-c++ net-snmp net-snmp-devel openssh iputils samba-client procps fping @@ -93,9 +99,6 @@ --sysconfdir=%{_sysconfdir}/nagios \ --datadir=%{_datadir} \ --with-perl=/usr/bin/perl \ -%if 0%{?centos_version} >= 700 || 0%{?rhel_version} >= 700 || 0%{?rhel} >= 7 || 0%{?sl_version} >= 700 ---with-ping-command="/bin/ping -n -U -w %d -c %d %s" \ -%endif --with-ping6-command="/bin/ping6 -n -U -w %d -c %d %s" \ --with-fping-command=%{_sbindir}/fping \ --with-fping6-command=%{_sbindir}/fping6 \ @@ -117,6 +120,9 @@ # fix lib path in perl plugins cd ${RPM_BUILD_ROOT}%{_prefix}/lib/nagios/plugins # set qmail-qstat if not found +# fix lib path in perl plugins +cd ${RPM_BUILD_ROOT}%{_prefix}/lib/nagios/plugins +# set qmail-qstat if not found sed -i s@'$PATH_TO_QMAIL_QSTAT = "";'@'$PATH_TO_QMAIL_QSTAT = "/var/qmail/bin/qmail-qstat";'@ %{buildroot}%{_prefix}/lib/nagios/plugins/utils.pm sed -i s@"{'PATH'}='';"@"{'PATH'}='/usr/bin:/usr/sbin';"@ %{buildroot}%{_prefix}/lib/nagios/plugins/check_mailq @@ -277,6 +283,3 @@ all generated plugins (which keeps the build from failing on systems that don't have all build-dependencies for every plugin) * Tue Mar 04 2004 Karl DeBisschop <karl[AT]debisschop.net> - 1.4.0alpha1 -- extensive rewrite to facilitate processing into various distro-compatible specs -* Tue Mar 04 2004 Karl DeBisschop <karl[AT]debisschop.net> - 1.4.0alpha1 -- extensive rewrite to facilitate processing into various distro-compatible specs