summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2015-06-27 19:30:34 +0000
committerpgollucci <pgollucci@FreeBSD.org>2015-06-27 19:30:34 +0000
commitb40d13289944f2e6790e7297ce25caab5719c71d (patch)
tree7a0363be635bf245958d8b98887feee2c73a908c
parent4489aaf7ce1579569c7a765c85ff0fa476393a23 (diff)
downloadFreeBSD-ports-b40d13289944f2e6790e7297ce25caab5719c71d.zip
FreeBSD-ports-b40d13289944f2e6790e7297ce25caab5719c71d.tar.gz
net/miniupnpd: properly link against ports OpenSSL/LibreSSL
PR: 199390 Submitted by: franco@opnsense.org and brnrd@ Approved by: maintainer timeout (squat@squat.no ; 76 days)
-rw-r--r--net/miniupnpd/Makefile3
-rw-r--r--net/miniupnpd/files/patch-Makefile11
2 files changed, 14 insertions, 0 deletions
diff --git a/net/miniupnpd/Makefile b/net/miniupnpd/Makefile
index e306b7c..adba2f6 100644
--- a/net/miniupnpd/Makefile
+++ b/net/miniupnpd/Makefile
@@ -24,6 +24,9 @@ MAKE_JOBS_UNSAFE=yes
USE_OPENSSL= yes
USE_RC_SUBR= miniupnpd
+CFLAGS+= -I${OPENSSLINC}
+LDFLAGS+= -L${OPENSSLLIB}
+
OPTIONS_DEFINE= PF_ENABLE_FILTER_RULES CHECK_PORTINUSE IPV6 UPNP_IGDV2 UPNP_STRICT LEASEFILE
PF_ENABLE_FILTER_RULES_DESC= Enable pf generation of filter rules
CHECK_PORTINUSE_DESC= Check if ports are in use
diff --git a/net/miniupnpd/files/patch-Makefile b/net/miniupnpd/files/patch-Makefile
new file mode 100644
index 0000000..5c48e47
--- /dev/null
+++ b/net/miniupnpd/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2014-06-30 12:03:05 UTC
++++ Makefile
+@@ -204,7 +204,7 @@ depend: config.h
+ testgetroute.c testportinuse.c testasyncsendto.c
+
+ miniupnpd: config.h $(ALLOBJS)
+- $(CC) $(CFLAGS) -o $@ $(ALLOBJS) $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ALLOBJS) $(LIBS)
+
+ # BSDmake :
+ # $(CC) $(CFLAGS) -o $@ $> $(LIBS)
OpenPOWER on IntegriCloud