From f3368e18173ac08f0e6b09c7b314b1612f117c28 Mon Sep 17 00:00:00 2001 From: agc Date: Thu, 8 Dec 2011 07:39:00 +0000 Subject: Initial import of dnscap-134 into the Packages Collection. dnscap is a network capture utility designed specifically for DNS traffic. It produces binary data in pcap(3) format. This utility is similar to tcpdump(1), but has a number of features tailored to DNS transactions and protocol options. OARC likes to use dnscap for DITL data collections. Some of its features include: + Understands both IPv4 and IPv6 + Captures UDP, TCP, and IP fragments. + Collect only queries, responses, or both (-s option) + Collect for only certain source/destination addresses (-a -z -A -Z options) + Periodically creates new pcap files (-t option) + Spawns an upload script after closing a pcap file (-k option) + Will start and stop collecting at specific times (-B -E options) --- net/dnscap/DESCR | 16 ++++++++++++++++ net/dnscap/Makefile | 19 +++++++++++++++++++ net/dnscap/PLIST | 3 +++ net/dnscap/distinfo | 6 ++++++ net/dnscap/patches/patch-Makefile.in | 23 +++++++++++++++++++++++ 5 files changed, 67 insertions(+) create mode 100644 net/dnscap/DESCR create mode 100644 net/dnscap/Makefile create mode 100644 net/dnscap/PLIST create mode 100644 net/dnscap/distinfo create mode 100644 net/dnscap/patches/patch-Makefile.in diff --git a/net/dnscap/DESCR b/net/dnscap/DESCR new file mode 100644 index 00000000000..8014d543894 --- /dev/null +++ b/net/dnscap/DESCR @@ -0,0 +1,16 @@ +dnscap is a network capture utility designed specifically for DNS +traffic. It produces binary data in pcap(3) format. This utility is +similar to tcpdump(1), but has a number of features tailored to DNS +transactions and protocol options. + +OARC likes to use dnscap for DITL data collections. Some of its +features include: + ++ Understands both IPv4 and IPv6 ++ Captures UDP, TCP, and IP fragments. ++ Collect only queries, responses, or both (-s option) ++ Collect for only certain source/destination addresses (-a -z -A -Z + options) ++ Periodically creates new pcap files (-t option) ++ Spawns an upload script after closing a pcap file (-k option) ++ Will start and stop collecting at specific times (-B -E options) diff --git a/net/dnscap/Makefile b/net/dnscap/Makefile new file mode 100644 index 00000000000..923ff5502d6 --- /dev/null +++ b/net/dnscap/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/12/08 07:39:00 agc Exp $ + +DISTNAME= dnscap-134 +CATEGORIES= net +MASTER_SITES= http://dnscap.dns-oarc.net/ + +MAINTAINER= agc@NetBSD.org +HOMEPAGE= https://www.dns-oarc.net/tools/dnscap +COMMENT= Network capture utility designed specifically for DNS traffic +LICENSE= isc + +GNU_CONFIGURE= yes + +PKG_DESTDIR_SUPPORT= user-destdir +INSTALLATION_DIRS= bin ${MANPREFIX}/man1 + +.include "../../net/libpcap/buildlink3.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/net/dnscap/PLIST b/net/dnscap/PLIST new file mode 100644 index 00000000000..cc34e13aaa8 --- /dev/null +++ b/net/dnscap/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/12/08 07:39:00 agc Exp $ +bin/dnscap +man/man1/dnscap.1 diff --git a/net/dnscap/distinfo b/net/dnscap/distinfo new file mode 100644 index 00000000000..fc717b885da --- /dev/null +++ b/net/dnscap/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/12/08 07:39:00 agc Exp $ + +SHA1 (dnscap-134.tar.gz) = a94265a850014ca2ad2bb545b7b7417161d4dc7f +RMD160 (dnscap-134.tar.gz) = 9860df237b053199cdec4ea2d1be714f392c8489 +Size (dnscap-134.tar.gz) = 91682 bytes +SHA1 (patch-Makefile.in) = ddfc02984cf2f092b9356421300a48ee5c59e43b diff --git a/net/dnscap/patches/patch-Makefile.in b/net/dnscap/patches/patch-Makefile.in new file mode 100644 index 00000000000..c399dc5ea5a --- /dev/null +++ b/net/dnscap/patches/patch-Makefile.in @@ -0,0 +1,23 @@ +$NetBSD: patch-Makefile.in,v 1.1.1.1 2011/12/08 07:39:00 agc Exp $ + +DESTDIR +don't rename old binaries +install man page into correct directory + +--- Makefile.in 2011/12/07 20:36:41 1.1 ++++ Makefile.in 2011/12/07 20:37:44 +@@ -45,11 +45,9 @@ + all: ${prog} ${prog}.cat1 + + install: all +- mkdir -p ${bindir} ${mandir} +- if [ -f ${bindir}/${prog} ]; then \ +- mv -f ${bindir}/${prog} ${bindir}/${prog}.old; fi +- cp ${prog} ${bindir} +- cp ${prog}.cat1 /usr/local/man/cat1/${prog}.1 ++ mkdir -p ${DESTDIR}${bindir} ${DESTDIR}${mandir}/man1 ++ cp ${prog} ${DESTDIR}${bindir} ++ cp ${prog}.1 ${DESTDIR}${prefix}/man/man1/${prog}.1 + + .c.o: + ${CC} ${CFLAGS} -c $< -- cgit v1.2.3