mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 11:26:29 -04:00
Changelog: - FreeBSD: use libpfctl (FreeBSD 15+ or --libpfctl) - default NOTIFY interval of 900s minus a random value - ipv6: prefer globally routable addresses http://miniupnp.free.fr/files/changelog.php?file=miniupnpd-2.3.7.tar.gz Port improvements: - use release tarball from upstream instead of USE_GITHUB; - replace spaces with tabs; - sort options in USES and in PLIST_FILES; - use PORTNAME variable in USE_RC_SUBR; - pet portclippy. PR: 281099 Approved by: squat@squat.no (maintainer, timeout > 14 days)
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
PORTNAME= miniupnpd
|
|
DISTVERSION= 2.3.7
|
|
PORTEPOCH= 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
|
|
WWW= http://miniupnp.free.fr/
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LIB_DEPENDS= libpfctl.so:net/libpfctl
|
|
|
|
USES= cpe localbase:ldflags ssl
|
|
CPE_VENDOR= miniupnp_project
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
HAS_CONFIGURE= yes
|
|
# unconditionally use pf, ipfw does not work on FreeBSD
|
|
CONFIGURE_ARGS= --firewall=pf --libpfctl
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
CFLAGS+= -I${OPENSSLINC}
|
|
LDFLAGS+= -L${OPENSSLLIB} -lpfctl
|
|
|
|
PLIST_FILES= etc/miniupnpd.conf.sample \
|
|
share/man/man8/miniupnpd.8.gz \
|
|
sbin/miniupnpd
|
|
|
|
OPTIONS_DEFINE= CHECK_PORTINUSE IPV6 LEASEFILE UPNP_IGDV2 \
|
|
UPNP_STRICT
|
|
CHECK_PORTINUSE_DESC= Check if ports are in use
|
|
LEASEFILE_DESC= Enable lease file
|
|
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
|
|
UPNP_IGDV2_CONFIGURE_ON= --igd2
|
|
UPNP_STRICT_CONFIGURE_ON= --strict
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|\(-lssl -lcrypto\)|$$(LDFLAGS) \1|g' \
|
|
-e 's|^INSTALLMANDIR.*|INSTALLMANDIR = ${PREFIX}/share/man|' \
|
|
${WRKSRC}/Makefile.bsd
|
|
|
|
.include <bsd.port.mk>
|