1 |
commit: cb8d247de762a6666b86e2302ebd1ee797f5aa58 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 26 12:19:48 2021 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 26 12:20:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb8d247d |
7 |
|
8 |
net-proxy/privoxy: remove old |
9 |
|
10 |
Affected by multiple CVEs, see bug for details. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/829051 |
13 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
14 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
15 |
|
16 |
net-proxy/privoxy/Manifest | 1 - |
17 |
net-proxy/privoxy/privoxy-3.0.32-r1.ebuild | 148 ----------------------------- |
18 |
2 files changed, 149 deletions(-) |
19 |
|
20 |
diff --git a/net-proxy/privoxy/Manifest b/net-proxy/privoxy/Manifest |
21 |
index 225fc03773b4..2377bed61add 100644 |
22 |
--- a/net-proxy/privoxy/Manifest |
23 |
+++ b/net-proxy/privoxy/Manifest |
24 |
@@ -1,2 +1 @@ |
25 |
-DIST privoxy-3.0.32-stable-src.tar.gz 1834528 BLAKE2B c846dada5fd34b80be9f7a75dc4177f3907241f6cf28b4120929687523d449d73b6a78bfe73f0a1086fbb3a8388103beb1e5a62becdffa24bf57d34cbb6cda56 SHA512 da41c0045bf593219df64718645eff984b5df43737811cc0fa12fce7e8ae1ab59eefbe20f23d6ce8f62216cfd81f1a9c319688d15693c25eed36010f3e1d5ffd |
26 |
DIST privoxy-3.0.33-stable-src.tar.gz 1579540 BLAKE2B 4b76aa2e84160bab346d0548019158edb5562ca1dbf5356f765a6b91967f352f99c45c852254acf3d8e85cf8e8d210c050d1cf69ace3e5dbda8cdd13c1138df3 SHA512 9684455dbce7f6d8f5defd31aa9a7316e0c1dc896525ab4d562d0359462b541b1c366dea9db07b798f3e00b9cbcc44f494d8c431bcb10f2cb05b5bca3cfeaf75 |
27 |
|
28 |
diff --git a/net-proxy/privoxy/privoxy-3.0.32-r1.ebuild b/net-proxy/privoxy/privoxy-3.0.32-r1.ebuild |
29 |
deleted file mode 100644 |
30 |
index cbcdc645d5f6..000000000000 |
31 |
--- a/net-proxy/privoxy/privoxy-3.0.32-r1.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,148 +0,0 @@ |
34 |
-# Copyright 1999-2021 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=7 |
38 |
- |
39 |
-inherit autotools systemd toolchain-funcs |
40 |
- |
41 |
-[ "${PV##*_}" = "beta" ] && |
42 |
- PRIVOXY_STATUS="beta" || |
43 |
- PRIVOXY_STATUS="stable" |
44 |
- |
45 |
-HOMEPAGE="https://www.privoxy.org https://sourceforge.net/projects/ijbswa/" |
46 |
-DESCRIPTION="A web proxy with advanced filtering capabilities for enhancing privacy" |
47 |
-SRC_URI="mirror://sourceforge/ijbswa/${P%_*}-${PRIVOXY_STATUS}-src.tar.gz" |
48 |
- |
49 |
-IUSE="+acl brotli client-tags compression editor extended-host-patterns |
50 |
-extended-statistics external-filters +fast-redirects +force fuzz |
51 |
-graceful-termination +image-blocking ipv6 lfs +mbedtls openssl |
52 |
-png-images selinux ssl +stats +threads toggle tools whitelists |
53 |
-+zlib" |
54 |
-SLOT="0" |
55 |
-KEYWORDS="~alpha amd64 arm ~arm64 ppc ppc64 sparc x86" |
56 |
-LICENSE="GPL-2+" |
57 |
- |
58 |
-DEPEND=" |
59 |
- acct-group/privoxy |
60 |
- acct-user/privoxy |
61 |
- dev-libs/libpcre |
62 |
- brotli? ( app-arch/brotli ) |
63 |
- ssl? ( |
64 |
- mbedtls? ( net-libs/mbedtls:= ) |
65 |
- openssl? ( dev-libs/openssl:= ) |
66 |
- ) |
67 |
- zlib? ( sys-libs/zlib:= ) |
68 |
-" |
69 |
-RDEPEND="${DEPEND} |
70 |
- extended-host-patterns? ( dev-lang/perl ) |
71 |
- selinux? ( sec-policy/selinux-privoxy ) |
72 |
- tools? ( |
73 |
- net-misc/curl |
74 |
- dev-lang/perl |
75 |
- ) |
76 |
-" |
77 |
-REQUIRED_USE=" |
78 |
- client-tags? ( threads ) |
79 |
- toggle? ( editor ) |
80 |
- compression? ( zlib ) |
81 |
- brotli? ( zlib ) |
82 |
- fuzz? ( zlib ) |
83 |
- ssl? ( ^^ ( mbedtls openssl ) threads ) |
84 |
-" |
85 |
- |
86 |
-S="${WORKDIR}/${P%_*}-${PRIVOXY_STATUS}" |
87 |
- |
88 |
-PATCHES=( |
89 |
- "${FILESDIR}"/${PN}-3.0.32-gentoo.patch |
90 |
- "${FILESDIR}"/${PN}-3.0.28-strip.patch |
91 |
-) |
92 |
- |
93 |
-pkg_pretend() { |
94 |
- if ! use threads; then |
95 |
- ewarn |
96 |
- ewarn "Privoxy may be very slow without threads support, consider to enable them." |
97 |
- ewarn "See also https://www.privoxy.org/faq/trouble.html#GENTOO-RICERS" |
98 |
- ewarn |
99 |
- fi |
100 |
-} |
101 |
- |
102 |
-src_prepare() { |
103 |
- default |
104 |
- mv configure.in configure.ac || die |
105 |
- sed -i "s|/p\.p/|/config.privoxy.org/|g" tools/privoxy-regression-test.pl || die |
106 |
- |
107 |
- # autoreconf needs to be called even if we don't modify any autotools source files |
108 |
- # See main makefile |
109 |
- eautoreconf |
110 |
-} |
111 |
- |
112 |
-src_configure() { |
113 |
- local myconf="--without-mbedtls --without-openssl" |
114 |
- if use ssl; then |
115 |
- myconf="$(use_with mbedtls) $(use_with openssl)" |
116 |
- fi |
117 |
- |
118 |
- # --with-debug only enables debug CFLAGS |
119 |
- # --with-docbook and --with-db2html and their deps are useless, |
120 |
- # since docs are already pregenerated in the source tarball |
121 |
- econf \ |
122 |
- --sysconfdir=/etc/privoxy \ |
123 |
- --enable-dynamic-pcre \ |
124 |
- --without-assertions \ |
125 |
- --with-user=privoxy \ |
126 |
- --with-group=privoxy \ |
127 |
- $(use_enable acl acl-support) \ |
128 |
- $(use_enable compression) \ |
129 |
- $(use_enable client-tags) \ |
130 |
- $(use_enable editor) \ |
131 |
- $(use_enable extended-host-patterns pcre-host-patterns) \ |
132 |
- $(use_enable extended-statistics) \ |
133 |
- $(use_enable fast-redirects) \ |
134 |
- $(use_enable force) \ |
135 |
- $(use_enable fuzz) \ |
136 |
- $(use_enable graceful-termination) \ |
137 |
- $(use_enable image-blocking) \ |
138 |
- $(use_enable ipv6 ipv6-support) \ |
139 |
- $(use_enable kernel_FreeBSD accept-filter) \ |
140 |
- $(use_enable lfs large-file-support) \ |
141 |
- $(use_enable png-images no-gifs) \ |
142 |
- $(use_enable stats) \ |
143 |
- $(use_enable threads pthread) \ |
144 |
- $(use_enable toggle) \ |
145 |
- $(use_enable whitelists trust-files) \ |
146 |
- $(use_enable zlib) \ |
147 |
- $(use_with brotli) \ |
148 |
- ${myconf} |
149 |
-} |
150 |
- |
151 |
-src_install() { |
152 |
- default |
153 |
- |
154 |
- newinitd "${FILESDIR}/privoxy.initd-3" privoxy |
155 |
- systemd_dounit "${FILESDIR}"/${PN}.service |
156 |
- |
157 |
- insinto /etc/logrotate.d |
158 |
- newins "${FILESDIR}/privoxy.logrotate" privoxy |
159 |
- |
160 |
- diropts -m 0750 -g privoxy -o privoxy |
161 |
- keepdir /var/log/privoxy |
162 |
- |
163 |
- use extended-host-patterns && newbin tools/url-pattern-translator.pl privoxy-url-pattern-translator.pl |
164 |
- if use tools; then |
165 |
- dobin tools/{privoxy-log-parser.pl,privoxy-regression-test.pl} |
166 |
- newbin tools/uagen.pl privoxy-uagen.pl |
167 |
- fi |
168 |
- |
169 |
- rmdir "${ED}/var/run" || die |
170 |
- chown privoxy:root "${ED}/etc/privoxy" || die |
171 |
-} |
172 |
- |
173 |
-pkg_postinst() { |
174 |
- if use extended-host-patterns; then |
175 |
- ewarn |
176 |
- ewarn "You enabled extended-host-patterns, now you *must* convert all action files in" |
177 |
- ewarn "PCRE-compatible format, or privoxy will fail to start. Helper tool" |
178 |
- ewarn "privoxy-url-pattern-translator.pl is available." |
179 |
- ewarn |
180 |
- fi |
181 |
-} |