Index: dns/Makefile =================================================================== --- dns/Makefile +++ dns/Makefile @@ -41,6 +41,7 @@ SUBDIR += dnsperf SUBDIR += dnsproxy SUBDIR += dnsreflector + SUBDIR += dnstable SUBDIR += dnstop SUBDIR += dnstracer SUBDIR += dnsutl Index: dns/dnstable/Makefile =================================================================== --- /dev/null +++ dns/dnstable/Makefile @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= dnstable +PORTVERSION= 0.7.0 +CATEGORIES= dns +MASTER_SITES= FARSIGHT LOCAL/truckman/farsight + +MAINTAINER= truckman@FreeBSD.org +COMMENT= Encoding format, library, and utilities for passive DNS data + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/COPYRIGHT + +BUILD_DEPENDS= sie-nmsg>0:${PORTSDIR}/net/sie-nmsg +LIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson \ + libmtbl.so:${PORTSDIR}/devel/mtbl \ + libwdns.so:${PORTSDIR}/dns/wdns \ + libnmsg.so:${PORTSDIR}/net/nmsg +RUN_DEPENDS= sie-nmsg>0:${PORTSDIR}/net/sie-nmsg + +GNU_CONFIGURE= yes +USE_LDCONFIG= yes +USES= gmake libtool pathfix pkgconfig +INSTALL_TARGET= install-strip + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +post-install: +.for i in 1 3 5 7 + ${INSTALL_MAN} ${WRKSRC}/man/*.${i} ${STAGEDIR}/${PREFIX}/man/man${i} +.endfor + +.include Index: dns/dnstable/distinfo =================================================================== --- /dev/null +++ dns/dnstable/distinfo @@ -0,0 +1,2 @@ +SHA256 (dnstable-0.7.0.tar.gz) = 2035fa74b7f1fd91da846bab810b9ac376f839aaa8cf627dace2a29dee293b2b +SIZE (dnstable-0.7.0.tar.gz) = 383942 Index: dns/dnstable/files/patch-dnstable_query.c =================================================================== --- /dev/null +++ dns/dnstable/files/patch-dnstable_query.c @@ -0,0 +1,11 @@ +--- dnstable/query.c.orig 2014-05-21 21:37:25 UTC ++++ dnstable/query.c +@@ -15,6 +15,8 @@ + */ + + #include ++#include ++#include + + #include "dnstable-private.h" + Index: dns/dnstable/files/patch-src_dnstable__convert.c =================================================================== --- /dev/null +++ dns/dnstable/files/patch-src_dnstable__convert.c @@ -0,0 +1,10 @@ +--- src/dnstable_convert.c.orig 2014-05-21 21:37:25 UTC ++++ src/dnstable_convert.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + + #include + #include Index: dns/dnstable/files/patch-src_dnstable__lookup.c =================================================================== --- /dev/null +++ dns/dnstable/files/patch-src_dnstable__lookup.c @@ -0,0 +1,10 @@ +--- src/dnstable_lookup.c.orig 2014-04-02 00:26:43 UTC ++++ src/dnstable_lookup.c +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #include + #include Index: dns/dnstable/pkg-descr =================================================================== --- /dev/null +++ dns/dnstable/pkg-descr @@ -0,0 +1,11 @@ +dnstable implements an encoding format for passive DNS data. It consists of a +C library, libdnstable, and several command line utilities for creating, +querying, and merging dnstable data files. + +It stores key-value records in Sorted String Table (SSTable) files and provides +high-level interfaces for querying or iterating over the stored records. +dnstable encodes individual records using a format tailored for efficiently +storing passive DNS data and can quickly perform both "forward" and "inverse" +searches. + +WWW: https://github.com/farsightsec/dnstable Index: dns/dnstable/pkg-plist =================================================================== --- /dev/null +++ dns/dnstable/pkg-plist @@ -0,0 +1,21 @@ +bin/dnstable_convert +bin/dnstable_dump +bin/dnstable_lookup +bin/dnstable_merge +include/dnstable.h +lib/libdnstable.a +lib/libdnstable.so +lib/libdnstable.so.0 +lib/libdnstable.so.0.0.0 +libdata/pkgconfig/libdnstable.pc +man/man1/dnstable_convert.1.gz +man/man1/dnstable_dump.1.gz +man/man1/dnstable_lookup.1.gz +man/man1/dnstable_merge.1.gz +man/man3/dnstable_entry.3.gz +man/man3/dnstable_iter.3.gz +man/man3/dnstable_merge_func.3.gz +man/man3/dnstable_query.3.gz +man/man3/dnstable_reader.3.gz +man/man5/dnstable-encoding.5.gz +man/man7/dnstable.7.gz