/[gentoo-x86]/net-libs/cyassl/cyassl-2.7.0.ebuild
Gentoo

Contents of /net-libs/cyassl/cyassl-2.7.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jun 26 14:55:09 2013 UTC (16 months, 4 weeks ago) by blueness
Branch: MAIN
Version bump

(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/cyassl/cyassl-2.5.0.ebuild,v 1.10 2013/03/07 07:26:17 vapier Exp $
4
5 EAPI="5"
6
7 inherit eutils
8
9 DESCRIPTION="Lightweight SSL/TLS library targeted at embedded and RTOS environments"
10 HOMEPAGE="http://www.yassl.com/yaSSL/Home.html"
11 SRC_URI="http://dev.gentoo.org/~blueness/${PN}/${P}.zip"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~x86"
16
17 #Add CRYPTO_OPTS=ecc when fixed
18 CACHE_SIZE="small big +huge"
19 CRYPTO_OPTS="+aes aes-gcm aes-ccm aes-ni +arc4 +asn blake2 camellia +coding +dh dsa +des3 ecc +hc128 md2 md4 +md5 nullcipher +psk leanpsk rabbit +ripemd +rsa +sha sha512"
20 CERT_OPTS="ocsp crl crl-monitor savesession savecert +sessioncerts +testcert"
21 DEBUG="debug +errorstrings +memory test"
22 IUSE="-dtls examples extra fortress ipv6 +httpd mcapi pwdbased sni sniffer static-libs threads +zlib cyassl-hardening ${CACHE_SIZE} ${CRYPTO_OPTS} ${CERT_OPTS} ${DEBUG}"
23
24 #You can only pick one cach size
25 #sha512 is broken on x86
26 #Testing freezes with dtls
27 REQUIRED_USE="^^ ( small big huge )
28 leanpsk? ( psk )
29 fortress? ( extra sha512 )
30 pwdbased? ( extra )
31 test? ( !dtls )"
32
33 DEPEND="app-arch/unzip
34 sniffer? ( net-libs/libpcap )
35 zlib? ( sys-libs/zlib )"
36 RDEPEND="${DEPEND}"
37
38 src_prepare() {
39 epatch "${FILESDIR}"/${PN}-2.0.8-disable-testsuit-ifnothreads.patch
40 }
41
42 src_configure() {
43 local myconf=()
44
45 if use threads; then
46 myconf+=( --disable-singlethreaded )
47 else
48 myconf+=( --enable-singlethreaded )
49 fi
50
51 if use amd64; then
52 myconf+=( --enable-fastmath --enable-fasthugemath --enable-bump )
53 elif use x86; then
54 #not pie friendly, sorry x86, no fast math for you :(
55 myconf+=( --disable-fastmath --disable-fasthugemath --disable-bump )
56 fi
57
58 #Bug #454300
59 export C_EXTRA_FLAGS=${CFLAGS}
60
61 econf \
62 --disable-silent-rules \
63 --enable-keygen \
64 --enable-certgen \
65 --disable-stacksize \
66 --disable-ntru \
67 --enable-filesystem \
68 --enable-inline \
69 --disable-oldtls \
70 --disable-valgrind \
71 \
72 $(use_enable small smallcache) \
73 $(use_enable big bigcache) \
74 $(use_enable huge hugecache) \
75 \
76 $(use_enable aes) \
77 $(use_enable aes-gcm aesgcm) \
78 $(use_enable aes-ccm aesccm) \
79 $(use_enable aes-ni aesni) \
80 $(use_enable arc4) \
81 $(use_enable asn) \
82 $(use_enable blake2) \
83 $(use_enable camellia) \
84 $(use_enable coding) \
85 $(use_enable dh) \
86 $(use_enable dsa) \
87 $(use_enable des3) \
88 $(use_enable ecc) \
89 $(use_enable hc128) \
90 $(use_enable md2) \
91 $(use_enable md4) \
92 $(use_enable md5) \
93 $(use_enable nullcipher) \
94 $(use_enable psk) \
95 $(use_enable leanpsk) \
96 $(use_enable rabbit) \
97 $(use_enable ripemd) \
98 $(use_enable rsa) \
99 $(use_enable sha) \
100 $(use_enable sha512) \
101 \
102 $(use_enable ocsp) \
103 $(use_enable crl) \
104 $(use_enable crl-monitor) \
105 $(use_enable savesession) \
106 $(use_enable savecert) \
107 $(use_enable sessioncerts) \
108 $(use_enable testcert) \
109 \
110 $(use_enable debug) \
111 $(use_enable errorstrings) \
112 $(use_enable memory) \
113 \
114 $(use_enable dtls) \
115 $(use_enable examples) \
116 $(use_enable extra opensslextra) \
117 $(use_enable fortress) \
118 $(use_enable ipv6) \
119 $(use_enable httpd webserver) \
120 $(use_enable mcapi) \
121 $(use_enable pwdbased) \
122 $(use_enable sni) \
123 $(use_enable sniffer) \
124 $(use_enable static-libs static) \
125 $(use_with zlib libz) \
126 $(use_enable cyassl-hardening gcc-hardening) \
127 "${myconf[@]}"
128 }
129
130 src_test() {
131 "${S}"/tests/unit
132 "${S}"/ctaocrypt/benchmark/benchmark
133 }
134
135 src_install() {
136 default
137
138 mv "${D}"/usr/share/doc/"${PN}"/* \
139 "${D}"/usr/share/doc/"${P}"/
140 rmdir "${D}"/usr/share/doc/"${PN}"/
141 }

  ViewVC Help
Powered by ViewVC 1.1.20