Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, net-proxy/ufdbguard/files/, net-proxy/ufdbguard/
Date: Sat, 20 Apr 2019 23:28:02
Message-Id: 1555746645.83b41b05e5d7fe4c2a91356a4fbdeca9df3ddabb.mgorny@gentoo
1 commit: 83b41b05e5d7fe4c2a91356a4fbdeca9df3ddabb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 20 07:50:45 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 20 07:50:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83b41b05
7
8 net-proxy/ufdbguard: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/677482
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 net-proxy/ufdbguard/Manifest | 2 -
14 net-proxy/ufdbguard/files/ufdb.confd | 20 ----
15 net-proxy/ufdbguard/files/ufdb.initd | 82 --------------
16 net-proxy/ufdbguard/files/ufdb.initd.2 | 67 -----------
17 net-proxy/ufdbguard/files/ufdbUpdate.cron | 13 ---
18 .../ufdbguard/files/ufdbguard-1.24-gentoo.patch | 13 ---
19 net-proxy/ufdbguard/metadata.xml | 22 ----
20 net-proxy/ufdbguard/ufdbguard-1.32.4.ebuild | 126 ---------------------
21 profiles/package.mask | 2 -
22 9 files changed, 347 deletions(-)
23
24 diff --git a/net-proxy/ufdbguard/Manifest b/net-proxy/ufdbguard/Manifest
25 deleted file mode 100644
26 index e66ae91e33b..00000000000
27 --- a/net-proxy/ufdbguard/Manifest
28 +++ /dev/null
29 @@ -1,2 +0,0 @@
30 -DIST ufdbGuard-1.32.4.tar.gz 2499206 BLAKE2B 02070298cecdb93e189054d129235f391b7de94d1476f61b55cb7c1a38362b55817dfda1805d593a8939421889084135c3dfa7c3e72699d46667ad7263123aef SHA512 189cb67c533ab71ba1d3292a376d746e0565a3bf5de17f4407c5892ee24c20cd2574752bdcb08be19621a93114cc69a89767c581d531027ecbf6487ef3119d91
31 -DIST ufdbguard-1.32.4-manual.pdf 642626 BLAKE2B 335effd8443b005e4df067778bdbbd9fe2e4442009a8f59de70dec87aa265e3f134bed36006864bcea7381179d67619eeab6eb932815e3feb91e45fc492b3a89 SHA512 98444689c07da3ce9937675b45607ea88fc5a10c65051746cd821650788ec21cbc836a043a486de51813b85d836e255bb3a64a62252808dfe93310e6e169fdb1
32
33 diff --git a/net-proxy/ufdbguard/files/ufdb.confd b/net-proxy/ufdbguard/files/ufdb.confd
34 deleted file mode 100644
35 index 08c7e5f1a8f..00000000000
36 --- a/net-proxy/ufdbguard/files/ufdb.confd
37 +++ /dev/null
38 @@ -1,20 +0,0 @@
39 -# -*- sh -*-
40 -
41 -# Tables to re-generate when starting or reloading ufdbguard
42 -UFDB_GT="alwaysallow alwaysdeny"
43 -
44 -# Options passed to ufdbGenTable when generating the tables listed in
45 -# UFDB_GT
46 -GENTABLE_OPTIONS="-W"
47 -
48 -# User under which to run ufdbguard; it should be the same as the
49 -# proxy server you're using, so by default it is squid.
50 -UFDB_USER="squid"
51 -
52 -# Options to pass to ufdbguardd; see /usr/libexec/ufdbguard/ufdbguardd
53 -# -h for a brief list.
54 -UFDB_OPTS=""
55 -
56 -# Options used by the modified ufdbUpdate script in Gentoo
57 -DOWNLOAD_USER=""
58 -DOWNLOAD_PASSWORD=""
59
60 diff --git a/net-proxy/ufdbguard/files/ufdb.initd b/net-proxy/ufdbguard/files/ufdb.initd
61 deleted file mode 100644
62 index e55c0e7d1a1..00000000000
63 --- a/net-proxy/ufdbguard/files/ufdb.initd
64 +++ /dev/null
65 @@ -1,82 +0,0 @@
66 -#!/sbin/openrc-run
67 -# Copyright 1999-2011 Gentoo Foundation
68 -# Distributed under the terms of the GNU General Public License v2
69 -
70 -# reconfig is what the upstream documentation suggests, so let's
71 -# provide it for compatibility.
72 -extra_started_commands="reload reconfig"
73 -
74 -depend() {
75 - need net
76 - before squid
77 - use logger
78 -}
79 -
80 -get_config() {
81 - awk '$1 == "'$1'" { print $2 }' "/etc/ufdbGuard.conf"
82 -}
83 -
84 -gentables() {
85 - local dbhome=$(get_config dbhome)
86 -
87 - for gt in ${UFDB_GT} ; do
88 - [ -f "${dbhome}/${gt}/domains" ] || continue
89 -
90 - urls=
91 - [ -f "${dbhome}/${gt}/urls" ] && urls="${dbhome}/${gt}/urls"
92 -
93 - ebegin "Generating domainlist ${gt}"
94 - ufdbGenTable ${GENTABLE_OPTIONS} -t "${gt}" -d "${dbhome}/${gt}/domains" ${urls:+-u "${urls}"}
95 - eend $?
96 - done
97 -}
98 -
99 -start() {
100 - gentables
101 -
102 - local logdir=$(get_config logdir)
103 -
104 - if [ ! -d "${logdir}" ] ; then
105 - mkdir -p ${logdir}
106 - chown -R ${UFDB_USER} ${logdir}
107 - fi
108 -
109 - if [ ! -d /var/run/ufdbguardd ] ; then
110 - mkdir -p /var/run/ufdbguard
111 - chown -R ${UFDB_USER} /var/run/ufdbguard
112 - fi
113 -
114 - ebegin "Starting ufdbGuard"
115 - start-stop-daemon --start \
116 - --user ${UFDB_USER} \
117 - --wait 1500 \
118 - --exec /usr/libexec/ufdbguard/ufdbguardd \
119 - --pidfile /var/run/ufdbguard/ufdbguardd.pid -- \
120 - -c /etc/ufdbGuard.conf ${UFDB_OPTS}
121 - eend $? "Failed to start ufdbGuard"
122 -}
123 -
124 -stop() {
125 - ebegin "Stopping ufdbGuard"
126 - start-stop-daemon --stop \
127 - --exec /usr/libexec/ufdbguard/ufdbguardd \
128 - --pidfile /var/run/ufdbguard/ufdbguardd.pid
129 - eend $? "Failed to stop ufdbGuard"
130 -}
131 -
132 -reload() {
133 - if ! [ -f /var/run/ufdbguard/ufdbguardd.pid ]; then
134 - eerror "Unable to find PID file for ufdbguardd, was it just started?"
135 - return 1
136 - fi
137 -
138 - gentables
139 -
140 - ebegin "Reloading ufdbGuard"
141 - kill -HUP "$(cat /var/run/ufdbguard/ufdbguardd.pid)"
142 - eend $? "Failed to reload ufdbGuard"
143 -}
144 -
145 -reconfig() {
146 - reload
147 -}
148
149 diff --git a/net-proxy/ufdbguard/files/ufdb.initd.2 b/net-proxy/ufdbguard/files/ufdb.initd.2
150 deleted file mode 100644
151 index 44a7f59026e..00000000000
152 --- a/net-proxy/ufdbguard/files/ufdb.initd.2
153 +++ /dev/null
154 @@ -1,67 +0,0 @@
155 -#!/sbin/openrc-run
156 -# Copyright 1999-2012 Gentoo Foundation
157 -# Distributed under the terms of the GNU General Public License v2
158 -
159 -# reconfig is what the upstream documentation suggests, so let's
160 -# provide it for compatibility.
161 -extra_started_commands="reload reconfig"
162 -
163 -: ${configfile:=/etc/ufdbGuard.conf}
164 -
165 -pidfile=/var/run/ufdbguard/ufdbguardd.pid
166 -command=/usr/libexec/ufdbguard/ufdbguardd
167 -command_arguments="-c ${configfile} ${FUDB_OPTS}"
168 -
169 -start_stop_daemon_args="--user ${UFDB_USER} --wait 1500"
170 -
171 -name="ufdbGuard Daemon"
172 -
173 -depend() {
174 - need localmount
175 - before squid
176 - use logger
177 -}
178 -
179 -get_config() {
180 - # Okay this sounds silly, but it is important because the settings
181 - # in ufdbGuard are quoted, so this unquotes them.
182 - eval echo $(awk '$1 == "'$1'" { print $2 }' "${configfile}")
183 -}
184 -
185 -gentables() {
186 - local dbhome=$(get_config dbhome)
187 -
188 - for gt in ${UFDB_GT} ; do
189 - [ -f "${dbhome}/${gt}/domains" ] || continue
190 -
191 - urls=
192 - [ -f "${dbhome}/${gt}/urls" ] && urls="${dbhome}/${gt}/urls"
193 -
194 - ebegin "Generating domainlist ${gt}"
195 - ufdbGenTable ${GENTABLE_OPTIONS} -t "${gt}" -d "${dbhome}/${gt}/domains" ${urls:+-u "${urls}"}
196 - eend $?
197 - done
198 -}
199 -
200 -start_pre() {
201 - gentables
202 -
203 - checkpath -d -m 0755 -o ${UFDB_USER} $(get_config logdir) "$(dirname "${pidfile}")"
204 -}
205 -
206 -reload() {
207 - if ! [ -f ${pidfile} ]; then
208 - eerror "Unable to find PID file for ufdbguardd, was it just started?"
209 - return 1
210 - fi
211 -
212 - gentables
213 -
214 - ebegin "Reloading ufdbGuard"
215 - kill -HUP "$(cat ${pidfile})"
216 - eend $? "Failed to reload ufdbGuard"
217 -}
218 -
219 -reconfig() {
220 - reload
221 -}
222
223 diff --git a/net-proxy/ufdbguard/files/ufdbUpdate.cron b/net-proxy/ufdbguard/files/ufdbUpdate.cron
224 deleted file mode 100644
225 index f9147648c8b..00000000000
226 --- a/net-proxy/ufdbguard/files/ufdbUpdate.cron
227 +++ /dev/null
228 @@ -1,13 +0,0 @@
229 -#!/bin/sh
230 -# Copyright 1999-2011 Gentoo Foundation
231 -# Distributed under the terms of the GNU General Public License v2
232 -
233 -# cron.daily file to update the ufdb database
234 -
235 -# Avoid doing anything if no download user is set in the configuration
236 -# file
237 -( . /etc/conf.d/ufdb ; [ -z "${DOWNLOAD_USER}" ]; ) && exit
238 -
239 -/usr/sbin/ufdbUpdate
240 -
241 -/etc/init.d/squid rotate
242
243 diff --git a/net-proxy/ufdbguard/files/ufdbguard-1.24-gentoo.patch b/net-proxy/ufdbguard/files/ufdbguard-1.24-gentoo.patch
244 deleted file mode 100644
245 index 63da98175a0..00000000000
246 --- a/net-proxy/ufdbguard/files/ufdbguard-1.24-gentoo.patch
247 +++ /dev/null
248 @@ -1,13 +0,0 @@
249 -Index: ufdbGuard-1.24/src/ufdbUpdate.in
250 -===================================================================
251 ---- ufdbGuard-1.24.orig/src/ufdbUpdate.in
252 -+++ ufdbGuard-1.24/src/ufdbUpdate.in
253 -@@ -39,6 +39,8 @@ WGET_COMMAND="@WGET@"
254 - NOTIFY_UFDBGUARDD="yes" # send HUP signal to ufdbguardd
255 - SYSLOG_FACILITY="local6" # errors/warnings in system log have this facility name
256 -
257 -+source /etc/conf.d/ufdb
258 -+
259 - # end of user settings.
260 - # DO NOT EDIT ANYTHING BELOW THIS LINE. ########################################
261 -
262
263 diff --git a/net-proxy/ufdbguard/metadata.xml b/net-proxy/ufdbguard/metadata.xml
264 deleted file mode 100644
265 index 3914a0ffa99..00000000000
266 --- a/net-proxy/ufdbguard/metadata.xml
267 +++ /dev/null
268 @@ -1,22 +0,0 @@
269 -<?xml version="1.0" encoding="UTF-8"?>
270 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
271 -<pkgmetadata>
272 - <longdescription>
273 - The fastest URL filter with 25,000 URL verifications/sec to filter
274 - unwanted web content. ufdbGuard is a redirector for the Squid
275 - internet proxy.
276 - </longdescription>
277 - <use>
278 - <flag name="httpd">
279 - Build, install and start the provided mini-http daemon with the
280 - redirect CGI integrated. Since there is no way to tell ufdbguard
281 - to not start it, this is a build-time option.
282 - </flag>
283 - <flag name="doc">
284 - Download and install the ufdbguard reference manual in PDF.
285 - </flag>
286 - </use>
287 - <upstream>
288 - <remote-id type="sourceforge">ufdbguard</remote-id>
289 - </upstream>
290 -</pkgmetadata>
291
292 diff --git a/net-proxy/ufdbguard/ufdbguard-1.32.4.ebuild b/net-proxy/ufdbguard/ufdbguard-1.32.4.ebuild
293 deleted file mode 100644
294 index 49efe94f7e6..00000000000
295 --- a/net-proxy/ufdbguard/ufdbguard-1.32.4.ebuild
296 +++ /dev/null
297 @@ -1,126 +0,0 @@
298 -# Copyright 1999-2016 Gentoo Foundation
299 -# Distributed under the terms of the GNU General Public License v2
300 -
301 -EAPI=6
302 -
303 -inherit eutils flag-o-matic user
304 -
305 -MY_P="ufdbGuard-${PV}"
306 -
307 -DESCRIPTION="ufdbGuard is a redirector for the Squid internet proxy"
308 -HOMEPAGE="http://www.urlfilterdb.com/en/products/ufdbguard.html"
309 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
310 - doc? ( mirror://sourceforge/${PN}/${PV/\.?/}/ReferenceManual.pdf -> ${P}-manual.pdf )"
311 -
312 -LICENSE="GPL-2"
313 -SLOT="0"
314 -KEYWORDS="~amd64 ~x86"
315 -IUSE="doc +httpd"
316 -
317 -COMMON_DEPEND="
318 - app-arch/bzip2
319 - dev-libs/openssl:0=
320 - net-misc/wget
321 -"
322 -DEPEND="${COMMON_DEPEND}
323 - sys-devel/bison
324 - sys-devel/flex
325 -"
326 -RDEPEND="${COMMON_DEPEND}
327 - sys-apps/openrc
328 -"
329 -
330 -DOCS=( CHANGELOG README src/sampleufdbGuard.conf )
331 -
332 -PATCHES=( "${FILESDIR}"/${PN}-1.24-gentoo.patch )
333 -
334 -S="${WORKDIR}/${MY_P}"
335 -
336 -pkg_setup() {
337 - enewgroup squid
338 - enewuser squid -1 -1 /var/cache/squid squid
339 -}
340 -
341 -src_configure() {
342 - # better safe than sorry, the code has a number of possible
343 - # breakage, and at least one certain breakage.
344 - append-flags -fno-strict-aliasing
345 -
346 - econf \
347 - --with-ufdb-user=squid \
348 - --with-ufdb-config="${EPREFIX}"/etc \
349 - --with-ufdb-bindir="${EPREFIX}"/usr/libexec/ufdbguard \
350 - --with-ufdb-logdir="${EPREFIX}"/var/log/ufdbguard \
351 - --with-ufdb-dbhome="${EPREFIX}"/usr/share/ufdbguard/blacklists \
352 - --with-ufdb-images_dir="${EPREFIX}"/usr/share/ufdbguard/images
353 -}
354 -
355 -src_install() {
356 - einstalldocs
357 - doman doc/*.1
358 -
359 - dobin src/ufdbAnalyse src/ufdbGenTable src/ufdbGrab \
360 - src/ufdbConvertDB
361 - dosbin src/ufdbUpdate
362 -
363 - exeinto /usr/libexec/ufdbguard
364 - doexe src/mtserver/ufdbguardd src/mtserver/ufdbgclient
365 -
366 - if use httpd; then
367 - exeinto /usr/libexec/ufdbguard
368 - doexe src/ufdbhttpd
369 - fi
370 -
371 - keepdir /usr/share/ufdbguard/blacklists
372 -
373 - insinto /etc
374 - doins src/ufdbGuard.conf
375 -
376 - insinto /usr/share/ufdbguard/images
377 - doins -r src/images/.
378 -
379 - newconfd "${FILESDIR}"/ufdb.confd ufdb
380 - newinitd "${FILESDIR}"/ufdb.initd.2 ufdb
381 -
382 - exeinto /etc/cron.daily
383 - newexe "${FILESDIR}"/ufdbUpdate.cron ufdbUpdate
384 -
385 - use doc && newdoc "${DISTDIR}"/${P}-manual.pdf ReferenceManual.pdf
386 -}
387 -
388 -pkg_postinst() {
389 - elog "The default location for the blacklist database has been"
390 - elog "moved to ${EROOT%/}/usr/share/ufdbguard/blacklists."
391 - elog ""
392 - elog "The configuration file is no longer configurable in the"
393 - elog "service file, and now resides at ${EROOT%/}/etc/ufdbGuard.conf ."
394 - elog ""
395 - elog "The service script has been renamed from ufdbguad to simply"
396 - elog "${EROOT%/}/etc/init.d/ufdb, to follow the official documentation, and"
397 - elog "it gained a reload option with a reconfig alias."
398 - elog ""
399 - elog "You can configure the username and password parameters for"
400 - elog "ufdbUpdate, to fetch the blacklist database provided by"
401 - elog "URLfilterDB, directly in ${EROOT%/}/etc/conf.d/ufdb without touching"
402 - elog "the script itself."
403 - elog ""
404 - elog "To enable ufdbguard in squid, you should add this to your"
405 - elog "squid.conf:"
406 - elog ""
407 - elog " url_rewrite_program ${EROOT%/}/usr/libexec/ufdbguard/ufdbgclient -l ${EROOT%/}/var/log/ufdbguard"
408 - elog " url_rewrite_children 64"
409 - elog ""
410 - if ! use httpd; then
411 - elog "You chose to not install the lightweight http daemon that"
412 - elog "comes with ufdbguard."
413 - else
414 - elog "The ufdb service will start both the ufdbguardd daemon and"
415 - elog "the ufdbhttpd http daemon to provide a local redirect CGI."
416 - elog "If you don't want this to happen, disable the httpd USE flag."
417 - fi
418 - if use doc; then
419 - elog ""
420 - elog "The reference manual has been installed as"
421 - elog " ${EROOT%/}/usr/share/doc/${PF}/ReferenceManual.pdf"
422 - fi
423 -}
424
425 diff --git a/profiles/package.mask b/profiles/package.mask
426 index 4f2f5f3c2fb..244c74f9bc0 100644
427 --- a/profiles/package.mask
428 +++ b/profiles/package.mask
429 @@ -629,7 +629,6 @@ x11-libs/hippo-canvas
430 # net-misc/sslwrap: #674524, last updated upstream in 2000
431 # net-misc/stone: #675612, needs new snapshot, current ver is from 2008
432 # net-misc/tn5250: #678684, last commits in 2012
433 -# net-proxy/ufdbguard: #677482, needs bump, current ver is from 2016
434 #
435 # Removal in 30 days.
436 app-crypt/keynote
437 @@ -656,7 +655,6 @@ net-mail/uw-mailutils
438 net-misc/sslwrap
439 net-misc/stone
440 net-misc/tn5250
441 -net-proxy/ufdbguard
442
443 # Miroslav Šulc <fordfrog@g.o> (19 Mar 2019)
444 # Depends on >=virtual/{jdk,jre}-11 which is masked