ports/185950: www/libmicrohttpd port not enabling htttps
Claus Endres
claus at endresconsulting.com
Tue Jan 21 02:10:01 UTC 2014
>Number: 185950
>Category: ports
>Synopsis: www/libmicrohttpd port not enabling htttps
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jan 21 02:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Claus Endres
>Release: 9.2-STABLE
>Organization:
Endres Consulting Pty Ltd
>Environment:
FreeBSD monitor1.mov.vic.gov.au 9.2-STABLE FreeBSD 9.2-STABLE #0 r259211: Wed Dec 11 20:18:00 EST 2013 claus at monitor1.mov.vic.gov.au:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
The makefile of the port of www/libmicrohttpd does not handle the GNUTLS option
correctly, resulting in HTTPS being disabled.
>How-To-Repeat:
build www/libmicrohttpd with GNUTLS option, and check build results.
Among other things, src/examples/https_fileserver_example will not be built.
>Fix:
Patch attached with submission follows:
--- www/libmicrohttpd/Makefile.orig 2014-01-17 15:54:39.000000000 +1100
+++ www/libmicrohttpd/Makefile 2014-01-17 20:15:03.000000000 +1100
@@ -17,9 +17,13 @@
MAKE_ARGS+= pkgconfigdir=${PREFIX}/libdata/pkgconfig
USE_LDCONFIG= yes
-GNUTLS_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt \
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGNUTLS}
+LIB_DEPENDS+= libgcrypt.so:${PORTSDIR}/security/libgcrypt \
libgnutls.so:${PORTSDIR}/security/gnutls
-GNUTLS_CONFIGURE_ARGS= --with-gnutls=${LOCALBASE} --enable-https
+CONFIGURE_ARGS+= --with-libgcrypt-prefix=${LOCALBASE} --with-gnutls=${LOCALBASE} --enable-https=yes
+.endif
INFO= libmicrohttpd libmicrohttpd-tutorial
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list