Created attachment 246004 [details] 0001-net-miniupnpd-use-libpfctl.patch Here's a patch to make miniupnpd use libpfctl. That avoids the use of DIOCGETSTATUS and DIOCGETRULE, which have been removed in main (15). In other words: this patch is required to use miniupnpd on modern FreeBSD.
Can you please submit it upstream Kristof?
https://github.com/miniupnp/miniupnp/pull/671 In the mean time we really should include this patch in the freebsd ports tree, because miniupnpd is broken on main and has been since August.
Thanks, only "nitpick" I have is that we use you USES= localbase:ldflags instead of adding things to C/LDFLAGS
Created attachment 246028 [details] 0001-net-miniupnpd-use-libpfctl.patch
Ping? Is anything blocking this patch?
We'll have to wait for 14 days to give the maintainer a chance to respond. You can commit with "maintainer timeout" next Monday if there's no maintainer response until then (I approve for ports).
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=81e8bb983432251d47c3447bf6c1572fa0a84501 commit 81e8bb983432251d47c3447bf6c1572fa0a84501 Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2023-10-30 16:23:10 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2023-11-13 09:39:43 +0000 net/miniupnpd: use libpfctl Start using libpfctl to replace the removed ioctl calls (DIOCGETSTATUS, DIOCGETRULE). PR: 274819 Approved by: maintainer timeout Sponsored by: Rubicon Communications, LLC ("Netgate") net/miniupnpd/Makefile | 8 +- net/miniupnpd/files/patch-pf_obsdrdr.c (new) | 368 +++++++++++++++++++++++++ net/miniupnpd/files/patch-pf_pfpinhole.c (new) | 160 +++++++++++ 3 files changed, 533 insertions(+), 3 deletions(-)