# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
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, \
homepage http://ngrep.sourceforge.net
master_sites sourceforge:project/${name}/${name}/${version}/
checksums rmd160 d4b89dfa23f6a7c65d3ccefc846362054a46605f \
sha256 aea6dd337da8781847c75b3b5b876e4de9c58520e0d77310679a979fc6402fa7
depends_lib-append port:libpcap \
patchfiles 10_debian-build.diff \
configure.args --with-pcap-includes=${prefix}/include \
--mandir=${prefix}/share/man \
# above line required to avoid segfaults
# see https://github.com/jpr5/ngrep/commit/e29fc29
# https://github.com/Homebrew/homebrew/issues/27171
if {[vercmp [macports_version] 2.5.99] >= 0} {
build.env-append CC=${configure.cc} \
"CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
"LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]"
build.env-append CC=${configure.cc} \
CFLAGS='${configure.cflags} [get_canonical_archflags cc]' \
LDFLAGS='${configure.ldflags} [get_canonical_archflags ld]'