From bb9d61a97d790de1dedfe0f627e07a6f3a388a68 Mon Sep 17 00:00:00 2001 From: Automaton Date: Tue, 11 Dec 2012 14:46:41 +0100 Subject: [PATCH] Import security/gpgme version 1.3.2 --- security/gpgme/Makefile | 90 +++++++++++++++++++ security/gpgme/distinfo | 4 + .../gpgme/files/patch-src__engine-uiserver.c | 10 +++ security/gpgme/pkg-descr | 6 ++ security/gpgme/pkg-plist | 17 ++++ 5 files changed, 127 insertions(+) create mode 100644 security/gpgme/Makefile create mode 100644 security/gpgme/distinfo create mode 100644 security/gpgme/files/patch-src__engine-uiserver.c create mode 100644 security/gpgme/pkg-descr create mode 100644 security/gpgme/pkg-plist diff --git a/security/gpgme/Makefile b/security/gpgme/Makefile new file mode 100644 index 00000000000..fff2b27a4a0 --- /dev/null +++ b/security/gpgme/Makefile @@ -0,0 +1,90 @@ +# New ports collection makefile for: gpgme +# Date created: 15 June 2001 +# Whom: teramoto@comm.eng.osaka-u.ac.jp +# +# $FreeBSD: ports/security/gpgme/Makefile,v 1.73 2012/11/17 06:01:04 svnexp Exp $ +# + +PORTNAME= gpgme +PORTVERSION= 1.3.2 +CATEGORIES= security +MASTER_SITES= ${MASTER_SITE_GNUPG} +MASTER_SITE_SUBDIR= gpgme +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} + +MAINTAINER= jhale@FreeBSD.org +COMMENT= A library to make access to GnuPG easier + +LICENSE= LGPL21 + +LIB_DEPENDS= assuan.0:${PORTSDIR}/security/libassuan \ + gpg-error.0:${PORTSDIR}/security/libgpg-error + +OPTIONS_DEFINE= DOCS UISERVER +OPTIONS_SINGLE= GNUPG +OPTIONS_SINGLE_GNUPG= GNUPG1 GNUPG2 +OPTIONS_DEFAULT= GNUPG2 + +GNUPG1_DESC= Build gpgme library for GnuPG 1.x +GNUPG2_DESC= Build gpgme library for GnuPG 2.x +UISERVER_DESC= GnuPG UI server support + +USE_BZIP2= yes +USE_AUTOTOOLS= libtool +USE_GMAKE= yes +USE_LDCONFIG= yes +MAKE_JOBS_SAFE= yes + +CONFIGURE_ARGS= --includedir=${PREFIX}/include/gpgme \ + --with-g13=no + +INFO= gpgme +PORTDOCS= AUTHORS ChangeLog COPYING COPYING.LESSER INSTALL \ + NEWS README THANKS TODO + +.include + +.if ${PORT_OPTIONS:MGNUPG1} +BUILD_DEPENDS+= gpgv:${PORTSDIR}/security/gnupg1 +RUN_DEPENDS+= gpgv:${PORTSDIR}/security/gnupg1 +CONFIGURE_ARGS+=--with-gpg=${LOCALBASE}/bin/gpg \ + --with-gpgsm=no \ + --with-gpgconf=no +.endif + +.if ${PORT_OPTIONS:MGNUPG2} +BUILD_DEPENDS+= gpg2:${PORTSDIR}/security/gnupg +RUN_DEPENDS+= gpg2:${PORTSDIR}/security/gnupg +CONFIGURE_ARGS+=--with-gpg=${LOCALBASE}/bin/gpg2 \ + --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 ${PORT_OPTIONS:MUISERVER} +CONFIGURE_ARGS+=--enable-fd-passing +.endif + +verify: checksum + gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.sig + +post-patch: + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ + ${WRKSRC}/${CONFIGURE_SCRIPT} \ + ${WRKSRC}/src/Makefile.in \ + ${WRKSRC}/src/gpgme-config.in \ + ${WRKSRC}/tests/gpg/Makefile.in + @${REINPLACE_CMD} -e 's|^clfilesdir.*|clfilesdir=$$\(libdir\)/common-lisp/gpgme|g' \ + ${WRKSRC}/lang/cl/Makefile.in + +post-install: +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} +.endif + +.include diff --git a/security/gpgme/distinfo b/security/gpgme/distinfo new file mode 100644 index 00000000000..b4604b81a73 --- /dev/null +++ b/security/gpgme/distinfo @@ -0,0 +1,4 @@ +SHA256 (gpgme-1.3.2.tar.bz2) = cfd235663f1d1adc97abb38dd5e6d093bb7e155580f171f9ba0158feab69f875 +SIZE (gpgme-1.3.2.tar.bz2) = 867738 +SHA256 (gpgme-1.3.2.tar.bz2.sig) = 719b5899d07671b0ac17e7d88131ca11fd9a8ce504720ce4c789b67ba15bf2b2 +SIZE (gpgme-1.3.2.tar.bz2.sig) = 287 diff --git a/security/gpgme/files/patch-src__engine-uiserver.c b/security/gpgme/files/patch-src__engine-uiserver.c new file mode 100644 index 00000000000..69b18c1a2bf --- /dev/null +++ b/security/gpgme/files/patch-src__engine-uiserver.c @@ -0,0 +1,10 @@ +--- ./src/engine-uiserver.c.orig 2012-05-03 20:50:11.000000000 -0400 ++++ ./src/engine-uiserver.c 2012-05-03 20:50:27.000000000 -0400 +@@ -49,7 +49,6 @@ + #include "data.h" + + #include "assuan.h" +-#include "status-table.h" + #include "debug.h" + + #include "engine-backend.h" diff --git a/security/gpgme/pkg-descr b/security/gpgme/pkg-descr new file mode 100644 index 00000000000..df4189616ae --- /dev/null +++ b/security/gpgme/pkg-descr @@ -0,0 +1,6 @@ +GnuPG Made Easy (GPGME) is a C library designed to make access to GnuPG +easier for applications. It provides a High-Level Crypto API for encryption, +decryption, signing, signature verification and key management. Currently it +uses GnuPG as its backend. + +WWW: http://www.gnupg.org/related_software/gpgme/ diff --git a/security/gpgme/pkg-plist b/security/gpgme/pkg-plist new file mode 100644 index 00000000000..036252cddde --- /dev/null +++ b/security/gpgme/pkg-plist @@ -0,0 +1,17 @@ +bin/gpgme-config +include/gpgme/gpgme.h +lib/common-lisp/gpgme/gpgme-package.lisp +lib/common-lisp/gpgme/gpgme.asd +lib/common-lisp/gpgme/gpgme.lisp +lib/libgpgme-pthread.a +lib/libgpgme-pthread.la +lib/libgpgme-pthread.so +lib/libgpgme-pthread.so.19 +lib/libgpgme.a +lib/libgpgme.la +lib/libgpgme.so +lib/libgpgme.so.19 +share/aclocal/gpgme.m4 +@dirrm lib/common-lisp/gpgme +@dirrmtry lib/common-lisp +@dirrm include/gpgme -- 2.41.0