Browse code

metadata use flags

Hanno Böck authored on 07/09/2015 11:01:51
Showing 9 changed files
... ...
@@ -19,17 +19,7 @@ AUX openssl-1.0.2a-parallel-install-dirs.patch 2013 SHA256 eddd8a5123748052c5982
19 19
 AUX openssl-1.0.2a-parallel-obj-headers.patch 1359 SHA256 147c3eeaad614c044749ea527cb433eae5e2d5cad34a78c6ba61cd967bfbe01f SHA512 ac8224bc088099d72e7e6761303b8653766372bd027536951c458bd22fd0526163de22bf27675e0292a12ae7257a5c1edf26a92747e00cc139e13e1b624b4072 WHIRLPOOL 58b1de7c90ed96a077065ff6abfdeaffd98ce68cc9a2551dab7ff3d04e9b38be8d4bb94a6830f4e6c3d997747345c43f76c31f4c7b825f56fd488e85b9c6179e
20 20
 AUX openssl-1.0.2a-parallel-symlinking.patch 1967 SHA256 5be3c20d64cadaed7bc4e8e500e8a67faafded7fb326779620fdb29397c44d87 SHA512 ee6c057134b31a96af5ffc3558011f8f4ffda4a2ceb2967f32cd01b6ee0ce7b386fd195c19936923404da46c33eee38a2bab335da1a16b835ac9f9d02157bdf6 WHIRLPOOL daf64bf9d14b0516b4e9dd75d3b806b1e389defe604de9e0d19860ef10436b9a534d14cfec6422c85e9134998dfe9917d257730036daf813fce0ae7d1f6be284
21 21
 AUX openssl-1.0.2a-x32-asm.patch 1561 SHA256 8bcff04217c5ad82448e27d14f3559a157c2cad89b5fb2b6af701fff1664f86d SHA512 fbb23393e68776e9d34953f85ba3cbb285421d50f06bd297b485c7cffc8d89ca8caff6783f21038ae668b5c75056c89dc652217ac8609b5328e2c28e70ac294c WHIRLPOOL 70163beaed966de948562c3a633828846d12eda7b04526c7e33746c67af5a20ecf47e9e9e5cce33abf7444676f4b15b770204e95db75d0b91a9db13c46ff92bb
22
-DIST openssl-1.0.1i.tar.gz 4422117 SHA256 3c179f46ca77069a6a0bac70212a9b3b838b2f66129cb52d568837fc79d8fcc7 SHA512 6cbcdcec8568236e8f20f0461f93df8a193a0ad88102ff548443e6ec87e2a7f649e314beee1e6bafda693934b4fb142244b61d14bf736828dda09e277b941d93 WHIRLPOOL 4baefe8a203243d08c2ca4dc9e1019a539135604a8ddfb09b9a7f2711108ad6ebd45eef1cfa09331f19fe57defbe7e1390f9ac2de086437a484c5819cabb5a4a
23
-DIST openssl-1.0.1j.tar.gz 4432964 SHA256 1b60ca8789ba6f03e8ef20da2293b8dc131c39d83814e775069f02d26354edf3 SHA512 a786bb99b68d88c1de79d3c5372767f091ebeefb5abc1d4883253fd3ab5a86af53389f5ff36fdd8faa27c5fb78be8bbff406392c373358697da80d250eadebb8 WHIRLPOOL 467aa3b02d04837e3281670401985e492d15b561c03b97246e3c8e61b0d3b1927332e3a226de4ed5bd02265a04fb31ce84c3501f4af9685633d00a9b43c56978
24
-DIST openssl-1.0.1k.tar.gz 4434910 SHA256 8f9faeaebad088e772f4ef5e38252d472be4d878c6b3a2718c10a4fcebe7a41c SHA512 8b000fbd1bf919d9913a314f99aedd48a69f6caa4ccf43237889e73e08cbe0d82bfc27e9c7c4cade09fc459f91d6c4a831a9b3fc8bca0344fb864eadd7d1e8e8 WHIRLPOOL 5236a966d610c971e473cfc30e5412a72eef116fd259ada9c50da08bcd4ca967f80bb19babf530b4e5b9f1f24e9275e00391eb2e12a26d4544f593e2b4ba20b8
25
-DIST openssl-1.0.2.tar.gz 5265809 SHA256 8c48baf3babe0d505d16cfc0cf272589c66d3624264098213db0fb00034728e9 SHA512 dea46225a5445edc4986b02b99fbc90153819374b9a9bfdd892b60cd18ac7fefaf21a7e9d2bb05d0e3bfa4d2704e0ee24b06cc8e7081a542d7598cc9e73c67c5 WHIRLPOOL fe628a38125390deb75728b31427c308efbf65637a569fd1f139f6313fea533514ef05bf3d01bbdc793f77eb259400c95c53074a294d32d73576939d16f22e25
26
-DIST openssl-1.0.2a.tar.gz 5262089 SHA256 15b6393c20030aab02c8e2fe0243cb1d1d18062f6c095d67bca91871dc7f324a SHA512 02d228578824add52b73433d64697706e6503c2334933fe8dd6b477f59c430977012c3c34da207096229a425e1dcb6f3ae806043894b5ac98c27bbcddb794dd4 WHIRLPOOL a590c71794f5d29b80afa28b18621b7535e96b714b3690d793c1422a90b09a89cbcb912841d400c5982a8197bb02c13051190e96ba0e4d530509b48b43067cd7
27 22
 DIST openssl-1.0.2d.tar.gz 5295447 SHA256 671c36487785628a703374c652ad2cebea45fa920ae5681515df25d9f2c9a8c8 SHA512 68a051e92aaed0e7a8b218c185427c534c32f30f50c45f5d2c1f5b7a26d1416e83863d2953c77486acde3b636a148f39faf48246d28a207607ec069f62b13d75 WHIRLPOOL e3d8f0784903c8d6aa05ada7b8b410517c99157a3c2f4ac34c8a9d80c77408bd6ff9e820ded47f6223ccac4a77413174aa625303166ec28fdbf8374a7d4659ec
28 23
 DIST openssl-c_rehash.sh.1.7 4167 SHA256 4999ee79892f52bd6a4a7baba9fac62262454d573bbffd72685d3aae9e48cee0 SHA512 55e8c2e827750a4f375cb83c86bfe2d166c01ffa5d7e9b16657b72b38b747c8985dd2c98f854c911dfbbee2ff3e92aff39fdf089d979b2e3534b7685ee8b80da WHIRLPOOL c88f06a3b8651f76b6289552cccceb64e13f6697c5f0ce3ff114c781ce1c218912b8ee308af9d087cd76a9600fdacda1953175bff07d7d3eb21b0c0b7f4f1ce1
29
-EBUILD openssl-1.0.1i.ebuild 8776 SHA256 99e7d64748e9448cd1f3d8738e1a97b5daab3c56b3e5f0168186f6644d83bbd8 SHA512 e1b922da0678ac59ed09f4cffd714b45ba8e028aa844e089a4385391fcb4e02b7fc731f855e2537acf10e817710e06aa61fac91233db78a053416212e83a9bf2 WHIRLPOOL 3537527dde49f7fd39c73c7a4053c5bf44fdf3e2544fd7148019729abd01120c7f3fe85e83a38b89630ff0bb38b7d044e42234cfaf4cf68612b630900e5b209a
30
-EBUILD openssl-1.0.1j.ebuild 8848 SHA256 823be5d97748b5b7e6f134746f13850b5a97cbf4ad0639c7238367d741386cb6 SHA512 f426b8bcd82113fc27eb001491e2c5ff03f276fd449f3ab763b58e1e5366f75d77eb5bb26648130ed1775e418181cc9d4cc744e507185cb12855b117bd86096c WHIRLPOOL 690246218ae96ec269249c23b65f6ec5f59e3e19388cb2bcd2f1e125fc75ba43124e9f63dc5ea4b0af62fd8aee024a9cff5fddf9ddd123e6fe9dc3a164860c48
31
-EBUILD openssl-1.0.1k.ebuild 8848 SHA256 654fb54cb45c343adea6b81d0850a2f9a62c43bd663c3f2d9a402ab90af0f05f SHA512 4372499d07a14131a05f9f62ef99eab1a86b50ab12356d58037e5d7d3754450a6c35947811282ad990c4d1897bc9ce6a4e16bf60ce6926d532e308ad80d28264 WHIRLPOOL 8f4c9224f9637cccb1362a343cfd17cd6b322eb96b15f18f34e2e26c8688d4eb0278a48618eee61e771c65c0d22e11e19a5e81e1fefdca3c9faaca75d74d7930
32
-EBUILD openssl-1.0.2-r1.ebuild 8829 SHA256 b07881d45227d608973c699e146081b2d3d164b741cc127995d2537cc8bb5c95 SHA512 0dbaae39454349726633993ffb71596344b0898cfe420fcc315b07fa0d314e780e9b61a978881b2c091b113523fd0ab37410a771c831b58f8bcd2c67e5c84234 WHIRLPOOL 1b167afb27753e66aa474e23ca2df504e8e3d70d67428af8179e88b238350e988014d8d33f5fe683d4fb345c847b0d954a558b5b69d22836b154c4bc6c15738a
33
-EBUILD openssl-1.0.2-r3.ebuild 8996 SHA256 e28bc2726e4b8d1c7e779348d9c27412b3a37dea7009f3399a202b57f4aa8c58 SHA512 8e1a8bd531ee2eefb5f2e6b80f038528c51f05e474de5a8bf1191f438509ef195ee0decd4866e0bce12351100d88a2c1d9320795fcd001826b9b8241093e255b WHIRLPOOL f5f38405792f046187cd45ecf37d3f1cf4b19b87c605d4482c2d5fb4fc22c5d3f0736ef712f78255fe0efcb545a0eecec709b043aabe06c0c242a735d2bc062a
34
-EBUILD openssl-1.0.2a.ebuild 8859 SHA256 de3ad5517d6f57eafcc90212c24a8d9cd5e1a82016314d191457435bc03c5234 SHA512 4e3cf7f7dceece20731789b5ea4f8673cae4ad215ce907e5c438d65568e60de9a3d0443785ff77addb1a573c652d0b082df3b908486adec7e3afd006f765d386 WHIRLPOOL 6fd1cfc850ba18661c79be97adccdfc956d365f0d72b4bdc71a547875c85ba46416ff10d2ba7326ad01d9c2611bcff1fd178c0f5eb6cf7b6b8b7024acbab98ab
35
-EBUILD openssl-1.0.2d.ebuild 9059 SHA256 61840d633417b8871577a92b5998e0e574c75265da9cf0cac8a6858a745229b7 SHA512 0b0015df74de8256b0984f93c42f33ff17347dfdd516aded82f1420784c8bd621f6710b54d0fd4b377bab27be9204333675093df34eceb73acf62edf575c4165 WHIRLPOOL 5345cb60390bb5a728de93c7aaf0d7102f90fdb9d88a39b944c941ff47512bec3afce94b4ae57d392710f0b31ff26d3de109adbde50851a7c1daaf282aa91a5c
24
+EBUILD openssl-1.0.2d.ebuild 9017 SHA256 a5bc88f18dcc210cb081c5242841335731d0aaac9232f71ec85e264142c8c789 SHA512 bc92edf827f186b0ad208d4816268dd8497e46c16cd3c99fe1ab428e85f06330c197733e39c9e5c182465b3a11fa03127cf2a63253014c5a56ed8e2b1e81ddcb WHIRLPOOL f2003ade202ed68b4e8f604672a692ccae8d62a98f967c4193a7faa4bb4dbef66e03973d93a27d5f9397f67fb213df164d06838328175ad235c83148bede6ccc
25
+MISC metadata.xml 826 SHA256 2f22f821be68740da19821e48de6246b57763cdd3a65c137550215be67e91506 SHA512 5f5ef56e7a5e73c0765ecdcbdc01cc06e52694e55882eae9abeee063879fd2f0acf198580c8bc7e9fcd8404c6ef1ecbd9b45dbd79361b712d38e008ba0b5c8fa WHIRLPOOL c1a33911a5609aa6cd18e69b5b6c4938a7b8304ca2f739a0502428c06d79d845a8cc9c85f2fc218d824dba62bb6b16ac9d8c5da1fa1f5578a96b1fc54dd827d2
36 26
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
+<pkgmetadata>
4
+<herd>base-system</herd>
5
+<use>
6
+ <flag name='asm'>Support assembly hand optimized crypto functions (i.e. faster run time)</flag>
7
+ <flag name='bindist'>Disable EC algorithms (as they seem to be patented) -- note: changes the ABI</flag>
8
+ <flag name='sctp'>Support for Stream Control Transmission Protocol</flag>
9
+ <flag name='rfc3779'>Enable support for RFC 3779 (X.509 Extensions for IP Addresses and AS Identifiers)</flag>
10
+ <flag name='tls-heartbeat'>Enable the Heartbeat Extension in TLS and DTLS</flag>
11
+ <flag name='insecure-ssl2'>Enable SSLv2</flag>
12
+ <flag name='insecure-ssl3'>Enable SSLv3</flag>
13
+</use>
14
+<upstream>
15
+ <remote-id type="cpe">cpe:/a:openssl:openssl</remote-id>
16
+</upstream>
17
+</pkgmetadata>
0 18
deleted file mode 100644
... ...
@@ -1,259 +0,0 @@
1
-# Copyright 1999-2014 Gentoo Foundation
2
-# Distributed under the terms of the GNU General Public License v2
3
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1i.ebuild,v 1.12 2014/09/19 10:34:21 ago Exp $
4
-
5
-EAPI="4"
6
-
7
-inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
8
-
9
-REV="1.7"
10
-DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
11
-HOMEPAGE="http://www.openssl.org/"
12
-SRC_URI="mirror://openssl/source/${P}.tar.gz
13
-	http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
14
-
15
-LICENSE="openssl"
16
-SLOT="0"
17
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
18
-IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test +tls-heartbeat vanilla zlib -ssl3"
19
-
20
-# The blocks are temporary just to make sure people upgrade to a
21
-# version that lack runtime version checking.  We'll drop them in
22
-# the future.
23
-RDEPEND="gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
24
-	zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
25
-	kerberos? ( >=app-crypt/mit-krb5-1.11.4[${MULTILIB_USEDEP}] )
26
-	abi_x86_32? (
27
-		!<=app-emulation/emul-linux-x86-baselibs-20140406-r3
28
-		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
29
-	)
30
-	!<net-misc/openssh-5.9_p1-r4
31
-	!<net-libs/neon-0.29.6-r1"
32
-DEPEND="${RDEPEND}
33
-	sys-apps/diffutils
34
-	>=dev-lang/perl-5
35
-	test? ( sys-devel/bc )"
36
-PDEPEND="app-misc/ca-certificates"
37
-
38
-src_unpack() {
39
-	unpack ${P}.tar.gz
40
-	SSL_CNF_DIR="/etc/ssl"
41
-	sed \
42
-		-e "/^DIR=/s:=.*:=${EPREFIX}${SSL_CNF_DIR}:" \
43
-		-e "s:SSL_CMD=/usr:SSL_CMD=${EPREFIX}/usr:" \
44
-		"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
45
-		> "${WORKDIR}"/c_rehash || die #416717
46
-}
47
-
48
-MULTILIB_WRAPPED_HEADERS=(
49
-	usr/include/openssl/opensslconf.h
50
-)
51
-
52
-src_prepare() {
53
-	# Make sure we only ever touch Makefile.org and avoid patching a file
54
-	# that gets blown away anyways by the Configure script in src_configure
55
-	rm -f Makefile
56
-
57
-	if ! use vanilla ; then
58
-		epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
59
-		epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
60
-		epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
61
-		epatch "${FILESDIR}"/${PN}-1.0.1-parallel-build.patch
62
-		epatch "${FILESDIR}"/${PN}-1.0.1-x32.patch
63
-		epatch "${FILESDIR}"/${PN}-1.0.1h-ipv6.patch
64
-		epatch "${FILESDIR}"/${PN}-1.0.1e-s_client-verify.patch #472584
65
-		epatch "${FILESDIR}"/${PN}-1.0.1f-revert-alpha-perl-generation.patch #499086
66
-		epatch_user #332661
67
-	fi
68
-
69
-	# disable fips in the build
70
-	# make sure the man pages are suffixed #302165
71
-	# don't bother building man pages if they're disabled
72
-	sed -i \
73
-		-e '/DIRS/s: fips : :g' \
74
-		-e '/^MANSUFFIX/s:=.*:=ssl:' \
75
-		-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
76
-		-e $(has noman FEATURES \
77
-			&& echo '/^install:/s:install_docs::' \
78
-			|| echo '/^MANDIR=/s:=.*:='${EPREFIX}'/usr/share/man:') \
79
-		Makefile.org \
80
-		|| die
81
-	# show the actual commands in the log
82
-	sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
83
-
84
-	# since we're forcing $(CC) as makedep anyway, just fix
85
-	# the conditional as always-on
86
-	# helps clang (#417795), and versioned gcc (#499818)
87
-	sed -i 's/expr.*MAKEDEPEND.*;/true;/' util/domd || die
88
-
89
-	# quiet out unknown driver argument warnings since openssl
90
-	# doesn't have well-split CFLAGS and we're making it even worse
91
-	# and 'make depend' uses -Werror for added fun (#417795 again)
92
-	[[ ${CC} == *clang* ]] && append-flags -Qunused-arguments
93
-
94
-	# allow openssl to be cross-compiled
95
-	cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
96
-	chmod a+rx gentoo.config
97
-
98
-	append-flags -fno-strict-aliasing
99
-	append-flags $(test-flags-CC -Wa,--noexecstack)
100
-
101
-	sed -i '1s,^:$,#!'${EPREFIX}'/usr/bin/perl,' Configure #141906
102
-	# The config script does stupid stuff to prompt the user.  Kill it.
103
-	sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
104
-	./config --test-sanity || die "I AM NOT SANE"
105
-
106
-	multilib_copy_sources
107
-}
108
-
109
-multilib_src_configure() {
110
-	unset APPS #197996
111
-	unset SCRIPTS #312551
112
-	unset CROSS_COMPILE #311473
113
-
114
-	tc-export CC AR RANLIB RC
115
-
116
-	# Clean out patent-or-otherwise-encumbered code
117
-	# Camellia: Royalty Free            http://en.wikipedia.org/wiki/Camellia_(cipher)
118
-	# IDEA:     Expired                 http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
119
-	# EC:       ????????? ??/??/2015    http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
120
-	# MDC2:     Expired                 http://en.wikipedia.org/wiki/MDC-2
121
-	# RC5:      5,724,428 03/03/2015    http://en.wikipedia.org/wiki/RC5
122
-
123
-	use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
124
-	echoit() { echo "$@" ; "$@" ; }
125
-
126
-	local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
127
-
128
-	# See if our toolchain supports __uint128_t.  If so, it's 64bit
129
-	# friendly and can use the nicely optimized code paths. #460790
130
-	local ec_nistp_64_gcc_128
131
-	# Disable it for now though #469976
132
-	#if ! use bindist ; then
133
-	#	echo "__uint128_t i;" > "${T}"/128.c
134
-	#	if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
135
-	#		ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
136
-	#	fi
137
-	#fi
138
-
139
-	local sslout=$(./gentoo.config)
140
-	einfo "Use configuration ${sslout:-(openssl knows best)}"
141
-	local config="Configure"
142
-	[[ -z ${sslout} ]] && config="config"
143
-
144
-	echoit \
145
-	./${config} \
146
-		${sslout} \
147
-		$(use sse2 || echo "no-sse2") \
148
-		enable-camellia \
149
-		$(use_ssl !bindist ec) \
150
-		${ec_nistp_64_gcc_128} \
151
-		enable-idea \
152
-		enable-mdc2 \
153
-		$(use_ssl !bindist rc5) \
154
-		enable-tlsext \
155
-		$(use_ssl gmp gmp -lgmp) \
156
-		$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
157
-		$(use_ssl rfc3779) \
158
-		$(use_ssl tls-heartbeat heartbeats) \
159
-		$(use_ssl zlib) \
160
-		--prefix="${EPREFIX}"/usr \
161
-		--openssldir="${EPREFIX}"${SSL_CNF_DIR} \
162
-		--libdir=$(get_libdir) \
163
-		shared threads \
164
-		$(use_ssl ssl3) \
165
-		|| die
166
-
167
-	# Clean out hardcoded flags that openssl uses
168
-	local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
169
-		-e 's:^CFLAG=::' \
170
-		-e 's:-fomit-frame-pointer ::g' \
171
-		-e 's:-O[0-9] ::g' \
172
-		-e 's:-march=[-a-z0-9]* ::g' \
173
-		-e 's:-mcpu=[-a-z0-9]* ::g' \
174
-		-e 's:-m[a-z0-9]* ::g' \
175
-	)
176
-	sed -i \
177
-		-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
178
-		-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
179
-		Makefile || die
180
-}
181
-
182
-multilib_src_compile() {
183
-	# depend is needed to use $confopts; it also doesn't matter
184
-	# that it's -j1 as the code itself serializes subdirs
185
-	emake -j1 depend
186
-	emake all
187
-	# rehash is needed to prep the certs/ dir; do this
188
-	# separately to avoid parallel build issues.
189
-	emake rehash
190
-}
191
-
192
-multilib_src_test() {
193
-	emake -j1 test
194
-}
195
-
196
-multilib_src_install() {
197
-	emake INSTALL_PREFIX="${D}" install
198
-}
199
-
200
-multilib_src_install_all() {
201
-	dobin "${WORKDIR}"/c_rehash #333117
202
-	dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
203
-	dohtml -r doc/*
204
-	use rfc3779 && dodoc engines/ccgost/README.gost
205
-
206
-	# This is crappy in that the static archives are still built even
207
-	# when USE=static-libs.  But this is due to a failing in the openssl
208
-	# build system: the static archives are built as PIC all the time.
209
-	# Only way around this would be to manually configure+compile openssl
210
-	# twice; once with shared lib support enabled and once without.
211
-	use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
212
-
213
-	# create the certs directory
214
-	dodir ${SSL_CNF_DIR}/certs
215
-	cp -RP certs/* "${ED}"${SSL_CNF_DIR}/certs/ || die
216
-	rm -r "${ED}"${SSL_CNF_DIR}/certs/{demo,expired}
217
-
218
-	# Namespace openssl programs to prevent conflicts with other man pages
219
-	cd "${ED}"/usr/share/man
220
-	local m d s
221
-	for m in $(find . -type f | xargs grep -L '#include') ; do
222
-		d=${m%/*} ; d=${d#./} ; m=${m##*/}
223
-		[[ ${m} == openssl.1* ]] && continue
224
-		[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
225
-		mv ${d}/{,ssl-}${m}
226
-		# fix up references to renamed man pages
227
-		sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
228
-		ln -s ssl-${m} ${d}/openssl-${m}
229
-		# locate any symlinks that point to this man page ... we assume
230
-		# that any broken links are due to the above renaming
231
-		for s in $(find -L ${d} -type l) ; do
232
-			s=${s##*/}
233
-			rm -f ${d}/${s}
234
-			ln -s ssl-${m} ${d}/ssl-${s}
235
-			ln -s ssl-${s} ${d}/openssl-${s}
236
-		done
237
-	done
238
-	[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
239
-
240
-	dodir /etc/sandbox.d #254521
241
-	echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
242
-
243
-	diropts -m0700
244
-	keepdir ${SSL_CNF_DIR}/private
245
-}
246
-
247
-pkg_preinst() {
248
-	has_version ${CATEGORY}/${PN}:0.9.8 && return 0
249
-	preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
250
-}
251
-
252
-pkg_postinst() {
253
-	ebegin "Running 'c_rehash ${EROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
254
-	c_rehash "${EROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
255
-	eend $?
256
-
257
-	has_version ${CATEGORY}/${PN}:0.9.8 && return 0
258
-	preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
259
-}
260 0
deleted file mode 100644
... ...
@@ -1,260 +0,0 @@
1
-# Copyright 1999-2014 Gentoo Foundation
2
-# Distributed under the terms of the GNU General Public License v2
3
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1i.ebuild,v 1.12 2014/09/19 10:34:21 ago Exp $
4
-
5
-EAPI="4"
6
-
7
-inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
8
-
9
-REV="1.7"
10
-DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
11
-HOMEPAGE="http://www.openssl.org/"
12
-SRC_URI="mirror://openssl/source/${P}.tar.gz
13
-	http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
14
-
15
-LICENSE="openssl"
16
-SLOT="0"
17
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
18
-IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test +tls-heartbeat vanilla zlib -insecure-ssl2 -insecure-ssl3"
19
-
20
-# The blocks are temporary just to make sure people upgrade to a
21
-# version that lack runtime version checking.  We'll drop them in
22
-# the future.
23
-RDEPEND="gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
24
-	zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
25
-	kerberos? ( >=app-crypt/mit-krb5-1.11.4[${MULTILIB_USEDEP}] )
26
-	abi_x86_32? (
27
-		!<=app-emulation/emul-linux-x86-baselibs-20140406-r3
28
-		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
29
-	)
30
-	!<net-misc/openssh-5.9_p1-r4
31
-	!<net-libs/neon-0.29.6-r1"
32
-DEPEND="${RDEPEND}
33
-	sys-apps/diffutils
34
-	>=dev-lang/perl-5
35
-	test? ( sys-devel/bc )"
36
-PDEPEND="app-misc/ca-certificates"
37
-
38
-src_unpack() {
39
-	unpack ${P}.tar.gz
40
-	SSL_CNF_DIR="/etc/ssl"
41
-	sed \
42
-		-e "/^DIR=/s:=.*:=${EPREFIX}${SSL_CNF_DIR}:" \
43
-		-e "s:SSL_CMD=/usr:SSL_CMD=${EPREFIX}/usr:" \
44
-		"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
45
-		> "${WORKDIR}"/c_rehash || die #416717
46
-}
47
-
48
-MULTILIB_WRAPPED_HEADERS=(
49
-	usr/include/openssl/opensslconf.h
50
-)
51
-
52
-src_prepare() {
53
-	# Make sure we only ever touch Makefile.org and avoid patching a file
54
-	# that gets blown away anyways by the Configure script in src_configure
55
-	rm -f Makefile
56
-
57
-	if ! use vanilla ; then
58
-		epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
59
-		epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
60
-		epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
61
-		epatch "${FILESDIR}"/${PN}-1.0.1-parallel-build.patch
62
-		epatch "${FILESDIR}"/${PN}-1.0.1-x32.patch
63
-		epatch "${FILESDIR}"/${PN}-1.0.1h-ipv6.patch
64
-		epatch "${FILESDIR}"/${PN}-1.0.1e-s_client-verify.patch #472584
65
-		epatch "${FILESDIR}"/${PN}-1.0.1f-revert-alpha-perl-generation.patch #499086
66
-		epatch_user #332661
67
-	fi
68
-
69
-	# disable fips in the build
70
-	# make sure the man pages are suffixed #302165
71
-	# don't bother building man pages if they're disabled
72
-	sed -i \
73
-		-e '/DIRS/s: fips : :g' \
74
-		-e '/^MANSUFFIX/s:=.*:=ssl:' \
75
-		-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
76
-		-e $(has noman FEATURES \
77
-			&& echo '/^install:/s:install_docs::' \
78
-			|| echo '/^MANDIR=/s:=.*:='${EPREFIX}'/usr/share/man:') \
79
-		Makefile.org \
80
-		|| die
81
-	# show the actual commands in the log
82
-	sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
83
-
84
-	# since we're forcing $(CC) as makedep anyway, just fix
85
-	# the conditional as always-on
86
-	# helps clang (#417795), and versioned gcc (#499818)
87
-	sed -i 's/expr.*MAKEDEPEND.*;/true;/' util/domd || die
88
-
89
-	# quiet out unknown driver argument warnings since openssl
90
-	# doesn't have well-split CFLAGS and we're making it even worse
91
-	# and 'make depend' uses -Werror for added fun (#417795 again)
92
-	[[ ${CC} == *clang* ]] && append-flags -Qunused-arguments
93
-
94
-	# allow openssl to be cross-compiled
95
-	cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
96
-	chmod a+rx gentoo.config
97
-
98
-	append-flags -fno-strict-aliasing
99
-	append-flags $(test-flags-CC -Wa,--noexecstack)
100
-
101
-	sed -i '1s,^:$,#!'${EPREFIX}'/usr/bin/perl,' Configure #141906
102
-	# The config script does stupid stuff to prompt the user.  Kill it.
103
-	sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
104
-	./config --test-sanity || die "I AM NOT SANE"
105
-
106
-	multilib_copy_sources
107
-}
108
-
109
-multilib_src_configure() {
110
-	unset APPS #197996
111
-	unset SCRIPTS #312551
112
-	unset CROSS_COMPILE #311473
113
-
114
-	tc-export CC AR RANLIB RC
115
-
116
-	# Clean out patent-or-otherwise-encumbered code
117
-	# Camellia: Royalty Free            http://en.wikipedia.org/wiki/Camellia_(cipher)
118
-	# IDEA:     Expired                 http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
119
-	# EC:       ????????? ??/??/2015    http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
120
-	# MDC2:     Expired                 http://en.wikipedia.org/wiki/MDC-2
121
-	# RC5:      5,724,428 03/03/2015    http://en.wikipedia.org/wiki/RC5
122
-
123
-	use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
124
-	echoit() { echo "$@" ; "$@" ; }
125
-
126
-	local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
127
-
128
-	# See if our toolchain supports __uint128_t.  If so, it's 64bit
129
-	# friendly and can use the nicely optimized code paths. #460790
130
-	local ec_nistp_64_gcc_128
131
-	# Disable it for now though #469976
132
-	#if ! use bindist ; then
133
-	#	echo "__uint128_t i;" > "${T}"/128.c
134
-	#	if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
135
-	#		ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
136
-	#	fi
137
-	#fi
138
-
139
-	local sslout=$(./gentoo.config)
140
-	einfo "Use configuration ${sslout:-(openssl knows best)}"
141
-	local config="Configure"
142
-	[[ -z ${sslout} ]] && config="config"
143
-
144
-	echoit \
145
-	./${config} \
146
-		${sslout} \
147
-		$(use sse2 || echo "no-sse2") \
148
-		enable-camellia \
149
-		$(use_ssl !bindist ec) \
150
-		${ec_nistp_64_gcc_128} \
151
-		enable-idea \
152
-		enable-mdc2 \
153
-		$(use_ssl !bindist rc5) \
154
-		enable-tlsext \
155
-		$(use_ssl gmp gmp -lgmp) \
156
-		$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
157
-		$(use_ssl rfc3779) \
158
-		$(use_ssl tls-heartbeat heartbeats) \
159
-		$(use_ssl zlib) \
160
-		--prefix="${EPREFIX}"/usr \
161
-		--openssldir="${EPREFIX}"${SSL_CNF_DIR} \
162
-		--libdir=$(get_libdir) \
163
-		shared threads \
164
-		$(use_ssl insecure-ssl2 ssl2) \
165
-		$(use_ssl insecure-ssl3 ssl3) \
166
-		|| die
167
-
168
-	# Clean out hardcoded flags that openssl uses
169
-	local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
170
-		-e 's:^CFLAG=::' \
171
-		-e 's:-fomit-frame-pointer ::g' \
172
-		-e 's:-O[0-9] ::g' \
173
-		-e 's:-march=[-a-z0-9]* ::g' \
174
-		-e 's:-mcpu=[-a-z0-9]* ::g' \
175
-		-e 's:-m[a-z0-9]* ::g' \
176
-	)
177
-	sed -i \
178
-		-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
179
-		-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
180
-		Makefile || die
181
-}
182
-
183
-multilib_src_compile() {
184
-	# depend is needed to use $confopts; it also doesn't matter
185
-	# that it's -j1 as the code itself serializes subdirs
186
-	emake -j1 depend
187
-	emake all
188
-	# rehash is needed to prep the certs/ dir; do this
189
-	# separately to avoid parallel build issues.
190
-	emake rehash
191
-}
192
-
193
-multilib_src_test() {
194
-	emake -j1 test
195
-}
196
-
197
-multilib_src_install() {
198
-	emake INSTALL_PREFIX="${D}" install
199
-}
200
-
201
-multilib_src_install_all() {
202
-	dobin "${WORKDIR}"/c_rehash #333117
203
-	dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
204
-	dohtml -r doc/*
205
-	use rfc3779 && dodoc engines/ccgost/README.gost
206
-
207
-	# This is crappy in that the static archives are still built even
208
-	# when USE=static-libs.  But this is due to a failing in the openssl
209
-	# build system: the static archives are built as PIC all the time.
210
-	# Only way around this would be to manually configure+compile openssl
211
-	# twice; once with shared lib support enabled and once without.
212
-	use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
213
-
214
-	# create the certs directory
215
-	dodir ${SSL_CNF_DIR}/certs
216
-	cp -RP certs/* "${ED}"${SSL_CNF_DIR}/certs/ || die
217
-	rm -r "${ED}"${SSL_CNF_DIR}/certs/{demo,expired}
218
-
219
-	# Namespace openssl programs to prevent conflicts with other man pages
220
-	cd "${ED}"/usr/share/man
221
-	local m d s
222
-	for m in $(find . -type f | xargs grep -L '#include') ; do
223
-		d=${m%/*} ; d=${d#./} ; m=${m##*/}
224
-		[[ ${m} == openssl.1* ]] && continue
225
-		[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
226
-		mv ${d}/{,ssl-}${m}
227
-		# fix up references to renamed man pages
228
-		sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
229
-		ln -s ssl-${m} ${d}/openssl-${m}
230
-		# locate any symlinks that point to this man page ... we assume
231
-		# that any broken links are due to the above renaming
232
-		for s in $(find -L ${d} -type l) ; do
233
-			s=${s##*/}
234
-			rm -f ${d}/${s}
235
-			ln -s ssl-${m} ${d}/ssl-${s}
236
-			ln -s ssl-${s} ${d}/openssl-${s}
237
-		done
238
-	done
239
-	[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
240
-
241
-	dodir /etc/sandbox.d #254521
242
-	echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
243
-
244
-	diropts -m0700
245
-	keepdir ${SSL_CNF_DIR}/private
246
-}
247
-
248
-pkg_preinst() {
249
-	has_version ${CATEGORY}/${PN}:0.9.8 && return 0
250
-	preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
251
-}
252
-
253
-pkg_postinst() {
254
-	ebegin "Running 'c_rehash ${EROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
255
-	c_rehash "${EROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
256
-	eend $?
257
-
258
-	has_version ${CATEGORY}/${PN}:0.9.8 && return 0
259
-	preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
260
-}
261 0
deleted file mode 100644
... ...
@@ -1,260 +0,0 @@
1
-# Copyright 1999-2015 Gentoo Foundation
2
-# Distributed under the terms of the GNU General Public License v2
3
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.1i.ebuild,v 1.12 2014/09/19 10:34:21 ago Exp $
4
-
5
-EAPI="4"
6
-
7
-inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
8
-
9
-REV="1.7"
10
-DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
11
-HOMEPAGE="http://www.openssl.org/"
12
-SRC_URI="mirror://openssl/source/${P}.tar.gz
13
-	http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
14
-
15
-LICENSE="openssl"
16
-SLOT="0"
17
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
18
-IUSE="bindist gmp kerberos rfc3779 sse2 static-libs test +tls-heartbeat vanilla zlib -insecure-ssl2 -insecure-ssl3"
19
-
20
-# The blocks are temporary just to make sure people upgrade to a
21
-# version that lack runtime version checking.  We'll drop them in
22
-# the future.
23
-RDEPEND="gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
24
-	zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
25
-	kerberos? ( >=app-crypt/mit-krb5-1.11.4[${MULTILIB_USEDEP}] )
26
-	abi_x86_32? (
27
-		!<=app-emulation/emul-linux-x86-baselibs-20140406-r3
28
-		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
29
-	)
30
-	!<net-misc/openssh-5.9_p1-r4
31
-	!<net-libs/neon-0.29.6-r1"
32
-DEPEND="${RDEPEND}
33
-	sys-apps/diffutils
34
-	>=dev-lang/perl-5
35
-	test? ( sys-devel/bc )"
36
-PDEPEND="app-misc/ca-certificates"
37
-
38
-src_unpack() {
39
-	unpack ${P}.tar.gz
40
-	SSL_CNF_DIR="/etc/ssl"
41
-	sed \
42
-		-e "/^DIR=/s:=.*:=${EPREFIX}${SSL_CNF_DIR}:" \
43
-		-e "s:SSL_CMD=/usr:SSL_CMD=${EPREFIX}/usr:" \
44
-		"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
45
-		> "${WORKDIR}"/c_rehash || die #416717
46
-}
47
-
48
-MULTILIB_WRAPPED_HEADERS=(
49
-	usr/include/openssl/opensslconf.h
50
-)
51
-
52
-src_prepare() {
53
-	# Make sure we only ever touch Makefile.org and avoid patching a file
54
-	# that gets blown away anyways by the Configure script in src_configure
55
-	rm -f Makefile
56
-
57
-	if ! use vanilla ; then
58
-		epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
59
-		epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
60
-		epatch "${FILESDIR}"/${PN}-1.0.0h-pkg-config.patch
61
-		epatch "${FILESDIR}"/${PN}-1.0.1-parallel-build.patch
62
-		epatch "${FILESDIR}"/${PN}-1.0.1-x32.patch
63
-		epatch "${FILESDIR}"/${PN}-1.0.1h-ipv6.patch
64
-		epatch "${FILESDIR}"/${PN}-1.0.1e-s_client-verify.patch #472584
65
-		epatch "${FILESDIR}"/${PN}-1.0.1f-revert-alpha-perl-generation.patch #499086
66
-		epatch_user #332661
67
-	fi
68
-
69
-	# disable fips in the build
70
-	# make sure the man pages are suffixed #302165
71
-	# don't bother building man pages if they're disabled
72
-	sed -i \
73
-		-e '/DIRS/s: fips : :g' \
74
-		-e '/^MANSUFFIX/s:=.*:=ssl:' \
75
-		-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
76
-		-e $(has noman FEATURES \
77
-			&& echo '/^install:/s:install_docs::' \
78
-			|| echo '/^MANDIR=/s:=.*:='${EPREFIX}'/usr/share/man:') \
79
-		Makefile.org \
80
-		|| die
81
-	# show the actual commands in the log
82
-	sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
83
-
84
-	# since we're forcing $(CC) as makedep anyway, just fix
85
-	# the conditional as always-on
86
-	# helps clang (#417795), and versioned gcc (#499818)
87
-	sed -i 's/expr.*MAKEDEPEND.*;/true;/' util/domd || die
88
-
89
-	# quiet out unknown driver argument warnings since openssl
90
-	# doesn't have well-split CFLAGS and we're making it even worse
91
-	# and 'make depend' uses -Werror for added fun (#417795 again)
92
-	[[ ${CC} == *clang* ]] && append-flags -Qunused-arguments
93
-
94
-	# allow openssl to be cross-compiled
95
-	cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
96
-	chmod a+rx gentoo.config
97
-
98
-	append-flags -fno-strict-aliasing
99
-	append-flags $(test-flags-CC -Wa,--noexecstack)
100
-
101
-	sed -i '1s,^:$,#!'${EPREFIX}'/usr/bin/perl,' Configure #141906
102
-	# The config script does stupid stuff to prompt the user.  Kill it.
103
-	sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
104
-	./config --test-sanity || die "I AM NOT SANE"
105
-
106
-	multilib_copy_sources
107
-}
108
-
109
-multilib_src_configure() {
110
-	unset APPS #197996
111
-	unset SCRIPTS #312551
112
-	unset CROSS_COMPILE #311473
113
-
114
-	tc-export CC AR RANLIB RC
115
-
116
-	# Clean out patent-or-otherwise-encumbered code
117
-	# Camellia: Royalty Free            http://en.wikipedia.org/wiki/Camellia_(cipher)
118
-	# IDEA:     Expired                 http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
119
-	# EC:       ????????? ??/??/2015    http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
120
-	# MDC2:     Expired                 http://en.wikipedia.org/wiki/MDC-2
121
-	# RC5:      5,724,428 03/03/2015    http://en.wikipedia.org/wiki/RC5
122
-
123
-	use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
124
-	echoit() { echo "$@" ; "$@" ; }
125
-
126
-	local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
127
-
128
-	# See if our toolchain supports __uint128_t.  If so, it's 64bit
129
-	# friendly and can use the nicely optimized code paths. #460790
130
-	local ec_nistp_64_gcc_128
131
-	# Disable it for now though #469976
132
-	#if ! use bindist ; then
133
-	#	echo "__uint128_t i;" > "${T}"/128.c
134
-	#	if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
135
-	#		ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
136
-	#	fi
137
-	#fi
138
-
139
-	local sslout=$(./gentoo.config)
140
-	einfo "Use configuration ${sslout:-(openssl knows best)}"
141
-	local config="Configure"
142
-	[[ -z ${sslout} ]] && config="config"
143
-
144
-	echoit \
145
-	./${config} \
146
-		${sslout} \
147
-		$(use sse2 || echo "no-sse2") \
148
-		enable-camellia \
149
-		$(use_ssl !bindist ec) \
150
-		${ec_nistp_64_gcc_128} \
151
-		enable-idea \
152
-		enable-mdc2 \
153
-		$(use_ssl !bindist rc5) \
154
-		enable-tlsext \
155
-		$(use_ssl gmp gmp -lgmp) \
156
-		$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
157
-		$(use_ssl rfc3779) \
158
-		$(use_ssl tls-heartbeat heartbeats) \
159
-		$(use_ssl zlib) \
160
-		--prefix="${EPREFIX}"/usr \
161
-		--openssldir="${EPREFIX}"${SSL_CNF_DIR} \
162
-		--libdir=$(get_libdir) \
163
-		shared threads \
164
-		$(use_ssl insecure-ssl2 ssl2) \
165
-		$(use_ssl insecure-ssl3 ssl3) \
166
-		|| die
167
-
168
-	# Clean out hardcoded flags that openssl uses
169
-	local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
170
-		-e 's:^CFLAG=::' \
171
-		-e 's:-fomit-frame-pointer ::g' \
172
-		-e 's:-O[0-9] ::g' \
173
-		-e 's:-march=[-a-z0-9]* ::g' \
174
-		-e 's:-mcpu=[-a-z0-9]* ::g' \
175
-		-e 's:-m[a-z0-9]* ::g' \
176
-	)
177
-	sed -i \
178
-		-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
179
-		-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
180
-		Makefile || die
181
-}
182
-
183
-multilib_src_compile() {
184
-	# depend is needed to use $confopts; it also doesn't matter
185
-	# that it's -j1 as the code itself serializes subdirs
186
-	emake -j1 depend
187
-	emake all
188
-	# rehash is needed to prep the certs/ dir; do this
189
-	# separately to avoid parallel build issues.
190
-	emake rehash
191
-}
192
-
193
-multilib_src_test() {
194
-	emake -j1 test
195
-}
196
-
197
-multilib_src_install() {
198
-	emake INSTALL_PREFIX="${D}" install
199
-}
200
-
201
-multilib_src_install_all() {
202
-	dobin "${WORKDIR}"/c_rehash #333117
203
-	dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
204
-	dohtml -r doc/*
205
-	use rfc3779 && dodoc engines/ccgost/README.gost
206
-
207
-	# This is crappy in that the static archives are still built even
208
-	# when USE=static-libs.  But this is due to a failing in the openssl
209
-	# build system: the static archives are built as PIC all the time.
210
-	# Only way around this would be to manually configure+compile openssl
211
-	# twice; once with shared lib support enabled and once without.
212
-	use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
213
-
214
-	# create the certs directory
215
-	dodir ${SSL_CNF_DIR}/certs
216
-	cp -RP certs/* "${ED}"${SSL_CNF_DIR}/certs/ || die
217
-	rm -r "${ED}"${SSL_CNF_DIR}/certs/{demo,expired}
218
-
219
-	# Namespace openssl programs to prevent conflicts with other man pages
220
-	cd "${ED}"/usr/share/man
221
-	local m d s
222
-	for m in $(find . -type f | xargs grep -L '#include') ; do
223
-		d=${m%/*} ; d=${d#./} ; m=${m##*/}
224
-		[[ ${m} == openssl.1* ]] && continue
225
-		[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
226
-		mv ${d}/{,ssl-}${m}
227
-		# fix up references to renamed man pages
228
-		sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
229
-		ln -s ssl-${m} ${d}/openssl-${m}
230
-		# locate any symlinks that point to this man page ... we assume
231
-		# that any broken links are due to the above renaming
232
-		for s in $(find -L ${d} -type l) ; do
233
-			s=${s##*/}
234
-			rm -f ${d}/${s}
235
-			ln -s ssl-${m} ${d}/ssl-${s}
236
-			ln -s ssl-${s} ${d}/openssl-${s}
237
-		done
238
-	done
239
-	[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
240
-
241
-	dodir /etc/sandbox.d #254521
242
-	echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
243
-
244
-	diropts -m0700
245
-	keepdir ${SSL_CNF_DIR}/private
246
-}
247
-
248
-pkg_preinst() {
249
-	has_version ${CATEGORY}/${PN}:0.9.8 && return 0
250
-	preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
251
-}
252
-
253
-pkg_postinst() {
254
-	ebegin "Running 'c_rehash ${EROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
255
-	c_rehash "${EROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
256
-	eend $?
257
-
258
-	has_version ${CATEGORY}/${PN}:0.9.8 && return 0
259
-	preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
260
-}
261 0
deleted file mode 100644
... ...
@@ -1,261 +0,0 @@
1
-# Copyright 1999-2015 Gentoo Foundation
2
-# Distributed under the terms of the GNU General Public License v2
3
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.2-r1.ebuild,v 1.2 2015/01/28 19:35:28 mgorny Exp $
4
-
5
-EAPI="4"
6
-
7
-inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
8
-
9
-REV="1.7"
10
-MY_P=${P/_/-}
11
-DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
12
-HOMEPAGE="http://www.openssl.org/"
13
-SRC_URI="mirror://openssl/source/${MY_P}.tar.gz
14
-	http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
15
-
16
-LICENSE="openssl"
17
-SLOT="0"
18
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
19
-IUSE="bindist gmp kerberos rfc3779 sctp cpu_flags_x86_sse2 static-libs test +tls-heartbeat vanilla zlib -insecure-ssl2 -insecure-ssl3"
20
-
21
-# The blocks are temporary just to make sure people upgrade to a
22
-# version that lack runtime version checking.  We'll drop them in
23
-# the future.
24
-RDEPEND="gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
25
-	zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
26
-	kerberos? ( >=app-crypt/mit-krb5-1.11.4[${MULTILIB_USEDEP}] )
27
-	abi_x86_32? (
28
-		!<=app-emulation/emul-linux-x86-baselibs-20140508
29
-		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
30
-	)
31
-	!<net-misc/openssh-5.9_p1-r4
32
-	!<net-libs/neon-0.29.6-r1"
33
-DEPEND="${RDEPEND}
34
-	sys-apps/diffutils
35
-	>=dev-lang/perl-5
36
-	sctp? ( net-misc/lksctp-tools )
37
-	test? ( sys-devel/bc )"
38
-PDEPEND="app-misc/ca-certificates"
39
-
40
-S="${WORKDIR}/${MY_P}"
41
-
42
-MULTILIB_WRAPPED_HEADERS=(
43
-	usr/include/openssl/opensslconf.h
44
-)
45
-
46
-src_prepare() {
47
-	SSL_CNF_DIR="/etc/ssl"
48
-	sed \
49
-		-e "/^DIR=/s:=.*:=${EPREFIX}${SSL_CNF_DIR}:" \
50
-		-e "s:SSL_CMD=/usr:SSL_CMD=${EPREFIX}/usr:" \
51
-		"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
52
-		> "${WORKDIR}"/c_rehash || die #416717
53
-
54
-	# Make sure we only ever touch Makefile.org and avoid patching a file
55
-	# that gets blown away anyways by the Configure script in src_configure
56
-	rm -f Makefile
57
-
58
-	if ! use vanilla ; then
59
-		epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
60
-		epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
61
-		epatch "${FILESDIR}"/${PN}-1.0.2-parallel-build.patch
62
-		epatch "${FILESDIR}"/${PN}-1.0.2-ipv6.patch
63
-		epatch "${FILESDIR}"/${PN}-1.0.2-s_client-verify.patch #472584
64
-
65
-		epatch_user #332661
66
-	fi
67
-
68
-	# disable fips in the build
69
-	# make sure the man pages are suffixed #302165
70
-	# don't bother building man pages if they're disabled
71
-	sed -i \
72
-		-e '/DIRS/s: fips : :g' \
73
-		-e '/^MANSUFFIX/s:=.*:=ssl:' \
74
-		-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
75
-		-e $(has noman FEATURES \
76
-			&& echo '/^install:/s:install_docs::' \
77
-			|| echo '/^MANDIR=/s:=.*:='${EPREFIX}'/usr/share/man:') \
78
-		Makefile.org \
79
-		|| die
80
-	# show the actual commands in the log
81
-	sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
82
-
83
-	# since we're forcing $(CC) as makedep anyway, just fix
84
-	# the conditional as always-on
85
-	# helps clang (#417795), and versioned gcc (#499818)
86
-	sed -i 's/expr.*MAKEDEPEND.*;/true;/' util/domd || die
87
-
88
-	# quiet out unknown driver argument warnings since openssl
89
-	# doesn't have well-split CFLAGS and we're making it even worse
90
-	# and 'make depend' uses -Werror for added fun (#417795 again)
91
-	[[ ${CC} == *clang* ]] && append-flags -Qunused-arguments
92
-
93
-	# allow openssl to be cross-compiled
94
-	cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
95
-	chmod a+rx gentoo.config
96
-
97
-	append-flags -fno-strict-aliasing
98
-	append-flags $(test-flags-CC -Wa,--noexecstack)
99
-	append-cppflags -DOPENSSL_NO_BUF_FREELISTS
100
-
101
-	sed -i '1s,^:$,#!'${EPREFIX}'/usr/bin/perl,' Configure #141906
102
-	# The config script does stupid stuff to prompt the user.  Kill it.
103
-	sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
104
-	./config --test-sanity || die "I AM NOT SANE"
105
-
106
-	multilib_copy_sources
107
-}
108
-
109
-multilib_src_configure() {
110
-	unset APPS #197996
111
-	unset SCRIPTS #312551
112
-	unset CROSS_COMPILE #311473
113
-
114
-	tc-export CC AR RANLIB RC
115
-
116
-	# Clean out patent-or-otherwise-encumbered code
117
-	# Camellia: Royalty Free            http://en.wikipedia.org/wiki/Camellia_(cipher)
118
-	# IDEA:     Expired                 http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
119
-	# EC:       ????????? ??/??/2015    http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
120
-	# MDC2:     Expired                 http://en.wikipedia.org/wiki/MDC-2
121
-	# RC5:      5,724,428 03/03/2015    http://en.wikipedia.org/wiki/RC5
122
-
123
-	use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
124
-	echoit() { echo "$@" ; "$@" ; }
125
-
126
-	local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
127
-
128
-	# See if our toolchain supports __uint128_t.  If so, it's 64bit
129
-	# friendly and can use the nicely optimized code paths. #460790
130
-	local ec_nistp_64_gcc_128
131
-	# Disable it for now though #469976
132
-	#if ! use bindist ; then
133
-	#	echo "__uint128_t i;" > "${T}"/128.c
134
-	#	if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
135
-	#		ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
136
-	#	fi
137
-	#fi
138
-
139
-	local sslout=$(./gentoo.config)
140
-	einfo "Use configuration ${sslout:-(openssl knows best)}"
141
-	local config="Configure"
142
-	[[ -z ${sslout} ]] && config="config"
143
-
144
-	echoit \
145
-	./${config} \
146
-		${sslout} \
147
-		$(use sctp && echo "sctp") \
148
-		$(use cpu_flags_x86_sse2 || echo "no-sse2") \
149
-		enable-camellia \
150
-		$(use_ssl !bindist ec) \
151
-		${ec_nistp_64_gcc_128} \
152
-		enable-idea \
153
-		enable-mdc2 \
154
-		$(use_ssl !bindist rc5) \
155
-		enable-tlsext \
156
-		$(use_ssl gmp gmp -lgmp) \
157
-		$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
158
-		$(use_ssl rfc3779) \
159
-		$(use_ssl tls-heartbeat heartbeats) \
160
-		$(use_ssl zlib) \
161
-		$(use_ssl insecure-ssl2 ssl2) \
162
-		$(use_ssl insecure-ssl3 ssl3) \
163
-		--prefix="${EPREFIX}"/usr \
164
-		--openssldir="${EPREFIX}"${SSL_CNF_DIR} \
165
-		--libdir=$(get_libdir) \
166
-		shared threads \
167
-		|| die
168
-
169
-	# Clean out hardcoded flags that openssl uses
170
-	local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
171
-		-e 's:^CFLAG=::' \
172
-		-e 's:-fomit-frame-pointer ::g' \
173
-		-e 's:-O[0-9] ::g' \
174
-		-e 's:-march=[-a-z0-9]* ::g' \
175
-		-e 's:-mcpu=[-a-z0-9]* ::g' \
176
-		-e 's:-m[a-z0-9]* ::g' \
177
-	)
178
-	sed -i \
179
-		-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
180
-		-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
181
-		Makefile || die
182
-}
183
-
184
-multilib_src_compile() {
185
-	# depend is needed to use $confopts; it also doesn't matter
186
-	# that it's -j1 as the code itself serializes subdirs
187
-	emake -j1 depend
188
-	emake all
189
-	# rehash is needed to prep the certs/ dir; do this
190
-	# separately to avoid parallel build issues.
191
-	emake rehash
192
-}
193
-
194
-multilib_src_test() {
195
-	emake -j1 test
196
-}
197
-
198
-multilib_src_install() {
199
-	emake INSTALL_PREFIX="${D}" install
200
-}
201
-
202
-multilib_src_install_all() {
203
-	dobin "${WORKDIR}"/c_rehash #333117
204
-	dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
205
-	dohtml -r doc/*
206
-	use rfc3779 && dodoc engines/ccgost/README.gost
207
-
208
-	# This is crappy in that the static archives are still built even
209
-	# when USE=static-libs.  But this is due to a failing in the openssl
210
-	# build system: the static archives are built as PIC all the time.
211
-	# Only way around this would be to manually configure+compile openssl
212
-	# twice; once with shared lib support enabled and once without.
213
-	use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
214
-
215
-	# create the certs directory
216
-	dodir ${SSL_CNF_DIR}/certs
217
-	cp -RP certs/* "${ED}"${SSL_CNF_DIR}/certs/ || die
218
-	rm -r "${ED}"${SSL_CNF_DIR}/certs/{demo,expired}
219
-
220
-	# Namespace openssl programs to prevent conflicts with other man pages
221
-	cd "${ED}"/usr/share/man
222
-	local m d s
223
-	for m in $(find . -type f | xargs grep -L '#include') ; do
224
-		d=${m%/*} ; d=${d#./} ; m=${m##*/}
225
-		[[ ${m} == openssl.1* ]] && continue
226
-		[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
227
-		mv ${d}/{,ssl-}${m}
228
-		# fix up references to renamed man pages
229
-		sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
230
-		ln -s ssl-${m} ${d}/openssl-${m}
231
-		# locate any symlinks that point to this man page ... we assume
232
-		# that any broken links are due to the above renaming
233
-		for s in $(find -L ${d} -type l) ; do
234
-			s=${s##*/}
235
-			rm -f ${d}/${s}
236
-			ln -s ssl-${m} ${d}/ssl-${s}
237
-			ln -s ssl-${s} ${d}/openssl-${s}
238
-		done
239
-	done
240
-	[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
241
-
242
-	dodir /etc/sandbox.d #254521
243
-	echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
244
-
245
-	diropts -m0700
246
-	keepdir ${SSL_CNF_DIR}/private
247
-}
248
-
249
-pkg_preinst() {
250
-	has_version ${CATEGORY}/${PN}:0.9.8 && return 0
251
-	preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
252
-}
253
-
254
-pkg_postinst() {
255
-	ebegin "Running 'c_rehash ${EROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
256
-	c_rehash "${EROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
257
-	eend $?
258
-
259
-	has_version ${CATEGORY}/${PN}:0.9.8 && return 0
260
-	preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
261
-}
262 0
deleted file mode 100644
... ...
@@ -1,264 +0,0 @@
1
-# Copyright 1999-2015 Gentoo Foundation
2
-# Distributed under the terms of the GNU General Public License v2
3
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.2-r3.ebuild,v 1.1 2015/03/19 14:28:24 polynomial-c Exp $
4
-
5
-EAPI="4"
6
-
7
-inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
8
-
9
-REV="1.7"
10
-MY_P=${P/_/-}
11
-DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
12
-HOMEPAGE="http://www.openssl.org/"
13
-SRC_URI="mirror://openssl/source/${MY_P}.tar.gz
14
-	http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
15
-
16
-LICENSE="openssl"
17
-SLOT="0"
18
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
19
-IUSE="bindist gmp kerberos rfc3779 sctp cpu_flags_x86_sse2 static-libs test +tls-heartbeat vanilla zlib insecure-ssl2 insecure-ssl3"
20
-
21
-# The blocks are temporary just to make sure people upgrade to a
22
-# version that lack runtime version checking.  We'll drop them in
23
-# the future.
24
-RDEPEND="gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
25
-	zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
26
-	kerberos? ( >=app-crypt/mit-krb5-1.11.4[${MULTILIB_USEDEP}] )
27
-	abi_x86_32? (
28
-		!<=app-emulation/emul-linux-x86-baselibs-20140508
29
-		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
30
-	)
31
-	!<net-misc/openssh-5.9_p1-r4
32
-	!<net-libs/neon-0.29.6-r1"
33
-DEPEND="${RDEPEND}
34
-	sys-apps/diffutils
35
-	>=dev-lang/perl-5
36
-	sctp? ( >=net-misc/lksctp-tools-1.0.12 )
37
-	test? ( sys-devel/bc )"
38
-PDEPEND="app-misc/ca-certificates"
39
-
40
-S="${WORKDIR}/${MY_P}"
41
-
42
-MULTILIB_WRAPPED_HEADERS=(
43
-	usr/include/openssl/opensslconf.h
44
-)
45
-
46
-src_prepare() {
47
-	SSL_CNF_DIR="/etc/ssl"
48
-	sed \
49
-		-e "/^DIR=/s:=.*:=${EPREFIX}${SSL_CNF_DIR}:" \
50
-		-e "s:SSL_CMD=/usr:SSL_CMD=${EPREFIX}/usr:" \
51
-		"${DISTDIR}"/${PN}-c_rehash.sh.${REV} \
52
-		> "${WORKDIR}"/c_rehash || die #416717
53
-
54
-	# Make sure we only ever touch Makefile.org and avoid patching a file
55
-	# that gets blown away anyways by the Configure script in src_configure
56
-	rm -f Makefile
57
-
58
-	epatch "${FILESDIR}"/${P}-CVE-2015-0209.patch #541502
59
-	epatch "${FILESDIR}"/${P}-CVE-2015-0288.patch #542038
60
-	if ! use vanilla ; then
61
-		epatch "${FILESDIR}"/${PN}-1.0.0a-ldflags.patch #327421
62
-		epatch "${FILESDIR}"/${PN}-1.0.0d-windres.patch #373743
63
-		epatch "${FILESDIR}"/${PN}-1.0.2-parallel-build.patch
64
-		epatch "${FILESDIR}"/${PN}-1.0.2-ipv6.patch
65
-		epatch "${FILESDIR}"/${PN}-1.0.2-s_client-verify.patch #472584
66
-		epatch "${FILESDIR}"/${PN}-1.0.2-CVE-2015-0291.patch
67
-
68
-		epatch_user #332661
69
-	fi
70
-
71
-	# disable fips in the build
72
-	# make sure the man pages are suffixed #302165
73
-	# don't bother building man pages if they're disabled
74
-	sed -i \
75
-		-e '/DIRS/s: fips : :g' \
76
-		-e '/^MANSUFFIX/s:=.*:=ssl:' \
77
-		-e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
78
-		-e $(has noman FEATURES \
79
-			&& echo '/^install:/s:install_docs::' \
80
-			|| echo '/^MANDIR=/s:=.*:='${EPREFIX}'/usr/share/man:') \
81
-		Makefile.org \
82
-		|| die
83
-	# show the actual commands in the log
84
-	sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
85
-
86
-	# since we're forcing $(CC) as makedep anyway, just fix
87
-	# the conditional as always-on
88
-	# helps clang (#417795), and versioned gcc (#499818)
89
-	sed -i 's/expr.*MAKEDEPEND.*;/true;/' util/domd || die
90
-
91
-	# quiet out unknown driver argument warnings since openssl
92
-	# doesn't have well-split CFLAGS and we're making it even worse
93
-	# and 'make depend' uses -Werror for added fun (#417795 again)
94
-	[[ ${CC} == *clang* ]] && append-flags -Qunused-arguments
95
-
96
-	# allow openssl to be cross-compiled
97
-	cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
98
-	chmod a+rx gentoo.config
99
-
100
-	append-flags -fno-strict-aliasing
101
-	append-flags $(test-flags-CC -Wa,--noexecstack)
102
-	append-cppflags -DOPENSSL_NO_BUF_FREELISTS
103
-
104
-	sed -i '1s,^:$,#!'${EPREFIX}'/usr/bin/perl,' Configure #141906
105
-	# The config script does stupid stuff to prompt the user.  Kill it.
106
-	sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
107
-	./config --test-sanity || die "I AM NOT SANE"
108
-
109
-	multilib_copy_sources
110
-}
111
-
112
-multilib_src_configure() {
113
-	unset APPS #197996
114
-	unset SCRIPTS #312551
115
-	unset CROSS_COMPILE #311473
116
-
117
-	tc-export CC AR RANLIB RC
118
-
119
-	# Clean out patent-or-otherwise-encumbered code
120
-	# Camellia: Royalty Free            http://en.wikipedia.org/wiki/Camellia_(cipher)
121
-	# IDEA:     Expired                 http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
122
-	# EC:       ????????? ??/??/2015    http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
123
-	# MDC2:     Expired                 http://en.wikipedia.org/wiki/MDC-2
124
-	# RC5:      Expirted                http://en.wikipedia.org/wiki/RC5
125
-
126
-	use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
127
-	echoit() { echo "$@" ; "$@" ; }
128
-
129
-	local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
130
-
131
-	# See if our toolchain supports __uint128_t.  If so, it's 64bit
132
-	# friendly and can use the nicely optimized code paths. #460790
133
-	local ec_nistp_64_gcc_128
134
-	# Disable it for now though #469976
135
-	#if ! use bindist ; then
136
-	#	echo "__uint128_t i;" > "${T}"/128.c
137
-	#	if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
138
-	#		ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
139
-	#	fi
140
-	#fi
141
-
142
-	local sslout=$(./gentoo.config)
143
-	einfo "Use configuration ${sslout:-(openssl knows best)}"
144
-	local config="Configure"
145
-	[[ -z ${sslout} ]] && config="config"
146
-
147
-	echoit \
148
-	./${config} \
149
-		${sslout} \
150
-		$(use sctp && echo "sctp") \
151
-		$(use cpu_flags_x86_sse2 || echo "no-sse2") \
152
-		enable-camellia \
153
-		$(use_ssl !bindist ec) \
154
-		${ec_nistp_64_gcc_128} \
155
-		enable-idea \
156
-		enable-mdc2 \
157
-		enable-rc5 \
158
-		enable-tlsext \
159
-		$(use_ssl gmp gmp -lgmp) \
160
-		$(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
161
-		$(use_ssl rfc3779) \
162
-		$(use_ssl tls-heartbeat heartbeats) \
163
-		$(use_ssl zlib) \
164
- 		$(use_ssl insecure-ssl2 ssl2) \
165
- 		$(use_ssl insecure-ssl3 ssl3) \
166
-		--prefix="${EPREFIX}"/usr \
167
-		--openssldir="${EPREFIX}"${SSL_CNF_DIR} \
168
-		--libdir=$(get_libdir) \
169
-		shared threads \
170
-		|| die
171
-
172
-	# Clean out hardcoded flags that openssl uses
173
-	local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
174
-		-e 's:^CFLAG=::' \
175
-		-e 's:-fomit-frame-pointer ::g' \
176
-		-e 's:-O[0-9] ::g' \
177
-		-e 's:-march=[-a-z0-9]* ::g' \
178
-		-e 's:-mcpu=[-a-z0-9]* ::g' \
179
-		-e 's:-m[a-z0-9]* ::g' \
180
-	)
181
-	sed -i \
182
-		-e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
183
-		-e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
184
-		Makefile || die
185
-}
186
-
187
-multilib_src_compile() {
188
-	# depend is needed to use $confopts; it also doesn't matter
189
-	# that it's -j1 as the code itself serializes subdirs
190
-	emake -j1 depend
191
-	emake all
192
-	# rehash is needed to prep the certs/ dir; do this
193
-	# separately to avoid parallel build issues.
194
-	emake rehash
195
-}
196
-
197
-multilib_src_test() {
198
-	emake -j1 test
199
-}
200
-
201
-multilib_src_install() {
202
-	emake INSTALL_PREFIX="${D}" install
203
-}
204
-
205
-multilib_src_install_all() {
206
-	dobin "${WORKDIR}"/c_rehash #333117
207
-	dodoc CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el
208
-	dohtml -r doc/*
209
-	use rfc3779 && dodoc engines/ccgost/README.gost
210
-
211
-	# This is crappy in that the static archives are still built even
212
-	# when USE=static-libs.  But this is due to a failing in the openssl
213
-	# build system: the static archives are built as PIC all the time.
214
-	# Only way around this would be to manually configure+compile openssl
215
-	# twice; once with shared lib support enabled and once without.
216
-	use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
217
-
218
-	# create the certs directory
219
-	dodir ${SSL_CNF_DIR}/certs
220
-	cp -RP certs/* "${ED}"${SSL_CNF_DIR}/certs/ || die
221
-	rm -r "${ED}"${SSL_CNF_DIR}/certs/{demo,expired}
222
-
223
-	# Namespace openssl programs to prevent conflicts with other man pages
224
-	cd "${ED}"/usr/share/man
225
-	local m d s
226
-	for m in $(find . -type f | xargs grep -L '#include') ; do
227
-		d=${m%/*} ; d=${d#./} ; m=${m##*/}
228
-		[[ ${m} == openssl.1* ]] && continue
229
-		[[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
230
-		mv ${d}/{,ssl-}${m}
231
-		# fix up references to renamed man pages
232
-		sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
233
-		ln -s ssl-${m} ${d}/openssl-${m}
234
-		# locate any symlinks that point to this man page ... we assume
235
-		# that any broken links are due to the above renaming
236
-		for s in $(find -L ${d} -type l) ; do
237
-			s=${s##*/}
238
-			rm -f ${d}/${s}
239
-			ln -s ssl-${m} ${d}/ssl-${s}
240
-			ln -s ssl-${s} ${d}/openssl-${s}
241
-		done
242
-	done
243
-	[[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
244
-
245
-	dodir /etc/sandbox.d #254521
246
-	echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
247
-
248
-	diropts -m0700
249
-	keepdir ${SSL_CNF_DIR}/private
250
-}
251
-
252
-pkg_preinst() {
253
-	has_version ${CATEGORY}/${PN}:0.9.8 && return 0
254
-	preserve_old_lib /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
255
-}
256
-
257
-pkg_postinst() {
258
-	ebegin "Running 'c_rehash ${EROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
259
-	c_rehash "${EROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
260
-	eend $?
261
-
262
-	has_version ${CATEGORY}/${PN}:0.9.8 && return 0
263
-	preserve_old_lib_notify /usr/$(get_libdir)/lib{crypto,ssl}.so.0.9.8
264
-}
265 0
deleted file mode 100644
... ...
@@ -1,262 +0,0 @@
1
-# Copyright 1999-2015 Gentoo Foundation
2
-# Distributed under the terms of the GNU General Public License v2
3
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-1.0.2a.ebuild,v 1.2 2015/03/19 21:14:17 vapier Exp $
4
-
5
-EAPI="4"
6
-
7
-inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
8
-
9
-REV="1.7"
10
-MY_P=${P/_/-}
11
-DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
12
-HOMEPAGE="http://www.openssl.org/"
13
-SRC_URI="mirror://openssl/source/${MY_P}.tar.gz
14
-	http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/${PN}/${PN}-c_rehash.sh?rev=${REV} -> ${PN}-c_rehash.sh.${REV}"
15
-
16
-LICENSE="openssl"
17
-SLOT="0"
18
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
19
-IUSE="bindist gmp kerberos rfc3779 sctp cpu_flags_x86_sse2 static-libs test +tls-heartbeat vanilla zlib insecure-ssl2 insecure-ssl3"
20
-RESTRICT="!bindist? ( bindist )"
21
-
22
-# The blocks are temporary just to make sure people upgrade to a
23
-# version that lack runtime version checking.  We'll drop them in
24
-# the future.
25
-RDEPEND="gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
26
-	zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
27
-	kerberos? ( >=app-crypt/mit-krb5-1.11.4[${MULTILIB_USEDEP}] )
28
-	abi_x86_32? (
29
-		!<=app-emulation/emul-linux-x86-baselibs-20140508
30
-		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
31
-	)
32
-	!<net-misc/openssh-5.9_p1-r4
33
-	!<net-libs/neon-0.29.6-r1"
34
-DEPEND="${RDEPEND}
35