On 2026/05/08 20:02, Sebastian Reitenbach wrote:
> Hi,
>
> this is a tiny new port for whsniff:
>
> cat pkg/DESCR
> Whsniff is a command line utility that interfaces TI CC2531 USB dongle
> with Wireshark for capturing and displaying IEEE 802.15.4 traffic at 2.4
> GHz. Whsniff reads the packets from TI CC2531 USB dongle with
> sniffer_fw_cc2531 firmware, converts to the PCAP format and writes to
> the standard output(stdout).
>
> this allows me to use my Texas Instruments CC2531 based dongle with that
> sniffer firmware, to
> run:
>
> whsniff -c 25 | wireshark -k -i -
>
> to see anything IEEE 802.15.4 related packets around me.
>
> OK to import after full unlock?
>
> cheers,
> Sebastian
>
> --
> https://buzzdeee.reitenba.ch
patch-Makefile does nothing
: COMMENT= packet converter for sniffing IEEE 802.15.4
:
: V= 1.3
: GH_ACCOUNT = homewsn
: GH_PROJECT = whsniff
: GH_TAGNAME = v${V}
: DISTNAME= whsniff-${V}
the above block can be replaced with
GH_ACCOUNT= homewsn
GH_PROJECT= whsniff
GH_TAGNAME= v1.3
: LIB_DEPENDS = devel/libusb1
:
: MAKE_FLAGS= CFLAGS="-I${LOCALBASE}/include" \
: LDFLAGS="-L${LOCALBASE}/lib"
:
: FAKE_FLAGS += PREFIX=${DESTDIR}${PREFIX}
:
: NO_TEST = Yes
: USE_GMAKE= Yes
mix of "=" / " = " and a " += " which isn't adding to anything,
.....
here's one way to clean those up: ok with that, or similar.
diff -uNp -r whsniff.orig/Makefile whsniff/Makefile
--- whsniff.orig/Makefile Thu May 14 15:34:45 2026
+++ whsniff/Makefile Thu May 14 15:38:31 2026
@@ -1,28 +1,26 @@
COMMENT= packet converter for sniffing IEEE 802.15.4
-V= 1.3
-GH_ACCOUNT = homewsn
-GH_PROJECT = whsniff
-GH_TAGNAME = v${V}
-DISTNAME= whsniff-${V}
+GH_ACCOUNT= homewsn
+GH_PROJECT= whsniff
+GH_TAGNAME= v1.3
CATEGORIES= net security
MAINTAINER= Sebastian Reitenbach <[email protected]>
-# GPLv2
+# GPLv2 only
PERMIT_PACKAGE= Yes
WANTLIB += c usb-1.0
-LIB_DEPENDS = devel/libusb1
+LIB_DEPENDS= devel/libusb1
MAKE_FLAGS= CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-FAKE_FLAGS += PREFIX=${DESTDIR}${PREFIX}
+FAKE_FLAGS= PREFIX=${DESTDIR}${PREFIX}
-NO_TEST = Yes
+NO_TEST= Yes
USE_GMAKE= Yes
.include <bsd.port.mk>
diff -uNp -r whsniff.orig/patches/patch-Makefile whsniff/patches/patch-Makefile
--- whsniff.orig/patches/patch-Makefile Thu May 14 15:34:45 2026
+++ whsniff/patches/patch-Makefile Thu Jan 1 01:00:00 1970
@@ -1,12 +0,0 @@
-Index: Makefile
---- Makefile.orig
-+++ Makefile
-@@ -30,7 +30,7 @@ endif
-
- # Installation directories by convention
- # http://www.gnu.org/prep/standards/html_node/Directory-Variables.html
--PREFIX = /usr/local
-+PREFIX ?= /usr/local
- EXEC_PREFIX = $(PREFIX)
- BINDIR = $(EXEC_PREFIX)/bin
- SYSCONFDIR = $(PREFIX)/etc