diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2006-10-06 22:41:18 +0000 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2006-10-06 22:41:18 +0000 |
commit | ff5bfa79021ee2b97630f2f4afdc0cf13c79a8d9 (patch) | |
tree | 5b2896f1bd3e9c122fe00efde3e62baaddc61d67 /app-crypt/xca | |
parent | Stable on amd64 wrt bug #148500. (diff) | |
download | historical-ff5bfa79021ee2b97630f2f4afdc0cf13c79a8d9.tar.gz historical-ff5bfa79021ee2b97630f2f4afdc0cf13c79a8d9.tar.bz2 historical-ff5bfa79021ee2b97630f2f4afdc0cf13c79a8d9.zip |
Support gcc4, openssl-0.9.8 bug#144958
Package-Manager: portage-2.1.1
Diffstat (limited to 'app-crypt/xca')
-rw-r--r-- | app-crypt/xca/ChangeLog | 8 | ||||
-rw-r--r-- | app-crypt/xca/Manifest | 33 | ||||
-rw-r--r-- | app-crypt/xca/files/digest-xca-0.5.1-r1 | 3 | ||||
-rw-r--r-- | app-crypt/xca/files/xca-0.5.1-gcc4.patch | 48 | ||||
-rw-r--r-- | app-crypt/xca/files/xca-0.5.1-openssl.patch | 117 | ||||
-rw-r--r-- | app-crypt/xca/xca-0.5.1-r1.ebuild | 44 |
6 files changed, 238 insertions, 15 deletions
diff --git a/app-crypt/xca/ChangeLog b/app-crypt/xca/ChangeLog index d8e05e76a7cf..4b31f0d56948 100644 --- a/app-crypt/xca/ChangeLog +++ b/app-crypt/xca/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-crypt/xca # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/xca/ChangeLog,v 1.7 2006/06/11 21:58:32 jokey Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/xca/ChangeLog,v 1.8 2006/10/06 22:41:18 alonbl Exp $ + +*xca-0.5.1-r1 (06 Oct 2006) + + 06 Oct 2006; Alon Bar-Lev <alonbl@gentoo.org> +files/xca-0.5.1-gcc4.patch, + +files/xca-0.5.1-openssl.patch, +xca-0.5.1-r1.ebuild: + Support gcc4, openssl-0.9.8 bug#144958 11 Jun 2006; Markus Ullmann <jokey@gentoo.org> xca-0.5.1.ebuild: Fixing deps wrt bug #136437 diff --git a/app-crypt/xca/Manifest b/app-crypt/xca/Manifest index 1ca7cf0f5763..ba45df60abf3 100644 --- a/app-crypt/xca/Manifest +++ b/app-crypt/xca/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX Rules.mak-prefix.patch 317 RMD160 a531dd6004069e25aa221a393c367fb949d278ff SHA1 dca4dfb88a0e1ce73d9634dd52a542ce1ff6d52c SHA256 fd74fd4b175990013b14b904695010998ba8480a7943d314aa98a04f5ecfc430 MD5 a863ab8517d47d6115278df5657a8e6e files/Rules.mak-prefix.patch 317 RMD160 a531dd6004069e25aa221a393c367fb949d278ff files/Rules.mak-prefix.patch 317 @@ -9,19 +6,31 @@ AUX configure-db.patch 471 RMD160 d3a76db8e455d37e772b9f5d874f1b301b775bb6 SHA1 MD5 ab7ebbe2a038dc3100f6f4af0923946c files/configure-db.patch 471 RMD160 d3a76db8e455d37e772b9f5d874f1b301b775bb6 files/configure-db.patch 471 SHA256 25b6b57363f51f25901416c33ab7d5d1d19cf8a8de16ed7f6f9394f0bfad77e8 files/configure-db.patch 471 +AUX xca-0.5.1-gcc4.patch 2102 RMD160 a8bfd9cd9adcbf50659e0b78865a025fe28c486b SHA1 9e6342598933c14a0d704cb6ca97904f753b0be6 SHA256 e3061b1fbad16360fc7b62a8992646e3a77c9c36f042b5bd81c889547814debb +MD5 d7ceb9e30f73b77d905551ce55931171 files/xca-0.5.1-gcc4.patch 2102 +RMD160 a8bfd9cd9adcbf50659e0b78865a025fe28c486b files/xca-0.5.1-gcc4.patch 2102 +SHA256 e3061b1fbad16360fc7b62a8992646e3a77c9c36f042b5bd81c889547814debb files/xca-0.5.1-gcc4.patch 2102 +AUX xca-0.5.1-openssl.patch 4600 RMD160 94fe9b4c6d6403fe1be0d072601a2216def14fb3 SHA1 d5c06927942c9f86a77c64c7dfcd6e2048273bdf SHA256 fb81de315bf35d97187665d23a66bf024024a6e31ee36435f971b9fbf4900303 +MD5 6b400e20c459bac0ab47730795bc328e files/xca-0.5.1-openssl.patch 4600 +RMD160 94fe9b4c6d6403fe1be0d072601a2216def14fb3 files/xca-0.5.1-openssl.patch 4600 +SHA256 fb81de315bf35d97187665d23a66bf024024a6e31ee36435f971b9fbf4900303 files/xca-0.5.1-openssl.patch 4600 AUX xca-0.5.1-qt.diff 466 RMD160 b12477cce4bf73965472d87c2f1b791eeb0982c6 SHA1 fc67adf470a3f69dc0279624172446f058574297 SHA256 72967565b2100e88608b0bbdac43a7e0a1f525a2b07fc9b2138cd5b2fbfbe01e MD5 8bdc8f5dfc26313d6d167f947ce7bd8c files/xca-0.5.1-qt.diff 466 RMD160 b12477cce4bf73965472d87c2f1b791eeb0982c6 files/xca-0.5.1-qt.diff 466 SHA256 72967565b2100e88608b0bbdac43a7e0a1f525a2b07fc9b2138cd5b2fbfbe01e files/xca-0.5.1-qt.diff 466 DIST xca-0.5.1.tar.gz 287025 RMD160 7d21c94d245679c8b842e4b0e1a9c4420104017f SHA1 f8b99438cfa4da47972a69d1856ef876b06d5b40 SHA256 cf51de5760c6d34b17b379c23f17699ee597a3264b9bed0f165bd302726757cb +EBUILD xca-0.5.1-r1.ebuild 1160 RMD160 e21f0fc97bb92a1e2e4d9a0e498d24a9ce835e1a SHA1 e15027729aafc7664bfff684760698667293e6dc SHA256 03ff181c1b90e6433d8f8fdc3229f349086c0baba633edbd28ddc669c41b1f96 +MD5 642e56e25551417bca8f4643507648c0 xca-0.5.1-r1.ebuild 1160 +RMD160 e21f0fc97bb92a1e2e4d9a0e498d24a9ce835e1a xca-0.5.1-r1.ebuild 1160 +SHA256 03ff181c1b90e6433d8f8fdc3229f349086c0baba633edbd28ddc669c41b1f96 xca-0.5.1-r1.ebuild 1160 EBUILD xca-0.5.1.ebuild 1081 RMD160 036538d2f38201a6fbc56d9af18dab118edac201 SHA1 26ea0633831ea22857107f3020f9919ec68519b8 SHA256 f9bf4ef8a3094e3db83f2f002cbd11f6982aac2720608130959c87829eb7b93d MD5 c69224368997c24ca0bbd21e6f492aaf xca-0.5.1.ebuild 1081 RMD160 036538d2f38201a6fbc56d9af18dab118edac201 xca-0.5.1.ebuild 1081 SHA256 f9bf4ef8a3094e3db83f2f002cbd11f6982aac2720608130959c87829eb7b93d xca-0.5.1.ebuild 1081 -MISC ChangeLog 1293 RMD160 be4c7b6e95c797817068d6cb3d2c63cbbc9b5dbe SHA1 e4969771f8b3f227683428d8c15273261860fbc7 SHA256 68fc183581a44053273f12ad686682d64033d645753e4900567a19f0894f4cf8 -MD5 f5f1fa99d3686157c49441be400fb4a0 ChangeLog 1293 -RMD160 be4c7b6e95c797817068d6cb3d2c63cbbc9b5dbe ChangeLog 1293 -SHA256 68fc183581a44053273f12ad686682d64033d645753e4900567a19f0894f4cf8 ChangeLog 1293 +MISC ChangeLog 1498 RMD160 614752ac3e243f385399f38483fbf66d9d2bfa6f SHA1 b13e282fbad02cfb4e03f547c27144ecc586e48a SHA256 edc540db7f7705c9483647999b11ef8cfd4094f3ad4965cff42f005667872cc6 +MD5 74586cbb53deee34d08aa6f2c3bbdc43 ChangeLog 1498 +RMD160 614752ac3e243f385399f38483fbf66d9d2bfa6f ChangeLog 1498 +SHA256 edc540db7f7705c9483647999b11ef8cfd4094f3ad4965cff42f005667872cc6 ChangeLog 1498 MISC metadata.xml 224 RMD160 74db96ad8aa1d285d83ae93a9f4a767335f55c15 SHA1 d86a171d981b45e7ed0c0b3b5059d2a63c811001 SHA256 9e9ce661a9fdb45a535ad875a247b700a70745359b27533ec29a6a46fa708e86 MD5 566cf4f89e44670d0aba4a745913d748 metadata.xml 224 RMD160 74db96ad8aa1d285d83ae93a9f4a767335f55c15 metadata.xml 224 @@ -29,10 +38,6 @@ SHA256 9e9ce661a9fdb45a535ad875a247b700a70745359b27533ec29a6a46fa708e86 metadata MD5 d7b2b38fcc07e1225a416664d3f05252 files/digest-xca-0.5.1 229 RMD160 68ba6a21b74d54e522d8f9c1193e62c8a4a06276 files/digest-xca-0.5.1 229 SHA256 c5dc0a65766c285befb93a3834c4acda2831f81515b2b000c040e62e80fba4f5 files/digest-xca-0.5.1 229 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.3 (GNU/Linux) - -iD8DBQFEjJIVz974XjDVpbkRAorYAKCT/QhZIXtGUOyskmQCMPbEe0Sr3wCdGnRt -ColvqYH2Boyqh2BY0HpEqaI= -=B4Hh ------END PGP SIGNATURE----- +MD5 d7b2b38fcc07e1225a416664d3f05252 files/digest-xca-0.5.1-r1 229 +RMD160 68ba6a21b74d54e522d8f9c1193e62c8a4a06276 files/digest-xca-0.5.1-r1 229 +SHA256 c5dc0a65766c285befb93a3834c4acda2831f81515b2b000c040e62e80fba4f5 files/digest-xca-0.5.1-r1 229 diff --git a/app-crypt/xca/files/digest-xca-0.5.1-r1 b/app-crypt/xca/files/digest-xca-0.5.1-r1 new file mode 100644 index 000000000000..f6b8229164e1 --- /dev/null +++ b/app-crypt/xca/files/digest-xca-0.5.1-r1 @@ -0,0 +1,3 @@ +MD5 24e0289c189b8db2f1f15a4ddac1b1c3 xca-0.5.1.tar.gz 287025 +RMD160 7d21c94d245679c8b842e4b0e1a9c4420104017f xca-0.5.1.tar.gz 287025 +SHA256 cf51de5760c6d34b17b379c23f17699ee597a3264b9bed0f165bd302726757cb xca-0.5.1.tar.gz 287025 diff --git a/app-crypt/xca/files/xca-0.5.1-gcc4.patch b/app-crypt/xca/files/xca-0.5.1-gcc4.patch new file mode 100644 index 000000000000..1a81ae8eb4f5 --- /dev/null +++ b/app-crypt/xca/files/xca-0.5.1-gcc4.patch @@ -0,0 +1,48 @@ +diff -urNp xca-0.5.1.org/lib/asn1time.h xca-0.5.1/lib/asn1time.h +--- xca-0.5.1.org/lib/asn1time.h 2003-08-06 11:15:37.000000000 +0300 ++++ xca-0.5.1/lib/asn1time.h 2006-09-24 21:56:09.000000000 +0300 +@@ -75,7 +75,7 @@ class a1time + QString toPlain() const; + QString toSortable() const; + int ymdg(int *y, int *m, int *d, int *g) const; +- int a1time::ymdg(int *y, int *m, int *d, int *h, int *M, int *s, int *g) const; ++ int ymdg(int *y, int *m, int *d, int *h, int *M, int *s, int *g) const; + ASN1_TIME *get() const; + ASN1_TIME *get_utc() const; + a1time &now(int delta = 0); +diff -urNp xca-0.5.1.org/lib/db_crl.h xca-0.5.1/lib/db_crl.h +--- xca-0.5.1.org/lib/db_crl.h 2004-04-16 01:31:31.000000000 +0300 ++++ xca-0.5.1/lib/db_crl.h 2006-09-24 21:56:19.000000000 +0300 +@@ -69,7 +69,7 @@ class db_crl: public db_base + void preprocess(); + void inToCont(pki_base *pki); + pki_base *insert(pki_base *item); +- void db_crl::deletePKI(pki_base *pki); ++ void deletePKI(pki_base *pki); + signals: + void updateCertView(); + }; +diff -urNp xca-0.5.1.org/lib/db_x509.h xca-0.5.1/lib/db_x509.h +--- xca-0.5.1.org/lib/db_x509.h 2004-02-18 02:03:05.000000000 +0200 ++++ xca-0.5.1/lib/db_x509.h 2006-09-24 21:57:08.000000000 +0300 +@@ -84,7 +84,7 @@ class db_x509: public db_x509super + void writeAllCerts(const QString fname, bool onlyTrusted); + pki_x509 *getByIssSerial(const pki_x509 *issuer, const a1int &a); + pki_x509 *getBySubject(const x509name &xname, pki_x509 *last = NULL); +- pki_base *db_x509::insert(pki_base *item); ++ pki_base *insert(pki_base *item); + public slots: + void revokeCert(const x509rev &revok, const pki_x509 *issuer); + +diff -urNp xca-0.5.1.org/lib/pki_key.h xca-0.5.1/lib/pki_key.h +--- xca-0.5.1.org/lib/pki_key.h 2003-12-10 08:43:05.000000000 +0200 ++++ xca-0.5.1/lib/pki_key.h 2006-09-24 21:56:30.000000000 +0300 +@@ -83,7 +83,7 @@ class pki_key: public pki_base + pki_key(const QString name = "", int type = EVP_PKEY_RSA); + pki_key(EVP_PKEY *pkey); + // copy constructor +- pki_key::pki_key(const pki_key *pk); ++ pki_key(const pki_key *pk); + /* destructor */ + ~pki_key(); + diff --git a/app-crypt/xca/files/xca-0.5.1-openssl.patch b/app-crypt/xca/files/xca-0.5.1-openssl.patch new file mode 100644 index 000000000000..3b3d312e8c4c --- /dev/null +++ b/app-crypt/xca/files/xca-0.5.1-openssl.patch @@ -0,0 +1,117 @@ +diff -urNp xca-0.5.1.org/lib/asn1time.cpp xca-0.5.1/lib/asn1time.cpp +--- xca-0.5.1.org/lib/asn1time.cpp 2003-12-14 21:11:33.000000000 +0200 ++++ xca-0.5.1/lib/asn1time.cpp 2006-09-24 22:22:29.000000000 +0300 +@@ -250,7 +250,7 @@ unsigned char *a1time::d2i(unsigned char + unsigned char *mp = p; + if (time) + ASN1_TIME_free(time); +- time = d2i_ASN1_TIME(NULL, &mp, size); ++ time = d2i_ASN1_TIME(NULL, (const unsigned char **)&mp, size); + return mp; + } + +diff -urNp xca-0.5.1.org/lib/pki_crl.cpp xca-0.5.1/lib/pki_crl.cpp +--- xca-0.5.1.org/lib/pki_crl.cpp 2004-04-20 00:19:35.000000000 +0300 ++++ xca-0.5.1/lib/pki_crl.cpp 2006-09-24 22:49:05.000000000 +0300 +@@ -131,7 +131,7 @@ pki_crl::~pki_crl() + void pki_crl::fromData(unsigned char *p, int size) + { + X509_CRL *crl_sik = crl; +- crl = d2i_X509_CRL(NULL, &p, size); ++ crl = d2i_X509_CRL(NULL, (const unsigned char **)&p, size); + if (crl) + X509_CRL_free(crl_sik); + else +diff -urNp xca-0.5.1.org/lib/pki_key.cpp xca-0.5.1/lib/pki_key.cpp +--- xca-0.5.1.org/lib/pki_key.cpp 2004-02-18 02:03:06.000000000 +0200 ++++ xca-0.5.1/lib/pki_key.cpp 2006-09-24 22:58:03.000000000 +0300 +@@ -107,7 +107,7 @@ pki_key::pki_key(const pki_key *pk) + if (pk == NULL) return; + key->type = pk->key->type; + if (key->type == EVP_PKEY_RSA) { +- key->pkey.rsa=((RSA *)ASN1_dup( (int (*)())i2d_RSAPrivateKey, (char *(*)())d2i_RSAPrivateKey,(char *)pk->key->pkey.rsa)); ++ key->pkey.rsa=ASN1_dup_of_const(RSA, i2d_RSAPrivateKey, d2i_RSAPrivateKey, pk->key->pkey.rsa); + } + // TODO add DSA support..... + openssl_error(); +@@ -216,7 +216,7 @@ void pki_key::fromData(unsigned char *p, + rsakey = d2i_RSAPrivateKey(NULL, &pdec, decsize); + #endif + if (ign_openssl_error()) { +- rsakey = d2i_RSA_PUBKEY(NULL, &sik, decsize); ++ rsakey = d2i_RSA_PUBKEY(NULL, (const unsigned char **)&sik, decsize); + } + openssl_error(); + if (rsakey) EVP_PKEY_assign_RSA(key, rsakey); +diff -urNp xca-0.5.1.org/lib/pki_x509.cpp xca-0.5.1/lib/pki_x509.cpp +--- xca-0.5.1.org/lib/pki_x509.cpp 2004-02-18 02:03:06.000000000 +0200 ++++ xca-0.5.1/lib/pki_x509.cpp 2006-09-24 22:24:30.000000000 +0300 +@@ -276,7 +276,7 @@ void pki_x509::fromData(unsigned char *p + version = intFromData(&p1); + if (version >=1 || version <= 4) { + sCert = intFromData(&p1); +- cert = d2i_X509(NULL, &p1, sCert); ++ cert = d2i_X509(NULL, (const unsigned char **)&p1, sCert); + trust = intFromData(&p1); + sRev = intFromData(&p1); + if (sRev) { +@@ -314,7 +314,7 @@ void pki_x509::fromData(unsigned char *p + // version 3 did save a recent date :-(( + } + else { // old version +- cert = d2i_X509(NULL, &p, size); ++ cert = d2i_X509(NULL, (const unsigned char **)&p, size); + revoked = NULL; + trust = 1; + efftrust = 1; +diff -urNp xca-0.5.1.org/lib/pki_x509req.cpp xca-0.5.1/lib/pki_x509req.cpp +--- xca-0.5.1.org/lib/pki_x509req.cpp 2004-02-05 22:17:55.000000000 +0200 ++++ xca-0.5.1/lib/pki_x509req.cpp 2006-09-24 22:51:19.000000000 +0300 +@@ -134,9 +134,9 @@ void pki_x509req::fromData(unsigned char + { + unsigned char *ps = p; + privkey = NULL; +- request = d2i_X509_REQ(&request, &ps, size); ++ request = d2i_X509_REQ(&request, (const unsigned char **)&ps, size); + if (ps - p < size) +- spki = d2i_NETSCAPE_SPKI(NULL, &ps , size + p - ps); ++ spki = d2i_NETSCAPE_SPKI(NULL, (const unsigned char **)&ps , size + p - ps); + openssl_error(); + } + +@@ -257,7 +257,7 @@ void pki_x509req::setSPKIFromData(unsign + { + NETSCAPE_SPKI *spki = NULL; + +- spki = d2i_NETSCAPE_SPKI(NULL,&p,size); ++ spki = d2i_NETSCAPE_SPKI(NULL,(const unsigned char **)&p,size); + if (spki == NULL) goto err; + + set_spki (spki); +diff -urNp xca-0.5.1.org/lib/x509name.cpp xca-0.5.1/lib/x509name.cpp +--- xca-0.5.1.org/lib/x509name.cpp 2003-12-12 01:41:09.000000000 +0200 ++++ xca-0.5.1/lib/x509name.cpp 2006-09-24 22:58:52.000000000 +0300 +@@ -149,7 +149,7 @@ unsigned char *x509name::d2i(unsigned ch + { + unsigned char *mp = p; + X509_NAME *xn_sik = xn; +- xn = d2i_X509_NAME(NULL, &mp, size); ++ xn = d2i_X509_NAME(NULL, (const unsigned char **)&mp, size); + if (xn == NULL) + xn = xn_sik; + else +diff -urNp xca-0.5.1.org/lib/x509rev.cpp xca-0.5.1/lib/x509rev.cpp +--- xca-0.5.1.org/lib/x509rev.cpp 2003-11-24 15:42:44.000000000 +0200 ++++ xca-0.5.1/lib/x509rev.cpp 2006-09-24 22:20:09.000000000 +0300 +@@ -50,9 +50,8 @@ + + #include "x509rev.h" + +-#define X509_REVOKED_dup(x5r) (X509_REVOKED *)ASN1_dup((int (*)())i2d_X509_REVOKED, \ +- (char *(*)())d2i_X509_REVOKED,(char *)x5r) +- ++#define X509_REVOKED_dup(x5r) ASN1_dup_of (X509_REVOKED, i2d_X509_REVOKED, d2i_X509_REVOKED, x5r) ++ + x509rev::x509rev() + { + rev = X509_REVOKED_new(); diff --git a/app-crypt/xca/xca-0.5.1-r1.ebuild b/app-crypt/xca/xca-0.5.1-r1.ebuild new file mode 100644 index 000000000000..b6dee57d2143 --- /dev/null +++ b/app-crypt/xca/xca-0.5.1-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/xca/xca-0.5.1-r1.ebuild,v 1.1 2006/10/06 22:41:18 alonbl Exp $ + +inherit eutils kde toolchain-funcs + +DESCRIPTION="a graphical user interface to OpenSSL, RSA public keys, certificates, signing requests and revokation lists" +HOMEPAGE="http://www.hohnstaedt.de/xca.html" +SRC_URI="mirror://sourceforge/xca/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND=">=dev-libs/openssl-0.9.8 + =x11-libs/qt-3* + >=sys-libs/db-4.1" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-gcc4.patch + epatch ${FILESDIR}/${P}-openssl.patch + epatch ${FILESDIR}/${P}-qt.diff + epatch ${FILESDIR}/configure-db.patch + echo "inst_prefix=/usr" >> Local.mak + epatch ${FILESDIR}/Rules.mak-prefix.patch +} + +src_compile() { + kde_src_compile nothing + CC=$(tc-getCC) prefix=/usr ./configure || die "configure died" + inst_prefix=/usr emake || die "emake failed" +} + +src_install() { + make destdir=${D} mandir=share/man install + + dodoc README CREDITS AUTHORS COPYRIGHT + + insinto /etc/xca + doins misc/*.txt +} |