1 |
commit: a3c965d37acea5479b08abcbeb0bc05d1aa0a0a2 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 7 15:27:25 2021 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 7 15:30:27 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3c965d3 |
7 |
|
8 |
net-proxy/privoxy: enable mbedtls by default |
9 |
|
10 |
In order to avoid REQUIRED_USE conflict on default Linux profile |
11 |
mbedtls is enabled as default ssl implementation, but both mbedtls |
12 |
and openssl are ignored if ssl support is disabled. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/764248 |
15 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
16 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
17 |
|
18 |
net-proxy/privoxy/privoxy-3.0.29.ebuild | 18 +++++++++++------- |
19 |
1 file changed, 11 insertions(+), 7 deletions(-) |
20 |
|
21 |
diff --git a/net-proxy/privoxy/privoxy-3.0.29.ebuild b/net-proxy/privoxy/privoxy-3.0.29.ebuild |
22 |
index 6d4bcb7581c..fffcbe231db 100644 |
23 |
--- a/net-proxy/privoxy/privoxy-3.0.29.ebuild |
24 |
+++ b/net-proxy/privoxy/privoxy-3.0.29.ebuild |
25 |
@@ -15,7 +15,7 @@ SRC_URI="mirror://sourceforge/ijbswa/${P%_*}-${PRIVOXY_STATUS}-src.tar.gz" |
26 |
|
27 |
IUSE="+acl brotli client-tags compression editor extended-host-patterns |
28 |
extended-statistics external-filters +fast-redirects +force fuzz |
29 |
-graceful-termination +image-blocking ipv6 lfs mbedtls openssl |
30 |
+graceful-termination +image-blocking ipv6 lfs +mbedtls openssl |
31 |
png-images selinux ssl +stats +threads toggle tools whitelists |
32 |
+zlib" |
33 |
SLOT="0" |
34 |
@@ -27,8 +27,10 @@ DEPEND=" |
35 |
acct-user/privoxy |
36 |
dev-libs/libpcre |
37 |
brotli? ( app-arch/brotli ) |
38 |
- mbedtls? ( net-libs/mbedtls ) |
39 |
- openssl? ( dev-libs/openssl ) |
40 |
+ ssl? ( |
41 |
+ mbedtls? ( net-libs/mbedtls ) |
42 |
+ openssl? ( dev-libs/openssl ) |
43 |
+ ) |
44 |
zlib? ( sys-libs/zlib ) |
45 |
" |
46 |
RDEPEND="${DEPEND} |
47 |
@@ -46,8 +48,6 @@ REQUIRED_USE=" |
48 |
brotli? ( zlib ) |
49 |
fuzz? ( zlib ) |
50 |
ssl? ( ^^ ( mbedtls openssl ) ) |
51 |
- mbedtls? ( ssl ) |
52 |
- openssl? ( ssl ) |
53 |
" |
54 |
|
55 |
S="${WORKDIR}/${P%_*}-${PRIVOXY_STATUS}" |
56 |
@@ -79,6 +79,11 @@ src_prepare() { |
57 |
} |
58 |
|
59 |
src_configure() { |
60 |
+ local myconf="--without-mbedtls --without-openssl" |
61 |
+ if use ssl; then |
62 |
+ myconf="$(use_with mbedtls) $(use_with openssl)" |
63 |
+ fi |
64 |
+ |
65 |
# --with-debug only enables debug CFLAGS |
66 |
# --with-docbook and --with-db2html and their deps are useless, |
67 |
# since docs are already pregenerated in the source tarball |
68 |
@@ -108,8 +113,7 @@ src_configure() { |
69 |
$(use_enable whitelists trust-files) \ |
70 |
$(use_enable zlib) \ |
71 |
$(use_with brotli) \ |
72 |
- $(use_with mbedtls) \ |
73 |
- $(use_with openssl) |
74 |
+ ${myconf} |
75 |
} |
76 |
|
77 |
src_install() { |