aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDaniel Salber2011-04-11 12:24:41 +0200
committerAdam Vandenberg2011-04-14 08:55:57 -0700
commit481a89917843c2369affe12c43c644e60fc576f4 (patch)
tree2825b3af06ca9a356969176b6f5484ff66e8afa7 /Library/Formula
parentfd008347886b1832ce996a22ea2484b6ffb93ad5 (diff)
downloadhomebrew-481a89917843c2369affe12c43c644e60fc576f4.tar.bz2
jwhois 4.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/jwhois.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/jwhois.rb b/Library/Formula/jwhois.rb
new file mode 100644
index 000000000..36dc1abb6
--- /dev/null
+++ b/Library/Formula/jwhois.rb
@@ -0,0 +1,34 @@
+require 'formula'
+
+class Jwhois < Formula
+ url 'http://ftp.gnu.org/pub/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));