1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

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.
This commit is contained in:
Don Lewis 2015-04-03 22:22:45 +00:00
parent f78c79a4c7
commit 9db4cb7b4e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=383179
8 changed files with 100 additions and 0 deletions

View File

@ -41,6 +41,7 @@
SUBDIR += dnsperf
SUBDIR += dnsproxy
SUBDIR += dnsreflector
SUBDIR += dnstable
SUBDIR += dnstop
SUBDIR += dnstracer
SUBDIR += dnsutl

34
dns/dnstable/Makefile Normal file
View File

@ -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>

2
dns/dnstable/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (dnstable-0.7.0.tar.gz) = 2035fa74b7f1fd91da846bab810b9ac376f839aaa8cf627dace2a29dee293b2b
SIZE (dnstable-0.7.0.tar.gz) = 383942

View File

@ -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"

View File

@ -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>

View File

@ -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>

11
dns/dnstable/pkg-descr Normal file
View File

@ -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

21
dns/dnstable/pkg-plist Normal file
View File

@ -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