summaryrefslogtreecommitdiff
path: root/net/udptunnel
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-11-02 15:08:44 +0000
committertv <tv@pkgsrc.org>2005-11-02 15:08:44 +0000
commite01411cca032c662ac051853e5016a64a3fa30a7 (patch)
tree60fbc52b26e7ea1440c4e6a78f843fff7e350ea7 /net/udptunnel
parentabcc78ee118257426ba92ecabce3de48ca049664 (diff)
downloadpkgsrc-e01411cca032c662ac051853e5016a64a3fa30a7.tar.gz
Not everything has YP. Make it autoconf-conditional.
Install documentation (only available in HTML). Bump PKGREVISION.
Diffstat (limited to 'net/udptunnel')
-rw-r--r--net/udptunnel/Makefile9
-rw-r--r--net/udptunnel/PLIST3
-rw-r--r--net/udptunnel/distinfo5
-rw-r--r--net/udptunnel/patches/patch-aa13
-rw-r--r--net/udptunnel/patches/patch-ab13
-rw-r--r--net/udptunnel/patches/patch-ac39
6 files changed, 78 insertions, 4 deletions
diff --git a/net/udptunnel/Makefile b/net/udptunnel/Makefile
index cd353692d25..770677b245f 100644
--- a/net/udptunnel/Makefile
+++ b/net/udptunnel/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2003/07/17 22:51:58 grant Exp $
+# $NetBSD: Makefile,v 1.4 2005/11/02 15:08:44 tv Exp $
#
DISTNAME= udptunnel-1.1
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.cs.columbia.edu/pub/lennox/udptunnel/
@@ -9,6 +10,10 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.cs.columbia.edu/~lennox/udptunnel/
COMMENT= Tunnel UDP packets over a TCP connection
-GNU_CONFIGURE= YES
+GNU_CONFIGURE= YES
+INSTALLATION_DIRS= bin share/doc/html
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/udptunnel.html ${PREFIX}/share/doc/html/
.include "../../mk/bsd.pkg.mk"
diff --git a/net/udptunnel/PLIST b/net/udptunnel/PLIST
index 8a5804d1621..d1cc6a56500 100644
--- a/net/udptunnel/PLIST
+++ b/net/udptunnel/PLIST
@@ -1,2 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2003/02/16 17:21:57 grant Exp $
+@comment $NetBSD: PLIST,v 1.2 2005/11/02 15:08:44 tv Exp $
bin/udptunnel
+share/doc/html/udptunnel.html
diff --git a/net/udptunnel/distinfo b/net/udptunnel/distinfo
index 0a4bffa2452..966c8a6433a 100644
--- a/net/udptunnel/distinfo
+++ b/net/udptunnel/distinfo
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 12:14:06 agc Exp $
+$NetBSD: distinfo,v 1.3 2005/11/02 15:08:44 tv Exp $
SHA1 (udptunnel-1.1.tar.gz) = c768097d9bca23d6be35931b010b75a451f34eb8
RMD160 (udptunnel-1.1.tar.gz) = af8e1b15447fdae52b6140c549849e56d43106f0
Size (udptunnel-1.1.tar.gz) = 30910 bytes
+SHA1 (patch-aa) = cf6fe0651c6d1437ec81fbbcb8fbbbf6b05ebc41
+SHA1 (patch-ab) = 5888e42ede82e3e12c31c8ed2a38a3796dc08baa
+SHA1 (patch-ac) = a587390b4c88e5828c0e41d3a0594842407321c3
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 */