summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2016-12-29 14:51:24 +0200
committerDavid Seifert <soap@gentoo.org>2016-12-29 14:56:19 +0200
commit1c84f048f7a6ecdd05e7452a32e6dfee9ef915ab (patch)
tree29c4e57f0955f08b25d2ca5d8f7c144224cd78cd /net-proxy
parentnet-proxy/ufdbguard: 1.32.4 version bump (diff)
downloadgentoo-1c84f048f7a6ecdd05e7452a32e6dfee9ef915ab.tar.gz
gentoo-1c84f048f7a6ecdd05e7452a32e6dfee9ef915ab.tar.bz2
gentoo-1c84f048f7a6ecdd05e7452a32e6dfee9ef915ab.zip
net-proxy/ufdbguard: Remove old
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/ufdbguard/Manifest4
-rw-r--r--net-proxy/ufdbguard/files/ufdbguard-1.23-parallel-make.patch133
-rw-r--r--net-proxy/ufdbguard/files/ufdbguard-1.29-parallel-make.patch132
-rw-r--r--net-proxy/ufdbguard/ufdbguard-1.24-r1.ebuild132
-rw-r--r--net-proxy/ufdbguard/ufdbguard-1.29.ebuild136
5 files changed, 0 insertions, 537 deletions
diff --git a/net-proxy/ufdbguard/Manifest b/net-proxy/ufdbguard/Manifest
index 015427ef6b0b..e44ac3c50bc6 100644
--- a/net-proxy/ufdbguard/Manifest
+++ b/net-proxy/ufdbguard/Manifest
@@ -1,6 +1,2 @@
-DIST ufdbGuard-1.24.tar.gz 747635 SHA256 6e5df4ef7f5d13d1ad2a0902449c9909cc013242f3783925800df5011bd3446c SHA512 980cdd7785e6e8dd04cf9004bae0361bdba614b5c1683f113fc7ce49da029089b73850393226f4ea001fe6d1f43008b167a7b1fa3579a9616ffbcf15a5a4f4cb WHIRLPOOL d29e6f2c4f9a5c6a857ce64c8865257cdf4743a835fb81b1bc1463cd4eae391488e98061a04135e053fe03480134f599ac232ca339866a8755029f4e95675d28
-DIST ufdbGuard-1.29.tar.gz 948006 SHA256 f97a683fba5e1867b9bde16d0ec118651b93ae419037d3fad0144c95add8bed6 SHA512 06e286508eba8081aecaa31021f18385f163f87edae90a4b399e0f3ca0d06165f5ac11baa5b615bdaaf9bbc03c107c69103f05761904fc06a0715c8f44abdc58 WHIRLPOOL 84d43ba2b5108acb9fc4ac0013d27c7f47dbb9ad6b7b6277853278b32a9040e0865e897b8bf5a3963216d3303506f90fe0844d9f5b49614154087eb0339f300d
DIST ufdbGuard-1.32.4.tar.gz 2499206 SHA256 037d2652087a544e4bfa10fefcb9e155e730536baf39331b3e9dca26c605e3df SHA512 189cb67c533ab71ba1d3292a376d746e0565a3bf5de17f4407c5892ee24c20cd2574752bdcb08be19621a93114cc69a89767c581d531027ecbf6487ef3119d91 WHIRLPOOL 56ae089ff7463bf2184ae04d15105fe183fa39be807b8440fbd0b4520d47282136e4f07cd5821502a57b2698aab37b8e3ff585b69a2b553bd08c4bbe00f6022d
-DIST ufdbguard-1.24-manual.pdf 491034 SHA256 7185161d912202510ec1767fc0239f48c2a98f948afb3a207ea55c341e03e459 SHA512 64e3102e44c9db18e7f43bcd6743c36034400dfbeef572810feaf3adb7d762511b6fa57d09e934eb92abd9e84fdd838d898ab5f386da6e96d936e2626bcbfd51 WHIRLPOOL d06ac95dc5df217a4a5a15eaf847af431098c2f35510fa8c03a313c37c71eb325efdd5e50d4e0999e6a70f63f62db9d46c633c5a994c4f40a0662a7058220f8c
-DIST ufdbguard-1.29-manual.pdf 513184 SHA256 00b75668ca82037c9be6eab3a83755189890b2a3bb239409db765195f26c2f8b SHA512 9b321202a60428e7962087b19b7e0b72241fdb99d5068e68dceadf3087b85d56e11c80e3a410b101aae35f9f5f179ee0e13053024c29ff0868c39ed645edcbb2 WHIRLPOOL cd1573102abe6b4d359520930491b6a2fbef0601bcdccaaf78adf79bbf570c48bbfa1f0bb5e5e0b9ab9360cc9ca41643e2cbed2140414603bdca7bca32bbecf9
DIST ufdbguard-1.32.4-manual.pdf 642626 SHA256 42a954d45697a1ea7c4dc8d97faa7e02e2f52414461b4bf73fe975a7a3ebb57d SHA512 98444689c07da3ce9937675b45607ea88fc5a10c65051746cd821650788ec21cbc836a043a486de51813b85d836e255bb3a64a62252808dfe93310e6e169fdb1 WHIRLPOOL 2cb798f2e201e1b7e203ae9d8742336c2b0036b139a842df6c5943a52d4e118aaea97d68fc9e8dbec15a489273f96191c45c82263208fab0644b16c0eabece1d
diff --git a/net-proxy/ufdbguard/files/ufdbguard-1.23-parallel-make.patch b/net-proxy/ufdbguard/files/ufdbguard-1.23-parallel-make.patch
deleted file mode 100644
index 3f95f2cbb3fa..000000000000
--- a/net-proxy/ufdbguard/files/ufdbguard-1.23-parallel-make.patch
+++ /dev/null
@@ -1,133 +0,0 @@
---- a/src/Makefile.in 2010-04-12 04:39:43.000000000 +0200
---- b/src/Makefile.in 2010-05-07 05:26:03.000000000 +0200
-@@ -135,8 +135,8 @@
- # Dependencies for installing
- #
-
--daemon:
-- cd mtserver; make
-+daemon: $(UFDBOBJS)
-+ cd mtserver; $(MAKE)
-
- ufdbhttpd: ufdbhttpd.o httpserver.o ufdbbase.o ufdblib.o sgLog.o crypt.o
- $(LINK) ufdbhttpd.o httpserver.o ufdbbase.o ufdblib.o sgLog.o crypt.o $(LIBS)
-@@ -235,7 +235,7 @@
- $(RM) $(bindir)/ufdbhttpd
-
- install.mt::
-- cd mtserver ; make
-+ cd mtserver ; $(MAKE)
- $(INSTALL_PROGRAM) mtserver/ufdbguardd $(bindir)/ufdbguardd
- $(INSTALL_PROGRAM) mtserver/ufdbgclient $(bindir)/ufdbgclient
-
-@@ -272,8 +272,8 @@
- $(RM) *~ *.bak core core.* *.log *.log.[0-9] *.error
- $(RM) *.o y.tab.c y.tab.h ufdbGuard ufdbGenTable ufdbAnalyse ufdbPrintTable ufdbhttpd
- $(RM) ipv6 iptst rwtest lex.yy.c
-- -@cd mtserver && make clean
-- -@cd api 2>/dev/null && make clean
-+ -@cd mtserver && $(MAKE) clean
-+ -@cd api 2>/dev/null && $(MAKE) clean
-
- realclean:: clean
- @echo making $@ in `basename \`pwd\``
-@@ -286,11 +286,11 @@
- distclean:: realclean
- @echo making $@ in `basename \`pwd\``
- $(RM) Makefile sg.h config.h ufdbUpdate ufdbConvertDB ufdbGuard.conf
-- -cd mtserver ; make distclean
-+ -cd mtserver ; $(MAKE) distclean
-
- apidistclean: distclean
- @echo making $@ in `basename \`pwd\``
-- -cd api ; make distclean
-+ -cd api ; $(MAKE) distclean
-
- grab: ufdbGrab
- ./ufdbGrab $(cfgdir) $(logdir)
-@@ -532,25 +532,25 @@
- $(CC) --version
-
- g2953:
-- make clean
-- CC=/usr/local/gcc/2.95.3/bin/gcc make -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-+ $(MAKE) clean
-+ CC=/usr/local/gcc/2.95.3/bin/gcc $(MAKE) -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-
- g344:
-- make clean
-- CC=/usr/local/gcc/3.4.4/bin/gcc make -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-+ $(MAKE) clean
-+ CC=/usr/local/gcc/3.4.4/bin/gcc $(MAKE) -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-
- g401:
-- make clean
-- CC=/usr/local/gcc/4.0.1/bin/gcc make -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-+ $(MAKE) clean
-+ CC=/usr/local/gcc/4.0.1/bin/gcc $(MAKE) -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-
- g411:
-- make clean
-- CC=/usr/local/gcc/4.1.1/bin/gcc make -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-+ $(MAKE) clean
-+ CC=/usr/local/gcc/4.1.1/bin/gcc $(MAKE) -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-
- qinst:
- /etc/init.d/squid stop
- /etc/init.d/ufdb stop
-- make install
-+ $(MAKE) install
- /etc/init.d/ufdb start
- /etc/init.d/squid start
-
---- a/src/mtserver/Makefile.in 2010-04-12 02:56:20.000000000 +0200
---- b/src/mtserver/Makefile.in 2010-05-07 05:26:03.000000000 +0200
-@@ -48,10 +48,10 @@
- $(LINK) ufdbgclient.o -L. -lufdbd $(SOLARIS_LIBS)
-
- ../lex.yy.o:
-- cd .. ; make lex.yy.o
-+ cd .. ; $(MAKE) lex.yy.o
-
- ../y.tab.o:
-- cd .. ; make y.tab.o
-+ cd .. ; $(MAKE) y.tab.o
-
- $(MYLIB): ../crypt.o ../lex.yy.o ../sgDiv.o ../sgLog.o ../ufdbLookup.o \
- ../ufdblib.o ../y.tab.o ../ufdbbase.o
-@@ -60,7 +60,7 @@
- ../ufdblib.o ../y.tab.o ../ufdbbase.o
-
- ptmalloc3/libptmalloc3.a:
-- cd ptmalloc3 ; make linux-pthread
-+ cd ptmalloc3 ; $(MAKE) linux-pthread
-
- $(MYLIBSSL): ../ufdbchkport.o ../httpsQueue.o ../ufdbHashtable.o
- -@rm -f $(MYLIBSSL)
-@@ -102,7 +102,7 @@
- ./ufdbgclient -p $(PORT) -l . -d "www.sex.com" 10.1.1.1 kees
-
- ../../test/blacklist/domains.ufdb: ../../test/blacklist/domains
-- cd ../../test ; make blacklist/domains.ufdb
-+ cd ../../test ; $(MAKE) blacklist/domains.ufdb
-
- LEAKOPTS= --leak-check=full --show-reachable=yes
- LEAKOPTS=
-@@ -382,7 +382,7 @@
- time ./ufdbgclient -p $(PORT) -l . < ../100000 > /dev/null 2>&1
-
- tt:
-- make tp3
-+ $(MAKE) tp3
- sleep 3
- kill -HUP `ps -ef | grep ufdbguardd | grep -v grep | head -1 | awk '{ print $$2 }'`
-
-@@ -455,6 +455,6 @@
-
-
- g411:
-- make clean
-- CC=/usr/local/gcc/4.1.1/bin/gcc make -e $(MAKEFLAGS) all
-+ $(MAKE) clean
-+ CC=/usr/local/gcc/4.1.1/bin/gcc $(MAKE) -e $(MAKEFLAGS) all
-
diff --git a/net-proxy/ufdbguard/files/ufdbguard-1.29-parallel-make.patch b/net-proxy/ufdbguard/files/ufdbguard-1.29-parallel-make.patch
deleted file mode 100644
index 61ef58030dab..000000000000
--- a/net-proxy/ufdbguard/files/ufdbguard-1.29-parallel-make.patch
+++ /dev/null
@@ -1,132 +0,0 @@
---- a/src/Makefile.in 2010-04-12 04:39:43.000000000 +0200
---- b/src/Makefile.in 2010-05-07 05:26:03.000000000 +0200
-@@ -135,8 +135,8 @@
- # Dependencies for installing
- #
-
--daemon:
-- cd mtserver; make
-+daemon: $(UFDBOBJS)
-+ cd mtserver; $(MAKE)
-
- ufdbhttpd: ufdbhttpd.o httpserver.o ufdbbase.o ufdblib.o sgLog.o crypt.o
- $(LINK) ufdbhttpd.o httpserver.o ufdbbase.o ufdblib.o sgLog.o crypt.o $(LIBS)
-@@ -235,6 +235,6 @@
- $(RM) $(bindir)/ufdbhttpd
-
- install.mt::
-- cd mtserver ; make
-+ cd mtserver ; $(MAKE)
- $(INSTALL_PROGRAM) mtserver/ufdbguardd $(bindir)/ufdbguardd
- $(INSTALL_PROGRAM) mtserver/ufdbgclient $(bindir)/ufdbgclient
-@@ -272,8 +272,8 @@
- $(RM) *~ *.bak core core.* *.log *.log.[0-9] *.error
- $(RM) *.o y.tab.c y.tab.h ufdbGuard ufdbGenTable ufdbAnalyse ufdbPrintTable ufdbhttpd
- $(RM) ipv6 iptst rwtest lex.yy.c
-- -@cd mtserver && make clean
-- -@cd api 2>/dev/null && make clean
-+ -@cd mtserver && $(MAKE) clean
-+ -@cd api 2>/dev/null && $(MAKE) clean
-
- realclean:: clean
- @echo making $@ in `basename \`pwd\``
-@@ -286,11 +286,11 @@
- distclean:: realclean
- @echo making $@ in `basename \`pwd\``
- $(RM) Makefile sg.h config.h ufdbUpdate ufdbConvertDB ufdbGuard.conf
-- -cd mtserver ; make distclean
-+ -cd mtserver ; $(MAKE) distclean
-
- apidistclean: distclean
- @echo making $@ in `basename \`pwd\``
-- -cd api ; make distclean
-+ -cd api ; $(MAKE) distclean
-
- grab: ufdbGrab
- ./ufdbGrab $(cfgdir) $(logdir)
-@@ -532,25 +532,25 @@
- $(CC) --version
-
- g2953:
-- make clean
-- CC=/usr/local/gcc/2.95.3/bin/gcc make -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-+ $(MAKE) clean
-+ CC=/usr/local/gcc/2.95.3/bin/gcc $(MAKE) -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-
- g344:
-- make clean
-- CC=/usr/local/gcc/3.4.4/bin/gcc make -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-+ $(MAKE) clean
-+ CC=/usr/local/gcc/3.4.4/bin/gcc $(MAKE) -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-
- g401:
-- make clean
-- CC=/usr/local/gcc/4.0.1/bin/gcc make -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-+ $(MAKE) clean
-+ CC=/usr/local/gcc/4.0.1/bin/gcc $(MAKE) -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-
- g411:
-- make clean
-- CC=/usr/local/gcc/4.1.1/bin/gcc make -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-+ $(MAKE) clean
-+ CC=/usr/local/gcc/4.1.1/bin/gcc $(MAKE) -e $(MAKEFLAGS) ccversion all ufdbPrintTable
-
- qinst:
- /etc/init.d/squid stop
- /etc/init.d/ufdb stop
-- make install
-+ $(MAKE) install
- /etc/init.d/ufdb start
- /etc/init.d/squid start
-
---- a/src/mtserver/Makefile.in 2010-04-12 02:56:20.000000000 +0200
---- b/src/mtserver/Makefile.in 2010-05-07 05:26:03.000000000 +0200
-@@ -48,10 +48,10 @@
- $(LINK) ufdbgclient.o -L. -lufdbd $(SOLARIS_LIBS)
-
- ../lex.yy.o:
-- cd .. ; make lex.yy.o
-+ cd .. ; $(MAKE) lex.yy.o
-
- ../y.tab.o:
-- cd .. ; make y.tab.o
-+ cd .. ; $(MAKE) y.tab.o
-
- $(MYLIB): ../crypt.o ../lex.yy.o ../sgDiv.o ../sgLog.o ../ufdbLookup.o \
- ../ufdblib.o ../y.tab.o ../ufdbbase.o
-@@ -60,7 +60,7 @@
- ../ufdblib.o ../y.tab.o ../ufdbbase.o
-
- ptmalloc3/libptmalloc3.a:
-- cd ptmalloc3 ; make linux-pthread
-+ cd ptmalloc3 ; $(MAKE) linux-pthread
-
- $(MYLIBSSL): ../ufdbchkport.o ../httpsQueue.o ../ufdbHashtable.o
- -@rm -f $(MYLIBSSL)
-@@ -102,7 +102,7 @@
- ./ufdbgclient -p $(PORT) -l . -d "www.sex.com" 10.1.1.1 kees
-
- ../../test/blacklist/domains.ufdb: ../../test/blacklist/domains
-- cd ../../test ; make blacklist/domains.ufdb
-+ cd ../../test ; $(MAKE) blacklist/domains.ufdb
-
- LEAKOPTS= --leak-check=full --show-reachable=yes
- LEAKOPTS=
-@@ -382,7 +382,7 @@
- time ./ufdbgclient -p $(PORT) -l . < ../100000 > /dev/null 2>&1
-
- tt:
-- make tp3
-+ $(MAKE) tp3
- sleep 3
- kill -HUP `ps -ef | grep ufdbguardd | grep -v grep | head -1 | awk '{ print $$2 }'`
-
-@@ -455,6 +455,6 @@
-
-
- g411:
-- make clean
-- CC=/usr/local/gcc/4.1.1/bin/gcc make -e $(MAKEFLAGS) all
-+ $(MAKE) clean
-+ CC=/usr/local/gcc/4.1.1/bin/gcc $(MAKE) -e $(MAKEFLAGS) all
-
diff --git a/net-proxy/ufdbguard/ufdbguard-1.24-r1.ebuild b/net-proxy/ufdbguard/ufdbguard-1.24-r1.ebuild
deleted file mode 100644
index 483d900f449b..000000000000
--- a/net-proxy/ufdbguard/ufdbguard-1.24-r1.ebuild
+++ /dev/null
@@ -1,132 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="2"
-
-inherit eutils 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}/ReferenceManual_v${PV/\./_}.pdf -> ${P}-manual.pdf )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 x86"
-IUSE="+httpd doc"
-
-RDEPEND="dev-libs/openssl
- app-arch/bzip2
- net-misc/wget"
-
-DEPEND="${RDEPEND}
- sys-devel/bison
- sys-devel/flex"
-
-RDEPEND="${RDEPEND}
- sys-apps/openrc"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- enewgroup squid
- enewuser squid -1 -1 /var/cache/squid squid
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-1.23-parallel-make.patch
- epatch "${FILESDIR}"/${P}-gentoo.patch
-
- egrep -r -e '/var/tmp/ufdb(guard|http)d.pid' "${S}" -lZ | xargs -0 \
- sed -i -e 's:/var/tmp/ufdb\(guard\|http\)d.pid:/var/run/ufdbguard/ufdb\1d.pid:' \
- || die
-
- # directory where ufdbhttpd is to be found
- sed -i -e 's:DEFAULT_BINDIR.*:DEFAULT_BINDIR "/usr/libexec/ufdbguard":' \
- src/ufdb.h.in || die
-}
-
-src_configure() {
- econf \
- --with-ufdb-user=squid \
- --with-ufdb-config=/etc \
- --with-ufdb-logdir=/var/log/ufdbguard \
- --with-ufdb-dbhome=/usr/share/ufdbguard/blacklists \
- --with-ufdb-images_dir=/usr/share/ufdbguard/images
-}
-
-src_install() {
- dodoc CHANGELOG INSTALL README src/sampleufdbGuard.conf || die
- doman doc/*.1 || die
-
- dobin src/ufdbAnalyse src/ufdbGenTable src/ufdbGrab \
- src/ufdbConvertDB || die
- dosbin src/ufdbUpdate || die
-
- exeinto /usr/libexec/ufdbguard
- doexe src/mtserver/ufdbguardd src/mtserver/ufdbgclient || die
-
- if use httpd; then
- exeinto /usr/libexec/ufdbguard
- doexe src/ufdbhttpd || die
- fi
-
- keepdir /usr/share/ufdbguard/blacklists
-
- insinto /etc
- doins src/ufdbGuard.conf || die
-
- insinto /usr/share/ufdbguard/images
- doins src/images/* || die
-
- newconfd "${FILESDIR}"/ufdb.confd ufdb || die
- newinitd "${FILESDIR}"/ufdb.initd ufdb || die
-
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/ufdbUpdate.cron ufdbUpdate || die
-
- if use doc; then
- insinto /usr/share/doc/${PF}
- newins "${DISTDIR}"/${P}-manual.pdf ReferenceManual.pdf || die
- fi
-}
-
-pkg_postinst() {
- elog "The default location for the blacklist database has been"
- elog "moved to /usr/share/ufdbguard/blacklists."
- elog ""
- elog "The configuration file is no longer configurable in the"
- elog "service file, and now resides at /etc/ufdbGuard.conf ."
- elog ""
- elog "The service script has been renamed from ufdbguad to simply"
- elog "/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 /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 /usr/libexec/ufdbguard/ufdbgclient -l /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 " /usr/share/doc/${PF}/ReferenceManual.pdf"
- fi
-}
diff --git a/net-proxy/ufdbguard/ufdbguard-1.29.ebuild b/net-proxy/ufdbguard/ufdbguard-1.29.ebuild
deleted file mode 100644
index 4b553452454d..000000000000
--- a/net-proxy/ufdbguard/ufdbguard-1.29.ebuild
+++ /dev/null
@@ -1,136 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-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}/ReferenceManual_v${PV/\./_}.pdf -> ${P}-manual.pdf )"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+httpd doc"
-
-RDEPEND="dev-libs/openssl
- app-arch/bzip2
- net-misc/wget"
-
-DEPEND="${RDEPEND}
- sys-devel/bison
- sys-devel/flex"
-
-RDEPEND="${RDEPEND}
- sys-apps/openrc"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- enewgroup squid
- enewuser squid -1 -1 /var/cache/squid squid
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-1.29-parallel-make.patch
- epatch "${FILESDIR}"/${PN}-1.24-gentoo.patch
-
- egrep -r -e '/var/tmp/ufdb(guard|http)d.pid' "${S}" -lZ | xargs -0 \
- sed -i -e 's:/var/tmp/ufdb\(guard\|http\)d.pid:/var/run/ufdbguard/ufdb\1d.pid:' \
- || die
-
- # directory where ufdbhttpd is to be found
- sed -i -e 's:DEFAULT_BINDIR.*:DEFAULT_BINDIR "/usr/libexec/ufdbguard":' \
- src/ufdb.h.in || die
-}
-
-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=/etc \
- --with-ufdb-logdir=/var/log/ufdbguard \
- --with-ufdb-dbhome=/usr/share/ufdbguard/blacklists \
- --with-ufdb-images_dir=/usr/share/ufdbguard/images
-}
-
-src_install() {
- dodoc CHANGELOG INSTALL README src/sampleufdbGuard.conf
- 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 src/images/*
-
- newconfd "${FILESDIR}"/ufdb.confd ufdb
- newinitd "${FILESDIR}"/ufdb.initd.2 ufdb
-
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/ufdbUpdate.cron ufdbUpdate
-
- if use doc; then
- insinto /usr/share/doc/${PF}
- newins "${DISTDIR}"/${P}-manual.pdf ReferenceManual.pdf
- fi
-}
-
-pkg_postinst() {
- elog "The default location for the blacklist database has been"
- elog "moved to /usr/share/ufdbguard/blacklists."
- elog ""
- elog "The configuration file is no longer configurable in the"
- elog "service file, and now resides at /etc/ufdbGuard.conf ."
- elog ""
- elog "The service script has been renamed from ufdbguad to simply"
- elog "/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 /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 /usr/libexec/ufdbguard/ufdbgclient -l /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 " /usr/share/doc/${PF}/ReferenceManual.pdf"
- fi
-}