ports/51574: security/gpgme: Conditionally add support for gpgsm

Michael Nottebrock lofi at lofi.dyndns.org
Tue Apr 29 11:00:42 UTC 2003

>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
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 29 04:00:34 PDT 2003
>Originator:     Michael Nottebrock
>Release:        FreeBSD 5.0-RELEASE-p7 i386
System: FreeBSD lofi.dyndns.org 5.0-RELEASE-p7 FreeBSD 5.0-RELEASE-p7 #0: Sun Mar 30 03:21:55 CEST 2003 lofi at lofi.dyndns.org:/usr/obj/usr/src/sys/LOFI i386

	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.
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 @@
+.include <bsd.port.pre.mk>
+.if exists(${LOCALBASE}/bin/gpgsm)
+.if defined(WITH_GPGSM)
+BUILD_DEPENDS+=	gpgsm:${PORTSDIR}/security/newpg
+CONFIGURE_ARGS+=	--without-gpgsm
 	@${RM} -r ${WRKSRC}/doc/gpgme.info*
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the freebsd-ports-bugs mailing list