diff options
author | Tobias Scherbaum <dertobi123@gentoo.org> | 2010-07-30 14:34:42 +0000 |
---|---|---|
committer | Tobias Scherbaum <dertobi123@gentoo.org> | 2010-07-30 14:34:42 +0000 |
commit | faa84bc899eb212cec0f7ed4314768346b04a3c6 (patch) | |
tree | 00a2fd91ed6a14926c5c25c2acd2738b24b98214 /net-analyzer/nagios-plugins/files | |
parent | Version bump. Drop older. Grass support to be done. (diff) | |
download | gentoo-2-faa84bc899eb212cec0f7ed4314768346b04a3c6.tar.gz gentoo-2-faa84bc899eb212cec0f7ed4314768346b04a3c6.tar.bz2 gentoo-2-faa84bc899eb212cec0f7ed4314768346b04a3c6.zip |
Version bump
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/nagios-plugins/files')
-rw-r--r-- | net-analyzer/nagios-plugins/files/nagios-plugins-1.4.15-vserver.patch | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/net-analyzer/nagios-plugins/files/nagios-plugins-1.4.15-vserver.patch b/net-analyzer/nagios-plugins/files/nagios-plugins-1.4.15-vserver.patch new file mode 100644 index 000000000000..867fdd3f4325 --- /dev/null +++ b/net-analyzer/nagios-plugins/files/nagios-plugins-1.4.15-vserver.patch @@ -0,0 +1,98 @@ +--- configure.in.orig 2010-07-30 16:22:01.000000000 +0200 ++++ configure.in 2010-07-30 16:24:30.000000000 +0200 +@@ -94,6 +94,8 @@ + REV_DATESTAMP=`date '+%Y.%m.%d.%H.%M'` + REV_TIMESTAMP=`date '+%Y%m%d%H%M%S'` + ++first_ip=`/sbin/ifconfig | egrep "inet addr:" | sed -n '1p' | sed 's/ Bcast.*$//' | sed 's/^\s*inet addr://'` ++ + AC_SUBST(PKG_ARCH) + AC_SUBST(REV_DATESTAMP) + AC_SUBST(REV_TIMESTAMP) +@@ -950,14 +952,14 @@ + fi + + elif [[ "z$ac_cv_uname_s" = "zUnixWare" ]] && \ +- $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ ++ $PATH_TO_PING -n -s $first_ip 56 1 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -U -c %d %s" + ac_cv_ping_packets_first=yes + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -U -w 10 -c 1 127.0.0.1 2>/dev/null | \ ++elif $PATH_TO_PING -n -U -w 10 -c 1 $first_ip 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -U -w %d -c %d %s" +@@ -965,52 +967,52 @@ + ac_cv_ping_has_timeout=yes + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -U -c 1 127.0.0.1 2>/dev/null | \ ++elif $PATH_TO_PING -n -U -c 1 $first_ip 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -U -c %d %s" + ac_cv_ping_packets_first=yes + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ ++elif $PATH_TO_PING -n -c 1 $first_ip 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -c %d %s" + ac_cv_ping_packets_first=yes + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n 127.0.0.1 -c 1 2>/dev/null | \ ++elif $PATH_TO_PING -n $first_ip -c 1 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n %s -c %d" + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING 127.0.0.1 -n 1 2>/dev/null | \ ++elif $PATH_TO_PING $first_ip -n 1 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING %s -n %d" + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -s 127.0.0.1 56 1 2>/dev/null | \ ++elif $PATH_TO_PING -n -s $first_ip 56 1 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -s %s 56 %d" + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | \ ++elif $PATH_TO_PING -n -h $first_ip -s 56 -c 1 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -h %s -s 56 -c %d" + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -s 56 -c 1 127.0.0.1 2>/dev/null | \ ++elif $PATH_TO_PING -n -s 56 -c 1 $first_ip 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -s 56 -c %d %s" + ac_cv_ping_packets_first=yes + AC_MSG_RESULT([$with_ping_command]) + +-elif $PATH_TO_PING -n -c 1 127.0.0.1 2>/dev/null | \ ++elif $PATH_TO_PING -n -c 1 $first_ip 2>/dev/null | \ + egrep -i "^round-trip|^rtt" >/dev/null + then + with_ping_command="$PATH_TO_PING -n -c %d %s" +@@ -1221,7 +1223,7 @@ + if test -n "$PATH_TO_NSLOOKUP" + then + AC_MSG_CHECKING(for nslookup syntax) +- if $PATH_TO_NSLOOKUP -sil 127.0.0.1 2>&1 | grep ["Invalid option: sil"] >/dev/null ++ if $PATH_TO_NSLOOKUP -sil $first_ip 2>&1 | grep ["Invalid option: sil"] >/dev/null + then + ac_cv_nslookup_command="$PATH_TO_NSLOOKUP" + AC_MSG_RESULT([$ac_cv_nslookup_command]) |