From fccdf72f5e72230247024c5f378061c09979ded292fc6f38167cc3ddeba706c2 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Sat, 27 Dec 2014 17:51:29 +0000 Subject: [PATCH] really fix path to rpcinfo on all distributions OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=15 --- monitoring-plugins.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/monitoring-plugins.spec b/monitoring-plugins.spec index c249395..0c7b161 100644 --- a/monitoring-plugins.spec +++ b/monitoring-plugins.spec @@ -1093,7 +1093,11 @@ chmod +x configure # needed as configure script is not executable in 1.5.. --with-ps-format='%s %d %d %d %d %d %f %s %s %n' \ --with-ps-cols=10 \ --with-ps-varlist='procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos' \ +%if 0%{suse_version} > 1300 --with-rpcinfo-command=/sbin/rpcinfo \ +%else + --with-rpcinfo-command=%{_sbindir}/rpcinfo \ +%endif --with-qstat-command=%{qstat_command} \ --with-mysql=%{_prefix} \ --disable-rpath