wok-undigest view Qt4-qca-ossl/receipt @ rev 210
Up: gcompris (9.5) still not ready for cooking/stable
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Jan 03 22:46:07 2011 +0100 (2011-01-03) |
parents | |
children | 804453aa6c68 |
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 Qt4-qca openssl"
13 BUILD_DEPENDS="xorg-libX11-dev dbus-dev openssl-dev Qt4-dev Qt4-qca \
14 slitaz-toolchain"
15 TARBALL="$NAME-$VERSION.tar.bz2"
16 WEB_SITE="http://delta.affinix.com/$NAME"
17 WGET_URL="http://delta.affinix.com/download/qca/$MAJORVERSION/plugins/$TARBALL"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $NAME-$VERSION
24 patch -u <<EOP
25 --- qca-ossl.cpp
26 +++ qca-ossl.cpp
27 @@ -330,1 +330,1 @@
28 - X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, "hash");
29 + X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, (char *)"hash");
30 EOP
31 status
32 patch -u <<EOP
33 --- qca-ossl.cpp
34 +++ qca-ossl.cpp
35 @@ -6597,9 +6597,11 @@
36 #ifdef SHA512_DIGEST_LENGTH
37 list += "sha512";
38 #endif
39 + /*
40 #ifdef OBJ_whirlpool
41 list += "whirlpool";
42 #endif
43 + */
44 return list;
45 }
46 EOP
47 status
48 patch -u <<EOP
49 --- qca-ossl.cpp
50 +++ qca-ossl.cpp
51 @@ -6812,10 +6812,12 @@
52 else if ( type == "sha512" )
53 return new opensslHashContext( EVP_sha512(), this, type);
54 #endif
55 +/*
56 #ifdef OBJ_whirlpool
57 else if ( type == "whirlpool" )
58 return new opensslHashContext( EVP_whirlpool(), this, type);
59 #endif
60 +*/
61 else if ( type == "pbkdf1(sha1)" )
62 return new opensslPbkdf1Context( EVP_sha1(), this, type );
63 else if ( type == "pbkdf1(md2)" )
64 EOP
65 status
67 chmod +x configure
68 ./configure \
69 --qtdir=/usr/lib/qt && \
70 make -j4 && make DESTDIR=$_pkg install
71 }
73 # Rules to gen a SliTaz package suitable for Tazpkg.
74 genpkg_rules()
75 {
76 mkdir -p $fs/usr/lib/qt/plugins/crypto
77 cp -a $WOK/$PACKAGE/$NAME-$VERSION/lib/* $fs/usr/lib/qt/plugins/crypto/
79 # Copy .desktop file:
80 # cp -a $WOK/$PACKAGE/stuff/* $fs/usr
81 }