pkgsrc/net/ngrep/Makefile
adam 3e2ec42d4a Changes 1.45:
o fixed bug where setting the snaplen smaller than the minimum
          necessary to read the full headres would cause garbage to be
          fed into the pattern matcher
        o fixed unreported bug in IPv6/TCP packet length calculation
        o relocated the privilege-dropping routine to be invoked right
          before entering the packet processing loop, to prevent
          interference with necessary permissions to read or write
          dumpfiles/etc.
        o fixed integer overflow with the snaplen that resulted from
          an implicit signed/unsigned conversion
        o minor change to compensate for some broken compiler
          optimizers
        o fixed double-free race condition during ngrep termination
        o reworked packet length calculation in the main processing
          loop, improving performance and readability
        o simplified regex build logic in configure and Makefile
        o updated Win32 version to use config.h for preprocessor
          definitions instead of the Visual Studio project files,
          making manual tweaking and config of ngrep for Win32
          consistent with *NIX and more obvious
        o changed third-party Makefiles to properly clean up after
          themselves
        o added support for radiotap (IEEE802_11_RADIO)
        o changed ``-s 0'' invocation to mimic the equivalent of tcpdump
2006-11-29 10:28:48 +00:00

32 lines
819 B
Makefile

# $NetBSD: Makefile,v 1.26 2006/11/29 10:28:48 adam Exp $
DISTNAME= ngrep-1.45
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ngrep/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://ngrep.sourceforge.net/
COMMENT= Network grep
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-pcre
# ngrep's configure use --includedir/$includedir in a weird way!
CONFIGURE_ARGS+= --includedir=${BUILDLINK_PREFIX.libpcap}/include
CONFIGURE_ARGS+= --enable-ipv6
BUILD_TARGET= ngrep
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "FreeBSD"
CONFIGURE_ARGS+= --disable-pcap-restart
.endif
.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
do-configure:
cd ${WRKSRC} && ./configure --prefix=${PREFIX}
.endif
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"