From 5fbd01cef54ad6608acb341465b6d1ed3ab2b001 Mon Sep 17 00:00:00 2001 From: vs Date: Mon, 24 Oct 2005 08:39:14 +0000 Subject: Hardwire 'swapinfo' details for FreeBSD since configure will fail to detect them in a jailed (e.g. package-cluster) environment --- .../netsaint-plugins/files/patch-plugins_check__swap.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 net-mgmt/netsaint-plugins/files/patch-plugins_check__swap.c (limited to 'net-mgmt') 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); -- cgit