From 5d33e9c4bdca0b99fcdfcf9b88d88dac99b4fc5e Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Mon, 21 Apr 2025 11:33:55 +0200 Subject: [PATCH] net/miniupnpd: create a debug subpackage --- net/miniupnpd/Makefile | 6 ++++++ net/miniupnpd/files/patch-Makefile.bsd | 19 +++++++++++++++++-- net/miniupnpd/pkg-descr.debug | 1 + 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 net/miniupnpd/pkg-descr.debug diff --git a/net/miniupnpd/Makefile b/net/miniupnpd/Makefile index fafefa0ad735..121a80534bd8 100644 --- a/net/miniupnpd/Makefile +++ b/net/miniupnpd/Makefile @@ -1,16 +1,21 @@ PORTNAME= miniupnpd DISTVERSION= 2.3.7 PORTEPOCH= 1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://miniupnp.free.fr/files/ \ https://github.com/miniupnp/miniupnp/releases/download/${PORTNAME}_${DISTVERSION:S|.|_|g}/ MAINTAINER= squat@squat.no COMMENT= Lightweight UPnP IGD & PCP/NAT-PMP daemon which uses pf +COMMENT.debug= Debug files for miniupnpd WWW= http://miniupnp.free.fr/ LICENSE= BSD3CLAUSE +SUBPACKAGES= debug +SELF_DEPENDS.debug= main + LIB_DEPENDS= libpfctl.so:net/libpfctl USES= cpe localbase:ldflags ssl @@ -30,6 +35,7 @@ LDFLAGS+= -L${OPENSSLLIB} -lpfctl PLIST_FILES= etc/miniupnpd.conf.sample \ share/man/man8/miniupnpd.8.gz \ sbin/miniupnpd +PLIST_FILES.debug= sbin/miniupnpd.debug OPTIONS_DEFINE= CHECK_PORTINUSE IPV6 LEASEFILE UPNP_IGDV2 \ UPNP_STRICT diff --git a/net/miniupnpd/files/patch-Makefile.bsd b/net/miniupnpd/files/patch-Makefile.bsd index 996743a4601d..a3ef6a54aa15 100644 --- a/net/miniupnpd/files/patch-Makefile.bsd +++ b/net/miniupnpd/files/patch-Makefile.bsd @@ -1,8 +1,23 @@ ---- Makefile.bsd.orig 2023-02-17 03:09:33 UTC +--- Makefile.bsd.orig 2024-06-22 22:28:04 UTC +++ Makefile.bsd -@@ -150,8 +150,8 @@ install: miniupnpd genuuid +@@ -14,7 +14,7 @@ + # $ CONFIG_OPTIONS="--ipv6 --igd2" make + # + +-CFLAGS ?= -pipe -Os ++CFLAGS ?= -pipe -Os -g + #CFLAGS = -pipe -O -g -DDEBUG + #CFLAGS += -ansi + CFLAGS += -Wall +@@ -144,12 +144,14 @@ install: miniupnpd genuuid + $(RM) validateupnppermissions validategetifaddr validatessdppktgen + + install: miniupnpd genuuid ++ cp miniupnpd miniupnpd.debug + $(STRIP) miniupnpd $(INSTALL) -d $(DESTDIR)$(INSTALLBINDIR) $(INSTALL) -m 755 miniupnpd $(DESTDIR)$(INSTALLBINDIR) ++ $(INSTALL) -m 755 miniupnpd.debug $(DESTDIR)$(INSTALLBINDIR) $(INSTALL) -d $(DESTDIR)$(INSTALLETCDIR) - $(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR) - $(INSTALL) -d $(DESTDIR)$(INSTALLMANDIR) diff --git a/net/miniupnpd/pkg-descr.debug b/net/miniupnpd/pkg-descr.debug new file mode 100644 index 000000000000..cffe6b6020af --- /dev/null +++ b/net/miniupnpd/pkg-descr.debug @@ -0,0 +1 @@ +Debug files for miniupnpd