[122837] trunk/dports/net/checkdns
jmr at macports.org
jmr at macports.org
Thu Jul 31 09:19:00 PDT 2014
Revision: 122837
https://trac.macports.org/changeset/122837
Author: jmr at macports.org
Date: 2014-07-31 09:19:00 -0700 (Thu, 31 Jul 2014)
Log Message:
-----------
checkdns: set license, fix build on recent systems
Modified Paths:
--------------
trunk/dports/net/checkdns/Portfile
trunk/dports/net/checkdns/files/patch-Makefile.diff
trunk/dports/net/checkdns/files/patch-dns.c.diff
Modified: trunk/dports/net/checkdns/Portfile
===================================================================
--- trunk/dports/net/checkdns/Portfile 2014-07-31 16:17:37 UTC (rev 122836)
+++ trunk/dports/net/checkdns/Portfile 2014-07-31 16:19:00 UTC (rev 122837)
@@ -5,6 +5,7 @@
name checkdns
version 0.5
categories net
+license GPL-2+
platforms darwin
maintainers nomaintainer
description A domain name server analysis and reporting tool
@@ -22,6 +23,10 @@
build.target compile
build.args CC=${configure.cc}
+pre-build {
+ build.args-append CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
+ LDFLAGS="[get_canonical_archflags ld]"
+}
destroot {
xinstall -m 755 ${worksrcpath}/checkdns ${destroot}${prefix}/bin
Modified: trunk/dports/net/checkdns/files/patch-Makefile.diff
===================================================================
--- trunk/dports/net/checkdns/files/patch-Makefile.diff 2014-07-31 16:17:37 UTC (rev 122836)
+++ trunk/dports/net/checkdns/files/patch-Makefile.diff 2014-07-31 16:19:00 UTC (rev 122837)
@@ -5,7 +5,7 @@
compile: $(OBJS)
- $(CC) -o checkdns $(OBJS)
-+ $(CC) -o checkdns $(OBJS) -lresolv
++ $(CC) $(LDFLAGS) -o checkdns $(OBJS) -lresolv
install:
cp checkdns /usr/local/bin/checkdns
Modified: trunk/dports/net/checkdns/files/patch-dns.c.diff
===================================================================
--- trunk/dports/net/checkdns/files/patch-dns.c.diff 2014-07-31 16:17:37 UTC (rev 122836)
+++ trunk/dports/net/checkdns/files/patch-dns.c.diff 2014-07-31 16:19:00 UTC (rev 122837)
@@ -1,11 +1,13 @@
---- dns.c 2005-05-11 15:31:34.000000000 +0200
-+++ dns.c 2005-11-24 21:32:09.000000000 +0100
-@@ -11,6 +11,8 @@
+--- dns.c.orig 2005-05-11 23:31:34.000000000 +1000
++++ dns.c 2014-08-01 02:05:26.000000000 +1000
+@@ -9,8 +9,10 @@
+ #include <sys/socket.h>
+ #include <netinet/in.h>
#include <arpa/inet.h>
++#define BIND_8_COMPAT
#include <arpa/nameser.h>
#include <resolv.h>
+#include <string.h>
-+#include <nameser8_compat.h>
#include "defs.h"
#include "tools.h"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140731/325551d9/attachment-0001.html>
More information about the macports-changes
mailing list