wok-6.x view Qt4-qca-ossl/receipt @ rev 16489

xmlrpc-c: race condition
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 23 08:07:54 2014 +0000 (2014-04-23)
parents 76b72f1ad63c
children c49ffc024a6c
line source
1 # SliTaz package receipt.
3 NAME="qca-ossl"
4 PACKAGE="Qt4-$NAME"
5 MAJORVERSION="2.0"
6 VERSION="2.0.0-beta3"
7 CATEGORY="development"
8 SHORT_DESC="OpenSSL plug-in for the Qt Cryptographic Architecture (QCA)."
9 MAINTAINER="ben@seawolfsanctuary.com"
10 LICENSE="LGPL2.1"
11 TARBALL="$NAME-$VERSION.tar.bz2"
12 WEB_SITE="http://delta.affinix.com/$NAME"
13 WGET_URL="http://delta.affinix.com/download/qca/$MAJORVERSION/plugins/$TARBALL"
15 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
16 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
17 libQtOpenGL libQtSql libQtWebkit qca openssl"
18 BUILD_DEPENDS="qmake xorg-libX11-dev dbus-dev openssl-dev Qt4-dev qca-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
25 patch -u <<EOP
26 --- qca-ossl.cpp
27 +++ qca-ossl.cpp
28 @@ -330,1 +330,1 @@
29 - X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, "hash");
30 + X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, (char *)"hash");
31 EOP
32 status
33 patch -u <<EOP
34 --- qca-ossl.cpp
35 +++ qca-ossl.cpp
36 @@ -6597,9 +6597,11 @@
37 #ifdef SHA512_DIGEST_LENGTH
38 list += "sha512";
39 #endif
40 + /*
41 #ifdef OBJ_whirlpool
42 list += "whirlpool";
43 #endif
44 + */
45 return list;
46 }
47 EOP
48 status
49 patch -u <<EOP
50 --- qca-ossl.cpp
51 +++ qca-ossl.cpp
52 @@ -6812,10 +6812,12 @@
53 else if ( type == "sha512" )
54 return new opensslHashContext( EVP_sha512(), this, type);
55 #endif
56 +/*
57 #ifdef OBJ_whirlpool
58 else if ( type == "whirlpool" )
59 return new opensslHashContext( EVP_whirlpool(), this, type);
60 #endif
61 +*/
62 else if ( type == "pbkdf1(sha1)" )
63 return new opensslPbkdf1Context( EVP_sha1(), this, type );
64 else if ( type == "pbkdf1(md2)" )
65 EOP
66 status
68 chmod +x configure
69 ./configure \
70 --qtdir=/usr/lib/qt && \
71 make $MAKEFLAGS &&
72 make DESTDIR=$DESTDIR install 2>&1 | grep -v libqca-ossl.so.debug
73 }
75 # Rules to gen a SliTaz package suitable for Tazpkg.
76 genpkg_rules()
77 {
78 mkdir -p $fs/usr/lib/qt/plugins/crypto
79 cp -a $src/lib/* $fs/usr/lib/qt/plugins/crypto/
81 # Copy .desktop file:
82 # cp -a $stuff/* $fs/usr
83 }