Skip site navigation (1)Skip section navigation (2)

ports/140058: [MAINTAINER] security/gpgme: Specifically disable gpgsm if it is not installed

From:Jason E. Hale <bsdkaffee@gmail.com>
Date:Wed, 28 Oct 2009 12:10:11 -0700 (PDT)
Subject:[MAINTAINER] security/gpgme: Specifically disable gpgsm if it is not installed
Send-pr version:3.113

Number:140058
Category:ports
Synopsis:[MAINTAINER] security/gpgme: Specifically disable gpgsm if it is not installed
Severity:non-critical
Priority:low
Responsible:freebsd-ports-bugs@FreeBSD.org
State:open
Class:maintainer-update
Arrival-Date:Wed Oct 28 19:20:01 UTC 2009
Closed-Date:
Last-Modified:never
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:
Download 2009-10-14-gpgme.diff
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)


Release-Note:
 
Audit-Trail:
Unformatted:
 
Submit Followup | Raw PR | Find another PR