freebsd-ports/net-mgmt/nagios-plugins/files/patch-configure

19 lines
867 B
Text
Raw Normal View History

2019-12-09 15:10:40 +01:00
--- configure.orig 2019-12-04 21:53:36 UTC
+++ configure
2019-12-09 15:10:40 +01:00
@@ -22045,6 +22045,15 @@ $as_echo "$as_me: error: I don't know how to build a 6
fi
+elif ps -axwo 'stat comm vsz rss user uid pid ppid jid args' 2>/dev/null | \
+ egrep -i "^ *STAT +COMMAND +VSZ +RSS +USER +UID +PID +PPID +JID +COMMAND" > /dev/null
+then
+ ac_cv_ps_varlist="procstat,&procuid,&procpid,&procppid,&procjid,&procvsz,&procrss,&procpcpu,procprog,&pos"
+ ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid jid vsz rss pcpu comm args'"
+ ac_cv_ps_format="%s %d %d %d %d %d %d %f %s %n"
+ ac_cv_ps_cols=10
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_ps_command" >&5
+ $as_echo "$ac_cv_ps_command" >&6; }
elif ps axwwo 'stat comm vsz rss user uid pid ppid args cgroup:256' 2>/dev/null | \
egrep -i "^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PID +PPID +COMMAND +CGROUP" > /dev/null
then