Bug 262959 - [NEW PORT] devel/sniffglue: multithread sniffer
Summary: [NEW PORT] devel/sniffglue: multithread sniffer
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mikael Urankar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-31 13:33 UTC by Martin Filla
Modified: 2022-04-22 13:08 UTC (History)
1 user (show)

See Also:


Attachments
sniffglue.shar (63.21 KB, text/plain)
2022-03-31 13:33 UTC, Martin Filla
no flags Details
sniffglue.shar (63.17 KB, text/plain)
2022-04-02 16:39 UTC, Martin Filla
no flags Details
snifffglue.shar (63.21 KB, text/plain)
2022-04-21 16:13 UTC, Martin Filla
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Filla 2022-03-31 13:33:04 UTC
Created attachment 232843 [details]
sniffglue.shar

Hi,
i have new port sniffglue.
Comment 1 Mikael Urankar freebsd_committer freebsd_triage 2022-04-01 05:40:53 UTC
Why do you need libpcap.so:net/libpcap? The one in base is incompatible?
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2022-04-01 09:20:08 UTC
If you want to use libpcap from the ports tree you need to use libpcap.so.1:net/libpcap (it's subtle, but libpcap.so will be found in /usr/lib and you'll end up using the base libpcap. You really want libpcap.so.1).
In this case, you don't need files/patch-cargo-crates_pcap-sys-0.1.3_build.rs, just add pkgconfig to the USES list.

If you want to use libpcap from base you need files/patch-cargo-crates_pcap-sys-0.1.3_build.rs. The LIB_DEPENDS line is not needed AFAICT

If you want to let the user choose, you can do something like net-mgmt/tcpreplay

The devel category looks wrong, security seems a better fit.
Comment 3 Martin Filla 2022-04-02 16:39:13 UTC
Created attachment 232898 [details]
sniffglue.shar

I updated shar file.
Comment 4 Mikael Urankar freebsd_committer freebsd_triage 2022-04-21 07:27:37 UTC
(In reply to Martin Filla from comment #3)
why net-mgmt? nmap and rustscan (which are similar tools) are in security.
Comment 5 Martin Filla 2022-04-21 08:28:17 UTC
(In reply to Mikael Urankar from comment #4)
I will change to security
Comment 6 Martin Filla 2022-04-21 16:13:08 UTC
Created attachment 233379 [details]
snifffglue.shar
Comment 7 commit-hook freebsd_committer freebsd_triage 2022-04-22 12:49:21 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e97d5b84d882611a871692a3abdda797759232e4

commit e97d5b84d882611a871692a3abdda797759232e4
Author:     Martin Filla <freebsd@sysctl.cz>
AuthorDate: 2022-04-22 11:47:44 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2022-04-22 12:49:11 +0000

    security/sniffglue: Add new port

    sniffglue is a network sniffer written in rust. Network packets are parsed
    concurrently using a thread pool to utilize all cpu cores. Project goals are
    that you can run sniffglue securely on untrusted networks and that it must not
    crash when processing packets. The output should be as useful as possible by
    default.

    PR:             262959

 security/Makefile                                  |   1 +
 security/sniffglue/Makefile (new)                  | 338 +++++++++++
 security/sniffglue/distinfo (new)                  | 633 +++++++++++++++++++++
 security/sniffglue/files/patch-Cargo.toml (new)    |  20 +
 ...atch-cargo-crates_pcap-sys-0.1.3_build.rs (new) |  10 +
 security/sniffglue/pkg-descr (new)                 |   4 +
 6 files changed, 1006 insertions(+)
Comment 8 Mikael Urankar freebsd_committer freebsd_triage 2022-04-22 13:08:05 UTC
Thanks!