wok-current diff Qt4-qca-ossl/receipt @ rev 11216
Add from wok-undigest: Qt4-qca-ossl alarm-clock apcupsd avant-window-navigator avant-window-navigator-dev
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 03 21:50:22 2011 +0100 (2011-11-03) |
parents | |
children | 8e4c74abdf74 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Qt4-qca-ossl/receipt Thu Nov 03 21:50:22 2011 +0100 1.3 @@ -0,0 +1,80 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +NAME="qca-ossl" 1.7 +PACKAGE="Qt4-$NAME" 1.8 +MAJORVERSION="2.0" 1.9 +VERSION="2.0.0-beta3" 1.10 +CATEGORY="development" 1.11 +SHORT_DESC="OpenSSL plug-in for the Qt Cryptographic Architecture (QCA)." 1.12 +MAINTAINER="ben@seawolfsanctuary.com" 1.13 +DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \ 1.14 +libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \ 1.15 +libQtOpenGL libQtSql libQtWebkit qca openssl" 1.16 +BUILD_DEPENDS="qmake xorg-libX11-dev dbus-dev openssl-dev Qt4-dev qca-dev" 1.17 +TARBALL="$NAME-$VERSION.tar.bz2" 1.18 +WEB_SITE="http://delta.affinix.com/$NAME" 1.19 +WGET_URL="http://delta.affinix.com/download/qca/$MAJORVERSION/plugins/$TARBALL" 1.20 + 1.21 +# Rules to configure and make the package. 1.22 +compile_rules() 1.23 +{ 1.24 + cd $src 1.25 + 1.26 + patch -u <<EOP 1.27 +--- qca-ossl.cpp 1.28 ++++ qca-ossl.cpp 1.29 +@@ -330,1 +330,1 @@ 1.30 +- X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, "hash"); 1.31 ++ X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, (char *)"hash"); 1.32 +EOP 1.33 + status 1.34 + patch -u <<EOP 1.35 +--- qca-ossl.cpp 1.36 ++++ qca-ossl.cpp 1.37 +@@ -6597,9 +6597,11 @@ 1.38 + #ifdef SHA512_DIGEST_LENGTH 1.39 + list += "sha512"; 1.40 + #endif 1.41 ++ /* 1.42 + #ifdef OBJ_whirlpool 1.43 + list += "whirlpool"; 1.44 + #endif 1.45 ++ */ 1.46 + return list; 1.47 + } 1.48 +EOP 1.49 + status 1.50 + patch -u <<EOP 1.51 +--- qca-ossl.cpp 1.52 ++++ qca-ossl.cpp 1.53 +@@ -6812,10 +6812,12 @@ 1.54 + else if ( type == "sha512" ) 1.55 + return new opensslHashContext( EVP_sha512(), this, type); 1.56 + #endif 1.57 ++/* 1.58 + #ifdef OBJ_whirlpool 1.59 + else if ( type == "whirlpool" ) 1.60 + return new opensslHashContext( EVP_whirlpool(), this, type); 1.61 + #endif 1.62 ++*/ 1.63 + else if ( type == "pbkdf1(sha1)" ) 1.64 + return new opensslPbkdf1Context( EVP_sha1(), this, type ); 1.65 + else if ( type == "pbkdf1(md2)" ) 1.66 +EOP 1.67 + status 1.68 + 1.69 + chmod +x configure 1.70 + ./configure \ 1.71 + --qtdir=/usr/lib/qt && \ 1.72 + make -j4 && make DESTDIR=$_pkg install 1.73 +} 1.74 + 1.75 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.76 +genpkg_rules() 1.77 +{ 1.78 + mkdir -p $fs/usr/lib/qt/plugins/crypto 1.79 + cp -a $src/lib/* $fs/usr/lib/qt/plugins/crypto/ 1.80 + 1.81 + # Copy .desktop file: 1.82 +# cp -a $stuff/* $fs/usr 1.83 +}