Update qca-qt5 to 2.2.1
- Only new exports added so bump minor.
- Cleanup WANTLIB
- Fix MASTER_SITE URL
- Cleanup plugin configuration
LibreSSL patches from Gentoo developer Stefan Strogin from here:
3e69b18db7
Tested by landry@ with qgis
This commit is contained in:
parent
855ae2be6a
commit
727e48c455
@ -1,26 +1,23 @@
|
||||
# $OpenBSD: Makefile,v 1.5 2019/07/12 20:49:35 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.6 2019/11/28 17:44:07 rsadowski Exp $
|
||||
# separate port for Qt5 because it's too different from Qt4 case
|
||||
COMMENT = Qt Cryptographic Architecture
|
||||
|
||||
V = 2.1.3
|
||||
V = 2.2.1
|
||||
DISTNAME = qca-${V}
|
||||
PKGNAME = qca-qt5-${V}
|
||||
CATEGORIES = security
|
||||
REVISION = 2
|
||||
|
||||
SHARED_LIBS = qca-qt5 0.0
|
||||
SHARED_LIBS = qca-qt5 0.1
|
||||
|
||||
HOMEPAGE = https://userbase.kde.org/QCA
|
||||
|
||||
# LGPLv2.1
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB += Qt5Core c m pthread
|
||||
WANTLIB += ${COMPILER_LIBCXX}
|
||||
WANTLIB += crypto ssl
|
||||
WANTLIB += ${COMPILER_LIBCXX} Qt5Core c crypto m ssl
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_KDE:=stable/qca/${V}/}
|
||||
EXTRACT_SUFX = .tar.xz
|
||||
MASTER_SITES = ${MASTER_SITE_KDE:=stable/qca/${V}/src/}
|
||||
|
||||
MODULES = devel/cmake \
|
||||
x11/qt5
|
||||
@ -32,10 +29,13 @@ CONFIGURE_ARGS = -DCMAKE_INSTALL_PREFIX=${LOCALBASE} \
|
||||
-DQCA_MAN_INSTALL_DIR=${LOCALBASE}/man \
|
||||
-DQCA_BINARY_INSTALL_DIR=${PREFIX}/bin \
|
||||
-DQCA_FEATURE_INSTALL_DIR=${MODQT_LIBDIR}/mkspecs/features \
|
||||
-DBUILD_PLUGINS="ossl" \
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen:Bool=ON \
|
||||
-DBUILD_PLUGINS="none" \
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON \
|
||||
-DQCA_SUFFIX=qt5 \
|
||||
-Dqca_CERTSTORE=/etc/ssl/cert.pem \
|
||||
-DQT4_BUILD:Bool=OFF
|
||||
-DQT4_BUILD=OFF
|
||||
|
||||
# Enable plugins (qca checks for "yes")
|
||||
CONFIGURE_ARGS += -DWITH_ossl_PLUGIN=yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (qca-2.1.3.tar.xz) = AD/YajJCEFegOxioFo21LilAl4+dteu7agiIL4qx41M=
|
||||
SIZE (qca-2.1.3.tar.xz) = 686340
|
||||
SHA256 (qca-2.2.1.tar.xz) = 1xbS2OPtjZW72wYfAwgdfQMiBvdGowpNKdchlvUOewI=
|
||||
SIZE (qca-2.2.1.tar.xz) = 691676
|
||||
|
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-plugins_qca-botan_CMakeLists_txt,v 1.1 2019/11/28 17:44:07 rsadowski Exp $
|
||||
|
||||
Fix qca-botan linking.
|
||||
|
||||
Index: plugins/qca-botan/CMakeLists.txt
|
||||
--- plugins/qca-botan/CMakeLists.txt.orig
|
||||
+++ plugins/qca-botan/CMakeLists.txt
|
||||
@@ -16,6 +16,7 @@ if(BOTAN_FOUND)
|
||||
set_property(TARGET qca-botan PROPERTY SUFFIX ".dylib")
|
||||
endif()
|
||||
|
||||
+ target_link_directories(qca-botan PRIVATE ${BOTAN_LIBRARY_DIRS})
|
||||
target_link_libraries(qca-botan ${QT_QTCORE_LIBRARY} ${QCA_LIB_NAME} ${BOTAN_LIBRARIES})
|
||||
|
||||
if(NOT DEVELOPER_MODE)
|
@ -0,0 +1,30 @@
|
||||
$OpenBSD: patch-plugins_qca-ossl_ossl110-compat_h,v 1.1 2019/11/28 17:44:07 rsadowski Exp $
|
||||
|
||||
LibreSSL 3.0.x support from Stefan Strogin <steils@gentoo.org>
|
||||
|
||||
Index: plugins/qca-ossl/ossl110-compat.h
|
||||
--- plugins/qca-ossl/ossl110-compat.h.orig
|
||||
+++ plugins/qca-ossl/ossl110-compat.h
|
||||
@@ -205,22 +205,6 @@ static int RSA_meth_set_priv_dec(RSA_METHOD *rsa, int
|
||||
return 1;
|
||||
}
|
||||
|
||||
-static int RSA_meth_set_sign(RSA_METHOD *meth, int (*sign) (int type, const unsigned char *m,
|
||||
- unsigned int m_length, unsigned char *sigret, unsigned int *siglen, const RSA *rsa))
|
||||
-{
|
||||
- if (!meth) return 0;
|
||||
- meth->rsa_sign = sign;
|
||||
- return 1;
|
||||
-}
|
||||
-
|
||||
-static int RSA_meth_set_verify(RSA_METHOD *meth, int (*verify) (int dtype, const unsigned char *m,
|
||||
- unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, const RSA *rsa))
|
||||
-{
|
||||
- if (!meth) return 0;
|
||||
- meth->rsa_verify = verify;
|
||||
- return 1;
|
||||
-}
|
||||
-
|
||||
static int RSA_meth_set_finish(RSA_METHOD *meth, int (*finish) (RSA *rsa))
|
||||
{
|
||||
if (!meth) return 0;
|
40
security/qca-qt5/patches/patch-plugins_qca-ossl_qca-ossl_cpp
Normal file
40
security/qca-qt5/patches/patch-plugins_qca-ossl_qca-ossl_cpp
Normal file
@ -0,0 +1,40 @@
|
||||
$OpenBSD: patch-plugins_qca-ossl_qca-ossl_cpp,v 1.1 2019/11/28 17:44:07 rsadowski Exp $
|
||||
|
||||
LibreSSL 3.0.x support from Stefan Strogin <steils@gentoo.org>
|
||||
|
||||
Index: plugins/qca-ossl/qca-ossl.cpp
|
||||
--- plugins/qca-ossl/qca-ossl.cpp.orig
|
||||
+++ plugins/qca-ossl/qca-ossl.cpp
|
||||
@@ -62,12 +62,12 @@
|
||||
#endif
|
||||
|
||||
// OpenSSL 1.1.0 compatibility macros
|
||||
-#ifdef OSSL_110
|
||||
+#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#define M_ASN1_IA5STRING_new() ASN1_IA5STRING_new()
|
||||
#define RSA_F_RSA_EAY_PRIVATE_DECRYPT RSA_F_RSA_OSSL_PRIVATE_DECRYPT
|
||||
#endif
|
||||
|
||||
-#ifdef OSSL_110
|
||||
+#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#include <openssl/kdf.h>
|
||||
#endif
|
||||
|
||||
@@ -1280,7 +1280,7 @@ class opensslPbkdf2Context : public KDFContext (public
|
||||
protected:
|
||||
};
|
||||
|
||||
-#ifdef OSSL_110
|
||||
+#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
class opensslHkdfContext : public HKDFContext
|
||||
{
|
||||
public:
|
||||
@@ -7489,7 +7489,7 @@ class opensslProvider : public Provider (public)
|
||||
#endif
|
||||
else if ( type == "pbkdf2(sha1)" )
|
||||
return new opensslPbkdf2Context( this, type );
|
||||
-#ifdef OSSL_110
|
||||
+#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
else if ( type == "hkdf(sha256)" )
|
||||
return new opensslHkdfContext( this, type );
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user