summaryrefslogtreecommitdiff
path: root/security/gnupg/patches
diff options
context:
space:
mode:
authoritojun <itojun>2003-08-15 07:02:22 +0000
committeritojun <itojun>2003-08-15 07:02:22 +0000
commit1e1ff30956792337e8fb14fb78ab73480302d302 (patch)
tree2c42d881ab013a4f64ea2aba0d6f4f9394c6dc21 /security/gnupg/patches
parentf2e144ab1ce10510ddae706f9abe50beceae2e60 (diff)
downloadpkgsrc-1e1ff30956792337e8fb14fb78ab73480302d302.tar.gz
add IPv6 support. bump PKGREVISION
Diffstat (limited to 'security/gnupg/patches')
-rw-r--r--security/gnupg/patches/patch-ac12
-rw-r--r--security/gnupg/patches/patch-ad36
-rw-r--r--security/gnupg/patches/patch-ae16
-rw-r--r--security/gnupg/patches/patch-af16
4 files changed, 80 insertions, 0 deletions
diff --git a/security/gnupg/patches/patch-ac b/security/gnupg/patches/patch-ac
new file mode 100644
index 00000000000..2164e752c43
--- /dev/null
+++ b/security/gnupg/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.13 2003/08/15 07:02:23 itojun Exp $
+
+ftp://ftp.kame.net/pub/kame/misc/gnupg-1.2.2-IPv6.diff.gz
+
+diff -u -r1.1.1.1 -r1.2
+--- config.h.in 15 Aug 2003 05:12:06 -0000 1.1.1.1
++++ config.h.in 15 Aug 2003 06:44:46 -0000 1.2
+@@ -537,3 +537,4 @@
+
+ #include "g10defs.h"
+
++#undef HAVE_GETADDRINFO
diff --git a/security/gnupg/patches/patch-ad b/security/gnupg/patches/patch-ad
new file mode 100644
index 00000000000..cf38f216181
--- /dev/null
+++ b/security/gnupg/patches/patch-ad
@@ -0,0 +1,36 @@
+$NetBSD: patch-ad,v 1.4 2003/08/15 07:02:23 itojun Exp $
+
+ftp://ftp.kame.net/pub/kame/misc/gnupg-1.2.2-IPv6.diff.gz
+
+diff -u -r1.1.1.1 -r1.2
+--- util/http.c 15 Aug 2003 05:12:28 -0000 1.1.1.1
++++ util/http.c 15 Aug 2003 06:44:46 -0000 1.2
+@@ -753,6 +753,28 @@
+ sock_close (sd);
+ return -1;
+ }
++#elif defined(HAVE_GETADDRINFO)
++ struct addrinfo hints, *res0, *res;
++ char portstr[20];
++
++ memset(&hints, 0, sizeof(hints));
++ hints.ai_socktype = SOCK_STREAM;
++ snprintf(portstr, sizeof(portstr), "%u", port);
++ if (getaddrinfo(server, portstr, &hints, &res0) != 0)
++ return -1;
++ for (res = res0; res; res = res->ai_next) {
++ sd = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
++ if (sd < 0)
++ continue;
++ if (connect(sd, res->ai_addr, res->ai_addrlen) < 0) {
++ close(sd);
++ sd = -1;
++ continue;
++ }
++ break;
++ }
++ freeaddrinfo(res0);
++ return sd;
+ #else
+ struct sockaddr_in addr;
+ struct hostent *host;
diff --git a/security/gnupg/patches/patch-ae b/security/gnupg/patches/patch-ae
new file mode 100644
index 00000000000..c5d23aa6da3
--- /dev/null
+++ b/security/gnupg/patches/patch-ae
@@ -0,0 +1,16 @@
+$NetBSD: patch-ae,v 1.4 2003/08/15 07:02:23 itojun Exp $
+
+ftp://ftp.kame.net/pub/kame/misc/gnupg-1.2.2-IPv6.diff.gz
+
+diff -u -r1.1.1.1 -r1.3
+--- configure.ac 15 Aug 2003 05:12:08 -0000 1.1.1.1
++++ configure.ac 15 Aug 2003 06:47:49 -0000 1.3
+@@ -586,7 +586,7 @@
+ AC_CHECK_FUNCS(strcasecmp strncasecmp ctermid)
+ AC_CHECK_FUNCS(memmove gettimeofday getrusage setrlimit clock_gettime)
+ AC_CHECK_FUNCS(atexit raise getpagesize strftime nl_langinfo setlocale)
+-AC_CHECK_FUNCS(waitpid wait4 sigaction sigprocmask rand pipe stat)
++AC_CHECK_FUNCS(waitpid wait4 sigaction sigprocmask rand pipe stat getaddrinfo)
+ AC_REPLACE_FUNCS(mkdtemp)
+
+ #
diff --git a/security/gnupg/patches/patch-af b/security/gnupg/patches/patch-af
new file mode 100644
index 00000000000..73b2de7c858
--- /dev/null
+++ b/security/gnupg/patches/patch-af
@@ -0,0 +1,16 @@
+$NetBSD: patch-af,v 1.3 2003/08/15 07:02:23 itojun Exp $
+
+ftp://ftp.kame.net/pub/kame/misc/gnupg-1.2.2-IPv6.diff.gz
+
+diff -u -r1.1.1.1 -r1.2
+--- configure 15 Aug 2003 05:12:08 -0000 1.1.1.1
++++ configure 15 Aug 2003 06:47:49 -0000 1.2
+@@ -13111,7 +13111,7 @@
+
+
+
+-for ac_func in waitpid wait4 sigaction sigprocmask rand pipe stat
++for ac_func in waitpid wait4 sigaction sigprocmask rand pipe stat getaddrinfo
+ do
+ as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ echo "$as_me:$LINENO: checking for $ac_func" >&5