diff --git a/srcpkgs/qca-ossl b/srcpkgs/qca-ossl new file mode 120000 index 0000000000..28e094dfc3 --- /dev/null +++ b/srcpkgs/qca-ossl @@ -0,0 +1 @@ +qca \ No newline at end of file diff --git a/srcpkgs/qca/patches/libressl.patch b/srcpkgs/qca/patches/libressl.patch new file mode 100644 index 0000000000..2da07337d6 --- /dev/null +++ b/srcpkgs/qca/patches/libressl.patch @@ -0,0 +1,14 @@ +# upstream +# http://quickgit.kde.org/?p=qca.git&a=commit&h=593de6855a4f4dc26cface3e96de8889f90cb4bb + +--- plugins/qca-ossl/qca-ossl.cpp 2015-01-24 00:38:42.000000000 +0100 ++++ plugins/qca-ossl/qca-ossl.cpp 2015-01-24 00:38:27.000000000 +0100 +@@ -5801,7 +5801,7 @@ + { + SessionInfo sessInfo; + +- sessInfo.isCompressed = (0 != ssl->session->compress_meth); ++ sessInfo.isCompressed = (0 != SSL_SESSION_get_compress_id(ssl->session)); + + if (ssl->version == TLS1_VERSION) + sessInfo.version = TLS::TLS_v1; diff --git a/srcpkgs/qca/template b/srcpkgs/qca/template index 9f132044de..e20fd4e7ea 100644 --- a/srcpkgs/qca/template +++ b/srcpkgs/qca/template @@ -1,11 +1,11 @@ # Template file for 'qca' pkgname=qca version=2.1.0 -revision=1 +revision=2 build_style=cmake -configure_args="-DBUILD_TESTS=0 -DQCA_FEATURE_INSTALL_DIR=/usr/share/qca/mkspecs" +configure_args="-DBUILD_TESTS=0 -DQCA_FEATURE_INSTALL_DIR=/usr/share/qca/mkspecs -DWITH_ossl_PLUGIN=yes" hostmakedepends="cmake pkg-config" -makedepends="nss-devel libgcrypt-devel qt-devel ca-certificates" +makedepends="nss-devel libgcrypt-devel qt-devel ca-certificates libressl-devel" depends="ca-certificates" short_desc="Qt Cryptographic Architecture" maintainer="Juan RP " @@ -14,6 +14,14 @@ homepage="http://delta.affinix.com/qca/" distfiles="http://delta.affinix.com/download/qca/2.0/${pkgname}-${version}.tar.gz" checksum=226dcd76138c3738cdc15863607a96b3758a4c3efd3c47295939bcea4e7a9284 +qca-ossl_package() { + depends="${sourcepkg}-${version}_${revision} libressl" + short_desc+=" - QCA OSSL plugin" + pkg_install() { + vmove usr/lib/qca/crypto/libqca-ossl.so + } +} + qca-devel_package() { depends="qt-devel ${sourcepkg}-${version}_${revision}" pkg_install() {