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.
Hi Sorry for my late answer upgrade to 0.3.15 and take in your patch. Thank you for advance. Index: Makefile =================================================================== RCS file: /export/repository/FreeBSD/ncvs/ports/security/gpgme/Makefile,v retrieving revision 1.14 diff -u -r1.14 Makefile --- Makefile 21 Feb 2003 13:26:44 -0000 1.14 +++ Makefile 18 May 2003 14:04:26 -0000 @@ -6,7 +6,7 @@ # PORTNAME= gpgme -PORTVERSION= 0.3.14 +PORTVERSION= 0.3.15 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_GNUPG} MASTER_SITE_SUBDIR= gpgme @@ -23,7 +23,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> Index: distinfo =================================================================== RCS file: /export/repository/FreeBSD/ncvs/ports/security/gpgme/distinfo,v retrieving revision 1.7 diff -u -r1.7 distinfo --- distinfo 30 Jan 2003 17:27:51 -0000 1.7 +++ distinfo 18 May 2003 14:05:35 -0000 @@ -1 +1 @@ -MD5 (gpgme-0.3.14.tar.gz) = b5351e212aa10336e5d88ebf4babccf7 +MD5 (gpgme-0.3.15.tar.gz) = 1acbe4b49e60d4b882a43328bc840d42 -- TERAMOTO Masahiro markun@onohara.to
State Changed From-To: open->closed Committed, thanks