aboutsummaryrefslogtreecommitdiff
path: root/dns/checkdns
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2011-07-01 01:33:11 +0000
committerMatthias Andree <mandree@FreeBSD.org>2011-07-01 01:33:11 +0000
commit983a91c89d88c6eb0e2ee5b31e9dfd1f0ceed728 (patch)
treece8193de5a293993d674b9fabe096a50c40f57ae /dns/checkdns
parent362459a8d26ba4b9149d0decb2cd821e2765ee08 (diff)
downloadports-983a91c89d88c6eb0e2ee5b31e9dfd1f0ceed728.tar.gz
ports-983a91c89d88c6eb0e2ee5b31e9dfd1f0ceed728.zip
Notes
Diffstat (limited to 'dns/checkdns')
-rw-r--r--dns/checkdns/Makefile3
-rw-r--r--dns/checkdns/files/patch-dns.c10
-rw-r--r--dns/checkdns/files/patch-html.c11
3 files changed, 23 insertions, 1 deletions
diff --git a/dns/checkdns/Makefile b/dns/checkdns/Makefile
index 8ebee8adff38..54d664f3259e 100644
--- a/dns/checkdns/Makefile
+++ b/dns/checkdns/Makefile
@@ -15,7 +15,7 @@ MASTER_SITES= http://www.enderunix.org/checkdns/ \
MAINTAINER= ports@FreeBSD.org
COMMENT= A domain name server analysis and reporting tool
-MAKE_JOBS_SAFE= yes
+MAKE_JOBS_SAFE= yes
SUB_FILES= pkg-message
@@ -24,6 +24,7 @@ PORTDOCS= AUTHORS COPYING ChangeLog INSTALL README THANKS TODO
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/main.c \
${WRKSRC}/INSTALL ${WRKSRC}/README ${WRKSRC}/checkdns.conf-dist
+ @${REINPLACE_CMD} -e 's|CC = gcc|CC = ${CC} -include string.h|' ${WRKSRC}/Makefile
post-install:
@if [ ! -f ${PREFIX}/etc/checkdns.conf ]; then \
diff --git a/dns/checkdns/files/patch-dns.c b/dns/checkdns/files/patch-dns.c
new file mode 100644
index 000000000000..0f54008cec30
--- /dev/null
+++ b/dns/checkdns/files/patch-dns.c
@@ -0,0 +1,10 @@
+--- ./dns.c.orig 2011-07-01 03:28:55.000000000 +0200
++++ ./dns.c 2011-07-01 03:29:06.000000000 +0200
+@@ -11,6 +11,7 @@
+ #include <arpa/inet.h>
+ #include <arpa/nameser.h>
+ #include <resolv.h>
++#include <string.h>
+
+ #include "defs.h"
+ #include "tools.h"
diff --git a/dns/checkdns/files/patch-html.c b/dns/checkdns/files/patch-html.c
new file mode 100644
index 000000000000..6810174d321d
--- /dev/null
+++ b/dns/checkdns/files/patch-html.c
@@ -0,0 +1,11 @@
+--- ./html.c.orig 2011-07-01 03:29:42.000000000 +0200
++++ ./html.c 2011-07-01 03:29:52.000000000 +0200
+@@ -58,7 +58,7 @@
+ fprintf(fd, "<br>\n");
+
+ fprintf(fd, "<br>\n");
+- fprintf(fd, "<table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" class=\"domains\">\n");
++ fprintf(fd, "<table width=\"100%%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" class=\"domains\">\n");
+ fprintf(fd, " <tr align=\"left\" valign=\"middle\">\n");
+ fprintf(fd, " <td class=\"table_header\">&nbsp;%s</td>\n", l_no);
+ fprintf(fd, " <td class=\"table_header\">&nbsp;%s</td>\n", l_domain);