Lines 17-23
Link Here
|
17 |
SLOT="0" |
17 |
SLOT="0" |
18 |
WEBAPP_MANUAL_SLOT="yes" |
18 |
WEBAPP_MANUAL_SLOT="yes" |
19 |
KEYWORDS="~amd64 ~x86" |
19 |
KEYWORDS="~amd64 ~x86" |
20 |
IUSE="agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static" |
20 |
IUSE="agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static" |
|
|
21 |
IUSE+=" zabbix_ssl_gnutls zabbix_ssl_mbedtls +zabbix_ssl_openssl" |
21 |
|
22 |
|
22 |
COMMON_DEPEND="snmp? ( net-analyzer/net-snmp ) |
23 |
COMMON_DEPEND="snmp? ( net-analyzer/net-snmp ) |
23 |
ldap? ( |
24 |
ldap? ( |
Lines 34-39
Link Here
|
34 |
curl? ( net-misc/curl ) |
35 |
curl? ( net-misc/curl ) |
35 |
openipmi? ( sys-libs/openipmi ) |
36 |
openipmi? ( sys-libs/openipmi ) |
36 |
ssh? ( net-libs/libssh2 ) |
37 |
ssh? ( net-libs/libssh2 ) |
|
|
38 |
ssl? ( |
39 |
zabbix_ssl_gnutls? ( |
40 |
>=net-libs/gnutls-3.1.18:0= |
41 |
) |
42 |
zabbix_ssl_mbedtls? ( |
43 |
>=net-libs/mbedtls-1.3.9:0= |
44 |
) |
45 |
zabbix_ssl_openssl? ( |
46 |
>=dev-libs/openssl-1.0.1:0= |
47 |
) |
48 |
) |
37 |
java? ( virtual/jdk:* ) |
49 |
java? ( virtual/jdk:* ) |
38 |
odbc? ( dev-db/unixODBC )" |
50 |
odbc? ( dev-db/unixODBC )" |
39 |
|
51 |
|
Lines 53-58
Link Here
|
53 |
DEPEND="${COMMON_DEPEND} |
65 |
DEPEND="${COMMON_DEPEND} |
54 |
virtual/pkgconfig" |
66 |
virtual/pkgconfig" |
55 |
|
67 |
|
|
|
68 |
REQUIRED_USE=" |
69 |
ssl? ( |
70 |
^^ ( |
71 |
zabbix_ssl_gnutls |
72 |
zabbix_ssl_mbedtls |
73 |
zabbix_ssl_openssl |
74 |
) |
75 |
)" |
76 |
|
56 |
S=${WORKDIR}/${MY_P} |
77 |
S=${WORKDIR}/${MY_P} |
57 |
|
78 |
|
58 |
ZABBIXJAVA_BASE="opt/zabbix_java" |
79 |
ZABBIXJAVA_BASE="opt/zabbix_java" |
Lines 204-209
Link Here
|
204 |
} |
225 |
} |
205 |
|
226 |
|
206 |
src_configure() { |
227 |
src_configure() { |
|
|
228 |
# We make use of the fact that later flags override earlier ones |
229 |
# So start with all ssl providers off until proven otherwise |
230 |
local myconf=() |
231 |
myconf+=( --without-gnutls --without-mbedtls --without-openssl ) |
232 |
if use ssl ; then |
233 |
if use zabbix_ssl_gnutls; then |
234 |
einfo "SSL provided by gnutls" |
235 |
myconf+=( --with-gnutls ) |
236 |
elif use zabbix_ssl_mbedtls; then |
237 |
einfo "SSL provided by mbedtls" |
238 |
myconf+=( --with-mbedtls ) |
239 |
elif use zabbix_ssl_openssl; then |
240 |
einfo "SSL provided by openssl" |
241 |
myconf+=( --with-openssl ) |
242 |
else |
243 |
eerror "We can't be here because of REQUIRED_USE." |
244 |
fi |
245 |
else |
246 |
einfo "SSL disabled" |
247 |
fi |
248 |
|
207 |
|
249 |
|
208 |
econf \ |
250 |
econf \ |
209 |
$(use_enable server) \ |
251 |
$(use_enable server) \ |
Lines 224-229
Link Here
|
224 |
$(use_with ssh ssh2) \ |
266 |
$(use_with ssh ssh2) \ |
225 |
$(use_with libxml2) \ |
267 |
$(use_with libxml2) \ |
226 |
$(use_with odbc unixodbc) \ |
268 |
$(use_with odbc unixodbc) \ |
|
|
269 |
"${myconf[@]}" \ |
227 |
|| die "econf failed" |
270 |
|| die "econf failed" |
228 |
} |
271 |
} |
229 |
|
272 |
|