diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-02 04:35:40 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-10-02 04:35:40 +0000 |
commit | a1b65cf671b38452d9ab66570551bc5c6712fc3d (patch) | |
tree | c1d9657ad9b88bc00d2304deb71a2d09f4df6c21 /dev-libs/openssl | |
parent | Masking www-apps/dotproject for security reasons (bug #236518) (diff) | |
download | historical-a1b65cf671b38452d9ab66570551bc5c6712fc3d.tar.gz historical-a1b65cf671b38452d9ab66570551bc5c6712fc3d.tar.bz2 historical-a1b65cf671b38452d9ab66570551bc5c6712fc3d.zip |
Version bump #239030 by Lars (Polynomial-C).
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26.2 x86_64
Diffstat (limited to 'dev-libs/openssl')
-rw-r--r-- | dev-libs/openssl/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/openssl/Manifest | 10 | ||||
-rw-r--r-- | dev-libs/openssl/openssl-0.9.8i.ebuild | 184 |
3 files changed, 196 insertions, 5 deletions
diff --git a/dev-libs/openssl/ChangeLog b/dev-libs/openssl/ChangeLog index 2580b334e25c..d7a5595364f4 100644 --- a/dev-libs/openssl/ChangeLog +++ b/dev-libs/openssl/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/openssl # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.268 2008/06/21 05:36:54 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.269 2008/10/02 04:35:40 vapier Exp $ + +*openssl-0.9.8i (02 Oct 2008) + + 02 Oct 2008; Mike Frysinger <vapier@gentoo.org> +openssl-0.9.8i.ebuild: + Version bump #239030 by Lars (Polynomial-C). *openssl-0.9.8h-r1 (21 Jun 2008) diff --git a/dev-libs/openssl/Manifest b/dev-libs/openssl/Manifest index f7448adbf208..c33383761d8e 100644 --- a/dev-libs/openssl/Manifest +++ b/dev-libs/openssl/Manifest @@ -27,6 +27,7 @@ DIST openssl-0.9.8e.tar.gz 3341665 RMD160 c1a498606dc0fc7219376b950fab6b53687466 DIST openssl-0.9.8f.tar.gz 3357445 RMD160 ad0d9d8b238dbede1aa6b76256d11038bd281e05 SHA1 e8716370093b112763ace0c66c06a0d6049e413b SHA256 be5afd386f5d7acff019acaf46cdaad89a8b42cc9cee85d1adb2774627f32b42 DIST openssl-0.9.8g.tar.gz 3354792 RMD160 f080a32da9becdc8b98c38744d62c6fd8664f603 SHA1 4e9c5ced466715d18fd924de79bde5c15da80fa1 SHA256 0e26886845de95716c9f1b9b75c0e06e9d4075d2bdc9e11504eaa5f7ee901cf0 DIST openssl-0.9.8h.tar.gz 3439981 RMD160 676337da20c3fc3fc4001a79c6d28589cba719cd SHA1 ced4f2da24a202e01ea22bef30ebc8aee274de86 SHA256 224e1ca3aeeda8acc72e5c48b34843904b9d585aaadb4d5a15524c25f6c6a1ce +DIST openssl-0.9.8i.tar.gz 3459643 RMD160 596d767345d7c74b39c48f9b725c2c9d2641d7e4 SHA1 b2e029cfb68bf32eae997d60317a40945db5a65f SHA256 e8fc5fcfb715ffe925b2982aa9ca287832a93495d7fff03f17f6449f0732718c EBUILD openssl-0.9.8e-r3.ebuild 5832 RMD160 ca8af0f3e4a375e49c217858798a7f88e3bc7cfb SHA1 215342689ba7e709e803973b89aaa290abbf8605 SHA256 5f816d62ebf69d57e5d048071d3e8a3bbd1135fdf21068ccd7a595c6f98a4b01 EBUILD openssl-0.9.8e-r4.ebuild 6557 RMD160 ad9946a39fd4beb295b35a4b10bfc06fc0c77099 SHA1 e62202b0ec42ce354413fbf486870bdf6df95867 SHA256 c6a8090276ba069dc50cb21fe07437166f0cd1d456e8d9fd20e82bc732ec3559 EBUILD openssl-0.9.8f.ebuild 6215 RMD160 7af3dc8ed2b30206ff44e8d80af0c585cc7cea51 SHA1 12dc43a8baf204c3ac724344652c95ce0f8f4bed SHA256 4ffbdf05b8ea00618d3868a8a265220ff25bb5b1d8d58b150b3b6a5868e03fca @@ -35,12 +36,13 @@ EBUILD openssl-0.9.8g-r2.ebuild 6189 RMD160 f4ce4514b7e6636d23d9897742527c000203 EBUILD openssl-0.9.8g.ebuild 6075 RMD160 b00d2ee7d97f3f5ae4bfb45c83ce439db9e9e05f SHA1 dedb66afe8c2e502cfd44507517f821a27e5d2eb SHA256 25ea50177ea4619921bcd0e93dcea1c04d135b4a6eb26c6ed4097491e1485f60 EBUILD openssl-0.9.8h-r1.ebuild 6186 RMD160 84ff203d9d8ecee52a3004c230a9f8cccc3afdf1 SHA1 4f508cfad93dfada141aa663d15099436252a7f1 SHA256 06551d788566f427a1e682d0cbde55b4913ad9e48c4722c60e4e72df92fe309c EBUILD openssl-0.9.8h.ebuild 6070 RMD160 3921448846496f393ce2bde48e0f9917632a3f92 SHA1 a37bae8e54f6fdcb9851efd31a794ceca81132c5 SHA256 3859370a56a85b08a3fbe893be7b4c728b4c02ff7f48d414645056da87d97e48 -MISC ChangeLog 40235 RMD160 df2bf7684d2bac324342275b53db995c43f69606 SHA1 caa6956c698e59211733d8ef315769c733b3e40c SHA256 bfbe5b77364df7a0b3ed869f4a1bed37aaa4a3ffc3fd2c0c2117f38ab1b2eb23 +EBUILD openssl-0.9.8i.ebuild 6127 RMD160 791c036f860f91ea655c57dc01b36ae7ec4338fc SHA1 83efa8185a5ecf7e19e511fde0d8854bb7a045a3 SHA256 f88f05a1f4f1fb853d24d4f59f09cf4768a284c7615ab11144e27ed2cc0bb5e0 +MISC ChangeLog 40388 RMD160 a41312b79f034f5ea974fb3c61e43b8b626e34cf SHA1 cdc74c4c779e9aeb3a5de3b3c10bf993351e23a2 SHA256 78023dcbd8bbce5dcb299efc09e04b25e8cb0767a6478f92d7a7b89e2199c1f9 MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) -iEYEARECAAYFAkhck3wACgkQ67wieSYcaxclbgCgtiRwKX0ZXu1VMjb2GQ6yesM9 -wWcAnRnzCC5+cUgBYHOLl6LrB9P3R/HK -=8mtt +iEYEARECAAYFAkjkT6IACgkQ67wieSYcaxcOnACgs1IHXdTX+s/pDsr0U9ZQfEDX +RlQAnR+0dTmnm88SC5x9G65Cj3L78GqE +=98Yi -----END PGP SIGNATURE----- diff --git a/dev-libs/openssl/openssl-0.9.8i.ebuild b/dev-libs/openssl/openssl-0.9.8i.ebuild new file mode 100644 index 000000000000..816aa01505a7 --- /dev/null +++ b/dev-libs/openssl/openssl-0.9.8i.ebuild @@ -0,0 +1,184 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.8i.ebuild,v 1.1 2008/10/02 04:35:40 vapier Exp $ + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1" +HOMEPAGE="http://www.openssl.org/" +SRC_URI="mirror://openssl/source/${P}.tar.gz" + +LICENSE="openssl" +SLOT="0" +KEYWORDS="-* ~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="bindist gmp kerberos sse2 test zlib" + +RDEPEND="gmp? ( dev-libs/gmp ) + zlib? ( sys-libs/zlib ) + kerberos? ( app-crypt/mit-krb5 )" +DEPEND="${RDEPEND} + sys-apps/diffutils + >=dev-lang/perl-5 + test? ( sys-devel/bc )" +PDEPEND="app-misc/ca-certificates" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-0.9.7e-gentoo.patch + epatch "${FILESDIR}"/${PN}-0.9.7-alpha-default-gcc.patch + epatch "${FILESDIR}"/${PN}-0.9.8b-parallel-build.patch + epatch "${FILESDIR}"/${PN}-0.9.8-make-engines-dir.patch + epatch "${FILESDIR}"/${PN}-0.9.8-toolchain.patch + epatch "${FILESDIR}"/${PN}-0.9.8b-doc-updates.patch + epatch "${FILESDIR}"/${PN}-0.9.8-makedepend.patch #149583 + epatch "${FILESDIR}"/${PN}-0.9.8e-make.patch #146316 + #epatch "${FILESDIR}"/${PN}-0.9.8e-bsd-sparc64.patch + epatch "${FILESDIR}"/${PN}-0.9.8g-sslv3-no-tlsext.patch + epatch "${FILESDIR}"/${PN}-0.9.8h-ldflags.patch #181438 + + # allow openssl to be cross-compiled + cp "${FILESDIR}"/gentoo.config-0.9.8 gentoo.config || die "cp cross-compile failed" + chmod a+rx gentoo.config + + # Don't build manpages if we don't want them + has noman FEATURES \ + && sed -i '/^install:/s:install_docs::' Makefile.org \ + || sed -i '/^MANDIR=/s:=.*:=/usr/share/man:' Makefile.org + + # Try to derice users and work around broken ass toolchains + if [[ $(gcc-major-version) == "3" ]] ; then + filter-flags -fprefetch-loop-arrays -freduce-all-givs -funroll-loops + [[ $(tc-arch) == "ppc64" ]] && replace-flags -O? -O + fi + [[ $(tc-arch) == ppc* ]] && append-flags -fno-strict-aliasing + append-flags -Wa,--noexecstack + + # using a library directory other than lib requires some magic + sed -i \ + -e "s+\(\$(INSTALL_PREFIX)\$(INSTALLTOP)\)/lib+\1/$(get_libdir)+g" \ + -e "s+libdir=\$\${exec_prefix}/lib+libdir=\$\${exec_prefix}/$(get_libdir)+g" \ + Makefile.org engines/Makefile \ + || die "sed failed" + ./config --test-sanity || die "I AM NOT SANE" +} + +src_compile() { + unset APPS #197996 + + tc-export CC AR RANLIB + + # Clean out patent-or-otherwise-encumbered code + # Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher) + # IDEA: 5,214,703 25/05/2010 http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm + # EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography + # MDC2: Expired http://en.wikipedia.org/wiki/MDC-2 + # RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5 + + use_ssl() { use $1 && echo "enable-${2:-$1} ${*:3}" || echo "no-${2:-$1}" ; } + echoit() { echo "$@" ; "$@" ; } + + local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal") + + local sslout=$(./gentoo.config) + einfo "Use configuration ${sslout:-(openssl knows best)}" + local config="Configure" + [[ -z ${sslout} ]] && config="config" + echoit \ + ./${config} \ + ${sslout} \ + $(use sse2 || echo "no-sse2") \ + enable-camellia \ + $(use_ssl !bindist ec) \ + $(use_ssl !bindist idea) \ + enable-mdc2 \ + $(use_ssl !bindist rc5) \ + enable-tlsext \ + $(use_ssl gmp) \ + $(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \ + $(use_ssl zlib) \ + $(use_ssl zlib zlib-dynamic) \ + --prefix=/usr \ + --openssldir=/etc/ssl \ + shared threads \ + || die "Configure failed" + + # Clean out hardcoded flags that openssl uses + local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \ + -e 's:^CFLAG=::' \ + -e 's:-fomit-frame-pointer ::g' \ + -e 's:-O[0-9] ::g' \ + -e 's:-march=[-a-z0-9]* ::g' \ + -e 's:-mcpu=[-a-z0-9]* ::g' \ + -e 's:-m[a-z0-9]* ::g' \ + ) + sed -i \ + -e "/^CFLAG/s:=.*:=${CFLAG} ${CFLAGS}:" \ + -e "/^SHARED_LDFLAGS=/s:$: ${LDFLAGS}:" \ + Makefile || die + + # depend is needed to use $confopts + # rehash is needed to prep the certs/ dir + emake -j1 depend || die "depend failed" + emake all rehash || die "make all failed" +} + +src_test() { + # make sure sandbox doesnt die on *BSD + addpredict /dev/crypto + + emake -j1 test || die "make test failed" +} + +src_install() { + emake -j1 INSTALL_PREFIX="${D}" install || die + dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el + dohtml doc/* + + # create the certs directory + dodir /etc/ssl/certs + cp -RP certs/* "${D}"/etc/ssl/certs/ || die "failed to install certs" + rm -r "${D}"/etc/ssl/certs/{demo,expired} + + # Namespace openssl programs to prevent conflicts with other man pages + cd "${D}"/usr/share/man + local m d s + for m in $(find . -type f | xargs grep -L '#include') ; do + d=${m%/*} ; d=${d#./} ; m=${m##*/} + [[ ${m} == openssl.1* ]] && continue + [[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!" + mv ${d}/{,ssl-}${m} + ln -s ssl-${m} ${d}/openssl-${m} + # locate any symlinks that point to this man page ... we assume + # that any broken links are due to the above renaming + for s in $(find -L ${d} -type l) ; do + s=${s##*/} + rm -f ${d}/${s} + ln -s ssl-${m} ${d}/ssl-${s} + ln -s ssl-${s} ${d}/openssl-${s} + done + done + [[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :(" + + diropts -m0700 + keepdir /etc/ssl/private +} + +pkg_preinst() { + preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.{6,7} +} + +pkg_postinst() { + preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.{6,7} + + if [[ ${CHOST} == i686* ]] ; then + ewarn "Due to the way openssl is architected, you cannot" + ewarn "switch between optimized versions without breaking" + ewarn "ABI. The default i686 0.9.8 ABI was an unoptimized" + ewarn "version with horrible performance. This version uses" + ewarn "the optimized ABI. If you experience segfaults when" + ewarn "using ssl apps (like openssh), just re-emerge the" + ewarn "offending package." + fi +} |