From a289b8aded2074abdf86a7d308487fc0f34b670b Mon Sep 17 00:00:00 2001 From: jdolecek Date: Thu, 20 Dec 2007 20:37:21 +0000 Subject: move back to version 1.0 for security/qca and re-add security/qca-tls (for qca 1.x), so that kdenetwork3 works again XXX these should be renamed to qca1* after current freeze --- security/qca-tls/DESCR | 16 ++++++++++++++++ security/qca-tls/Makefile | 34 ++++++++++++++++++++++++++++++++++ security/qca-tls/PLIST | 3 +++ security/qca-tls/distinfo | 4 ++++ security/qca-tls/patches/patch-aa | 15 +++++++++++++++ security/qca-tls/patches/patch-ab | 28 ++++++++++++++++++++++++++++ 6 files changed, 100 insertions(+) create mode 100644 security/qca-tls/DESCR create mode 100644 security/qca-tls/Makefile create mode 100644 security/qca-tls/PLIST create mode 100644 security/qca-tls/distinfo create mode 100644 security/qca-tls/patches/patch-aa create mode 100644 security/qca-tls/patches/patch-ab (limited to 'security/qca-tls') diff --git a/security/qca-tls/DESCR b/security/qca-tls/DESCR new file mode 100644 index 00000000000..7389c8bcb16 --- /dev/null +++ b/security/qca-tls/DESCR @@ -0,0 +1,16 @@ +Taking a hint from the similarly-named Java Cryptography Architecture, +QCA aims to provide a straightforward and cross-platform crypto +API, using Qt datatypes and conventions. QCA separates the API from +the implementation, using plugins known as Providers. The advantage +of this model is to allow applications to avoid linking to or +explicitly depending on any particular cryptographic library. This +allows one to easily change or upgrade crypto implementations +without even needing to recompile the application. QCA should work +everywhere Qt does, including Windows/Unix/MacOSX. + +Features: +* SSL/TLS +* X509 +* RSA +* Hashing (SHA1, MD5) +* Ciphers (Blowfish, 3DES, AES) diff --git a/security/qca-tls/Makefile b/security/qca-tls/Makefile new file mode 100644 index 00000000000..89a0818b74b --- /dev/null +++ b/security/qca-tls/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.22 2007/12/20 20:37:24 jdolecek Exp $ + +DISTNAME= qca-tls-1.0 +PKGREVISION= # empty +CATEGORIES= security +MASTER_SITES= ${MASTER_SITE_SOURCEFORCE:=psi/} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= jdolecek@NetBSD.org +HOMEPAGE= http://delta.affinix.com/qca/ +COMMENT= Cross-platform crypto API for QT + +USE_BUILDLINK3= yes +USE_GNU_TOOLS+= make +USE_LIBTOOL= yes +USE_X11= yes +HAS_CONFIGURE= yes + +post-configure: + cd ${WRKSRC} && ( \ + ${QTDIR}/bin/qmake qca-tls.pro -o Makefile.orig; \ + ${SED} -e "s,-rpath .*,-rpath ${QTDIR}/lib," Makefile.orig > Makefile; \ + ) + +do-install: + ${INSTALL_DATA_DIR} ${QTDIR}/plugins/crypto + cd ${WRKSRC} && \ + libtool --mode=install ${INSTALL_LIB} libqca-tls.la ${QTDIR}/plugins/crypto + +.include "../../security/openssl/buildlink3.mk" +.include "../../x11/qt3-libs/buildlink3.mk" +BUILDLINK_DEPMETHOD.qt3-tools= build +.include "../../x11/qt3-tools/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/qca-tls/PLIST b/security/qca-tls/PLIST new file mode 100644 index 00000000000..368372365e4 --- /dev/null +++ b/security/qca-tls/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.3 2007/12/20 20:37:25 jdolecek Exp $ +qt3/plugins/crypto/libqca-tls.la +@dirrm qt3/plugins/crypto diff --git a/security/qca-tls/distinfo b/security/qca-tls/distinfo new file mode 100644 index 00000000000..1a6928b7331 --- /dev/null +++ b/security/qca-tls/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.8 2007/12/20 20:37:26 jdolecek Exp $ + +SHA1 (qca-tls-1.0.tar.bz2) = 775e764c5be342048eba11dae5c5fd3b636d23c5 +Size (qca-tls-1.0.tar.bz2) = 23489 bytes diff --git a/security/qca-tls/patches/patch-aa b/security/qca-tls/patches/patch-aa new file mode 100644 index 00000000000..b508b4435b4 --- /dev/null +++ b/security/qca-tls/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.4 2007/12/20 20:37:27 jdolecek Exp $ + +--- configure.orig 2004-12-19 09:10:21.000000000 +0000 ++++ configure 2004-12-19 09:20:50.000000000 +0000 +@@ -144,8 +144,10 @@ + + s = conf->getenv("QC_WITH_OPENSSL_LIB"); + if(!s.isEmpty()) { ++ /* + if(!conf->checkLibrary(s, "ssl")) + return false; ++ */ + lib = s; + } + else { diff --git a/security/qca-tls/patches/patch-ab b/security/qca-tls/patches/patch-ab new file mode 100644 index 00000000000..2b53de120ff --- /dev/null +++ b/security/qca-tls/patches/patch-ab @@ -0,0 +1,28 @@ +$NetBSD: patch-ab,v 1.4 2007/12/20 20:37:27 jdolecek Exp $ + +--- qca-tls.cpp.orig 2005-12-27 22:22:32.000000000 +0000 ++++ qca-tls.cpp +@@ -454,7 +454,11 @@ public: + if(!r) { + // try this other public function, for whatever reason + p = (void *)in; ++#ifdef OSSL_097 ++ r = d2i_RSA_PUBKEY(NULL, (const unsigned char **)&p, len); ++#else + r = d2i_RSA_PUBKEY(NULL, (unsigned char **)&p, len); ++#endif + } + if(r) { + if(pub) { +@@ -798,7 +802,11 @@ public: + + bool createFromDER(const char *in, unsigned int len) + { ++#ifdef OSSL_097 ++ const unsigned char *p = (const unsigned char *)in; ++#else + unsigned char *p = (unsigned char *)in; ++#endif + X509 *t = d2i_X509(NULL, &p, len); + if(!t) + return false; -- cgit v1.2.3