aboutsummaryrefslogtreecommitdiff
path: root/net/miniupnpd
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2019-12-16 08:13:39 +0000
committerKurt Jaeger <pi@FreeBSD.org>2019-12-16 08:13:39 +0000
commite33021e153a08594cb658ce223804242a4b41938 (patch)
tree3cb7003d0122b91bfb629c6e27acae2d63031005 /net/miniupnpd
parent9924c0a0c7f34eb7708ef05deae229fc21b8ecdb (diff)
downloadports-e33021e153a08594cb658ce223804242a4b41938.tar.gz
ports-e33021e153a08594cb658ce223804242a4b41938.zip
Notes
Diffstat (limited to 'net/miniupnpd')
-rw-r--r--net/miniupnpd/Makefile6
-rw-r--r--net/miniupnpd/files/extra-patch-portinuse.c (renamed from net/miniupnpd/files/patch-portinuse.c)0
2 files changed, 6 insertions, 0 deletions
diff --git a/net/miniupnpd/Makefile b/net/miniupnpd/Makefile
index 3d0d876a3889..dc80c758088d 100644
--- a/net/miniupnpd/Makefile
+++ b/net/miniupnpd/Makefile
@@ -37,6 +37,12 @@ UPNP_IGDV2_EXTRA_PATCHES= ${PATCHDIR}/enable_igdv2.patch
UPNP_STRICT_EXTRA_PATCHES= ${PATCHDIR}/enable_upnp_strict.patch
LEASEFILE_EXTRA_PATCHES= ${PATCHDIR}/enable_leasefile.patch
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-portinuse.c
+.endif
+
post-patch:
${REINPLACE_CMD} -e 's|\(-lssl -lcrypto\)|$$(LDFLAGS) \1|g' \
${WRKSRC}/Makefile
diff --git a/net/miniupnpd/files/patch-portinuse.c b/net/miniupnpd/files/extra-patch-portinuse.c
index 8ec4e68022d0..8ec4e68022d0 100644
--- a/net/miniupnpd/files/patch-portinuse.c
+++ b/net/miniupnpd/files/extra-patch-portinuse.c