aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-10-24 16:39:14 +0800
committervs <vs@FreeBSD.org>2005-10-24 16:39:14 +0800
commit5fbd01cef54ad6608acb341465b6d1ed3ab2b001 (patch)
treeabf67c1df5092c94e11c24195d622996b1678ce8
parent012989751d8308c08d98fc29181f3684bc887ed0 (diff)
downloadfreebsd-ports-gnome-5fbd01cef54ad6608acb341465b6d1ed3ab2b001.tar.gz
freebsd-ports-gnome-5fbd01cef54ad6608acb341465b6d1ed3ab2b001.tar.zst
freebsd-ports-gnome-5fbd01cef54ad6608acb341465b6d1ed3ab2b001.zip
Hardwire 'swapinfo' details for FreeBSD since configure will fail to detect
them in a jailed (e.g. package-cluster) environment
-rw-r--r--net-mgmt/netsaint-plugins/files/patch-plugins_check__swap.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-mgmt/netsaint-plugins/files/patch-plugins_check__swap.c b/net-mgmt/netsaint-plugins/files/patch-plugins_check__swap.c
new file mode 100644
index 000000000000..ca3d21b3544f
--- /dev/null
+++ b/net-mgmt/netsaint-plugins/files/patch-plugins_check__swap.c
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- plugins/check_swap.c.orig
++++ plugins/check_swap.c
+@@ -15,6 +15,9 @@
+ #include "utils.h"
+
+ #define PROGNAME "check_swap"
++#define HAVE_SWAP 1
++#define SWAP_COMMAND "/usr/sbin/swapinfo -k"
++#define SWAP_FORMAT "%*s %d %*d %d"
+
+ int process_arguments(int argc, char **argv);
+ int call_getopt(int argc, char **argv);