Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/privoxy/files/, net-proxy/privoxy/
Date: Sat, 03 Apr 2021 15:36:11
Message-Id: 1617463860.321320060479e4a9d76ff5a79ce56ba860972c67.bircoph@gentoo
1 commit: 321320060479e4a9d76ff5a79ce56ba860972c67
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 3 15:31:00 2021 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 3 15:31:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32132006
7
8 net-proxy/privoxy: remove old version
9
10 Bug: https://bugs.gentoo.org/771960
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
13
14 net-proxy/privoxy/Manifest | 1 -
15 .../privoxy/files/privoxy-3.0.29-gentoo.patch | 118 -----------------
16 net-proxy/privoxy/privoxy-3.0.31.ebuild | 147 ---------------------
17 3 files changed, 266 deletions(-)
18
19 diff --git a/net-proxy/privoxy/Manifest b/net-proxy/privoxy/Manifest
20 index ca5d8acc7e5..2bb3d36bce4 100644
21 --- a/net-proxy/privoxy/Manifest
22 +++ b/net-proxy/privoxy/Manifest
23 @@ -1,2 +1 @@
24 -DIST privoxy-3.0.31-stable-src.tar.gz 1839901 BLAKE2B 08564fb8de37d334844de10dfecc39b3f10cee996b3931be4e2d7e33eccd7ec115d7487353496de0fd645fc76ea237aa907eda2fb7fa8aad14050280fc083cc7 SHA512 0bea9973ac22e594a959452390c8612605dbf1fd55151632d35ecc7fe0ef9ca87cc1694a8bcb0511467445ec414b721b9d33651d917b2a8083768d8905ec68ed
25 DIST privoxy-3.0.32-stable-src.tar.gz 1834528 BLAKE2B c846dada5fd34b80be9f7a75dc4177f3907241f6cf28b4120929687523d449d73b6a78bfe73f0a1086fbb3a8388103beb1e5a62becdffa24bf57d34cbb6cda56 SHA512 da41c0045bf593219df64718645eff984b5df43737811cc0fa12fce7e8ae1ab59eefbe20f23d6ce8f62216cfd81f1a9c319688d15693c25eed36010f3e1d5ffd
26
27 diff --git a/net-proxy/privoxy/files/privoxy-3.0.29-gentoo.patch b/net-proxy/privoxy/files/privoxy-3.0.29-gentoo.patch
28 deleted file mode 100644
29 index 572d03439b9..00000000000
30 --- a/net-proxy/privoxy/files/privoxy-3.0.29-gentoo.patch
31 +++ /dev/null
32 @@ -1,118 +0,0 @@
33 -diff '--color=auto' -Naur privoxy-3.0.29-stable.orig/config privoxy-3.0.29-stable/config
34 ---- privoxy-3.0.29-stable.orig/config 2020-11-28 13:19:00.000000000 +0300
35 -+++ privoxy-3.0.29-stable/config 2021-01-06 19:44:52.824746891 +0300
36 -@@ -259,7 +259,7 @@
37 - #
38 - # No trailing "/", please.
39 - #
40 --confdir .
41 -+confdir /etc/privoxy
42 - #
43 - # 2.2. templdir
44 - # ==============
45 -@@ -344,7 +344,7 @@
46 - #
47 - # No trailing "/", please.
48 - #
49 --logdir .
50 -+logdir /var/log/privoxy
51 - #
52 - # 2.5. actionsfile
53 - # =================
54 -@@ -477,7 +477,7 @@
55 - # require additional software to do it. For details, please
56 - # refer to the documentation for your operating system.
57 - #
58 --logfile logfile
59 -+logfile privoxy.log
60 - #
61 - # 2.8. trustfile
62 - # ===============
63 -diff '--color=auto' -Naur privoxy-3.0.29-stable.orig/default.action.master privoxy-3.0.29-stable/default.action.master
64 ---- privoxy-3.0.29-stable.orig/default.action.master 2020-11-28 13:19:00.000000000 +0300
65 -+++ privoxy-3.0.29-stable/default.action.master 2021-01-06 19:44:52.825746892 +0300
66 -@@ -559,7 +559,7 @@
67 - +client-header-tagger{image-requests} \
68 - +client-header-tagger{range-requests} \
69 - +hide-from-header{block} \
70 --+set-image-blocker{pattern} \
71 -++set-image-blocker{blank} \
72 - }
73 - standard.Cautious
74 -
75 -@@ -582,7 +582,7 @@
76 - +hide-from-header{block} \
77 - +hide-referrer{conditional-block} \
78 - +session-cookies-only \
79 --+set-image-blocker{pattern} \
80 -++set-image-blocker{blank} \
81 - }
82 - standard.Medium
83 -
84 -@@ -622,7 +622,7 @@
85 - +hide-referrer{conditional-block} \
86 - +limit-connect{,} \
87 - +overwrite-last-modified{randomize} \
88 --+set-image-blocker{pattern} \
89 -++set-image-blocker{blank} \
90 - }
91 - standard.Advanced
92 -
93 -diff '--color=auto' -Naur privoxy-3.0.29-stable.orig/GNUmakefile.in privoxy-3.0.29-stable/GNUmakefile.in
94 ---- privoxy-3.0.29-stable.orig/GNUmakefile.in 2020-11-28 13:19:00.000000000 +0300
95 -+++ privoxy-3.0.29-stable/GNUmakefile.in 2021-01-06 19:45:20.535798829 +0300
96 -@@ -62,8 +62,8 @@
97 - MAN_DEST = $(MAN_DIR)/man1
98 - MAN_PAGE = privoxy.1
99 - SHARE_DEST = @datadir@
100 --DOC_DEST = $(SHARE_DEST)/doc/privoxy
101 --VAR_DEST = @localstatedir@
102 -+DOC_DEST = @docdir@
103 -+VAR_DEST = /var
104 - LOGS_DEST = $(VAR_DEST)/log/privoxy
105 - PIDS_DEST = $(VAR_DEST)/run
106 -
107 -@@ -890,8 +890,6 @@
108 - $(INSTALL) $(INSTALL_T) $(DOK_WEB)/man-page/*html $(DESTDIR)$$DOC/man-page;\
109 - $(INSTALL) $(INSTALL_T) $(DOK_WEB)/privoxy-index.html $(DESTDIR)$$DOC/index.html;\
110 - $(INSTALL) $(INSTALL_T) AUTHORS $(DESTDIR)$$DOC;\
111 -- $(INSTALL) $(INSTALL_T) LICENSE $(DESTDIR)$$DOC;\
112 -- $(INSTALL) $(INSTALL_T) LICENSE.GPLv3 $(DESTDIR)$$DOC;\
113 - $(INSTALL) $(INSTALL_T) README $(DESTDIR)$$DOC;\
114 - $(INSTALL) $(INSTALL_T) ChangeLog $(DESTDIR)$$DOC;\
115 - $(INSTALL) $(INSTALL_T) $(DOK_WEB)/p_doc.css $(DESTDIR)$$DOC;\
116 -@@ -962,34 +960,8 @@
117 - fi ;\
118 - $(ECHO) Installing configuration files to $(DESTDIR)$(CONF_DEST);\
119 - for i in $(CONFIGS); do \
120 -- if [ "$$i" = "default.action" ] || [ "$$i" = "default.filter" ] ; then \
121 -- $(RM) $(DESTDIR)$(CONF_DEST)/$$i ;\
122 -- $(ECHO) Installing fresh $$i;\
123 - $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST) || exit 1;\
124 -- elif [ -s "$(CONF_DEST)/$$i" ]; then \
125 -- $(ECHO) Installing $$i as $$i.new ;\
126 -- $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST)/$$i.new || exit 1;\
127 -- NEW=1;\
128 -- else \
129 -- $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST) || exit 1;\
130 -- fi ;\
131 - done ;\
132 -- if [ -n "$$NEW" ]; then \
133 -- $(CHMOD) $(RWD_MODE) $(DESTDIR)$(CONF_DEST)/*.new || exit 1 ;\
134 -- $(ECHO) "Warning: Older config files are preserved. Check new versions for changes!" ;\
135 -- fi ;\
136 -- [ ! -f $(DESTDIR)$(LOG_DEST)/logfile ] && $(ECHO) Creating logfiles in $(DESTDIR)$(LOG_DEST) || \
137 -- $(ECHO) Checking logfiles in $(DESTDIR)$(LOG_DEST) ;\
138 -- $(TOUCH) $(DESTDIR)$(LOG_DEST)/logfile || exit 1 ;\
139 -- if [ x$$USER != x ]; then \
140 -- $(CHOWN) $$USER $(DESTDIR)$(LOG_DEST)/logfile || \
141 -- $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\
142 -- fi ;\
143 -- if [ x$$GROUP_T != x ]; then \
144 -- $(CHGRP) $$GROUP_T $(DESTDIR)$(LOG_DEST)/logfile || \
145 -- $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\
146 -- fi ;\
147 -- $(CHMOD) $(RWD_MODE) $(DESTDIR)$(LOG_DEST)/logfile || exit 1 ;\
148 - if [ "$(prefix)" = "/usr/local" ] || [ "$(prefix)" = "/usr" ]; then \
149 - if [ -f /etc/slackware-version ] && [ -d /etc/rc.d/ ] && [ -w /etc/rc.d/ ] ; then \
150 - $(SED) 's+%PROGRAM%+$(PROGRAM)+' slackware/rc.privoxy.orig | \
151
152 diff --git a/net-proxy/privoxy/privoxy-3.0.31.ebuild b/net-proxy/privoxy/privoxy-3.0.31.ebuild
153 deleted file mode 100644
154 index a6a68fbfe1b..00000000000
155 --- a/net-proxy/privoxy/privoxy-3.0.31.ebuild
156 +++ /dev/null
157 @@ -1,147 +0,0 @@
158 -# Copyright 1999-2021 Gentoo Authors
159 -# Distributed under the terms of the GNU General Public License v2
160 -
161 -EAPI=7
162 -
163 -inherit autotools systemd toolchain-funcs
164 -
165 -[ "${PV##*_}" = "beta" ] &&
166 - PRIVOXY_STATUS="beta" ||
167 - PRIVOXY_STATUS="stable"
168 -
169 -HOMEPAGE="https://www.privoxy.org https://sourceforge.net/projects/ijbswa/"
170 -DESCRIPTION="A web proxy with advanced filtering capabilities for enhancing privacy"
171 -SRC_URI="mirror://sourceforge/ijbswa/${P%_*}-${PRIVOXY_STATUS}-src.tar.gz"
172 -
173 -IUSE="+acl brotli client-tags compression editor extended-host-patterns
174 -extended-statistics external-filters +fast-redirects +force fuzz
175 -graceful-termination +image-blocking ipv6 lfs +mbedtls openssl
176 -png-images selinux ssl +stats +threads toggle tools whitelists
177 -+zlib"
178 -SLOT="0"
179 -KEYWORDS="~alpha amd64 arm ~arm64 ppc ppc64 sparc x86"
180 -LICENSE="GPL-2+"
181 -
182 -DEPEND="
183 - acct-group/privoxy
184 - acct-user/privoxy
185 - dev-libs/libpcre
186 - brotli? ( app-arch/brotli )
187 - ssl? (
188 - mbedtls? ( net-libs/mbedtls )
189 - openssl? ( dev-libs/openssl )
190 - )
191 - zlib? ( sys-libs/zlib )
192 -"
193 -RDEPEND="${DEPEND}
194 - extended-host-patterns? ( dev-lang/perl )
195 - selinux? ( sec-policy/selinux-privoxy )
196 - tools? (
197 - net-misc/curl
198 - dev-lang/perl
199 - )
200 -"
201 -REQUIRED_USE="
202 - client-tags? ( threads )
203 - toggle? ( editor )
204 - compression? ( zlib )
205 - brotli? ( zlib )
206 - fuzz? ( zlib )
207 - ssl? ( ^^ ( mbedtls openssl ) threads )
208 -"
209 -
210 -S="${WORKDIR}/${P%_*}-${PRIVOXY_STATUS}"
211 -
212 -PATCHES=(
213 - "${FILESDIR}"/${PN}-3.0.29-gentoo.patch
214 - "${FILESDIR}"/${PN}-3.0.28-strip.patch
215 -)
216 -
217 -pkg_pretend() {
218 - if ! use threads; then
219 - ewarn
220 - ewarn "Privoxy may be very slow without threads support, consider to enable them."
221 - ewarn "See also https://www.privoxy.org/faq/trouble.html#GENTOO-RICERS"
222 - ewarn
223 - fi
224 -}
225 -
226 -src_prepare() {
227 - default
228 - mv configure.in configure.ac || die
229 - sed -i "s|/p\.p/|/config.privoxy.org/|g" tools/privoxy-regression-test.pl || die
230 -
231 - # autoreconf needs to be called even if we don't modify any autotools source files
232 - # See main makefile
233 - eautoreconf
234 -}
235 -
236 -src_configure() {
237 - local myconf="--without-mbedtls --without-openssl"
238 - if use ssl; then
239 - myconf="$(use_with mbedtls) $(use_with openssl)"
240 - fi
241 -
242 - # --with-debug only enables debug CFLAGS
243 - # --with-docbook and --with-db2html and their deps are useless,
244 - # since docs are already pregenerated in the source tarball
245 - econf \
246 - --sysconfdir=/etc/privoxy \
247 - --enable-dynamic-pcre \
248 - --with-user=privoxy \
249 - --with-group=privoxy \
250 - $(use_enable acl acl-support) \
251 - $(use_enable compression) \
252 - $(use_enable client-tags) \
253 - $(use_enable editor) \
254 - $(use_enable extended-host-patterns pcre-host-patterns) \
255 - $(use_enable extended-statistics) \
256 - $(use_enable fast-redirects) \
257 - $(use_enable force) \
258 - $(use_enable fuzz) \
259 - $(use_enable graceful-termination) \
260 - $(use_enable image-blocking) \
261 - $(use_enable ipv6 ipv6-support) \
262 - $(use_enable kernel_FreeBSD accept-filter) \
263 - $(use_enable lfs large-file-support) \
264 - $(use_enable png-images no-gifs) \
265 - $(use_enable stats) \
266 - $(use_enable threads pthread) \
267 - $(use_enable toggle) \
268 - $(use_enable whitelists trust-files) \
269 - $(use_enable zlib) \
270 - $(use_with brotli) \
271 - ${myconf}
272 -}
273 -
274 -src_install() {
275 - default
276 -
277 - newinitd "${FILESDIR}/privoxy.initd-3" privoxy
278 - systemd_dounit "${FILESDIR}"/${PN}.service
279 -
280 - insinto /etc/logrotate.d
281 - newins "${FILESDIR}/privoxy.logrotate" privoxy
282 -
283 - diropts -m 0750 -g privoxy -o privoxy
284 - keepdir /var/log/privoxy
285 -
286 - use extended-host-patterns && newbin tools/url-pattern-translator.pl privoxy-url-pattern-translator.pl
287 - if use tools; then
288 - dobin tools/{privoxy-log-parser.pl,privoxy-regression-test.pl}
289 - newbin tools/uagen.pl privoxy-uagen.pl
290 - fi
291 -
292 - rmdir "${ED}/var/run" || die
293 - chown privoxy:root "${ED}/etc/privoxy" || die
294 -}
295 -
296 -pkg_postinst() {
297 - if use extended-host-patterns; then
298 - ewarn
299 - ewarn "You enabled extended-host-patterns, now you *must* convert all action files in"
300 - ewarn "PCRE-compatible format, or privoxy will fail to start. Helper tool"
301 - ewarn "privoxy-url-pattern-translator.pl is available."
302 - ewarn
303 - fi
304 -}