Bug 51574 - security/gpgme: Conditionally add support for gpgsm
Summary: security/gpgme: Conditionally add support for gpgsm
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-29 12:00 UTC by Michael Nottebrock
Modified: 2003-05-19 00:28 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (523 bytes, patch)
2003-04-29 12:00 UTC, Michael Nottebrock
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nottebrock 2003-04-29 12:00:34 UTC
	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.
Comment 1 markun 2003-05-18 15:25:22 UTC
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
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2003-05-19 00:28:28 UTC
State Changed
From-To: open->closed

Committed, thanks