On 2026/01/17 11:52, Sebastian Reitenbach wrote:
> Hi,
> 
> attached a port of the rtl_433 tool.
> 
> cat pkg/DESCR
> rtl_433 (despite the name) is a generic data receiver, mainly for the
> 433.92 MHz, 868 MHz (SRD), 315 MHz, 345 MHz, and 915 MHz ISM bands,
> utilizing rtl-sdr devices.
> 
> I don't think it's overly useful to @sample all those example files 
> to /etc/rtl_433, therefore I only left a comment about them in the README.
> 
> I had some issues (RTL-SDR blog v3) with the default sample rate rtl_433 uses 
> being too high,
> therefore a section covering the topic was added to the README.
> 
> To get the manual page installed into the proper location, I had to patch, 
> don't 
> know if there's an easier way with CONFIGURE_ARGS or environment variables.
> 
> This will also be a RUN_DEPEND for the upcoming net/kismet update I have in
> the queue, which needs a little cleanup before I send it here.
> 
> Tarball attached.
> 
> Any kind of feedback, test reports, or even OKs would be greatly appreciated.
> 
> cheers,
> Sebastian

Setting CMAKE_INSTALL_SYSCONFDIR affects the compiled-in path so rtl_433
looks for config in /usr/local/share/examples/rtl_433/rtl_433/rtl_433.conf
which doesn't even exist.

Other nits: mixed VAR= and VAR = in Makefile, and most PKGSTEM in the
pkg-readme don't make sense.

ok with this on top:

diff -uNp -r rtl_433-/Makefile rtl_433/Makefile
--- rtl_433-/Makefile   Sun Jan 18 12:01:27 2026
+++ rtl_433/Makefile    Sun Jan 18 12:13:16 2026
@@ -4,19 +4,25 @@ GH_ACCOUNT =  merbanan
 GH_PROJECT =   rtl_433
 GH_TAGNAME =   25.12
 
-CATEGORIES=    comms
+CATEGORIES =   comms
 
 MAINTAINER =   Sebastian Reitenbach <[email protected]>
 
-# GPLv2
+# GPLv2+
 PERMIT_PACKAGE=        Yes
 
 WANTLIB += c m pthread usb-1.0 crypto rtlsdr ssl
 
-MODULES=       devel/cmake
-LIB_DEPENDS=   comms/rtl-sdr \
+MODULES =      devel/cmake
+LIB_DEPENDS =  comms/rtl-sdr \
                devel/libusb1
 
-CONFIGURE_ARGS += -DCMAKE_INSTALL_SYSCONFDIR=share/examples/rtl_433
+CONFIGURE_ARGS = -DCMAKE_INSTALL_SYSCONFDIR=${SYSCONFDIR}
+
+pre-configure:
+       ${SUBST_CMD} ${WRKSRC}/man/man1/rtl_433.1
+
+post-install:
+       mv ${WRKINST}/etc/rtl_433 ${PREFIX}/share/examples/rtl_433
 
 .include <bsd.port.mk>
diff -uNp -r rtl_433-/patches/patch-man_man1_rtl_433_1 
rtl_433/patches/patch-man_man1_rtl_433_1
--- rtl_433-/patches/patch-man_man1_rtl_433_1   Thu Jan  1 01:00:00 1970
+++ rtl_433/patches/patch-man_man1_rtl_433_1    Sun Jan 18 12:10:58 2026
@@ -0,0 +1,12 @@
+Index: man/man1/rtl_433.1
+--- man/man1/rtl_433.1.orig
++++ man/man1/rtl_433.1
+@@ -40,7 +40,7 @@ Detailed information on some options follows.
+ 
+ 
+   A "rtl_433.conf" file is searched in "./", XDG_CONFIG_HOME e.g. 
"$HOME/.config/rtl_433/",
+-  SYSCONFDIR e.g. "/usr/local/etc/rtl_433/", then command line args will be 
parsed in order.
++  SYSCONFDIR e.g. "${SYSCONFDIR}/rtl_433/", then command line args will be 
parsed in order.
+ .SS "General options"
+ .TP
+ [ \fB\-V\fI\fP ]
diff -uNp -r rtl_433-/pkg/DESCR rtl_433/pkg/DESCR
--- rtl_433-/pkg/DESCR  Sun Jan 18 12:01:27 2026
+++ rtl_433/pkg/DESCR   Sun Jan 18 12:19:17 2026
@@ -1,3 +1,7 @@
 rtl_433 (despite the name) is a generic data receiver, mainly for the
 433.92 MHz, 868 MHz (SRD), 315 MHz, 345 MHz, and 915 MHz ISM bands,
 utilizing rtl-sdr devices.
+
+Sample configurations are included to decode various transmissions
+including remote controls, car keys, tyre pressure monitoring systems,
+thermometers, weather stations and more.
diff -uNp -r rtl_433-/pkg/PLIST rtl_433/pkg/PLIST
--- rtl_433-/pkg/PLIST  Sun Jan 18 12:01:27 2026
+++ rtl_433/pkg/PLIST   Sun Jan 18 12:09:39 2026
@@ -4,56 +4,57 @@ include/rtl_433_devices.h
 @man man/man1/rtl_433.1
 share/doc/pkg-readmes/${PKGSTEM}
 share/examples/rtl_433/
-share/examples/rtl_433/rtl_433/
-share/examples/rtl_433/rtl_433/CAME-TOP432.conf
-share/examples/rtl_433/rtl_433/ContinentalRemote.conf
-share/examples/rtl_433/rtl_433/Dewenwils_BHV.conf
-share/examples/rtl_433/rtl_433/DrivewayAlarm_I8-W1901.conf
-share/examples/rtl_433/rtl_433/DrivewayAlert.conf
-share/examples/rtl_433/rtl_433/EV1527-4Button-Universal-Remote.conf
-share/examples/rtl_433/rtl_433/EV1527-DDS-Sgooway.conf
-share/examples/rtl_433/rtl_433/EV1527-PIR-Sgooway.conf
-share/examples/rtl_433/rtl_433/FAN-53T.conf
-share/examples/rtl_433/rtl_433/GhostControls.conf
-share/examples/rtl_433/rtl_433/HeatmiserPRT-W.conf
-share/examples/rtl_433/rtl_433/Hormann-blue.conf
-share/examples/rtl_433/rtl_433/LeakDetector.conf
-share/examples/rtl_433/rtl_433/MightyMule-FM231.conf
-share/examples/rtl_433/rtl_433/MondeoRemote.conf
-share/examples/rtl_433/rtl_433/PHOX.conf
-share/examples/rtl_433/rtl_433/Reolink-doorbell.conf
-share/examples/rtl_433/rtl_433/SMC5326-Remote.conf
-share/examples/rtl_433/rtl_433/SWETUP-garage-opener.conf
-share/examples/rtl_433/rtl_433/SalusRT300RF.conf
-share/examples/rtl_433/rtl_433/Skylink_HA-434TL.conf
-share/examples/rtl_433/rtl_433/Thomson-doorbell.conf
-share/examples/rtl_433/rtl_433/adlm_fprf.conf
-share/examples/rtl_433/rtl_433/atc-technology_lmt-430.conf
-share/examples/rtl_433/rtl_433/car_fob.conf
-share/examples/rtl_433/rtl_433/chungear_bcf-0019x2.conf
-share/examples/rtl_433/rtl_433/dooya_curtain.conf
-share/examples/rtl_433/rtl_433/elro_ab440r.conf
-share/examples/rtl_433/rtl_433/energy_count_3000.conf
-share/examples/rtl_433/rtl_433/fan-11t.conf
-share/examples/rtl_433/rtl_433/friedlandevo.conf
-share/examples/rtl_433/rtl_433/ge_smartremote_plus.conf
-share/examples/rtl_433/rtl_433/heatilator.conf
-share/examples/rtl_433/rtl_433/honeywell-fan.conf
-share/examples/rtl_433/rtl_433/hornbach-msrc-sal.conf
-share/examples/rtl_433/rtl_433/ivac_pro.conf
-share/examples/rtl_433/rtl_433/led-light-remote.conf
-share/examples/rtl_433/rtl_433/oma-blind-remote.conf
-share/examples/rtl_433/rtl_433/pir-ef4.conf
-share/examples/rtl_433/rtl_433/quinetic_switch.conf
-share/examples/rtl_433/rtl_433/qx-30x.conf
-share/examples/rtl_433/rtl_433/rako_wireless_lighting.conf
-share/examples/rtl_433/rtl_433/rolleaseacmedia.conf
-share/examples/rtl_433/rtl_433/rtl_433.example.conf
-share/examples/rtl_433/rtl_433/silverline_doorbell.conf
-share/examples/rtl_433/rtl_433/sonoff_rm433.conf
-share/examples/rtl_433/rtl_433/steffen_switch.conf
-share/examples/rtl_433/rtl_433/tesla_charge-port-opener.conf
-share/examples/rtl_433/rtl_433/tyreguard400.conf
-share/examples/rtl_433/rtl_433/valeo_car_key.conf
-share/examples/rtl_433/rtl_433/verisure_alarm.conf
-share/examples/rtl_433/rtl_433/xmas-tree-remote-2APJZ-CW002.conf
+@sample ${SYSCONFDIR}/rtl_433/
+share/examples/rtl_433/CAME-TOP432.conf
+share/examples/rtl_433/ContinentalRemote.conf
+share/examples/rtl_433/Dewenwils_BHV.conf
+share/examples/rtl_433/DrivewayAlarm_I8-W1901.conf
+share/examples/rtl_433/DrivewayAlert.conf
+share/examples/rtl_433/EV1527-4Button-Universal-Remote.conf
+share/examples/rtl_433/EV1527-DDS-Sgooway.conf
+share/examples/rtl_433/EV1527-PIR-Sgooway.conf
+share/examples/rtl_433/FAN-53T.conf
+share/examples/rtl_433/GhostControls.conf
+share/examples/rtl_433/HeatmiserPRT-W.conf
+share/examples/rtl_433/Hormann-blue.conf
+share/examples/rtl_433/LeakDetector.conf
+share/examples/rtl_433/MightyMule-FM231.conf
+share/examples/rtl_433/MondeoRemote.conf
+share/examples/rtl_433/PHOX.conf
+share/examples/rtl_433/Reolink-doorbell.conf
+share/examples/rtl_433/SMC5326-Remote.conf
+share/examples/rtl_433/SWETUP-garage-opener.conf
+share/examples/rtl_433/SalusRT300RF.conf
+share/examples/rtl_433/Skylink_HA-434TL.conf
+share/examples/rtl_433/Thomson-doorbell.conf
+share/examples/rtl_433/adlm_fprf.conf
+share/examples/rtl_433/atc-technology_lmt-430.conf
+share/examples/rtl_433/car_fob.conf
+share/examples/rtl_433/chungear_bcf-0019x2.conf
+share/examples/rtl_433/dooya_curtain.conf
+share/examples/rtl_433/elro_ab440r.conf
+share/examples/rtl_433/energy_count_3000.conf
+share/examples/rtl_433/fan-11t.conf
+share/examples/rtl_433/friedlandevo.conf
+share/examples/rtl_433/ge_smartremote_plus.conf
+share/examples/rtl_433/heatilator.conf
+share/examples/rtl_433/honeywell-fan.conf
+share/examples/rtl_433/hornbach-msrc-sal.conf
+share/examples/rtl_433/ivac_pro.conf
+share/examples/rtl_433/led-light-remote.conf
+share/examples/rtl_433/oma-blind-remote.conf
+share/examples/rtl_433/pir-ef4.conf
+share/examples/rtl_433/quinetic_switch.conf
+share/examples/rtl_433/qx-30x.conf
+share/examples/rtl_433/rako_wireless_lighting.conf
+share/examples/rtl_433/rolleaseacmedia.conf
+share/examples/rtl_433/rtl_433.example.conf
+@sample ${SYSCONFDIR}/rtl_433/rtl_433.conf
+share/examples/rtl_433/silverline_doorbell.conf
+share/examples/rtl_433/sonoff_rm433.conf
+share/examples/rtl_433/steffen_switch.conf
+share/examples/rtl_433/tesla_charge-port-opener.conf
+share/examples/rtl_433/tyreguard400.conf
+share/examples/rtl_433/valeo_car_key.conf
+share/examples/rtl_433/verisure_alarm.conf
+share/examples/rtl_433/xmas-tree-remote-2APJZ-CW002.conf
diff -uNp -r rtl_433-/pkg/README rtl_433/pkg/README
--- rtl_433-/pkg/README Sun Jan 18 12:01:27 2026
+++ rtl_433/pkg/README  Sun Jan 18 12:04:35 2026
@@ -5,17 +5,16 @@
 Configuration examples
 ======================
 
-Sample configurations and decoders for various RF devices are available in: 
-${TRUEPREFIX}/share/examples/${PKGSTEM}
+Sample configurations and decoders for various RF devices are available in
+${TRUEPREFIX}/share/examples/rtl_433
 
 Tuning and Performance
 ======================
 
-The default sample rate used by ${PKGSTEM} may be too high for some hardware or
+The default sample rate used by rtl_433 may be too high for some hardware or
 environments, potentially preventing capturing any packets.
 
 Testing has shown that a sample rate of 1024k is generally stable and 
sufficient
 for most supported devices. You can specify this rate using the -s flag:
 
-# ${PKGSTEM} -s 1024k
-
+# rtl_443 -s 1024k

Reply via email to