ngrep is like GNU grep applied to the network layer.
It's a PCAP-based tool that allows you to specify an extended regular or
hexadecimal expression to match against data payloads of packets.
It understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
IGMP and Raw, across a wide variety of interface types, and understands BPF
filter logic in the same fashion as more common packet sniffing tools, such as
tcpdump and snoop.
===> The following configuration options are available for ngrep-1.48.3_1:
CAPSICUM=on: Build with capsicum if kernel supports it
DOCS=on: Build and/or install documentation
IPV6=on: IPv6 protocol support
PCRE=on: Use PCRE2 instead of GNU regex
PORTS_PCAP=off: Use ports PCAP instead of system PCAP
===> Use 'make config' to modify these settings
net/ngrep: Fix Capsicum support
- Fix Capsicum sandbox crash when using -I (offline capture):
pcap_fileno() returns -1 for handles opened with pcap_open_offline().
cap_rights_limit(-1, ...) fails with EBADF rather than ENOSYS,
bypassing the guard and causing ngrep to exit with "unable to limit pcap
pcap descriptor" whenever -I is used.
Cache pcap_fileno(pd) and skip cap_rights_limit() and cap_ioctls_limit()
when the fd is -1. Offline handles do not need Capsicum fd sandboxing
at this point since the file is already open; live captures on a BPF
device are unaffected.
- Fix USE_CAPSICUM always defined:
patch-configure.ac never initialises USE_CAPSICUM to "0", so
AC_DEFINE_UNQUOTED emits "#define USE_CAPSICUM" (empty) regardless of
(Only the first 15 lines of the commit message are shown above )
*/*: Update WWW to use HTTPS for sourceforge.net projects
Homepage link is permanent redirected to its HTTPS counterpart
Issue reported by repology : https://repology.org/repository/freebsd/problems
Approved by: portmgr (blanket)
PR: 274888
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
net: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <ports@c0decafe.net>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Straup Cope <ascope@cpan.org>
* Aaron Zauner <az_mail@gmx.at>
* Adam Jette <jettea46@yahoo.com>
* Adam Weinberger <adamw@FreeBSD.org>
* Alan Eldridge <alane@geeksrus.net>
* Alex Bakhtin <Alex.Bakhtin@gmail.com>
* Alex Deiter <Alex.Deiter@Gmail.COM>
* Alex Dupre <ale@FreeBSD.org>
* Alex Dupre <sysadmin@alexdupre.com>
(Only the first 15 lines of the commit message are shown above )
- DISTNAME= ${PORTNAME}-${PORTVERSION} is the default and not needed.
PR: ports/153292
Submitted by: myself (pgollucci)
Tested by: -exp run by pav
Approved by: portmgr (pav)
Switch to using GNU make. If PCRE was disabled, it would not build with
FreeBSD make.
Noticed by: Andreas Blaaflaadt
Cc: andreas@blaafladt.no
Approved by: maintainer
- Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them. This is determined by running ``configure --help'' in
do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
subdirectory detection.
PR: ports/111470
Approved by: portmgr
Discussed with: stas (Mk/*), gerald (info related stuffs)
Tested by: pointyhat exp run
Update to 1.45
v1.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.
(Only the first 15 lines of the commit message are shown above )
- Fix build using OPTIONS PORTS_PCAP. libpcap.so.2 are not installed by default,
use libpcap.a.
PR: 94217
Notified by: Chris St Denis <chris___ctgameinfo.com>
Approved by: maintainer timeout, 38 days
Update port: net/ngrep to 1.44
- Update to 1.44
- Use OPTIONS
- Add IPv6 support
PR: ports/85965
Submitted by: Marcus Alves Grando <marcus@corp.grupos.com.br>
Make net/ngrep work with an installed net/libpcap and WITH_PORTS_PCAP=1.
Submitted by: Jeremie Le Hen <jeremie@le-hen.org>, Florent Thoumie
<flz@xbsd.org>
Upgrade to version 1.43
v1.43
o healed the win32 code fork: ngrep now builds from the same
source tree for all platforms including Windows
o re-wrote the privilege revocation logic after problems were
reported with the SPC version, and removed non-root
drop_privs capability altogether
o fix off-by-one bug which caused ngrep to exit 1 packet early
when ``-A'' as invoked
o Fixed problematic configtest for old broken-redhat-glibc UDP
(Only the first 15 lines of the commit message are shown above )
Upgrade of net/ngrep to version 1.42
Changes for v1.42
o rewrote the entire configure.in/config.h.in to autoconf 2.57
to be more consistent with normal autoconf'd programs.
corrects bugs around packaging impediments and typos.
o improved privilege dropping code and added more options to
configure to govern its behaviour
o added flag to turn off privilege revocation logic
o added multiline match as default and ability to enforce
previous default single-line match (bugfix + feature)
(Only the first 15 lines of the commit message are shown above )
Fix problems which where there during running of the program:
- checked on 4.8
- checked on 5.2.1 with standard libpcap
- checked on 5.2.1 with net/libpcap
Commands checked:
- ngrep -d fxp1
- ngrep -d fxp1 port 80
- ngrep -d fxp1 GET port 80
move the check for the necessarity for the additional patches
regarding the changes in libpcap to 501110 and higher versions of
the FreeBSD operating system
Submitted by: Emanuel Haupt <emanuel.haupt@cablecom.ch>
Update to 1.40. - update mastersite - install more docs, use DOCSDIR -
properly support NOPORTDOCS in pkg-plist - sync pkg-descr with current
features - update ngrep.c (the t->tm_mon+1 change has been integrated in 1.40)
- remove patch-Makefile.in (no longer necessary)