net/miniupnpd: create a debug subpackage

This commit is contained in:
Kristof Provost
2025-05-08 09:45:13 +02:00
parent 7eced9c853
commit 5d33e9c4bd
3 changed files with 24 additions and 2 deletions
+6
View File
@@ -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
+17 -2
View File
@@ -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)
+1
View File
@@ -0,0 +1 @@
Debug files for miniupnpd