Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Oct 2009 12:10:11 -0700 (PDT)
From:      "Jason E. Hale" <bsdkaffee@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/140058: [MAINTAINER] security/gpgme: Specifically disable gpgsm if it is not installed
Message-ID:  <4ae89713.0b9e100a.3c60.ffff895a@mx.google.com>
Resent-Message-ID: <200910281920.n9SJK1aN035642@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         140058
>Category:       ports
>Synopsis:       [MAINTAINER] security/gpgme: Specifically disable gpgsm if it is not installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 28 19:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Jason E. Hale
>Release:        FreeBSD 7.2-RELEASE i386
>Organization:
none 
>Environment:
System: FreeBSD mocha.verizon.net 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Mon May 4 04:03:46 EDT 2009 root@mocha.verizon.net:/usr/obj/usr/src/sys/MOCHA7 i386
	
>Description:
- gpgsm is a non-default option in security/gnupg, so disable it in the build
if it is not installed instead of specifying the path. This helps with
debugging problems in certain programs.
- bump PORTREVISION since this will affect the installed files
	
>How-To-Repeat:
Use attached diff.
	
>Fix:
	
--- 2009-10-14-gpgme.diff begins here ---
diff -ruN gpgme.orig/Makefile gpgme/Makefile
--- gpgme.orig/Makefile	2009-10-14 19:06:57.000000000 -0400
+++ gpgme/Makefile	2009-10-14 19:30:36.000000000 -0400
@@ -7,6 +7,7 @@
 
 PORTNAME=	gpgme
 PORTVERSION=	1.2.0
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	${MASTER_SITE_GNUPG}
 MASTER_SITE_SUBDIR=	gpgme
@@ -45,8 +46,12 @@
 BUILD_DEPENDS+=	gpg2:${PORTSDIR}/security/gnupg
 RUN_DEPENDS+=	gpg2:${PORTSDIR}/security/gnupg
 CONFIGURE_ARGS+=--with-gpg=${LOCALBASE}/bin/gpg2 \
-		--with-gpgsm=${LOCALBASE}/bin/gpgsm \
 		--with-gpgconf=${LOCALBASE}/bin/gpgconf
+.if exists(${LOCALBASE}/bin/gpgsm)
+CONFIGURE_ARGS+=--with-gpgsm=${LOCALBASE}/bin/gpgsm
+.else
+CONFIGURE_ARGS+=--with-gpgsm=no
+.endif
 .endif
 
 .if defined(WITH_PTH)
--- 2009-10-14-gpgme.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ae89713.0b9e100a.3c60.ffff895a>