summaryrefslogtreecommitdiff
path: root/net/jwhois/patches
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>1999-10-05 14:17:15 +0000
committerkim <kim@pkgsrc.org>1999-10-05 14:17:15 +0000
commit20f46dec3fde3d9841a987cc838bfccd846dec0b (patch)
treeee93d6c7b5de64cb9ee44207f7f9cf6922889b50 /net/jwhois/patches
parent65016f23e04cbc83cf81ebc04be8145271319284 (diff)
downloadpkgsrc-20f46dec3fde3d9841a987cc838bfccd846dec0b.tar.gz
jwhois-2.1, a configurable whois client.
forget about all those separate registries!
Diffstat (limited to 'net/jwhois/patches')
-rw-r--r--net/jwhois/patches/patch-aa29
-rw-r--r--net/jwhois/patches/patch-ab15
2 files changed, 44 insertions, 0 deletions
diff --git a/net/jwhois/patches/patch-aa b/net/jwhois/patches/patch-aa
new file mode 100644
index 00000000000..6507f80b93b
--- /dev/null
+++ b/net/jwhois/patches/patch-aa
@@ -0,0 +1,29 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/10/05 14:17:15 kim Exp $
+
+--- src/jwhois.c.orig Sun Sep 26 06:03:17 1999
++++ src/jwhois.c Tue Oct 5 09:48:03 1999
+@@ -138,6 +138,7 @@
+ {
+ struct jconfig *j;
+ struct re_pattern_buffer rpb;
++ struct servent *sp = NULL;
+ char *error, *host = DEFAULTHOST, *ret, *tmphost;
+ int ind, port;
+
+@@ -165,7 +166,15 @@
+ }
+ jconfig_end();
+
+- port = htons(IPPORT_WHOIS);
++#ifndef IPPORT_WHOIS
++# define IPPORT_WHOIS 43
++#endif
++
++ if ((sp = getservbyname("whois", "tcp")) == NULL)
++ port = htons(IPPORT_WHOIS);
++ else
++ port = sp->s_port;
++
+ if (strchr(host, ':'))
+ {
+ tmphost = (char *)strchr(host, ':');
diff --git a/net/jwhois/patches/patch-ab b/net/jwhois/patches/patch-ab
new file mode 100644
index 00000000000..65d1120f2f0
--- /dev/null
+++ b/net/jwhois/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/10/05 14:17:15 kim Exp $
+
+--- doc/jwhois.texi.orig Sun Sep 26 05:42:39 1999
++++ doc/jwhois.texi Tue Oct 5 10:04:34 1999
+@@ -4,6 +4,10 @@
+ @settitle jwhois, Whois client
+ @c %**end of header
+
++@direntry
++* jwhois: (jwhois). Whois client.
++@end direntry
++
+ @c This file has the new style title page commands.
+ @c Run `makeinfo' rather than `texinfo-format-buffer'.
+