diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
commit | b7ebc951da8800f711142f69d9d958bde67a112d (patch) | |
tree | e318514216845acb8f2e49fff7a5cba4027e9d91 /net-proxy/ufdbguard | |
parent | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (diff) |
gentoo resync : 28.04.2019
Diffstat (limited to 'net-proxy/ufdbguard')
-rw-r--r-- | net-proxy/ufdbguard/Manifest | 9 | ||||
-rw-r--r-- | net-proxy/ufdbguard/files/ufdb.confd | 20 | ||||
-rw-r--r-- | net-proxy/ufdbguard/files/ufdb.initd | 82 | ||||
-rw-r--r-- | net-proxy/ufdbguard/files/ufdb.initd.2 | 67 | ||||
-rw-r--r-- | net-proxy/ufdbguard/files/ufdbUpdate.cron | 13 | ||||
-rw-r--r-- | net-proxy/ufdbguard/files/ufdbguard-1.24-gentoo.patch | 13 | ||||
-rw-r--r-- | net-proxy/ufdbguard/metadata.xml | 22 | ||||
-rw-r--r-- | net-proxy/ufdbguard/ufdbguard-1.32.4.ebuild | 126 |
8 files changed, 0 insertions, 352 deletions
diff --git a/net-proxy/ufdbguard/Manifest b/net-proxy/ufdbguard/Manifest deleted file mode 100644 index 313b99817ad8..000000000000 --- a/net-proxy/ufdbguard/Manifest +++ /dev/null @@ -1,9 +0,0 @@ -AUX ufdb.confd 558 BLAKE2B a1ddfe38ee6a3512084a0d645e8cd5741994688ff3887ddc9ff46e8991f2211d25567c9a075745785b6bb95c7f030c612ee1ae85ab4d8d841b3fd0c3615d8631 SHA512 1f010ae16ee196243b4515832fe8c1979c591b1a0f43368d6eeceda8348183f7e0c758eee403ef922276006cd8721d1b642fc08c0d46581c4912f6a6804d4ad5 -AUX ufdb.initd 1792 BLAKE2B fd5a6ddb41644a3ded774cee77cf12ff28b3cd86ec80d279d2655ce0c4e725c84519908b257f64606e5bf409d9ec08c3218c05562fb11ad2fb01499b4137ebd4 SHA512 3a4c8cd3f79242f46c3bb34019680db2502ff1d0c614814079dbba3cb9a0e6722727bb8ca23ceedd837d11b0a605b3d7612e0acb774d09c4c6579925da76c433 -AUX ufdb.initd.2 1510 BLAKE2B 3e936c7d0de84aec5fb5cea16bf07cba61770f072960f101801aef2858de74bb548cb680937924abf461f76633699301a0a5bf5d6b5d16bd3061afb5f32ef823 SHA512 aca83823cab027ae38a9e63f885c5ffecebf3c6352eeb672a90c92360168544691dfdb2a70b967b718856624a36435b0c9263693b4c7b90af06204f16ffe7309 -AUX ufdbUpdate.cron 351 BLAKE2B c84d40ec5ab80959b687498ae33e74094b814227bf5663bc77b933ac83a79d7a2a9f5c2ba459bf93823a05b48a30a43449f345bd4b459afa5427393d99524a34 SHA512 17a6b17e0bb1d6f0a80609d8341c6c803749d4d38f37f1bbc0ab01c5614d07fd3dae580222ed38825480bfeb74cb4af4f81448e843ab61f4044cf755602c3cf6 -AUX ufdbguard-1.24-gentoo.patch 536 BLAKE2B b13634ad226ca59d1d2a64349c958a0147b08b0b85d061ef35d21451c39264b8dd4a6c22667f0a88ee767ed59a249158d078b9aba1142b8a76bfb8deeaba134c SHA512 ddd39b4841d740df5102717dbe2eb41917e49d42338343f7f402e4049a5ab252841138541b7c659934d30cf9a31a7274bf226c108af80826b608fbc2e709f6e4 -DIST ufdbGuard-1.32.4.tar.gz 2499206 BLAKE2B 02070298cecdb93e189054d129235f391b7de94d1476f61b55cb7c1a38362b55817dfda1805d593a8939421889084135c3dfa7c3e72699d46667ad7263123aef SHA512 189cb67c533ab71ba1d3292a376d746e0565a3bf5de17f4407c5892ee24c20cd2574752bdcb08be19621a93114cc69a89767c581d531027ecbf6487ef3119d91 -DIST ufdbguard-1.32.4-manual.pdf 642626 BLAKE2B 335effd8443b005e4df067778bdbbd9fe2e4442009a8f59de70dec87aa265e3f134bed36006864bcea7381179d67619eeab6eb932815e3feb91e45fc492b3a89 SHA512 98444689c07da3ce9937675b45607ea88fc5a10c65051746cd821650788ec21cbc836a043a486de51813b85d836e255bb3a64a62252808dfe93310e6e169fdb1 -EBUILD ufdbguard-1.32.4.ebuild 3559 BLAKE2B 744cf557348cb26308432c4be64597684b09e1d0c17b182ca49e39856258ca0a7ead0fbdd07918cad036ecdc7b5e87981a5f5c30c624de82698bff32056ae0d1 SHA512 b73210979b0aa21293783ddf54b956ed4be257c89da4443fd3d887fb3b92931998da8456029e450c1f2e72230d398a91cec24ad432d3f909bd3b0965c2927c82 -MISC metadata.xml 766 BLAKE2B 89ce7f57ffc774db147a2f463f929466af5d2c5817d0839a7eb61ef8af7bb7c5bac883d0a5b7e3be0dba95c3be3b02ea65a63d2915d31ac6b3d23196090448eb SHA512 c01ba7f9fcea23fa66901809d2bef786ecf0ca6673d99ce082840d164a26870c388652ea6ba9764a62773c49f090a236824ae06f6bb36052ebb4767fef38edd9 diff --git a/net-proxy/ufdbguard/files/ufdb.confd b/net-proxy/ufdbguard/files/ufdb.confd deleted file mode 100644 index 08c7e5f1a8fa..000000000000 --- a/net-proxy/ufdbguard/files/ufdb.confd +++ /dev/null @@ -1,20 +0,0 @@ -# -*- sh -*- - -# Tables to re-generate when starting or reloading ufdbguard -UFDB_GT="alwaysallow alwaysdeny" - -# Options passed to ufdbGenTable when generating the tables listed in -# UFDB_GT -GENTABLE_OPTIONS="-W" - -# User under which to run ufdbguard; it should be the same as the -# proxy server you're using, so by default it is squid. -UFDB_USER="squid" - -# Options to pass to ufdbguardd; see /usr/libexec/ufdbguard/ufdbguardd -# -h for a brief list. -UFDB_OPTS="" - -# Options used by the modified ufdbUpdate script in Gentoo -DOWNLOAD_USER="" -DOWNLOAD_PASSWORD="" diff --git a/net-proxy/ufdbguard/files/ufdb.initd b/net-proxy/ufdbguard/files/ufdb.initd deleted file mode 100644 index e55c0e7d1a1e..000000000000 --- a/net-proxy/ufdbguard/files/ufdb.initd +++ /dev/null @@ -1,82 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -# reconfig is what the upstream documentation suggests, so let's -# provide it for compatibility. -extra_started_commands="reload reconfig" - -depend() { - need net - before squid - use logger -} - -get_config() { - awk '$1 == "'$1'" { print $2 }' "/etc/ufdbGuard.conf" -} - -gentables() { - local dbhome=$(get_config dbhome) - - for gt in ${UFDB_GT} ; do - [ -f "${dbhome}/${gt}/domains" ] || continue - - urls= - [ -f "${dbhome}/${gt}/urls" ] && urls="${dbhome}/${gt}/urls" - - ebegin "Generating domainlist ${gt}" - ufdbGenTable ${GENTABLE_OPTIONS} -t "${gt}" -d "${dbhome}/${gt}/domains" ${urls:+-u "${urls}"} - eend $? - done -} - -start() { - gentables - - local logdir=$(get_config logdir) - - if [ ! -d "${logdir}" ] ; then - mkdir -p ${logdir} - chown -R ${UFDB_USER} ${logdir} - fi - - if [ ! -d /var/run/ufdbguardd ] ; then - mkdir -p /var/run/ufdbguard - chown -R ${UFDB_USER} /var/run/ufdbguard - fi - - ebegin "Starting ufdbGuard" - start-stop-daemon --start \ - --user ${UFDB_USER} \ - --wait 1500 \ - --exec /usr/libexec/ufdbguard/ufdbguardd \ - --pidfile /var/run/ufdbguard/ufdbguardd.pid -- \ - -c /etc/ufdbGuard.conf ${UFDB_OPTS} - eend $? "Failed to start ufdbGuard" -} - -stop() { - ebegin "Stopping ufdbGuard" - start-stop-daemon --stop \ - --exec /usr/libexec/ufdbguard/ufdbguardd \ - --pidfile /var/run/ufdbguard/ufdbguardd.pid - eend $? "Failed to stop ufdbGuard" -} - -reload() { - if ! [ -f /var/run/ufdbguard/ufdbguardd.pid ]; then - eerror "Unable to find PID file for ufdbguardd, was it just started?" - return 1 - fi - - gentables - - ebegin "Reloading ufdbGuard" - kill -HUP "$(cat /var/run/ufdbguard/ufdbguardd.pid)" - eend $? "Failed to reload ufdbGuard" -} - -reconfig() { - reload -} diff --git a/net-proxy/ufdbguard/files/ufdb.initd.2 b/net-proxy/ufdbguard/files/ufdb.initd.2 deleted file mode 100644 index 44a7f59026e0..000000000000 --- a/net-proxy/ufdbguard/files/ufdb.initd.2 +++ /dev/null @@ -1,67 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -# reconfig is what the upstream documentation suggests, so let's -# provide it for compatibility. -extra_started_commands="reload reconfig" - -: ${configfile:=/etc/ufdbGuard.conf} - -pidfile=/var/run/ufdbguard/ufdbguardd.pid -command=/usr/libexec/ufdbguard/ufdbguardd -command_arguments="-c ${configfile} ${FUDB_OPTS}" - -start_stop_daemon_args="--user ${UFDB_USER} --wait 1500" - -name="ufdbGuard Daemon" - -depend() { - need localmount - before squid - use logger -} - -get_config() { - # Okay this sounds silly, but it is important because the settings - # in ufdbGuard are quoted, so this unquotes them. - eval echo $(awk '$1 == "'$1'" { print $2 }' "${configfile}") -} - -gentables() { - local dbhome=$(get_config dbhome) - - for gt in ${UFDB_GT} ; do - [ -f "${dbhome}/${gt}/domains" ] || continue - - urls= - [ -f "${dbhome}/${gt}/urls" ] && urls="${dbhome}/${gt}/urls" - - ebegin "Generating domainlist ${gt}" - ufdbGenTable ${GENTABLE_OPTIONS} -t "${gt}" -d "${dbhome}/${gt}/domains" ${urls:+-u "${urls}"} - eend $? - done -} - -start_pre() { - gentables - - checkpath -d -m 0755 -o ${UFDB_USER} $(get_config logdir) "$(dirname "${pidfile}")" -} - -reload() { - if ! [ -f ${pidfile} ]; then - eerror "Unable to find PID file for ufdbguardd, was it just started?" - return 1 - fi - - gentables - - ebegin "Reloading ufdbGuard" - kill -HUP "$(cat ${pidfile})" - eend $? "Failed to reload ufdbGuard" -} - -reconfig() { - reload -} diff --git a/net-proxy/ufdbguard/files/ufdbUpdate.cron b/net-proxy/ufdbguard/files/ufdbUpdate.cron deleted file mode 100644 index f9147648c8b7..000000000000 --- a/net-proxy/ufdbguard/files/ufdbUpdate.cron +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -# cron.daily file to update the ufdb database - -# Avoid doing anything if no download user is set in the configuration -# file -( . /etc/conf.d/ufdb ; [ -z "${DOWNLOAD_USER}" ]; ) && exit - -/usr/sbin/ufdbUpdate - -/etc/init.d/squid rotate diff --git a/net-proxy/ufdbguard/files/ufdbguard-1.24-gentoo.patch b/net-proxy/ufdbguard/files/ufdbguard-1.24-gentoo.patch deleted file mode 100644 index 63da98175a0e..000000000000 --- a/net-proxy/ufdbguard/files/ufdbguard-1.24-gentoo.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: ufdbGuard-1.24/src/ufdbUpdate.in -=================================================================== ---- ufdbGuard-1.24.orig/src/ufdbUpdate.in -+++ ufdbGuard-1.24/src/ufdbUpdate.in -@@ -39,6 +39,8 @@ WGET_COMMAND="@WGET@" - NOTIFY_UFDBGUARDD="yes" # send HUP signal to ufdbguardd - SYSLOG_FACILITY="local6" # errors/warnings in system log have this facility name - -+source /etc/conf.d/ufdb -+ - # end of user settings. - # DO NOT EDIT ANYTHING BELOW THIS LINE. ######################################## - diff --git a/net-proxy/ufdbguard/metadata.xml b/net-proxy/ufdbguard/metadata.xml deleted file mode 100644 index 3914a0ffa999..000000000000 --- a/net-proxy/ufdbguard/metadata.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <longdescription> - The fastest URL filter with 25,000 URL verifications/sec to filter - unwanted web content. ufdbGuard is a redirector for the Squid - internet proxy. - </longdescription> - <use> - <flag name="httpd"> - Build, install and start the provided mini-http daemon with the - redirect CGI integrated. Since there is no way to tell ufdbguard - to not start it, this is a build-time option. - </flag> - <flag name="doc"> - Download and install the ufdbguard reference manual in PDF. - </flag> - </use> - <upstream> - <remote-id type="sourceforge">ufdbguard</remote-id> - </upstream> -</pkgmetadata> diff --git a/net-proxy/ufdbguard/ufdbguard-1.32.4.ebuild b/net-proxy/ufdbguard/ufdbguard-1.32.4.ebuild deleted file mode 100644 index 49efe94f7e60..000000000000 --- a/net-proxy/ufdbguard/ufdbguard-1.32.4.ebuild +++ /dev/null @@ -1,126 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit eutils flag-o-matic user - -MY_P="ufdbGuard-${PV}" - -DESCRIPTION="ufdbGuard is a redirector for the Squid internet proxy" -HOMEPAGE="http://www.urlfilterdb.com/en/products/ufdbguard.html" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz - doc? ( mirror://sourceforge/${PN}/${PV/\.?/}/ReferenceManual.pdf -> ${P}-manual.pdf )" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc +httpd" - -COMMON_DEPEND=" - app-arch/bzip2 - dev-libs/openssl:0= - net-misc/wget -" -DEPEND="${COMMON_DEPEND} - sys-devel/bison - sys-devel/flex -" -RDEPEND="${COMMON_DEPEND} - sys-apps/openrc -" - -DOCS=( CHANGELOG README src/sampleufdbGuard.conf ) - -PATCHES=( "${FILESDIR}"/${PN}-1.24-gentoo.patch ) - -S="${WORKDIR}/${MY_P}" - -pkg_setup() { - enewgroup squid - enewuser squid -1 -1 /var/cache/squid squid -} - -src_configure() { - # better safe than sorry, the code has a number of possible - # breakage, and at least one certain breakage. - append-flags -fno-strict-aliasing - - econf \ - --with-ufdb-user=squid \ - --with-ufdb-config="${EPREFIX}"/etc \ - --with-ufdb-bindir="${EPREFIX}"/usr/libexec/ufdbguard \ - --with-ufdb-logdir="${EPREFIX}"/var/log/ufdbguard \ - --with-ufdb-dbhome="${EPREFIX}"/usr/share/ufdbguard/blacklists \ - --with-ufdb-images_dir="${EPREFIX}"/usr/share/ufdbguard/images -} - -src_install() { - einstalldocs - doman doc/*.1 - - dobin src/ufdbAnalyse src/ufdbGenTable src/ufdbGrab \ - src/ufdbConvertDB - dosbin src/ufdbUpdate - - exeinto /usr/libexec/ufdbguard - doexe src/mtserver/ufdbguardd src/mtserver/ufdbgclient - - if use httpd; then - exeinto /usr/libexec/ufdbguard - doexe src/ufdbhttpd - fi - - keepdir /usr/share/ufdbguard/blacklists - - insinto /etc - doins src/ufdbGuard.conf - - insinto /usr/share/ufdbguard/images - doins -r src/images/. - - newconfd "${FILESDIR}"/ufdb.confd ufdb - newinitd "${FILESDIR}"/ufdb.initd.2 ufdb - - exeinto /etc/cron.daily - newexe "${FILESDIR}"/ufdbUpdate.cron ufdbUpdate - - use doc && newdoc "${DISTDIR}"/${P}-manual.pdf ReferenceManual.pdf -} - -pkg_postinst() { - elog "The default location for the blacklist database has been" - elog "moved to ${EROOT%/}/usr/share/ufdbguard/blacklists." - elog "" - elog "The configuration file is no longer configurable in the" - elog "service file, and now resides at ${EROOT%/}/etc/ufdbGuard.conf ." - elog "" - elog "The service script has been renamed from ufdbguad to simply" - elog "${EROOT%/}/etc/init.d/ufdb, to follow the official documentation, and" - elog "it gained a reload option with a reconfig alias." - elog "" - elog "You can configure the username and password parameters for" - elog "ufdbUpdate, to fetch the blacklist database provided by" - elog "URLfilterDB, directly in ${EROOT%/}/etc/conf.d/ufdb without touching" - elog "the script itself." - elog "" - elog "To enable ufdbguard in squid, you should add this to your" - elog "squid.conf:" - elog "" - elog " url_rewrite_program ${EROOT%/}/usr/libexec/ufdbguard/ufdbgclient -l ${EROOT%/}/var/log/ufdbguard" - elog " url_rewrite_children 64" - elog "" - if ! use httpd; then - elog "You chose to not install the lightweight http daemon that" - elog "comes with ufdbguard." - else - elog "The ufdb service will start both the ufdbguardd daemon and" - elog "the ufdbhttpd http daemon to provide a local redirect CGI." - elog "If you don't want this to happen, disable the httpd USE flag." - fi - if use doc; then - elog "" - elog "The reference manual has been installed as" - elog " ${EROOT%/}/usr/share/doc/${PF}/ReferenceManual.pdf" - fi -} |