From 34f6ecb9419b58e6e92a0090d50423b3b4c14ed3 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Fri, 6 Feb 2015 18:15:44 +0100 Subject: [PATCH] New package: qca-qt5-2.1.0 --- common/shlibs | 1 + srcpkgs/qca-qt5-devel | 1 + srcpkgs/qca-qt5-ossl | 1 + srcpkgs/qca-qt5/patches/libressl.patch | 14 ++++++++++ srcpkgs/qca-qt5/template | 37 ++++++++++++++++++++++++++ 5 files changed, 54 insertions(+) create mode 120000 srcpkgs/qca-qt5-devel create mode 120000 srcpkgs/qca-qt5-ossl create mode 100644 srcpkgs/qca-qt5/patches/libressl.patch create mode 100644 srcpkgs/qca-qt5/template diff --git a/common/shlibs b/common/shlibs index fef4ea507d2..12f0e1eb0f9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2006,3 +2006,4 @@ libsfml-graphics.so.2.2.0 SFML-2.2_1 libclamav.so.6 clamav-0.98.6_1 libclamunrar.so.6 clamav-0.98.6_1 libclamunrar_iface.so.6 clamav-0.98.6_1 +libqca.so.2 qca-qt5-2.1.0_1 diff --git a/srcpkgs/qca-qt5-devel b/srcpkgs/qca-qt5-devel new file mode 120000 index 00000000000..88339cbfa6e --- /dev/null +++ b/srcpkgs/qca-qt5-devel @@ -0,0 +1 @@ +qca-qt5 \ No newline at end of file diff --git a/srcpkgs/qca-qt5-ossl b/srcpkgs/qca-qt5-ossl new file mode 120000 index 00000000000..88339cbfa6e --- /dev/null +++ b/srcpkgs/qca-qt5-ossl @@ -0,0 +1 @@ +qca-qt5 \ No newline at end of file diff --git a/srcpkgs/qca-qt5/patches/libressl.patch b/srcpkgs/qca-qt5/patches/libressl.patch new file mode 100644 index 00000000000..2da07337d6f --- /dev/null +++ b/srcpkgs/qca-qt5/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-qt5/template b/srcpkgs/qca-qt5/template new file mode 100644 index 00000000000..3dec828985f --- /dev/null +++ b/srcpkgs/qca-qt5/template @@ -0,0 +1,37 @@ +# Template file for 'qca' +pkgname=qca-qt5 +version=2.1.0 +revision=1 +wrksrc=${pkgname%-*}-${version} +build_style=cmake +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 qt5-devel ca-certificates libressl-devel" +depends="ca-certificates" +short_desc="Qt Cryptographic Architecture" +maintainer="Duncaen " +license="LGPL-2.1" +homepage="http://delta.affinix.com/qca/" +distfiles="http://delta.affinix.com/download/qca/2.0/${pkgname%-*}-${version}.tar.gz" +checksum=226dcd76138c3738cdc15863607a96b3758a4c3efd3c47295939bcea4e7a9284 + +provides="qca-${version}_${revision}" +replaces="qca>=0" + +qca-qt5-ossl_package() { + depends="${sourcepkg}-${version}_${revision}" + short_desc+=" - QCA OSSL plugin" + pkg_install() { + vmove usr/lib/qca/crypto/libqca-ossl.so + } +} + +qca-qt5-devel_package() { + depends="qt5-devel ${sourcepkg}-${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/lib/cmake + vmove usr/share/qca/mkspecs + } +}