aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2017-05-04 22:16:30 +0800
committermat <mat@FreeBSD.org>2017-05-04 22:16:30 +0800
commit68321385ea64967fae4fbbe9f263eae562a4d92a (patch)
tree7032ecc366569cbc53fb3d954e612e8c2ed83c32
parent32fc2b129fdd24936760c11a295e1ff272272792 (diff)
downloadfreebsd-ports-gnome-68321385ea64967fae4fbbe9f263eae562a4d92a.tar.gz
freebsd-ports-gnome-68321385ea64967fae4fbbe9f263eae562a4d92a.tar.zst
freebsd-ports-gnome-68321385ea64967fae4fbbe9f263eae562a4d92a.zip
Fix check_swap.
PR: 219068 Submitted by: Markus Wennrich Sponsored by: Absolight
-rw-r--r--net-mgmt/nagios-plugins/Makefile1
-rw-r--r--net-mgmt/nagios-plugins/files/patch-configure15
2 files changed, 13 insertions, 3 deletions
diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile
index 89b50383494a..15305eff4b93 100644
--- a/net-mgmt/nagios-plugins/Makefile
+++ b/net-mgmt/nagios-plugins/Makefile
@@ -3,6 +3,7 @@
PORTNAME= nagios-plugins
PORTVERSION= 2.2.1
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net-mgmt
MASTER_SITES= https://www.nagios-plugins.org/download/ \
diff --git a/net-mgmt/nagios-plugins/files/patch-configure b/net-mgmt/nagios-plugins/files/patch-configure
index 5c3a7dbcc395..683ce1be1e89 100644
--- a/net-mgmt/nagios-plugins/files/patch-configure
+++ b/net-mgmt/nagios-plugins/files/patch-configure
@@ -1,6 +1,6 @@
---- configure.orig 2017-04-19 16:03:27 UTC
-+++ configure
-@@ -22004,7 +22004,7 @@ then
+--- configure.orig 2017-04-19 18:03:27.000000000 +0200
++++ configure
+@@ -22004,7 +22004,7 @@
$as_echo "$ac_cv_ps_command" >&6; }
elif ps -axwwo 'stat comm vsz rss user uid pid ppid args' 2>/dev/null | \
@@ -9,3 +9,12 @@
then
ac_cv_ps_varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos"
ac_cv_ps_command="$PATH_TO_PS -axwwo 'stat uid pid ppid vsz rss pcpu comm args'"
+@@ -23798,7 +23798,7 @@
+
+ if $PATH_TO_SWAPINFO -k 2>/dev/null | egrep -i "^Device +1K-blocks +Used +Avail" >/dev/null
+ then
+- ac_cv_swap_format="%*s %f %*d %f"
++ ac_cv_swap_format="%*s %lf %*d %lf"
+ ac_cv_swap_conv=1024
+ { $as_echo "$as_me:$LINENO: result: using FreeBSD format swapinfo" >&5
+ $as_echo "using FreeBSD format swapinfo" >&6; }