update to 1.1.8 changes: -bugfixes -API extensions -documentation improvement -The encoding of gpgme_data_t objects can affect the output encoding of export, sign and encrypt operations now -Using GPGME_KEYLIST_MODE_LOCAL combined with GPGME_KEYLIST_MODE_EXTERN is now supporteddiff -r1.56 -r1.57 pkgsrc/security/gpgme/Makefile
(drochner)
@@ -1,75 +1,74 @@ | @@ -1,75 +1,74 @@ | |||
1 | # $NetBSD: Makefile,v 1.56 2009/02/17 13:02:20 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.57 2009/11/15 18:41:55 drochner Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= gpgme-1.1.4 | 4 | DISTNAME= gpgme-1.1.8 | |
5 | PKGREVISION= 2 | |||
6 | CATEGORIES= security | 5 | CATEGORIES= security | |
7 | MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gpgme/ | 6 | MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gpgme/ | |
8 | 7 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://www.gnupg.org/related_software/gpgme/ | 9 | HOMEPAGE= http://www.gnupg.org/related_software/gpgme/ | |
11 | COMMENT= GnuPG Made Easy | 10 | COMMENT= GnuPG Made Easy | |
12 | 11 | |||
13 | PKG_DESTDIR_SUPPORT= user-destdir | 12 | PKG_DESTDIR_SUPPORT= user-destdir | |
14 | 13 | |||
15 | PKG_OPTIONS_VAR= PKG_OPTIONS.gpgme | 14 | PKG_OPTIONS_VAR= PKG_OPTIONS.gpgme | |
16 | PKG_SUPPORTED_OPTIONS= gpgsm | 15 | PKG_SUPPORTED_OPTIONS= gpgsm | |
17 | .include "../../mk/bsd.options.mk" | 16 | .include "../../mk/bsd.options.mk" | |
18 | .if empty(PKG_OPTIONS:Mgpgsm) | 17 | .if empty(PKG_OPTIONS:Mgpgsm) | |
19 | DEPENDS+= gnupg>=1.4.2:../../security/gnupg | 18 | DEPENDS+= gnupg>=1.4.2:../../security/gnupg | |
20 | .endif | 19 | .endif | |
21 | 20 | |||
22 | USE_LIBTOOL= YES | 21 | USE_LIBTOOL= YES | |
23 | GNU_CONFIGURE= YES | 22 | GNU_CONFIGURE= YES | |
24 | PTHREAD_OPTS+= require | 23 | PTHREAD_OPTS+= require | |
25 | INFO_FILES= YES | 24 | INFO_FILES= YES | |
26 | 25 | |||
27 | SUBST_CLASSES+= pthread | 26 | SUBST_CLASSES+= pthread | |
28 | SUBST_FILES.pthread= gpgme/gpgme-config.in | 27 | SUBST_FILES.pthread= gpgme/gpgme-config.in | |
29 | SUBST_SED.pthread+= -e 's,@PTHREAD_LIBS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g' | 28 | SUBST_SED.pthread+= -e 's,@PTHREAD_LIBS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g' | |
30 | SUBST_SED.pthread+= -e 's,@PTHREAD_CFLAGS@,${PTHREAD_CFLAGS},g' | 29 | SUBST_SED.pthread+= -e 's,@PTHREAD_CFLAGS@,${PTHREAD_CFLAGS},g' | |
31 | SUBST_STAGE.pthread= post-patch | 30 | SUBST_STAGE.pthread= post-patch | |
32 | 31 | |||
33 | LIBS.SunOS+= -lnsl -lsocket | 32 | LIBS.SunOS+= -lnsl -lsocket | |
34 | 33 | |||
35 | # Avoid an ICE in gcc2 on sparc64 | 34 | # Avoid an ICE in gcc2 on sparc64 | |
36 | CONFIGURE_ENV+= F77=${FALSE:Q} | 35 | CONFIGURE_ENV+= F77=${FALSE:Q} | |
37 | 36 | |||
38 | # getenv_r is not detected correctly. It will be found | 37 | # getenv_r is not detected correctly. It will be found | |
39 | # in either base system or librfuncs | 38 | # in either base system or librfuncs | |
40 | CONFIGURE_ENV+= ac_cv_func_getenv_r=yes | 39 | CONFIGURE_ENV+= ac_cv_func_getenv_r=yes | |
41 | CONFIGURE_ENV+= ac_cv_func_funopen=yes | 40 | CONFIGURE_ENV+= ac_cv_func_funopen=yes | |
42 | 41 | |||
43 | TEST_TARGET= check | 42 | TEST_TARGET= check | |
44 | 43 | |||
45 | .include "../../mk/pthread.buildlink3.mk" | 44 | .include "../../mk/pthread.buildlink3.mk" | |
46 | 45 | |||
47 | .if ${PTHREAD_TYPE} == "native" | 46 | .if ${PTHREAD_TYPE} == "native" | |
48 | CONFIGURE_ARGS+= --without-pth --without-pth-test | 47 | CONFIGURE_ARGS+= --without-pth --without-pth-test | |
49 | .endif | 48 | .endif | |
50 | 49 | |||
51 | BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.4 | 50 | BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.4 | |
52 | .include "../../security/libgpg-error/buildlink3.mk" | 51 | .include "../../security/libgpg-error/buildlink3.mk" | |
53 | 52 | |||
54 | # we want the getenv_r() semantics of NetBSD-current | 53 | # we want the getenv_r() semantics of NetBSD-current | |
55 | BUILDLINK_API_DEPENDS.librfuncs+= librfuncs>=1.0.7nb1 | 54 | BUILDLINK_API_DEPENDS.librfuncs+= librfuncs>=1.0.7nb1 | |
56 | .include "../../devel/librfuncs/buildlink3.mk" | 55 | .include "../../devel/librfuncs/buildlink3.mk" | |
57 | 56 | |||
58 | ## | 57 | ## | |
59 | ## Option to build with gpgsm. This provides SMIME support | 58 | ## Option to build with gpgsm. This provides SMIME support | |
60 | ## | 59 | ## | |
61 | .if !empty(PKG_OPTIONS:Mgpgsm) | 60 | .if !empty(PKG_OPTIONS:Mgpgsm) | |
62 | . include "../../security/gnupg2/buildlink3.mk" | 61 | . include "../../security/gnupg2/buildlink3.mk" | |
63 | CONFIGURE_ARGS+= --with-gpgsm=${BUILDLINK_PREFIX.gnupg2}/bin/gpgsm | 62 | CONFIGURE_ARGS+= --with-gpgsm=${BUILDLINK_PREFIX.gnupg2}/bin/gpgsm | |
64 | CONFIGURE_ARGS+= --with-gpg=${BUILDLINK_PREFIX.gnupg2}/bin/gpg2 | 63 | CONFIGURE_ARGS+= --with-gpg=${BUILDLINK_PREFIX.gnupg2}/bin/gpg2 | |
65 | .else | 64 | .else | |
66 | CONFIGURE_ARGS+= --without-gpgsm | 65 | CONFIGURE_ARGS+= --without-gpgsm | |
67 | .endif | 66 | .endif | |
68 | 67 | |||
69 | .include "../../mk/bsd.prefs.mk" | 68 | .include "../../mk/bsd.prefs.mk" | |
70 | 69 | |||
71 | .if ${OPSYS} == "HPUX" | 70 | .if ${OPSYS} == "HPUX" | |
72 | CONFIGURE_ENV+= ac_cv_lib_pthread_pthread_create=yes | 71 | CONFIGURE_ENV+= ac_cv_lib_pthread_pthread_create=yes | |
73 | .endif | 72 | .endif | |
74 | 73 | |||
75 | .include "../../mk/bsd.pkg.mk" | 74 | .include "../../mk/bsd.pkg.mk" |
@@ -1,19 +1,16 @@ | @@ -1,19 +1,16 @@ | |||
1 | $NetBSD: distinfo,v 1.26 2007/03/25 00:48:08 joerg Exp $ | 1 | $NetBSD: distinfo,v 1.27 2009/11/15 18:41:55 drochner Exp $ | |
2 | 2 | |||
3 | SHA1 (gpgme-1.1.4.tar.gz) = c5f9fe3a4479cc90ee33eff7a0669482b2f8cbe5 | 3 | SHA1 (gpgme-1.1.8.tar.gz) = 5f119d57009f1b8682d7665ae985325d0885ec9b | |
4 | RMD160 (gpgme-1.1.4.tar.gz) = 894fc39079addaf91d661ab5cf3d41b30454a873 | 4 | RMD160 (gpgme-1.1.8.tar.gz) = 6ee8856956cc8082fd19da457456b84d21d94841 | |
5 | Size (gpgme-1.1.4.tar.gz) = 943219 bytes | 5 | Size (gpgme-1.1.8.tar.gz) = 1085576 bytes | |
6 | SHA1 (patch-aa) = ef43e7f40642a4b7a6d70bd381144c495ebc9345 | 6 | SHA1 (patch-aa) = 4ef6915a2f8e062fcd2ffac83a4424c8897f734c | |
7 | SHA1 (patch-ab) = 1dced26dc46f89b601171574115b6e36a0b880fb | 7 | SHA1 (patch-ab) = 1dced26dc46f89b601171574115b6e36a0b880fb | |
8 | SHA1 (patch-ac) = f10902e1f14f4d32443a591da5f4bb955895598e | 8 | SHA1 (patch-ac) = f10902e1f14f4d32443a591da5f4bb955895598e | |
9 | SHA1 (patch-ad) = 8da36b8f7b07873b5dc3a04c3cfe1dae65ecadce | 9 | SHA1 (patch-ae) = 19acb330da9bce61ab7aed0037fd3cc9d4e4efa4 | |
10 | SHA1 (patch-ae) = f2b77e5f72ecae72f869afe968f77fb0f0d84c3f | 10 | SHA1 (patch-af) = 99787938b677f291a84eae57fa29be60890f444b | |
11 | SHA1 (patch-af) = ac1d130c31c1893a7c70e84580b8b4464eb3954a | |||
12 | SHA1 (patch-ag) = 9d48fa3679f895d7395ef9e07ea294079ed89b17 | 11 | SHA1 (patch-ag) = 9d48fa3679f895d7395ef9e07ea294079ed89b17 | |
13 | SHA1 (patch-ah) = 90bc8b33658ce3ce03fd3d7c015cfec53d0bd1d3 | 12 | SHA1 (patch-ah) = 84c9ad8c0c0e16584261cbb9c92e3073ce94da48 | |
14 | SHA1 (patch-ai) = 290f5ff4375dd0e9c4ba09747357b335784daab5 | 13 | SHA1 (patch-ai) = 290f5ff4375dd0e9c4ba09747357b335784daab5 | |
15 | SHA1 (patch-aj) = fc2b13f8400c250493d9ac7583eb3e79e6175b0f | 14 | SHA1 (patch-aj) = 312c7f74b2fd092cbd24e94b3e3798702c8209a4 | |
16 | SHA1 (patch-ak) = 1618e3ad2c1933ba019d966b83d3bd3aa5cc070a | |||
17 | SHA1 (patch-ba) = 0ab37246319860acb8b96679ac58c6b0ef01d3ed | 15 | SHA1 (patch-ba) = 0ab37246319860acb8b96679ac58c6b0ef01d3ed | |
18 | SHA1 (patch-bb) = b9e099f39a1cc88e45858ddc547be509692d44ca | 16 | SHA1 (patch-bb) = b9e099f39a1cc88e45858ddc547be509692d44ca | |
19 | SHA1 (patch-bc) = 071a4df142ff789cd65f487e0bda763e2e5c74b0 |
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | $NetBSD: patch-aa,v 1.7 2007/03/23 20:04:13 drochner Exp $ | 1 | $NetBSD: patch-aa,v 1.8 2009/11/15 18:41:55 drochner Exp $ | |
2 | 2 | |||
3 | --- gpgme/gpgme-config.in.orig 2007-01-26 06:28:37.000000000 +0100 | 3 | --- src/gpgme-config.in.orig 2007-01-26 06:28:37.000000000 +0100 | |
4 | +++ gpgme/gpgme-config.in | 4 | +++ src/gpgme-config.in | |
5 | @@ -29,8 +29,8 @@ libs_pth="@PTH_LDFLAGS@ @PTH_LIBS@" | 5 | @@ -29,8 +29,8 @@ libs_pth="@PTH_LDFLAGS@ @PTH_LIBS@" | |
6 | cflags_pth="@PTH_CFLAGS@" | 6 | cflags_pth="@PTH_CFLAGS@" | |
7 | 7 | |||
8 | @HAVE_PTHREAD_TRUE@thread_modules="$thread_modules pthread" | 8 | @HAVE_PTHREAD_TRUE@thread_modules="$thread_modules pthread" | |
9 | -libs_pthread="-lpthread" | 9 | -libs_pthread="-lpthread" | |
10 | -cflags_pthread="" | 10 | -cflags_pthread="" | |
11 | +libs_pthread="@PTHREAD_LIBS@" | 11 | +libs_pthread="@PTHREAD_LIBS@" | |
12 | +cflags_pthread="@PTHREAD_CFLAGS@" | 12 | +cflags_pthread="@PTHREAD_CFLAGS@" | |
13 | 13 | |||
14 | # Configure glib. | 14 | # Configure glib. | |
15 | libs_glib="@GLIB_LIBS@" | 15 | libs_glib="@GLIB_LIBS@" | |
16 | @@ -114,7 +114,7 @@ while test $# -gt 0; do | 16 | @@ -114,7 +114,7 @@ while test $# -gt 0; do | |
17 | ;; | 17 | ;; | |
18 | --libs) | 18 | --libs) | |
19 | if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib"; then | 19 | if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib"; then | |
20 | - output="$output -L$libdir" | 20 | - output="$output -L$libdir" | |
21 | + output="$output -Wl,-R$libdir -L$libdir" | 21 | + output="$output -Wl,-R$libdir -L$libdir" | |
22 | fi | 22 | fi | |
23 | case "$thread_module" in | 23 | case "$thread_module" in | |
24 | pthread) | 24 | pthread) |
@@ -1,24 +1,14 @@ | @@ -1,24 +1,14 @@ | |||
1 | $NetBSD: patch-ae,v 1.3 2006/07/19 22:59:59 wiz Exp $ | 1 | $NetBSD: patch-ae,v 1.4 2009/11/15 18:41:55 drochner Exp $ | |
2 | 2 | |||
3 | --- gpgme/engine-gpgsm.c.orig 2005-10-01 20:14:48.000000000 +0000 | 3 | --- src/engine-gpgsm.c.orig 2008-11-03 17:50:12.000000000 +0100 | |
4 | +++ gpgme/engine-gpgsm.c | 4 | +++ src/engine-gpgsm.c | |
5 | @@ -30,6 +30,9 @@ | 5 | @@ -28,6 +28,9 @@ | |
6 | #include <sys/types.h> | 6 | #include <sys/types.h> | |
7 | #include <assert.h> | 7 | #include <assert.h> | |
8 | #include <unistd.h> | 8 | #include <unistd.h> | |
9 | +#if HAVE_RFUNCS_H | 9 | +#if HAVE_RFUNCS_H | |
10 | +#include <rfuncs.h> | 10 | +#include <rfuncs.h> | |
11 | +#endif | 11 | +#endif | |
12 | #include <locale.h> | 12 | #include <locale.h> | |
13 | #include <fcntl.h> /* FIXME */ | 13 | #include <fcntl.h> /* FIXME */ | |
14 | #include <errno.h> | 14 | #include <errno.h> | |
15 | @@ -457,7 +460,8 @@ gpgsm_new (void **engine, const char *fi | |||
16 | ||||
17 | if (isatty (1)) | |||
18 | { | |||
19 | - if (ttyname_r (1, dft_ttyname, sizeof (dft_ttyname))) | |||
20 | + /* ttyname_r() return numeric status */ | |||
21 | + if (err = ttyname_r (1, dft_ttyname, sizeof (dft_ttyname))) | |||
22 | { | |||
23 | err = gpg_error_from_errno (errno); | |||
24 | goto leave; |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: patch-aj,v 1.3 2007/03/23 20:04:13 drochner Exp $ | 1 | $NetBSD: patch-aj,v 1.4 2009/11/15 18:41:55 drochner Exp $ | |
2 | 2 | |||
3 | --- gpgme/Makefile.in.orig 2007-03-05 11:14:44.000000000 +0100 | 3 | --- src/Makefile.in.orig 2007-03-05 11:14:44.000000000 +0100 | |
4 | +++ gpgme/Makefile.in | 4 | +++ src/Makefile.in | |
5 | @@ -438,7 +438,7 @@ libgpgme_pthread_la_DEPENDENCIES = $(ass | 5 | @@ -438,7 +438,7 @@ libgpgme_pthread_la_DEPENDENCIES = $(ass | |
6 | @LTLIBOBJS@ $(srcdir)/libgpgme.vers | 6 | @LTLIBOBJS@ $(srcdir)/libgpgme.vers | |
7 | 7 | |||
8 | libgpgme_pthread_la_LIBADD = $(assuan_libobjs) @LTLIBOBJS@ \ | 8 | libgpgme_pthread_la_LIBADD = $(assuan_libobjs) @LTLIBOBJS@ \ | |
9 | - -lpthread @GPG_ERROR_LIBS@ @NETLIBS@ | 9 | - -lpthread @GPG_ERROR_LIBS@ @NETLIBS@ | |
10 | + $(PTHREAD_LDFLAGS) $(PTHREAD_LIBS) @GPG_ERROR_LIBS@ @NETLIBS@ | 10 | + $(PTHREAD_LDFLAGS) $(PTHREAD_LIBS) @GPG_ERROR_LIBS@ @NETLIBS@ | |
11 | 11 | |||
12 | libgpgme_pth_la_LDFLAGS = @PTH_LDFLAGS@ \ | 12 | libgpgme_pth_la_LDFLAGS = @PTH_LDFLAGS@ \ | |
13 | $(libgpgme_version_script_cmd) -version-info \ | 13 | $(libgpgme_version_script_cmd) -version-info \ |
@@ -1,42 +1,42 @@ | @@ -1,42 +1,42 @@ | |||
1 | $NetBSD: patch-af,v 1.5 2006/03/01 16:22:21 drochner Exp $ | 1 | $NetBSD: patch-af,v 1.6 2009/11/15 18:41:55 drochner Exp $ | |
2 | 2 | |||
3 | --- gpgme/get-env.c.orig 2004-12-07 21:47:40.000000000 +0100 | 3 | --- src/get-env.c.orig 2004-12-07 21:47:40.000000000 +0100 | |
4 | +++ gpgme/get-env.c | 4 | +++ src/get-env.c | |
5 | @@ -22,6 +22,9 @@ | 5 | @@ -22,6 +22,9 @@ | |
6 | #include <config.h> | 6 | #include <config.h> | |
7 | #endif | 7 | #endif | |
8 | #include <stdlib.h> | 8 | #include <stdlib.h> | |
9 | +#if HAVE_RFUNCS_H | 9 | +#if HAVE_RFUNCS_H | |
10 | +#include <rfuncs.h> | 10 | +#include <rfuncs.h> | |
11 | +#endif | 11 | +#endif | |
12 | #include <errno.h> | 12 | #include <errno.h> | |
13 | #include <string.h> | 13 | #include <string.h> | |
14 | 14 | |||
15 | @@ -53,7 +56,25 @@ _gpgme_getenv (const char *name, char ** | 15 | @@ -53,7 +56,25 @@ _gpgme_getenv (const char *name, char ** | |
16 | 16 | |||
17 | #else | 17 | #else | |
18 | 18 | |||
19 | -/* FIXME: Implement this when we have the specification for it. */ | 19 | -/* FIXME: Implement this when we have the specification for it. */ | |
20 | -#error Use of getenv_r not implemented. | 20 | -#error Use of getenv_r not implemented. | |
21 | +/* Retrieve the environment variable NAME and return a copy of it in a | 21 | +/* Retrieve the environment variable NAME and return a copy of it in a | |
22 | + malloc()'ed buffer in *VALUE. If the environment variable is not | 22 | + malloc()'ed buffer in *VALUE. If the environment variable is not | |
23 | + set, return NULL in *VALUE. */ | 23 | + set, return NULL in *VALUE. */ | |
24 | +gpgme_error_t | 24 | +gpgme_error_t | |
25 | +_gpgme_getenv (const char *name, char **value) | 25 | +_gpgme_getenv (const char *name, char **value) | |
26 | +{ | 26 | +{ | |
27 | + char env_value[256]; | 27 | + char env_value[256]; | |
28 | + if (getenv_r (name, env_value, 256) < 0) | 28 | + if (getenv_r (name, env_value, 256) < 0) | |
29 | + *value = NULL; | 29 | + *value = NULL; | |
30 | + else | 30 | + else | |
31 | + { | 31 | + { | |
32 | + *value = strdup (env_value); | 32 | + *value = strdup (env_value); | |
33 | + if (!*value) | 33 | + if (!*value) | |
34 | + errno = ENOMEM; | 34 | + errno = ENOMEM; | |
35 | + } | 35 | + } | |
36 | + if (!*value && errno != ENOENT) | 36 | + if (!*value && errno != ENOENT) | |
37 | + return gpg_error_from_errno (errno); | 37 | + return gpg_error_from_errno (errno); | |
38 | + else | 38 | + else | |
39 | + return (0); | 39 | + return (0); | |
40 | +} | 40 | +} | |
41 | 41 | |||
42 | #endif | 42 | #endif |
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | $NetBSD: patch-ah,v 1.2 2006/07/19 22:59:59 wiz Exp $ | 1 | $NetBSD: patch-ah,v 1.3 2009/11/15 18:41:55 drochner Exp $ | |
2 | 2 | |||
3 | --- gpgme/error.c.orig 2005-09-08 14:42:31.000000000 +0000 | 3 | --- src/error.c.orig 2005-09-08 14:42:31.000000000 +0000 | |
4 | +++ gpgme/error.c | 4 | +++ src/error.c | |
5 | @@ -22,6 +22,10 @@ | 5 | @@ -22,6 +22,10 @@ | |
6 | #include <config.h> | 6 | #include <config.h> | |
7 | #endif | 7 | #endif | |
8 | 8 | |||
9 | +#if HAVE_RFUNCS_H | 9 | +#if HAVE_RFUNCS_H | |
10 | +#include <rfuncs.h> | 10 | +#include <rfuncs.h> | |
11 | +#endif | 11 | +#endif | |
12 | + | 12 | + | |
13 | #include <gpgme.h> | 13 | #include <gpgme.h> | |
14 | 14 | |||
15 | /* Return a pointer to a string containing a description of the error | 15 | /* Return a pointer to a string containing a description of the error | |
16 | @@ -43,7 +47,7 @@ gpgme_strerror (gpgme_error_t err) | 16 | @@ -43,7 +47,7 @@ gpgme_strerror (gpgme_error_t err) | |
17 | int | 17 | int | |
18 | gpgme_strerror_r (gpg_error_t err, char *buf, size_t buflen) | 18 | gpgme_strerror_r (gpg_error_t err, char *buf, size_t buflen) | |
19 | { | 19 | { | |
20 | - return gpg_strerror_r (err, buf, buflen); | 20 | - return gpg_strerror_r (err, buf, buflen); | |
21 | + return strerror_r (err, buf, buflen); | 21 | + return strerror_r (err, buf, buflen); | |
22 | } | 22 | } | |
23 | 23 | |||
24 | 24 |