Skip to content
Browse files

Add jwhois from homebrew-core.

Upstream project is mostly unmaintained:
Homebrew/legacy-homebrew#8902
  • Loading branch information...
1 parent bbea9b6 commit 95bdf134a02daef9a6bb6fb90e2b06bae9a762cb @adamv adamv committed Mar 13, 2012
Showing with 35 additions and 0 deletions.
  1. +35 −0 unmaintained/jwhois.rb
View
35 unmaintained/jwhois.rb
@@ -0,0 +1,35 @@
+require 'formula'
+
+class Jwhois < Formula
+ url 'http://ftpmirror.gnu.org/jwhois/jwhois-4.0.tar.gz'
+ mirror 'http://ftp.gnu.org/gnu/jwhois/jwhois-4.0.tar.gz'
+ homepage 'http://directory.fsf.org/project/jwhois/'
+ md5 '977d0ba90ee058a7998c94d933fc9546'
+
+ # No whois entry in /etc/services. Use nicname instead.
+ def patches; DATA; end
+
+ def install
+ # link fails on libiconv if not added here
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "LIBS=-liconv"
+ system "make install"
+ end
+end
+
+
+__END__
+diff --git a/src/dns.c b/src/dns.c
+index a818237..b5fe9c8 100644
+--- a/src/dns.c
++++ b/src/dns.c
+@@ -113,7 +113,7 @@ int
+ lookup_host_addrinfo(struct addrinfo **res, const char *host, int port)
+ {
+ struct addrinfo hints;
+- char ascport[10] = "whois";
++ char ascport[10] = "nicname";
+ int error;
+
+ memset(&hints, 0, sizeof(hints));

0 comments on commit 95bdf13

Please sign in to comment.
Something went wrong with that request. Please try again.