# $Id: Portfile 92800 2012-05-07 05:48:38Z jmr@macports.org $

PortSystem 1.0

name		ngrep
version		1.45
categories	net
maintainers	flipt.com:grace
description	Network grep
long_description	ngrep strives to provide most of GNU grep's common features, applying \
			them to the network layer. \
			ngrep a pcap-aware tool that will allow you to specify extended \
			regular expressions to match against data payloads of packets. It \
			currently recognizes TCP, UDP, and ICMP across Ethernet, PPP, SLIP, \
			FDDI, Token Ring and null interfaces, and understands BPF filter \
			logic in the same fashion as more common packet sniffing tools, \
			like tcpdump and snoop.
homepage	http://ngrep.sourceforge.net
platforms	darwin
master_sites    sourceforge
checksums	md5 bc8150331601f3b869549c94866b4f1c \
		sha1 f26090a6ac607db66df99c6fa9aef74968f3330f \
		rmd160 d4b89dfa23f6a7c65d3ccefc846362054a46605f
use_bzip2		yes

depends_build	port:libpcap

patchfiles      Makefile.in.patch regex-0.12_Makefile.in.patch

configure.args	--with-pcap-includes=${prefix}/include \
				--mandir=${prefix}/share/man
