1 |
vapier 09/11/05 19:56:16 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openssl-0.9.8l.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.2_rc46/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.296 dev-libs/openssl/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/openssl/ChangeLog?rev=1.296&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/openssl/ChangeLog?rev=1.296&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/openssl/ChangeLog?r1=1.295&r2=1.296 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v |
19 |
retrieving revision 1.295 |
20 |
retrieving revision 1.296 |
21 |
diff -u -r1.295 -r1.296 |
22 |
--- ChangeLog 1 Nov 2009 16:39:15 -0000 1.295 |
23 |
+++ ChangeLog 5 Nov 2009 19:56:15 -0000 1.296 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-libs/openssl |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.295 2009/11/01 16:39:15 nixnut Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.296 2009/11/05 19:56:15 vapier Exp $ |
29 |
+ |
30 |
+*openssl-0.9.8l (05 Nov 2009) |
31 |
+ |
32 |
+ 05 Nov 2009; Mike Frysinger <vapier@g.o> +openssl-0.9.8l.ebuild: |
33 |
+ Version bump. |
34 |
|
35 |
01 Nov 2009; nixnut <nixnut@g.o> openssl-0.9.8k-r1.ebuild: |
36 |
ppc stable #290545 |
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-libs/openssl/openssl-0.9.8l.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/openssl/openssl-0.9.8l.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/openssl/openssl-0.9.8l.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: openssl-0.9.8l.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.8l.ebuild,v 1.1 2009/11/05 19:56:15 vapier Exp $ |
50 |
|
51 |
inherit eutils flag-o-matic toolchain-funcs |
52 |
|
53 |
DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1" |
54 |
HOMEPAGE="http://www.openssl.org/" |
55 |
SRC_URI="mirror://openssl/source/${P}.tar.gz" |
56 |
|
57 |
LICENSE="openssl" |
58 |
SLOT="0" |
59 |
KEYWORDS="-* ~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
60 |
IUSE="bindist gmp kerberos sse2 test zlib" |
61 |
|
62 |
RDEPEND="gmp? ( dev-libs/gmp ) |
63 |
zlib? ( sys-libs/zlib ) |
64 |
kerberos? ( app-crypt/mit-krb5 )" |
65 |
DEPEND="${RDEPEND} |
66 |
sys-apps/diffutils |
67 |
>=dev-lang/perl-5 |
68 |
test? ( sys-devel/bc )" |
69 |
PDEPEND="app-misc/ca-certificates" |
70 |
|
71 |
src_unpack() { |
72 |
unpack ${A} |
73 |
cd "${S}" |
74 |
|
75 |
epatch "${FILESDIR}"/${PN}-0.9.7e-gentoo.patch |
76 |
epatch "${FILESDIR}"/${PN}-0.9.7-alpha-default-gcc.patch |
77 |
#Forward port of the -b patch. Parallel make fails though. |
78 |
epatch "${FILESDIR}"/${PN}-0.9.8j-parallel-build.patch |
79 |
epatch "${FILESDIR}"/${PN}-0.9.8-make-engines-dir.patch |
80 |
epatch "${FILESDIR}"/${PN}-0.9.8k-toolchain.patch |
81 |
epatch "${FILESDIR}"/${PN}-0.9.8b-doc-updates.patch |
82 |
epatch "${FILESDIR}"/${PN}-0.9.8-makedepend.patch #149583 |
83 |
epatch "${FILESDIR}"/${PN}-0.9.8e-make.patch #146316 |
84 |
#epatch "${FILESDIR}"/${PN}-0.9.8e-bsd-sparc64.patch |
85 |
epatch "${FILESDIR}"/${PN}-0.9.8g-sslv3-no-tlsext.patch |
86 |
#epatch "${FILESDIR}"/${PN}-0.9.8h-ldflags.patch #181438 |
87 |
sed -i -e '/DIRS/ s/ fips / /g' Makefile{,.org} \ |
88 |
|| die "Removing fips from openssl failed." |
89 |
|
90 |
# allow openssl to be cross-compiled |
91 |
cp "${FILESDIR}"/gentoo.config-0.9.8 gentoo.config || die "cp cross-compile failed" |
92 |
chmod a+rx gentoo.config |
93 |
|
94 |
# Don't build manpages if we don't want them |
95 |
has noman FEATURES \ |
96 |
&& sed -i '/^install:/s:install_docs::' Makefile.org \ |
97 |
|| sed -i '/^MANDIR=/s:=.*:=/usr/share/man:' Makefile.org |
98 |
|
99 |
# Try to derice users and work around broken ass toolchains |
100 |
if [[ $(gcc-major-version) == "3" ]] ; then |
101 |
filter-flags -fprefetch-loop-arrays -freduce-all-givs -funroll-loops |
102 |
[[ $(tc-arch) == "ppc64" ]] && replace-flags -O? -O |
103 |
fi |
104 |
[[ $(tc-arch) == ppc* ]] && append-flags -fno-strict-aliasing |
105 |
append-flags -Wa,--noexecstack |
106 |
|
107 |
# using a library directory other than lib requires some magic |
108 |
sed -i \ |
109 |
-e "s+\(\$(INSTALL_PREFIX)\$(INSTALLTOP)\)/lib+\1/$(get_libdir)+g" \ |
110 |
-e "s+libdir=\$\${exec_prefix}/lib+libdir=\$\${exec_prefix}/$(get_libdir)+g" \ |
111 |
Makefile.org engines/Makefile \ |
112 |
|| die "sed failed" |
113 |
sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906 |
114 |
sed -i '/^"debug-steve/d' Configure # 0.9.8k shipped broken |
115 |
./config --test-sanity || die "I AM NOT SANE" |
116 |
} |
117 |
|
118 |
src_compile() { |
119 |
unset APPS #197996 |
120 |
|
121 |
tc-export CC AR RANLIB |
122 |
|
123 |
# Clean out patent-or-otherwise-encumbered code |
124 |
# Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher) |
125 |
# IDEA: 5,214,703 25/05/2010 http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm |
126 |
# EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography |
127 |
# MDC2: Expired http://en.wikipedia.org/wiki/MDC-2 |
128 |
# RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5 |
129 |
|
130 |
use_ssl() { use $1 && echo "enable-${2:-$1} ${*:3}" || echo "no-${2:-$1}" ; } |
131 |
echoit() { echo "$@" ; "$@" ; } |
132 |
|
133 |
local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal") |
134 |
|
135 |
local sslout=$(./gentoo.config) |
136 |
einfo "Use configuration ${sslout:-(openssl knows best)}" |
137 |
local config="Configure" |
138 |
[[ -z ${sslout} ]] && config="config" |
139 |
echoit \ |
140 |
./${config} \ |
141 |
${sslout} \ |
142 |
$(use sse2 || echo "no-sse2") \ |
143 |
enable-camellia \ |
144 |
$(use_ssl !bindist ec) \ |
145 |
$(use_ssl !bindist idea) \ |
146 |
enable-mdc2 \ |
147 |
$(use_ssl !bindist rc5) \ |
148 |
enable-tlsext \ |
149 |
$(use_ssl gmp) \ |
150 |
$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \ |
151 |
$(use_ssl zlib) \ |
152 |
--prefix=/usr \ |
153 |
--openssldir=/etc/ssl \ |
154 |
shared threads \ |
155 |
|| die "Configure failed" |
156 |
|
157 |
# Clean out hardcoded flags that openssl uses |
158 |
local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \ |
159 |
-e 's:^CFLAG=::' \ |
160 |
-e 's:-fomit-frame-pointer ::g' \ |
161 |
-e 's:-O[0-9] ::g' \ |
162 |
-e 's:-march=[-a-z0-9]* ::g' \ |
163 |
-e 's:-mcpu=[-a-z0-9]* ::g' \ |
164 |
-e 's:-m[a-z0-9]* ::g' \ |
165 |
) |
166 |
sed -i \ |
167 |
-e "/^CFLAG/s:=.*:=${CFLAG} ${CFLAGS}:" \ |
168 |
-e "/^SHARED_LDFLAGS=/s:$: ${LDFLAGS}:" \ |
169 |
Makefile || die |
170 |
|
171 |
# depend is needed to use $confopts |
172 |
# rehash is needed to prep the certs/ dir |
173 |
emake -j1 depend || die "depend failed" |
174 |
emake -j1 all rehash || die "make all failed" |
175 |
} |
176 |
|
177 |
src_test() { |
178 |
emake -j1 test || die "make test failed" |
179 |
} |
180 |
|
181 |
src_install() { |
182 |
emake -j1 INSTALL_PREFIX="${D}" install || die |
183 |
dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el |
184 |
dohtml doc/* |
185 |
|
186 |
# create the certs directory |
187 |
dodir /etc/ssl/certs |
188 |
cp -RP certs/* "${D}"/etc/ssl/certs/ || die "failed to install certs" |
189 |
rm -r "${D}"/etc/ssl/certs/{demo,expired} |
190 |
|
191 |
# Namespace openssl programs to prevent conflicts with other man pages |
192 |
cd "${D}"/usr/share/man |
193 |
local m d s |
194 |
for m in $(find . -type f | xargs grep -L '#include') ; do |
195 |
d=${m%/*} ; d=${d#./} ; m=${m##*/} |
196 |
[[ ${m} == openssl.1* ]] && continue |
197 |
[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!" |
198 |
mv ${d}/{,ssl-}${m} |
199 |
ln -s ssl-${m} ${d}/openssl-${m} |
200 |
# locate any symlinks that point to this man page ... we assume |
201 |
# that any broken links are due to the above renaming |
202 |
for s in $(find -L ${d} -type l) ; do |
203 |
s=${s##*/} |
204 |
rm -f ${d}/${s} |
205 |
ln -s ssl-${m} ${d}/ssl-${s} |
206 |
ln -s ssl-${s} ${d}/openssl-${s} |
207 |
done |
208 |
done |
209 |
[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :(" |
210 |
|
211 |
dodir /etc/sandbox.d #254521 |
212 |
echo 'SANDBOX_PREDICT="/dev/crypto"' > "${D}"/etc/sandbox.d/10openssl |
213 |
|
214 |
diropts -m0700 |
215 |
keepdir /etc/ssl/private |
216 |
} |
217 |
|
218 |
pkg_preinst() { |
219 |
preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.{6,7} |
220 |
} |
221 |
|
222 |
pkg_postinst() { |
223 |
preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.{6,7} |
224 |
} |