Skip to content

Commit

Permalink
net/miniupnpd: remove ipfw port option
Browse files Browse the repository at this point in the history
It is well-known that net/miniupnpd does not work with IPFW. However,
the port options still allow building with IPFW support. In order to
prevent unnecessary foot-shooting, let us eliminate this option outright
and unconditionally use pf instead.

PR:		271732
Approved by:	squat@squat.no (maintainer timeout, two weeks)
Sponsored by:	Rubicon Communications, LLC ("Netgate")
  • Loading branch information
rcmcdonald91 authored and clausecker committed Jun 26, 2023
1 parent cb40b0a commit dcb4002
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions net/miniupnpd/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
PORTNAME= miniupnpd
PORTVERSION= 2.3.3
DISTVERSION= 2.3.3
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net

MAINTAINER= squat@squat.no
COMMENT= UPnP IGD implementation which uses pf/ipf
COMMENT= UPnP IGD implementation which uses pf
WWW= http://miniupnp.free.fr/

LICENSE= BSD3CLAUSE
Expand All @@ -31,23 +32,19 @@ PLIST_FILES= etc/miniupnpd.conf.sample \
man/man8/miniupnpd.8.gz \
sbin/miniupnpd

# unconditionally use pf, ipfw does not work on FreeBSD
CONFIGURE_ARGS= --firewall=pf

OPTIONS_DEFINE= CHECK_PORTINUSE IPV6 LEASEFILE UPNP_IGDV2 \
UPNP_STRICT
OPTIONS_DEFAULT= AUTODETECT_FW
OPTIONS_SINGLE= FIREWALL
OPTIONS_SINGLE_FIREWALL= AUTODETECT_FW IPFW PF
AUTODETECT_FW_DESC= Try to autodetect firewall type
CHECK_PORTINUSE_DESC= Check if ports are in use
IPFW_DESC= Use IPFW as firewall type
LEASEFILE_DESC= Enable lease file
PF_DESC= Use PF as firewall type
UPNP_IGDV2_DESC= Build an IGDv2 instead of an IGDv1
UPNP_STRICT_DESC= More strict UPnP specification compliance

CHECK_PORTINUSE_CONFIGURE_ON= --portinuse
IPV6_CONFIGURE_ON= --ipv6
LEASEFILE_CONFIGURE_ON= --leasefile
PF_CONFIGURE_ON= --firewall=pf
UPNP_IGDV2_CONFIGURE_ON= --igd2
UPNP_STRICT_CONFIGURE_ON= --strict

Expand Down

0 comments on commit dcb4002

Please sign in to comment.