From 768b67f0b979b3056510b9203b14d2edae18972b Mon Sep 17 00:00:00 2001 From: lioux Date: Thu, 22 May 2003 01:29:39 +0000 Subject: o Fix gpgsm support so that conditional WITH_GPGSM really works o Bump PORTREVISION PR: 52459 Submitted by: Michael Nottebrock Approved by: maintainer --- security/gpgme03/Makefile | 2 +- .../gpgme03/files/patch-assuan::assuan-handler.c | 27 ++++++++++++++++++++++ .../files/patch-assuan::assuan-socket-connect.c | 10 ++++++++ .../files/patch-assuan::assuan-socket-server.c | 10 ++++++++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 security/gpgme03/files/patch-assuan::assuan-handler.c create mode 100644 security/gpgme03/files/patch-assuan::assuan-socket-connect.c create mode 100644 security/gpgme03/files/patch-assuan::assuan-socket-server.c (limited to 'security/gpgme03') diff --git a/security/gpgme03/Makefile b/security/gpgme03/Makefile index 1e73b84d0a9..2150478d916 100644 --- a/security/gpgme03/Makefile +++ b/security/gpgme03/Makefile @@ -7,6 +7,7 @@ PORTNAME= gpgme PORTVERSION= 0.3.15 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_GNUPG} MASTER_SITE_SUBDIR= gpgme @@ -18,7 +19,6 @@ BUILD_DEPENDS= gpg:${PORTSDIR}/security/gnupg LIB_DEPENDS= pth.20:${PORTSDIR}/devel/pth USE_LIBTOOL= yes -CONFIGURE_ARGS= --without-gpgsm CONFIGURE_ENV= MAKEINFO="makeinfo --no-split" USE_GMAKE= yes INSTALLS_SHLIB= yes diff --git a/security/gpgme03/files/patch-assuan::assuan-handler.c b/security/gpgme03/files/patch-assuan::assuan-handler.c new file mode 100644 index 00000000000..3c73877a6b1 --- /dev/null +++ b/security/gpgme03/files/patch-assuan::assuan-handler.c @@ -0,0 +1,27 @@ +--- assuan/assuan-handler.c.orig Thu Jan 30 07:58:09 2003 ++++ assuan/assuan-handler.c Thu Jan 30 07:58:27 2003 +@@ -29,6 +29,24 @@ + #define digitp(a) ((a) >= '0' && (a) <= '9') + + ++#if !HAVE_FOPENCOOKIE ++/* Provide structure for our dummy replacement function. Usually this ++ is defined in ../common/util.h but assuan should be self ++ contained. */ ++/* Fixme: Remove fopencoookie :-(( */ ++typedef struct ++{ ++ ssize_t (*read)(void*,char*,size_t); ++ ssize_t (*write)(void*,const char*,size_t); ++ int (*seek)(void*,off_t*,int); ++ int (*close)(void*); ++} _IO_cookie_io_functions_t; ++typedef _IO_cookie_io_functions_t cookie_io_functions_t; ++FILE *fopencookie (void *cookie, const char *opentype, ++ cookie_io_functions_t funclist); ++#endif /*!HAVE_FOPENCOOKIE*/ ++ ++ + static int + dummy_handler (ASSUAN_CONTEXT ctx, char *line) + { diff --git a/security/gpgme03/files/patch-assuan::assuan-socket-connect.c b/security/gpgme03/files/patch-assuan::assuan-socket-connect.c new file mode 100644 index 00000000000..74acc38ea62 --- /dev/null +++ b/security/gpgme03/files/patch-assuan::assuan-socket-connect.c @@ -0,0 +1,10 @@ +--- assuan/assuan-socket-connect.c.orig Wed Jan 29 15:30:12 2003 ++++ assuan/assuan-socket-connect.c Wed Jan 29 15:30:28 2003 +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/security/gpgme03/files/patch-assuan::assuan-socket-server.c b/security/gpgme03/files/patch-assuan::assuan-socket-server.c new file mode 100644 index 00000000000..af8a39751c3 --- /dev/null +++ b/security/gpgme03/files/patch-assuan::assuan-socket-server.c @@ -0,0 +1,10 @@ +--- assuan/assuan-socket-server.c.orig Wed Jan 29 15:27:13 2003 ++++ assuan/assuan-socket-server.c Wed Jan 29 15:27:38 2003 +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + #include + #include + #include -- cgit