diff options
author | jlam <jlam@pkgsrc.org> | 2000-08-12 06:29:12 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2000-08-12 06:29:12 +0000 |
commit | 8c06bdc4c0caf2a7c223fc42b621f6c601b55995 (patch) | |
tree | 3f8444d9017f3147382044582dec1abe2f1528f2 /net/jwhois/patches | |
parent | f894bb47b39f38dd861784a033daa344d0b60541 (diff) | |
download | pkgsrc-8c06bdc4c0caf2a7c223fc42b621f6c601b55995.tar.gz |
Update jwhois to 2.4.1. Update taken from PR#10772 by Wolfgang Rupprecht
<wolfgang@wsrcc.com> with substantial modifications.
Changes from version 2.1:
* Made it possible to use queries of the type foo@HOST
* Lots of information added to the example configuration file
* Fixed a nasty bug that sometimes caused two extra bytes of output
to be appended
* Fixed the sample jwhois.conf
* Added distribution of debian/ and macros/
* Support for redirection of a query to another server based on
returned content from another
* Support for cache functionality
* Bugfixes for little-endian machines
* Configuration parser rewritten -- you must now use \\ to get a
single \.
* ${datadir} no longer searched for global configuration file
* i18n support added
* Must enclose struct foo in "
* Support for specifying CIDR blocks in the configuration file.
* More advanced features added to the configuration file.
* Port number separated from host names and IP numbers with space
instead of colon in configuration file.
* Support for IPv6 hosts
Diffstat (limited to 'net/jwhois/patches')
-rw-r--r-- | net/jwhois/patches/patch-aa | 42 | ||||
-rw-r--r-- | net/jwhois/patches/patch-ab | 26 |
2 files changed, 29 insertions, 39 deletions
diff --git a/net/jwhois/patches/patch-aa b/net/jwhois/patches/patch-aa index 6507f80b93b..38be034672c 100644 --- a/net/jwhois/patches/patch-aa +++ b/net/jwhois/patches/patch-aa @@ -1,29 +1,17 @@ -$NetBSD: patch-aa,v 1.1.1.1 1999/10/05 14:17:15 kim Exp $ +$NetBSD: patch-aa,v 1.2 2000/08/12 06:29:14 jlam 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; +--- example/jwhois.conf.orig Tue Jan 25 10:19:58 2000 ++++ example/jwhois.conf Fri Aug 11 23:50:21 2000 +@@ -209,10 +209,10 @@ -@@ -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, ':'); + # + # The cache feature is used to provide a local cache with Whois information. +-# By default, the location of the database is /usr/local/var/jwhois.db and the ++# By default, the location of the database is /var/db/jwhois.db and the + # default expire time is 7 days, but you can change those below. + # +-#cachefile = "/var/lib/jwhois.db"; ++#cachefile = "/var/db/jwhois.db"; + + # + # This is the time after which an entry expires from the cache in hours. diff --git a/net/jwhois/patches/patch-ab b/net/jwhois/patches/patch-ab index 65d1120f2f0..a28a922a1f1 100644 --- a/net/jwhois/patches/patch-ab +++ b/net/jwhois/patches/patch-ab @@ -1,15 +1,17 @@ -$NetBSD: patch-ab,v 1.1.1.1 1999/10/05 14:17:15 kim Exp $ +$NetBSD: patch-ab,v 1.2 2000/08/12 06:29:15 jlam 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 +--- configure.in.orig Tue Jan 25 10:24:22 2000 ++++ configure.in Fri Aug 11 23:49:43 2000 +@@ -60,6 +60,12 @@ + AC_PROG_INSTALL + AC_PROG_CC + AM_GNU_GETTEXT ++ ++dnl NetBSD: set DATADIRNAME to "share" ++DATADIRNAME="share" ++INTLDEPS= ++INTLLIBS="-lintl" + - @c This file has the new style title page commands. - @c Run `makeinfo' rather than `texinfo-format-buffer'. + AC_PATH_PROG(CHGRP, chgrp, $PATH:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/libexec) + AC_PATH_PROG(CHMOD, chmod, $PATH:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/libexec) |