ports/103427: Make security/gnupg properly depend on ftp/curl

Peter Pentchev roam at FreeBSD.org
Wed Sep 20 14:40:53 UTC 2006


>Number:         103427
>Category:       ports
>Synopsis:       Make security/gnupg properly depend on ftp/curl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 20 14:40:31 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Peter Pentchev
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
none
>Environment:
System: FreeBSD freefall.freebsd.org 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Dec 10 03:18:20 UTC 2005 kensmith at freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL i386

>Description:

Recent versions of GnuPG try to look for and use cURL, if available, for
sending and fetching PGP keys from the public keyservers.  Thus, currently
security/gnupg has a hidden dependency on ftp/curl, if it was installed at
the time GnuPG is compiled.

>How-To-Repeat:

Install ftp/curl.  Build security/gnupg.  Run ldd(1) on the gnupg executable.

>Fix:

Index: ports/security/gnupg/Makefile
===================================================================
RCS file: /home/ncvs/ports/security/gnupg/Makefile,v
retrieving revision 1.88
diff -u -r1.88 Makefile
--- ports/security/gnupg/Makefile	7 Sep 2006 02:19:12 -0000	1.88
+++ ports/security/gnupg/Makefile	15 Sep 2006 11:18:28 -0000
@@ -34,7 +34,8 @@
 		LIBICONV "use libiconv" off \
 		LIBUSB "use libusb" off \
 		SUID_GPG "install GPG with suid" off \
-		NLS "Native Language Support" on
+		NLS "Native Language Support" on \
+		CURL "use libcurl for the keyserver interface" on
 
 .include <bsd.port.pre.mk>
 
@@ -69,6 +70,15 @@
 PLIST_SUB+=	NLS="@comment "
 .endif
 
+.if !defined(WITHOUT_CURL)
+LIB_DEPENDS+=	curl:${PORTSDIR}/ftp/curl
+CONFIGURE_ARGS+=--with-libcurl=${LOCALBASE}
+# Work around a GnuPG configure buglet
+CONFIGURE_ENV+=	_libcurl_config=${LOCALBASE}/bin/curl-config
+.else
+CONFIGURE_ARGS+=--without-libcurl
+.endif
+
 post-install:
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list