pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

perl bindings for Verisign's XMLSIG v1.0.1 library



Module Name:	pkgsrc-wip
Committed By:	Gianni D'Aprile <giannidaprile+pkgsrc-wip%gmail.com@localhost>
Pushed By:	giannidaprile
Date:		Sun Jan 3 11:49:48 2016 -0600
Changeset:	61befdd948134623335dda27fd2397cb469d505e

Added Files:
	p5-xmlsig/DESCR
	p5-xmlsig/Makefile
	p5-xmlsig/distinfo
	p5-xmlsig/patches/patch-src_TrustVerifier.cpp
	p5-xmlsig/patches/patch-src_X509Certificate.cpp
	p5-xmlsig/patches/patch-src_X509Certificate.h

Log Message:
perl bindings for Verisign's XMLSIG v1.0.1 library

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=61befdd948134623335dda27fd2397cb469d505e

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 p5-xmlsig/DESCR                                 | 11 +++++++
 p5-xmlsig/Makefile                              | 42 +++++++++++++++++++++++++
 p5-xmlsig/distinfo                              |  8 +++++
 p5-xmlsig/patches/patch-src_TrustVerifier.cpp   | 16 ++++++++++
 p5-xmlsig/patches/patch-src_X509Certificate.cpp | 16 ++++++++++
 p5-xmlsig/patches/patch-src_X509Certificate.h   | 12 +++++++
 6 files changed, 105 insertions(+)

diffs:
diff --git a/p5-xmlsig/DESCR b/p5-xmlsig/DESCR
new file mode 100644
index 0000000..097f94b
--- /dev/null
+++ b/p5-xmlsig/DESCR
@@ -0,0 +1,11 @@
+XMLSig is a C++ wrapper around the xmlsec library, providing a simple
+object oriented interface for dynamic languages.  Its main objectives
+are:
+
+1. To be a fully compliant XML Signature implementation.
+
+See http://www.w3.org/TR/xmldsig-core/
+
+2. To have an API resembling Apache TSIK.
+
+See http://incubator.apache.org/tsik/
diff --git a/p5-xmlsig/Makefile b/p5-xmlsig/Makefile
new file mode 100644
index 0000000..d402ee4
--- /dev/null
+++ b/p5-xmlsig/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD$
+#
+
+DISTNAME=	xmlsig-1.0.1
+PKGNAME=	p5-${DISTNAME}
+CATEGORIES=	textproc
+MASTER_SITES=	http://sourceforge.net/projects/xmlsig/ # stub
+
+MAINTAINER=	gianni-pkgsrc-wip%daprile.net@localhost
+HOMEPAGE=	http://sourceforge.net/projects/xmlsig/
+COMMENT=	Multi-language, multi-platform implementation of XML signatures
+LICENSE=	apache-2.0
+
+# Get it from Subversion repository:
+SVN_REPOSITORIES=	xmlsig
+SVN_ROOT.xmlsig=	http://svn.code.sf.net/p/xmlsig/code/trunk
+SVN_MODULE.xmlsig=	xmlsig
+
+WRKSRC=		${WRKDIR}/${SVN_MODULE.xmlsig}
+
+CONFIGURE_DIRS= perl
+#PERL5_CONFIGURE_DIRS= perl
+#BUILD_TARGET=	perl
+USE_LANGUAGES=	c c++
+USE_TOOLS+=	gmake perl
+
+PERL5_PACKLIST= auto/xmlsig/.packlist
+
+# swig does its thing here
+pre-configure:
+	cd ${WRKSRC}/perl \
+	&& env ${MAKE_ENV} \
+               ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} \
+               -f Makefile.perl
+
+.include "../../lang/perl5/module.mk"
+.include "../../devel/swig/buildlink3.mk"
+.include "../../security/xmlsec1/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../textproc/libxslt/buildlink3.mk"
+.include "../../wip/mk/svn-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/p5-xmlsig/distinfo b/p5-xmlsig/distinfo
new file mode 100644
index 0000000..87535c0
--- /dev/null
+++ b/p5-xmlsig/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (xmlsig-1.0.1.tar.gz) = aa4236e7ff40d7ccb96b5848383c5926e69feb1b
+RMD160 (xmlsig-1.0.1.tar.gz) = 833be7c4b5d1da887a6f211c0e75e9a481de3a50
+Size (xmlsig-1.0.1.tar.gz) = 20821263 bytes
+SHA1 (patch-src_TrustVerifier.cpp) = 9353a1449a1b167592c1c56fb72b68a683ce5f1b
+SHA1 (patch-src_X509Certificate.cpp) = bd97449c0ec12c8b5b6423d31955e62728071dc1
+SHA1 (patch-src_X509Certificate.h) = 7a270ffa1090f6650b0d16b1204e7240052d737f
diff --git a/p5-xmlsig/patches/patch-src_TrustVerifier.cpp b/p5-xmlsig/patches/patch-src_TrustVerifier.cpp
new file mode 100644
index 0000000..c3502c6
--- /dev/null
+++ b/p5-xmlsig/patches/patch-src_TrustVerifier.cpp
@@ -0,0 +1,16 @@
+$NetBSD$
+
+--- src/TrustVerifier.cpp.orig	2016-01-03 17:42:47.000000000 +0000
++++ src/TrustVerifier.cpp
+@@ -123,7 +123,11 @@ int X509TrustVerifier::verifyTrust (vect
+     {
+         THROW(LibError, "Failed to retrieve keystore data", -1);
+     }
++#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
++    STACK_OF(X509_CRL)* crl = sk_X509_CRL_new_null();
++#else
+     STACK_OF(X509)* crl = sk_X509_new_null();
++#endif
+     STACK_OF(X509)* stack = sk_X509_new_null();
+     if (!stack)
+     {
diff --git a/p5-xmlsig/patches/patch-src_X509Certificate.cpp b/p5-xmlsig/patches/patch-src_X509Certificate.cpp
new file mode 100644
index 0000000..829a111
--- /dev/null
+++ b/p5-xmlsig/patches/patch-src_X509Certificate.cpp
@@ -0,0 +1,16 @@
+$NetBSD$
+
+--- src/X509Certificate.cpp.orig	2016-01-03 16:55:29.000000000 +0000
++++ src/X509Certificate.cpp
+@@ -279,7 +279,11 @@ int X509Certificate::getBasicConstraints
+     }
+     X509_EXTENSION *ext = NULL;
+     int pathlen = -1;
++#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
++    const X509V3_EXT_METHOD *method = NULL;
++#else
+     X509V3_EXT_METHOD *method = NULL;
++#endif
+     STACK_OF(CONF_VALUE) *vals = NULL;
+     void *ext_str = NULL;
+ 
diff --git a/p5-xmlsig/patches/patch-src_X509Certificate.h b/p5-xmlsig/patches/patch-src_X509Certificate.h
new file mode 100644
index 0000000..247a3c6
--- /dev/null
+++ b/p5-xmlsig/patches/patch-src_X509Certificate.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- src/X509Certificate.h.orig	2016-01-03 16:55:29.000000000 +0000
++++ src/X509Certificate.h
+@@ -18,6 +18,7 @@
+ #define _X509CERTIFICATE_H
+ 
+ #include <string>
++#include <strings.h>
+ #include <openssl/x509.h>
+ 
+ class X509Certificate;


Home | Main Index | Thread Index | Old Index