diff options
author | tv <tv@pkgsrc.org> | 2005-11-02 15:08:44 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-11-02 15:08:44 +0000 |
commit | e01411cca032c662ac051853e5016a64a3fa30a7 (patch) | |
tree | 60fbc52b26e7ea1440c4e6a78f843fff7e350ea7 /net/udptunnel/patches | |
parent | abcc78ee118257426ba92ecabce3de48ca049664 (diff) | |
download | pkgsrc-e01411cca032c662ac051853e5016a64a3fa30a7.tar.gz |
Not everything has YP. Make it autoconf-conditional.
Install documentation (only available in HTML). Bump PKGREVISION.
Diffstat (limited to 'net/udptunnel/patches')
-rw-r--r-- | net/udptunnel/patches/patch-aa | 13 | ||||
-rw-r--r-- | net/udptunnel/patches/patch-ab | 13 | ||||
-rw-r--r-- | net/udptunnel/patches/patch-ac | 39 |
3 files changed, 65 insertions, 0 deletions
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 <sys/types.h> + #include <sys/socket.h> /* struct sockaddr */ + #include <stdlib.h> ++#include <string.h> + #include <netdb.h> /* gethostbyname() */ + #include <netinet/in.h> /* sockaddr_in */ + #include <arpa/inet.h> /* inet_addr() */ ++#if HAVE_RPCSVC_YPCLNT_H + #include <rpcsvc/ypclnt.h> /* YP */ ++#endif + #include <ctype.h> /* 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 */ |