Date: Mon, 28 Apr 2003 22:17:59 +0200 (CEST) From: Michael Nottebrock <lofi@lofi.dyndns.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: markun@onohara.to Subject: ports/51574: security/gpgme: Conditionally add support for gpgsm Message-ID: <200304282017.h3SKHxNX071242@lofi.dyndns.org> Resent-Message-ID: <200304291100.h3TB0YFl040556@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 51574 >Category: ports >Synopsis: security/gpgme: Conditionally add support for gpgsm >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: Tue Apr 29 04:00:34 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Michael Nottebrock >Release: FreeBSD 5.0-RELEASE-p7 i386 >Organization: >Environment: System: FreeBSD lofi.dyndns.org 5.0-RELEASE-p7 FreeBSD 5.0-RELEASE-p7 #0: Sun Mar 30 03:21:55 CEST 2003 lofi@lofi.dyndns.org:/usr/obj/usr/src/sys/LOFI i386 >Description: This patch adds conditional support for gpgsm (from newpg) to gpgme (by switch and autodetection). gpgsm-support in gpgme is used by cryptplug/kmail to provide support for S/MIME verification (creation of S/MIME messages doesn't work yet for various reasons). This is a very unobtrusive patch, it's only enabled by explicitly setting the switch or if the gpgsm binary exists and it doesn't add any files to the installation. Port-maintainer CC'd. >How-To-Repeat: >Fix: diff -urN gpgme.orig/Makefile gpgme/Makefile --- gpgme.orig/Makefile Mon Apr 28 21:53:24 2003 +++ gpgme/Makefile Mon Apr 28 21:31:47 2003 @@ -22,7 +22,19 @@ USE_GMAKE= yes INSTALLS_SHLIB= yes +.include <bsd.port.pre.mk> + +.if exists(${LOCALBASE}/bin/gpgsm) +WITH_GPGSM= yes +.endif + +.if defined(WITH_GPGSM) +BUILD_DEPENDS+= gpgsm:${PORTSDIR}/security/newpg +.else +CONFIGURE_ARGS+= --without-gpgsm +.endif + pre-configure: @${RM} -r ${WRKSRC}/doc/gpgme.info* -.include <bsd.port.mk> +.include <bsd.port.post.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304282017.h3SKHxNX071242>