[101447] trunk/dports/net
markd at macports.org
markd at macports.org
Thu Jan 10 20:12:36 PST 2013
Revision: 101447
https://trac.macports.org/changeset/101447
Author: markd at macports.org
Date: 2013-01-10 20:12:36 -0800 (Thu, 10 Jan 2013)
Log Message:
-----------
New port dnscap.
Added Paths:
-----------
trunk/dports/net/dnscap/
trunk/dports/net/dnscap/Portfile
trunk/dports/net/dnscap/files/
trunk/dports/net/dnscap/files/patch-dump_dns.c.diff
Added: trunk/dports/net/dnscap/Portfile
===================================================================
--- trunk/dports/net/dnscap/Portfile (rev 0)
+++ trunk/dports/net/dnscap/Portfile 2013-01-11 04:12:36 UTC (rev 101447)
@@ -0,0 +1,32 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name dnscap
+version 141
+categories net
+platforms darwin
+maintainers nomaintainer
+
+description DNS network traffic capture utility
+long_description ${description}
+
+homepage http://dnscap.dns-oarc.net/
+master_sites ${homepage}
+
+checksums sha1 b034dcb8aeb6ecbf5c3d12e3dc82dcee40a6e382 \
+ rmd160 5bdb8851fda74904347106fcc0a9c9dfa719f63c
+
+patchfiles patch-dump_dns.c.diff
+
+depends_lib port:libpcap port:libbind
+
+destroot {
+ xinstall -W ${worksrcpath} ${name} ${destroot}${prefix}/bin/
+ xinstall -W ${worksrcpath} ${name}.1 ${destroot}${prefix}/share/man/man1/
+}
+
+livecheck.url ${master_sites}
+livecheck.type regex
+livecheck.regex ${name}-(\\d+)
Property changes on: trunk/dports/net/dnscap/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/net/dnscap/files/patch-dump_dns.c.diff
===================================================================
--- trunk/dports/net/dnscap/files/patch-dump_dns.c.diff (rev 0)
+++ trunk/dports/net/dnscap/files/patch-dump_dns.c.diff 2013-01-11 04:12:36 UTC (rev 101447)
@@ -0,0 +1,47 @@
+--- dump_dns.c.orig-orig 2013-01-10 17:48:19.000000000 -0800
++++ dump_dns.c 2013-01-10 17:53:12.000000000 -0800
+@@ -8,6 +8,9 @@
+ #include <stdio.h>
+ #include "dump_dns.h"
+
++#define INT32SZ 4 /* for systems without 32-bit ints */
++#define INT16SZ 2 /* for systems without 16-bit ints */
++
+ #ifndef lint
+ static const char rcsid[] = "$Id: dump_dns.c,v 1.2 2008-03-14 21:33:28 wessels Exp $";
+ #endif
+@@ -60,7 +63,6 @@
+ #include <time.h>
+ #include <unistd.h>
+
+-extern const char *_res_opcodes[];
+ extern const char *_res_sectioncodes[];
+ #define p_rcode __p_rcode
+ extern const char *p_rcode(int rcode);
+@@ -86,6 +88,26 @@
+ (cp) += INT32SZ; \
+ } while (0)
+
++
++const char *_res_opcodes[] = {
++ "QUERY",
++ "IQUERY",
++ "CQUERYM",
++ "CQUERYU", /*%< experimental */
++ "NOTIFY", /*%< experimental */
++ "UPDATE",
++ "6",
++ "7",
++ "8",
++ "9",
++ "10",
++ "11",
++ "12",
++ "13",
++ "ZONEINIT",
++ "ZONEREF",
++};
++
+ #include "dump_dns.h"
+
+ void
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130110/bfc49b5a/attachment.html>
More information about the macports-changes
mailing list