2011-07-05 12:24:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Echoping < Formula
|
|
|
|
homepage 'http://echoping.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/echoping/echoping/6.0.2/echoping-6.0.2.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '8b414d1dbc5a0f21a7f2cccb0138aec13117a1a4'
|
2011-07-05 12:24:57 +00:00
|
|
|
|
|
|
|
depends_on 'popt'
|
|
|
|
depends_on 'libidn'
|
|
|
|
|
|
|
|
# Fixes a DNS issue with header files, taken from Macports
|
|
|
|
# https://trac.macports.org/browser/trunk/dports/net/echoping/files/patch-plugins-dns-dns.c.diff
|
|
|
|
def patches
|
2012-03-18 03:18:15 +00:00
|
|
|
DATA
|
2011-07-05 12:24:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2012-03-18 03:18:15 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--config-cache",
|
2011-07-05 12:24:57 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/plugins/dns/dns.c b/plugins/dns/dns.c
|
|
|
|
index 9730913..966f51a 100644
|
|
|
|
--- a/plugins/dns/dns.c
|
|
|
|
+++ b/plugins/dns/dns.c
|
|
|
|
@@ -9,6 +9,7 @@
|
|
|
|
#endif
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <arpa/nameser.h>
|
|
|
|
+#include <arpa/nameser_compat.h>
|
|
|
|
#include <resolv.h>
|
|
|
|
|
|
|
|
struct addrinfo name_server;
|