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