d42132137f
Based on PR 41779 by Fredrik Pettai. Version 20090128: I added a new feature to dnstop today that filters on "refused" response codes. This might be useful in tracking the ongoing DNS-based DDoS attacks. To use this new feature: dnstop -R -f refused eth0 Version 20080321: The interesting changes came in a patch from Dave Plonka: Fixed a bug that cause dnstop to Memory fault when processing a DNS packet greater than PCAP_SNAPLEN (previously 1460) bytes in size. Raised PCAP_SNAPLEN to 65535 to avoid truncating large DNS packets. Eliminated unnecessary stack buffers and memcpy calls when handling packets. Also some variables have been added to the Makefile at the request of a packager so that it may be easier to customize where files are installed, etc.
26 lines
825 B
Makefile
26 lines
825 B
Makefile
# $NetBSD: Makefile,v 1.20 2009/07/25 10:26:17 obache Exp $
|
|
#
|
|
|
|
DISTNAME= dnstop-20090128
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://dns.measurement-factory.com/tools/dnstop/src/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://dns.measurement-factory.com/tools/dnstop/
|
|
COMMENT= Diagnose tcpdump trace for DNS queries/replies
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man8 share/doc/dnstop
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dnstop ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/dnstop.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/dnstop
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.7.0
|
|
.include "../../net/libpcap/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|