summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/nrpe/files/nagios-nrpe-2.13-tcpd.patch')
-rw-r--r--net-analyzer/nrpe/files/nagios-nrpe-2.13-tcpd.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/net-analyzer/nrpe/files/nagios-nrpe-2.13-tcpd.patch b/net-analyzer/nrpe/files/nagios-nrpe-2.13-tcpd.patch
new file mode 100644
index 000000000000..67dd22e05310
--- /dev/null
+++ b/net-analyzer/nrpe/files/nagios-nrpe-2.13-tcpd.patch
@@ -0,0 +1,33 @@
+--- configure.in.orig 2008-03-10 22:04:41.000000000 +0100
++++ configure.in 2012-01-08 17:59:49.804613011 +0100
+@@ -147,11 +147,27 @@
+ AC_CHECK_LIB(nsl,main,SOCKETLIBS="$SOCKETLIBS -lnsl")
+ AC_CHECK_LIB(socket,socket,SOCKETLIBS="$SOCKETLIBS -lsocket")
+ AC_SUBST(SOCKETLIBS)
+-AC_CHECK_LIB(wrap,main,[
+- LIBWRAPLIBS="$LIBWRAPLIBS -lwrap"
++
++AC_ARG_ENABLE(tcp-wrapper,--enable-tcp-wrapper enables support for TCP wrappers. *** DISABLING IS A SECURITY RISK! *** Read the SECURITY file before using this option! (default: auto),[
++ if test x$enableval = xyes; then
++ enable_tcp_wrapper=yes
++ else
++ enable_tcp_wrapper=no
++ fi
++ ],enable_tcp_wrapper="auto")
++
++LIBWRAPLIBS=""
++if test "x$enable_tcp_wrapper" = "xauto"; then
++ AC_CHECK_LIB(wrap,main,[
++ LIBWRAPLIBS="$LIBWRAPLIBS -lwrap"
++ AC_DEFINE(HAVE_LIBWRAP)
++ ])
++elif test "x$enable_tcp_wrapper" = "xyes"; then
++ AC_CHECK_LIB(wrap,main,LIBWRAPLIBS="$LIBWRAPLIBS -lwrap",[AC_MSG_ERROR([TCP wrapper library not found])])
+ AC_DEFINE(HAVE_LIBWRAP)
+- ])
++fi
+ AC_SUBST(LIBWRAPLIBS)
++
+ AC_CHECK_FUNCS(strdup strstr strtoul initgroups closesocket)
+
+ dnl socklen_t check - from curl