aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2017-08-30 00:06:05 +0800
committermat <mat@FreeBSD.org>2017-08-30 00:06:05 +0800
commit78ec112777eb6c4828b8cf5152a539fe402c1fe8 (patch)
tree9369aef21bb757aaa08bbb70140d49f2becdf4aa
parent2d9df13449473a5fa9a9e10803eee4a4b0b40c31 (diff)
downloadfreebsd-ports-gnome-78ec112777eb6c4828b8cf5152a539fe402c1fe8.tar.gz
freebsd-ports-gnome-78ec112777eb6c4828b8cf5152a539fe402c1fe8.tar.zst
freebsd-ports-gnome-78ec112777eb6c4828b8cf5152a539fe402c1fe8.zip
Fix the check_swap again.
PR: 219068 Sponsored by: Absolight
-rw-r--r--net-mgmt/nagios-plugins/Makefile2
-rw-r--r--net-mgmt/nagios-plugins/files/patch-configure9
2 files changed, 10 insertions, 1 deletions
diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile
index 0908bd952c74..aaa505b206ba 100644
--- a/net-mgmt/nagios-plugins/Makefile
+++ b/net-mgmt/nagios-plugins/Makefile
@@ -3,7 +3,7 @@
PORTNAME= nagios-plugins
PORTVERSION= 2.2.1
-PORTREVISION= 2
+PORTREVISION= 3
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 1125116fc772..602247d66039 100644
--- a/net-mgmt/nagios-plugins/files/patch-configure
+++ b/net-mgmt/nagios-plugins/files/patch-configure
@@ -16,3 +16,12 @@
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
+@@ -23798,7 +23807,7 @@ then
+
+ 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; }