ports/160245: [PATCH] net/libvncserver optionsify gnutls and gcrypt support

Mikhail T. m.tsatsenko at gmail.com
Sun Aug 28 00:00:33 UTC 2011

>Number:         160245
>Category:       ports
>Synopsis:       [PATCH] net/libvncserver optionsify gnutls and gcrypt support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 28 00:00:29 UTC 2011
>Originator:     Mikhail T.
>Release:        8.2
FreeBSD red8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #0 r223806: Fri Aug 26 03:29:57 MSD 2011     root at red:/usr/obj/usr/src/sys/XGATE  amd64
- OPTIONSify gnutls and gcrypt support to prevent configure detect them itself
- Make portlint happy
Install gnutls/gcrypt first, then libvncserver (it will be linked against gnutls/gcrypt without any actual dependency). So deinstalling gnutls/gcrypt will result in unusable libvncserver (tested by VBoxHeadless -n).

Patch attached with submission follows:

Index: Makefile
RCS file: /home/ncvs/ports/net/libvncserver/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile	11 Aug 2011 19:19:47 -0000	1.14
+++ Makefile	27 Aug 2011 23:39:32 -0000
@@ -22,10 +22,29 @@
 USE_GNOME=	gnomehack
 CONFIGURE_ARGS=	--without-x
+OPTIONS=	GNUTLS "Adds GnuTLS support" Off \
+		GCRYPT "Adds Libgcrypt support" Off
+.include <bsd.port.options.mk>
+.if defined(WITH_GNUTLS)
+LIB_DEPENDS+=       gnutls.0:${PORTSDIR}/security/gnutls
+CONFIGURE_ARGS+=	--with-gnutls
+CONFIGURE_ARGS+=	--without-gnutls
+.if defined(WITH_GCRYPT)
+LIB_DEPENDS+=       gcrypt.0:${PORTSDIR}/security/libgcrypt
+CONFIGURE_ARGS+=	--with-gcrypt
+CONFIGURE_ARGS+=	--without-gcrypt
 	@${REINPLACE_CMD} -e \
 		's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure


More information about the freebsd-ports-bugs mailing list