me
/
guix
Archived
1
0
Fork 0

gnu: Add ngrep.

* gnu/packages/admin.scm (ngrep): New variable.
master
Pierre Neidhardt 2018-12-12 23:52:50 +01:00
parent 7b046b1bdc
commit 2eddeebab5
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F
1 changed files with 33 additions and 0 deletions

View File

@ -2953,3 +2953,36 @@ security defenses and provide tips for further system hardening. It will also
scan for general system information, vulnerable software packages, and
possible configuration issues.")
(license license:gpl3+)))
(define-public ngrep
(package
(name "ngrep")
(version "1.47")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jpr5/ngrep/")
(commit (string-append "V" (string-replace-substring version "." "_")))))
(file-name (git-file-name name version))
(sha256
(base32
"1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
(build-system gnu-build-system)
(inputs
`(("libpcap" ,libpcap)))
(arguments
`(#:tests? #f ;; No tests.
#:configure-flags (list (string-append "--with-pcap-includes="
(assoc-ref %build-inputs "libpcap")
"/include/pcap"))))
(home-page "https://github.com/jpr5/ngrep/")
(synopsis "Grep-like utility to search for network packets on an interface")
(description "@command{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.")
(license license:bsd-3)))