From e01411cca032c662ac051853e5016a64a3fa30a7 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 2 Nov 2005 15:08:44 +0000 Subject: Not everything has YP. Make it autoconf-conditional. Install documentation (only available in HTML). Bump PKGREVISION. --- net/udptunnel/patches/patch-aa | 13 +++++++++++++ net/udptunnel/patches/patch-ab | 13 +++++++++++++ net/udptunnel/patches/patch-ac | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 net/udptunnel/patches/patch-aa create mode 100644 net/udptunnel/patches/patch-ab create mode 100644 net/udptunnel/patches/patch-ac (limited to 'net/udptunnel/patches') diff --git a/net/udptunnel/patches/patch-aa b/net/udptunnel/patches/patch-aa new file mode 100644 index 00000000000..c09062c9c14 --- /dev/null +++ b/net/udptunnel/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1 2005/11/02 15:08:44 tv Exp $ + +--- configure.in.orig 2001-09-06 15:07:21.000000000 -0400 ++++ configure.in +@@ -18,7 +18,7 @@ AC_CHECK_LIB(socket, socket) + + dnl Checks for header files. + AC_HEADER_STDC +-AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h) ++AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h rpcsvc/ypclnt.h) + + dnl Checks for typedefs, structures, and compiler characteristics. + AC_CHECK_SIZEOF(short) diff --git a/net/udptunnel/patches/patch-ab b/net/udptunnel/patches/patch-ab new file mode 100644 index 00000000000..d048d566968 --- /dev/null +++ b/net/udptunnel/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1 2005/11/02 15:08:44 tv Exp $ + +--- configure.orig 2005-11-02 10:01:10.000000000 -0500 ++++ configure +@@ -1309,7 +1309,7 @@ EOF + + fi + +-for ac_hdr in fcntl.h sys/time.h unistd.h ++for ac_hdr in fcntl.h sys/time.h unistd.h rpcsvc/ypclnt.h + do + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 diff --git a/net/udptunnel/patches/patch-ac b/net/udptunnel/patches/patch-ac new file mode 100644 index 00000000000..2dd413e4fbe --- /dev/null +++ b/net/udptunnel/patches/patch-ac @@ -0,0 +1,39 @@ +$NetBSD: patch-ac,v 1.1 2005/11/02 15:08:44 tv Exp $ + +--- host2ip.c.orig 1999-05-19 15:58:25.000000000 -0400 ++++ host2ip.c +@@ -1,10 +1,13 @@ + #include + #include /* struct sockaddr */ + #include ++#include + #include /* gethostbyname() */ + #include /* sockaddr_in */ + #include /* inet_addr() */ ++#if HAVE_RPCSVC_YPCLNT_H + #include /* YP */ ++#endif + #include /* isspace() */ + + #include "host2ip.h" +@@ -39,6 +42,7 @@ struct in_addr host2ip(char *host) + } + /* As a last resort, try YP. */ + else { ++#if HAVE_RPCSVC_YPCLNT_H + static char *domain = 0; /* YP domain */ + char *value; /* key value */ + int value_len; /* length of returned value */ +@@ -47,9 +51,12 @@ struct in_addr host2ip(char *host) + if (yp_match(domain, "hosts.byname", host, strlen(host), &value, &value_len) == 0) { + in.s_addr = inet_addr(value); + } else { ++#endif + /* Everything failed */ + in.s_addr = INADDR_ANY; ++#if HAVE_RPCSVC_YPCLNT_H + } ++#endif + } + return in; + } /* host2ip */ -- cgit v1.2.3