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