wok-undigest annotate Qt4-qca-ossl/receipt @ rev 168

Add: qTwitter v0.10.0 (Twitter/StatusNet client) and deps:
- Qt4-QCA v2.0.2 (Qt Crypto Arch)
- Qt4-QCA-OSSL v2.0.0-beta3 (SSL plug-in)
- QoAuth v1.0 (Qt oAuth) -- may need fixes on file locations
author Ben Arnold <ben@seawolfsanctuary.com>
date Sat Sep 04 21:46:16 2010 +0100 (2010-09-04)
parents
children 804453aa6c68
rev   line source
ben@168 1 # SliTaz package receipt.
ben@168 2
ben@168 3 NAME="qca-ossl"
ben@168 4 PACKAGE="Qt4-$NAME"
ben@168 5 MAJORVERSION="2.0"
ben@168 6 VERSION="2.0.0-beta3"
ben@168 7 CATEGORY="development"
ben@168 8 SHORT_DESC="OpenSSL plug-in for the Qt Cryptographic Architecture (QCA)."
ben@168 9 MAINTAINER="ben@seawolfsanctuary.com"
ben@168 10 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
ben@168 11 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
ben@168 12 libQtOpenGL libQtSql libQtWebkit Qt4-qca openssl"
ben@168 13 BUILD_DEPENDS="xorg-libX11-dev dbus-dev openssl-dev Qt4-dev Qt4-qca \
ben@168 14 slitaz-toolchain"
ben@168 15 TARBALL="$NAME-$VERSION.tar.bz2"
ben@168 16 WEB_SITE="http://delta.affinix.com/$NAME"
ben@168 17 WGET_URL="http://delta.affinix.com/download/qca/$MAJORVERSION/plugins/$TARBALL"
ben@168 18
ben@168 19 # Rules to configure and make the package.
ben@168 20 compile_rules()
ben@168 21 {
ben@168 22 cd $NAME-$VERSION
ben@168 23
ben@168 24 patch -u <<EOP
ben@168 25 --- qca-ossl.cpp
ben@168 26 +++ qca-ossl.cpp
ben@168 27 @@ -330,1 +330,1 @@
ben@168 28 - X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, "hash");
ben@168 29 + X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, (char *)"hash");
ben@168 30 EOP
ben@168 31 status
ben@168 32 patch -u <<EOP
ben@168 33 --- qca-ossl.cpp
ben@168 34 +++ qca-ossl.cpp
ben@168 35 @@ -6597,9 +6597,11 @@
ben@168 36 #ifdef SHA512_DIGEST_LENGTH
ben@168 37 list += "sha512";
ben@168 38 #endif
ben@168 39 + /*
ben@168 40 #ifdef OBJ_whirlpool
ben@168 41 list += "whirlpool";
ben@168 42 #endif
ben@168 43 + */
ben@168 44 return list;
ben@168 45 }
ben@168 46 EOP
ben@168 47 status
ben@168 48 patch -u <<EOP
ben@168 49 --- qca-ossl.cpp
ben@168 50 +++ qca-ossl.cpp
ben@168 51 @@ -6812,10 +6812,12 @@
ben@168 52 else if ( type == "sha512" )
ben@168 53 return new opensslHashContext( EVP_sha512(), this, type);
ben@168 54 #endif
ben@168 55 +/*
ben@168 56 #ifdef OBJ_whirlpool
ben@168 57 else if ( type == "whirlpool" )
ben@168 58 return new opensslHashContext( EVP_whirlpool(), this, type);
ben@168 59 #endif
ben@168 60 +*/
ben@168 61 else if ( type == "pbkdf1(sha1)" )
ben@168 62 return new opensslPbkdf1Context( EVP_sha1(), this, type );
ben@168 63 else if ( type == "pbkdf1(md2)" )
ben@168 64 EOP
ben@168 65 status
ben@168 66
ben@168 67 chmod +x configure
ben@168 68 ./configure \
ben@168 69 --qtdir=/usr/lib/qt && \
ben@168 70 make -j4 && make DESTDIR=$_pkg install
ben@168 71 }
ben@168 72
ben@168 73 # Rules to gen a SliTaz package suitable for Tazpkg.
ben@168 74 genpkg_rules()
ben@168 75 {
ben@168 76 mkdir -p $fs/usr/lib/qt/plugins/crypto
ben@168 77 cp -a $WOK/$PACKAGE/$NAME-$VERSION/lib/* $fs/usr/lib/qt/plugins/crypto/
ben@168 78
ben@168 79 # Copy .desktop file:
ben@168 80 # cp -a $WOK/$PACKAGE/stuff/* $fs/usr
ben@168 81 }