wok-6.x view Qt4-qca-ossl/receipt @ rev 13786
Up mesa (9.0.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 04 21:06:24 2013 +0100 (2013-01-04) |
parents | 7df05207d343 |
children | 76b72f1ad63c |
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 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
11 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
12 libQtOpenGL libQtSql libQtWebkit qca openssl"
13 BUILD_DEPENDS="qmake xorg-libX11-dev dbus-dev openssl-dev Qt4-dev qca-dev"
14 TARBALL="$NAME-$VERSION.tar.bz2"
15 WEB_SITE="http://delta.affinix.com/$NAME"
16 WGET_URL="http://delta.affinix.com/download/qca/$MAJORVERSION/plugins/$TARBALL"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
23 patch -u <<EOP
24 --- qca-ossl.cpp
25 +++ qca-ossl.cpp
26 @@ -330,1 +330,1 @@
27 - X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, "hash");
28 + X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, (char *)"hash");
29 EOP
30 status
31 patch -u <<EOP
32 --- qca-ossl.cpp
33 +++ qca-ossl.cpp
34 @@ -6597,9 +6597,11 @@
35 #ifdef SHA512_DIGEST_LENGTH
36 list += "sha512";
37 #endif
38 + /*
39 #ifdef OBJ_whirlpool
40 list += "whirlpool";
41 #endif
42 + */
43 return list;
44 }
45 EOP
46 status
47 patch -u <<EOP
48 --- qca-ossl.cpp
49 +++ qca-ossl.cpp
50 @@ -6812,10 +6812,12 @@
51 else if ( type == "sha512" )
52 return new opensslHashContext( EVP_sha512(), this, type);
53 #endif
54 +/*
55 #ifdef OBJ_whirlpool
56 else if ( type == "whirlpool" )
57 return new opensslHashContext( EVP_whirlpool(), this, type);
58 #endif
59 +*/
60 else if ( type == "pbkdf1(sha1)" )
61 return new opensslPbkdf1Context( EVP_sha1(), this, type );
62 else if ( type == "pbkdf1(md2)" )
63 EOP
64 status
66 chmod +x configure
67 ./configure \
68 --qtdir=/usr/lib/qt && \
69 make $MAKEFLAGS && make DESTDIR=$_pkg install
70 }
72 # Rules to gen a SliTaz package suitable for Tazpkg.
73 genpkg_rules()
74 {
75 mkdir -p $fs/usr/lib/qt/plugins/crypto
76 cp -a $src/lib/* $fs/usr/lib/qt/plugins/crypto/
78 # Copy .desktop file:
79 # cp -a $stuff/* $fs/usr
80 }