diff options
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/openssl/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/openssl/Manifest | 14 | ||||
-rw-r--r-- | dev-libs/openssl/openssl-1.0.0.ebuild | 172 |
3 files changed, 191 insertions, 2 deletions
diff --git a/dev-libs/openssl/ChangeLog b/dev-libs/openssl/ChangeLog index e928a2f553f8..4f360684329f 100644 --- a/dev-libs/openssl/ChangeLog +++ b/dev-libs/openssl/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/openssl # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.327 2010/03/28 13:18:24 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.328 2010/03/29 19:15:41 vapier Exp $ + +*openssl-1.0.0 (29 Mar 2010) + + 29 Mar 2010; Mike Frysinger <vapier@gentoo.org> +openssl-1.0.0.ebuild: + Version bump. 28 Mar 2010; Raúl Porcel <armin76@gentoo.org> openssl-0.9.8n.ebuild: alpha/arm/ia64/m68k/s390/sh/sparc stable wrt #308011 diff --git a/dev-libs/openssl/Manifest b/dev-libs/openssl/Manifest index 1f68e51ba391..41da65093f8a 100644 --- a/dev-libs/openssl/Manifest +++ b/dev-libs/openssl/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX gentoo.config-0.9.8 4249 RMD160 a63c08a30dd294429c562b8e24bf2b13ba220f63 SHA1 737dbd27e39726c49e44f5e92e46bdf8a8ff9b4d SHA256 c14ff861759f4ebaeb57f37ae7df63af4dea1767eae07ef0eb42abd43cebc4a1 AUX openssl-0.9.7e-gentoo.patch 460 RMD160 60969fd05a15fe00d0d1c27b9098acfde28ba65e SHA1 73ff3c336dfdbeed903ac7b82486674ab4ec66a2 SHA256 ddb8d47429f3aadf3f5142293a2c38cbb9eb3927edfd1b497771337c48a11641 AUX openssl-0.9.8-make-engines-dir.patch 440 RMD160 0e7d4fd52c9deaf46809fa2b3c62c9096ad08197 SHA1 d4757620437fabb5ec506ce3a74b802fd530f647 SHA256 af1b1f68c8fe77283abf05068ff0c08d28d94e35754c8eee7c76b3006825026a @@ -22,9 +25,18 @@ DIST openssl-0.9.8l.tar.gz 4179422 RMD160 9de81ec2583edcba729e62d50fd22c0a98a529 DIST openssl-0.9.8m.tar.gz 3767604 RMD160 0296af151993008526b4f2b3a6810e20c4ad3759 SHA1 2511c709a47f34d5fa6cd1a1c9cb1699bdffa912 SHA256 36037160281cf4977d964e403d2bc0680fbca0a7ff9f65e33136d75fae12cb5b DIST openssl-0.9.8n.tar.gz 3770041 RMD160 8eb5e877c2bab203e8eb108e42d60580a478f718 SHA1 595f5ebf592568515964f0adc62239e7012ef08b SHA256 b01abc28376b866515df58f1b004da8453166291783d4e7477cda89b000c1f01 DIST openssl-1.0.0-beta5.tar.gz 4006467 RMD160 b6e351973a6d41d5f1834ec3b0fdfd7d4973f3a1 SHA1 a16377c02625f803a5dcfaa9c11aeadcfd3703b6 SHA256 499adac5ab67741215ca9ccc1b54b8a1eaa2c90da8971b9babdf7e12ae12155f +DIST openssl-1.0.0.tar.gz 4010166 RMD160 e9d8f52540a1ddae565e5d2bea966b819d7de818 SHA1 3f800ea9fa3da1c0f576d689be7dca3d55a4cb62 SHA256 1bbf9afc5a6215121ac094147d0a84178294fe4c3d0a231731038fd3717ba7ca EBUILD openssl-0.9.8l-r2.ebuild 6196 RMD160 e99f82df485bd234e207f9730eaf08a8dbd64e83 SHA1 54160505698cf4812cef7b57314ccf4e289b245b SHA256 750fa447190f467bd56f88e5469e12878bc3962a864f245b2c5c92d655ee215c EBUILD openssl-0.9.8m-r1.ebuild 5739 RMD160 f313671216e1aa68926b2da989f92f97f19826a4 SHA1 1be6423a387d169a4f4fdcbc10bd7cd5cdb4e14a SHA256 16e01254c9078e06b84c64f9ae7fb93d81e4e19b8bb46d0379d764e6d81b20c6 EBUILD openssl-0.9.8n.ebuild 5387 RMD160 7c70f39e78a9a726ae3f836ed8d14756361a7b2c SHA1 754fcb28957c6b4a5642a092a654300832398e81 SHA256 691d09df4ed3a5cc52a401ac722bc6ed4a08b17583883ec8c2b452de8e905bec +EBUILD openssl-1.0.0.ebuild 5314 RMD160 4bc9ba5f541e753efe2afd94f19548fcc2172c35 SHA1 572127b6321ac83c0dfb47ce4bb63e4a683623bd SHA256 15d5e533e58ed83ebe55b4ad2afb1725b243b826d6b76dce4f6a4f2899ec90a7 EBUILD openssl-1.0.0_beta5.ebuild 5359 RMD160 129700062b0705fa579944ed4933aed2594a00d2 SHA1 e5020560e9cc0881497882f134c8759ae2938fef SHA256 f2490f939a3b0fde8ecce27bade76be1e86e92546b222fac84b6833fe967d9fd -MISC ChangeLog 48907 RMD160 9e7eae86e31ddf409984194a3fdb149b96ec838c SHA1 b7278012befbb3fc990b88ea5330f842f6f382aa SHA256 cb1b1450b2bbccc6c3f04cc043db054f8e50ab365fd6c29cbb4d8331a9b84d61 +MISC ChangeLog 49026 RMD160 9d750a93856d6b51e655022038105a0a86a97b3c SHA1 99d4a55fa958a04c313b4e539fe446370758e38d SHA256 5b8ae545fc610ba5e8805277167861ad06879393af9f3a5348b287a44b19ea16 MISC metadata.xml 290 RMD160 5aee06348916e9fbcdab233e8babb0ed08260ca5 SHA1 f798e6a59f370931dc151fcff9a473eabda44ab9 SHA256 828c7b974fc1bbac92f75490c85897b27cd3cacce021f56ad1b4ef06d28fe7bd +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.14 (GNU/Linux) + +iF4EAREIAAYFAkuw/FwACgkQTwhj9JtAlp4iDgEAjN9ZSdEhBzPYr6IiXVu6573D +j8GfBlesh6/ItAaZoKUA/0JJf85LBW4Ig+Ds/lkeysXThNNswHBlBKbd94I0TtGy +=tBGp +-----END PGP SIGNATURE----- diff --git a/dev-libs/openssl/openssl-1.0.0.ebuild b/dev-libs/openssl/openssl-1.0.0.ebuild new file mode 100644 index 000000000000..fc60e15f6049 --- /dev/null +++ b/dev-libs/openssl/openssl-1.0.0.ebuild @@ -0,0 +1,172 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.0.ebuild,v 1.1 2010/03/29 19:15:41 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="" +IUSE="bindist gmp kerberos rfc3779 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.8j-parallel-build.patch + #epatch "${FILESDIR}"/${PN}-0.9.8b-doc-updates.patch + #epatch "${FILESDIR}"/${PN}-0.9.8e-bsd-sparc64.patch + #epatch "${FILESDIR}"/${PN}-0.9.8h-ldflags.patch #181438 + epatch "${FILESDIR}"/${PN}-0.9.8l-binutils.patch #289130 + + # disable fips in the build + # make sure the man pages are suffixed #302165 + # don't bother building man pages if they're disabled + sed -i \ + -e '/DIRS/s: fips : :g' \ + -e '/^MANSUFFIX/s:=.*:=ssl:' \ + -e '/^MAKEDEPPROG/s:=.*:=$(CC):' \ + -e $(has noman FEATURES \ + && echo '/^install:/s:install_docs::' \ + || echo '/^MANDIR=/s:=.*:=/usr/share/man:') \ + Makefile{,.org} \ + || die + # show the actual commands in the log + sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared + + # 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 + + append-flags -fno-strict-aliasing + append-flags -Wa,--noexecstack + + sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906 + ./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 gmp -lgmp) \ + $(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \ + $(use_ssl rfc3779) \ + $(use_ssl zlib) \ + --prefix=/usr \ + --openssldir=/etc/ssl \ + --libdir=$(get_libdir) \ + 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 -j1 all rehash || die "make all failed" +} + +src_test() { + 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 -r 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} + # fix up references to renamed man pages + sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${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 :(" + + dodir /etc/sandbox.d #254521 + echo 'SANDBOX_PREDICT="/dev/crypto"' > "${D}"/etc/sandbox.d/10openssl + + diropts -m0700 + keepdir /etc/ssl/private +} + +pkg_preinst() { + preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.{6,7,8} +} + +pkg_postinst() { + preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.{6,7,8} +} |