On 2025/03/16 21:23, open...@systemfailure.net wrote: > On 2025/03/14 14:13, Aaron Bieber <aa...@bolddaemon.com> wrote: > > Hi, > > > > Here are updates to the Reticulum stack. Nomadnet runs fine for me. > > > > I'll probably commit this today or tomorrow if I no one objects. > > > > Cheers, > > Aaron > > Hi, thanks for updating these ports. > > py-rns-0.9.3 works fine, as far as I tested, but 'make test' fails: see the > attached log file. > > Moreover, it would be very useful to include a README for people wanting to > use rnodeconf, since its usage on OpenBSD is not documented anywhere. Patch > attached. > > Best regards.
Here's a tiny tweak to your Makefile diff (tabs not spaces), and fix tests if cython is present when they're run. Index: Makefile =================================================================== RCS file: /cvs/ports/net/py-rns/Makefile,v diff -u -p -r1.2 Makefile --- Makefile 15 Mar 2025 00:40:00 -0000 1.2 +++ Makefile 17 Mar 2025 11:55:37 -0000 @@ -3,6 +3,7 @@ COMMENT = cryptography-based networking MODPY_DISTV = 0.9.3 DISTNAME= rns-${MODPY_DISTV} PKGNAME = py-${DISTNAME} +REVISION = 0 CATEGORIES = net devel @@ -18,6 +19,8 @@ MODULES = lang/python MODPY_PI = Yes MODPY_PYBUILD = setuptools +# writes to $HOME if cython is installed +PORTHOME = ${WRKDIR} MODPY_PYTEST_ARGS = -v tests/all.py RUN_DEPENDS = devel/py-serial \ Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/net/py-rns/pkg/PLIST,v diff -u -p -r1.2 PLIST --- pkg/PLIST 15 Mar 2025 00:40:00 -0000 1.2 +++ pkg/PLIST 17 Mar 2025 11:55:37 -0000 @@ -274,3 +274,4 @@ lib/python${MODPY_VERSION}/site-packages lib/python${MODPY_VERSION}/site-packages/rns-${MODPY_DISTV}.dist-info/WHEEL lib/python${MODPY_VERSION}/site-packages/rns-${MODPY_DISTV}.dist-info/entry_points.txt lib/python${MODPY_VERSION}/site-packages/rns-${MODPY_DISTV}.dist-info/top_level.txt +share/doc/pkg-readmes/${PKGSTEM} Index: pkg/README =================================================================== RCS file: pkg/README diff -N pkg/README --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/README 17 Mar 2025 11:55:37 -0000 @@ -0,0 +1,25 @@ ++----------------------------------------------------------------------- +| Running ${PKGSTEM} on OpenBSD ++----------------------------------------------------------------------- + +Connect to RNodes with rnodeconf +================================ + +The rnodeconf utility can control, configure and provision RNodes +attached as USB serial devices. + +To access an RNode over USB, the user must be in the dialer group: + + usermod -G dialer <user> + +The corresponding virtual device will most often be /dev/cuaU0. See +cua(4) for explanations. + +For example, you could get info about your RNode by running: + + rnodeconf --info /dev/cuaU0 + +Please note that to create a new RNode with an nRF52-based device, like +the RAK4631 or LilyGO T-Echo, rnodeconf requires the python +adafruit-nrfutil package, which is not yet included in OpenBSD ports, +but can be installed from PyPI.