Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Apr 2015 22:22:46 +0000 (UTC)
From:      Don Lewis <truckman@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r383179 - in head/dns: . dnstable dnstable/files
Message-ID:  <201504032222.t33MMkMw024390@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: truckman
Date: Fri Apr  3 22:22:45 2015
New Revision: 383179
URL: https://svnweb.freebsd.org/changeset/ports/383179

Log:
  Add new port dns/dnstable.
  
  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.
  
  Differential Revision:	https://reviews.freebsd.org/D2214
  Approved by:	mat (mentor)
  Sponsored by:	Farsight Security, Inc.

Added:
  head/dns/dnstable/
  head/dns/dnstable/Makefile   (contents, props changed)
  head/dns/dnstable/distinfo   (contents, props changed)
  head/dns/dnstable/files/
  head/dns/dnstable/files/patch-dnstable_query.c   (contents, props changed)
  head/dns/dnstable/files/patch-src_dnstable__convert.c   (contents, props changed)
  head/dns/dnstable/files/patch-src_dnstable__lookup.c   (contents, props changed)
  head/dns/dnstable/pkg-descr   (contents, props changed)
  head/dns/dnstable/pkg-plist   (contents, props changed)
Modified:
  head/dns/Makefile

Modified: head/dns/Makefile
==============================================================================
--- head/dns/Makefile	Fri Apr  3 20:56:52 2015	(r383178)
+++ head/dns/Makefile	Fri Apr  3 22:22:45 2015	(r383179)
@@ -41,6 +41,7 @@
     SUBDIR += dnsperf
     SUBDIR += dnsproxy
     SUBDIR += dnsreflector
+    SUBDIR += dnstable
     SUBDIR += dnstop
     SUBDIR += dnstracer
     SUBDIR += dnsutl

Added: head/dns/dnstable/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnstable/Makefile	Fri Apr  3 22:22:45 2015	(r383179)
@@ -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 <bsd.port.mk>

Added: head/dns/dnstable/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnstable/distinfo	Fri Apr  3 22:22:45 2015	(r383179)
@@ -0,0 +1,2 @@
+SHA256 (dnstable-0.7.0.tar.gz) = 2035fa74b7f1fd91da846bab810b9ac376f839aaa8cf627dace2a29dee293b2b
+SIZE (dnstable-0.7.0.tar.gz) = 383942

Added: head/dns/dnstable/files/patch-dnstable_query.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnstable/files/patch-dnstable_query.c	Fri Apr  3 22:22:45 2015	(r383179)
@@ -0,0 +1,11 @@
+--- dnstable/query.c.orig	2014-05-21 21:37:25 UTC
++++ dnstable/query.c
+@@ -15,6 +15,8 @@
+  */
+ 
+ #include <arpa/inet.h>
++#include <sys/socket.h>
++#include <sys/endian.h>
+ 
+ #include "dnstable-private.h"
+ 

Added: head/dns/dnstable/files/patch-src_dnstable__convert.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnstable/files/patch-src_dnstable__convert.c	Fri Apr  3 22:22:45 2015	(r383179)
@@ -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 <stdio.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <sys/endian.h>
+ 
+ #include <dnstable.h>
+ #include <mtbl.h>

Added: head/dns/dnstable/files/patch-src_dnstable__lookup.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnstable/files/patch-src_dnstable__lookup.c	Fri Apr  3 22:22:45 2015	(r383179)
@@ -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 <stdio.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <sys/endian.h>
+ 
+ #include <dnstable.h>
+ #include <mtbl.h>

Added: head/dns/dnstable/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnstable/pkg-descr	Fri Apr  3 22:22:45 2015	(r383179)
@@ -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

Added: head/dns/dnstable/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnstable/pkg-plist	Fri Apr  3 22:22:45 2015	(r383179)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504032222.t33MMkMw024390>