summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradrianp <adrianp>2007-11-18 00:36:37 +0000
committeradrianp <adrianp>2007-11-18 00:36:37 +0000
commit1326be0b8dc9bc22c5af75c5c341858c1aa88c08 (patch)
tree6ee6ace4baa142d2e28a5b830c47e6dd11186557
parentfb72faefa356614e2b5c30f18496d52de09b0a62 (diff)
downloadpkgsrc-1326be0b8dc9bc22c5af75c5c341858c1aa88c08.tar.gz
Fix builds on Darwin
-rw-r--r--net/echoping/distinfo3
-rw-r--r--net/echoping/hacks.mk9
-rw-r--r--net/echoping/patches/patch-ab15
3 files changed, 26 insertions, 1 deletions
diff --git a/net/echoping/distinfo b/net/echoping/distinfo
index def8eb2b91a..6b698d1db1d 100644
--- a/net/echoping/distinfo
+++ b/net/echoping/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.7 2007/11/18 00:16:38 adrianp Exp $
+$NetBSD: distinfo,v 1.8 2007/11/18 00:36:37 adrianp Exp $
SHA1 (echoping-6.0.2.tar.gz) = 8b414d1dbc5a0f21a7f2cccb0138aec13117a1a4
RMD160 (echoping-6.0.2.tar.gz) = 73ee80f4b666fde3a0e02589388e485c487005fc
Size (echoping-6.0.2.tar.gz) = 1660983 bytes
+SHA1 (patch-ab) = a66af6681503a011cd59a1cb87475f156bde85d4
diff --git a/net/echoping/hacks.mk b/net/echoping/hacks.mk
new file mode 100644
index 00000000000..14c507fbdea
--- /dev/null
+++ b/net/echoping/hacks.mk
@@ -0,0 +1,9 @@
+# $NetBSD: hacks.mk,v 1.1 2007/11/18 00:37:05 adrianp Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+# Fix build on OS X with BIND9 system resolver
+.if ${OPSYS} == "Darwin"
+PKG_HACKS+= macosx-bind9-bind8compat
+CFLAGS+= -DBIND_8_COMPAT=1
+.endif
diff --git a/net/echoping/patches/patch-ab b/net/echoping/patches/patch-ab
new file mode 100644
index 00000000000..ff74bdb5d1e
--- /dev/null
+++ b/net/echoping/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.3 2007/11/18 00:36:38 adrianp Exp $
+
+--- plugins/dns/dns.c.orig 2007-11-18 00:22:32.000000000 +0000
++++ plugins/dns/dns.c
+@@ -11,6 +11,10 @@
+ #include <arpa/nameser.h>
+ #include <resolv.h>
+
++#ifndef T_SRV
++#define T_SRV 33
++#endif
++
+ struct addrinfo name_server;
+ poptContext dns_poptcon;
+ char *request;