1 |
vapier 10/12/02 22:25:53 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openssl-0.9.8q.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha5/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.374 dev-libs/openssl/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openssl/ChangeLog?rev=1.374&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openssl/ChangeLog?rev=1.374&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openssl/ChangeLog?r1=1.373&r2=1.374 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v |
20 |
retrieving revision 1.373 |
21 |
retrieving revision 1.374 |
22 |
diff -u -r1.373 -r1.374 |
23 |
--- ChangeLog 2 Dec 2010 21:33:44 -0000 1.373 |
24 |
+++ ChangeLog 2 Dec 2010 22:25:53 -0000 1.374 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-libs/openssl |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.373 2010/12/02 21:33:44 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.374 2010/12/02 22:25:53 vapier Exp $ |
30 |
+ |
31 |
+*openssl-0.9.8q (02 Dec 2010) |
32 |
+ |
33 |
+ 02 Dec 2010; Mike Frysinger <vapier@g.o> +openssl-0.9.8q.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*openssl-1.0.0c (02 Dec 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-libs/openssl/openssl-0.9.8q.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openssl/openssl-0.9.8q.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openssl/openssl-0.9.8q.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: openssl-0.9.8q.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.8q.ebuild,v 1.1 2010/12/02 22:25:53 vapier Exp $ |
51 |
|
52 |
# this ebuild is only for the libcrypto.so.0.9.8 and libssl.so.0.9.8 SONAME for ABI compat |
53 |
|
54 |
EAPI="1" |
55 |
|
56 |
inherit eutils flag-o-matic toolchain-funcs |
57 |
|
58 |
DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1" |
59 |
HOMEPAGE="http://www.openssl.org/" |
60 |
SRC_URI="mirror://openssl/source/${P}.tar.gz" |
61 |
|
62 |
LICENSE="openssl" |
63 |
SLOT="0.9.8" |
64 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
65 |
IUSE="bindist gmp kerberos sse2 test zlib" |
66 |
|
67 |
RDEPEND="gmp? ( dev-libs/gmp ) |
68 |
zlib? ( sys-libs/zlib ) |
69 |
kerberos? ( app-crypt/mit-krb5 ) |
70 |
!=dev-libs/openssl-0.9.8*:0" |
71 |
DEPEND="${RDEPEND} |
72 |
sys-apps/diffutils |
73 |
>=dev-lang/perl-5 |
74 |
test? ( sys-devel/bc )" |
75 |
|
76 |
pkg_setup() { |
77 |
# avoid collisions with openssl-1 (preserve lib) |
78 |
if ! has_version dev-libs/openssl:${SLOT} ; then |
79 |
ewarn "Removing lib{crypto,ssl}.so.0.9.8 to avoid collision with openssl-1" |
80 |
rm -f "${ROOT}"/usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8 |
81 |
fi |
82 |
} |
83 |
|
84 |
src_unpack() { |
85 |
unpack ${A} |
86 |
cd "${S}" |
87 |
|
88 |
epatch "${FILESDIR}"/${PN}-0.9.7e-gentoo.patch |
89 |
epatch "${FILESDIR}"/${PN}-0.9.8e-bsd-sparc64.patch |
90 |
epatch "${FILESDIR}"/${PN}-0.9.8h-ldflags.patch #181438 |
91 |
epatch "${FILESDIR}"/${PN}-0.9.8m-binutils.patch #289130 |
92 |
|
93 |
# disable fips in the build |
94 |
# make sure the man pages are suffixed #302165 |
95 |
# don't bother building man pages if they're disabled |
96 |
sed -i \ |
97 |
-e '/DIRS/s: fips : :g' \ |
98 |
-e '/^MANSUFFIX/s:=.*:=ssl:' \ |
99 |
-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \ |
100 |
-e $(has noman FEATURES \ |
101 |
&& echo '/^install:/s:install_docs::' \ |
102 |
|| echo '/^MANDIR=/s:=.*:=/usr/share/man:') \ |
103 |
Makefile{,.org} \ |
104 |
|| die |
105 |
# show the actual commands in the log |
106 |
sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared |
107 |
|
108 |
# allow openssl to be cross-compiled |
109 |
cp "${FILESDIR}"/gentoo.config-0.9.8 gentoo.config || die "cp cross-compile failed" |
110 |
chmod a+rx gentoo.config |
111 |
|
112 |
append-flags -fno-strict-aliasing |
113 |
append-flags -Wa,--noexecstack |
114 |
|
115 |
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906 |
116 |
sed -i '/^"debug-steve/d' Configure # 0.9.8k shipped broken |
117 |
./config --test-sanity || die "I AM NOT SANE" |
118 |
} |
119 |
|
120 |
src_compile() { |
121 |
unset APPS #197996 |
122 |
unset SCRIPTS #312551 |
123 |
|
124 |
tc-export CC AR RANLIB |
125 |
|
126 |
# Clean out patent-or-otherwise-encumbered code |
127 |
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher) |
128 |
# IDEA: 5,214,703 25/05/2010 http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm |
129 |
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography |
130 |
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2 |
131 |
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5 |
132 |
|
133 |
use_ssl() { use $1 && echo "enable-${2:-$1} ${*:3}" || echo "no-${2:-$1}" ; } |
134 |
echoit() { echo "$@" ; "$@" ; } |
135 |
|
136 |
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal") |
137 |
|
138 |
local sslout=$(./gentoo.config) |
139 |
einfo "Use configuration ${sslout:-(openssl knows best)}" |
140 |
local config="Configure" |
141 |
[[ -z ${sslout} ]] && config="config" |
142 |
echoit \ |
143 |
./${config} \ |
144 |
${sslout} \ |
145 |
$(use sse2 || echo "no-sse2") \ |
146 |
enable-camellia \ |
147 |
$(use_ssl !bindist ec) \ |
148 |
$(use_ssl !bindist idea) \ |
149 |
enable-mdc2 \ |
150 |
$(use_ssl !bindist rc5) \ |
151 |
enable-tlsext \ |
152 |
$(use_ssl gmp gmp -lgmp) \ |
153 |
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \ |
154 |
$(use_ssl zlib) \ |
155 |
--prefix=/usr \ |
156 |
--openssldir=/etc/ssl \ |
157 |
shared threads \ |
158 |
|| die "Configure failed" |
159 |
|
160 |
# Clean out hardcoded flags that openssl uses |
161 |
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \ |
162 |
-e 's:^CFLAG=::' \ |
163 |
-e 's:-fomit-frame-pointer ::g' \ |
164 |
-e 's:-O[0-9] ::g' \ |
165 |
-e 's:-march=[-a-z0-9]* ::g' \ |
166 |
-e 's:-mcpu=[-a-z0-9]* ::g' \ |
167 |
-e 's:-m[a-z0-9]* ::g' \ |
168 |
) |
169 |
sed -i \ |
170 |
-e "/^LIBDIR=/s:=.*:=$(get_libdir):" \ |
171 |
-e "/^CFLAG/s:=.*:=${CFLAG} ${CFLAGS}:" \ |
172 |
-e "/^SHARED_LDFLAGS=/s:$: ${LDFLAGS}:" \ |
173 |
Makefile || die |
174 |
|
175 |
# depend is needed to use $confopts |
176 |
emake -j1 depend || die "depend failed" |
177 |
emake -j1 build_libs || die "make build_libs failed" |
178 |
} |
179 |
|
180 |
src_test() { |
181 |
emake -j1 test || die "make test failed" |
182 |
} |
183 |
|
184 |
src_install() { |
185 |
dolib.so lib{crypto,ssl}.so.0.9.8 || die |
186 |
} |