AUX ufdbguard-1.24-gentoo.patch 536 RMD160 702db979db7ee3d1a1617f9b9ee697b2dffc7b74 SHA1 e2e5dcfc9093a8ec5f4811c4eb6e52844c1665b3 SHA256 3e22a42b73c6aa6ff6737455b19d202d661990c9931ffa3785b6aaa78af73d90
DIST ufdbGuard-1.24.tar.gz 747635 RMD160 48209be420bf9593a46a89be92be4a19ddfd0841 SHA1 30e3fdf7a3c04415f743cf32a4bde18b60b966f9 SHA256 6e5df4ef7f5d13d1ad2a0902449c9909cc013242f3783925800df5011bd3446c
DIST ufdbGuard-1.26.tar.gz 766725 RMD160 10f881cf40a5294ee074b913042e273ce6674149 SHA1 cbb035e03e943749bd5f3a35ec49f6dc1dbef706 SHA256 f4d72cc4ea1e2983207d2509d3408b04041bcfc48a790338c5a8b5e6662c8eac
+DIST ufdbGuard-1.27.tar.gz 780380 RMD160 a624c7843343d151674db0d64730bb12707d82a1 SHA1 d0de38f0f5ea2f69e3b3a24eefe8cb02e77671d3 SHA256 b70c531e670d1ee817048ee1c25ab5ad844b39b54013eb262a61d1473a41353c
DIST ufdbguard-1.24-manual.pdf 491034 RMD160 f0eb280602c5bbc191431457bc49714ed1260a44 SHA1 eeb415fe32d84d27bda4250bb2b67196d7fe93d0 SHA256 7185161d912202510ec1767fc0239f48c2a98f948afb3a207ea55c341e03e459
DIST ufdbguard-1.26-manual.pdf 494360 RMD160 901d3cd4d5da6976c7e27a2db181e8948f50e4ce SHA1 375234c4bfd627bc9db48e7816f757ebde137f58 SHA256 b0ef3e648c0a9336018ddc7180b853ef904c108c7318d8c5ebaba7015fd185a4
+DIST ufdbguard-1.27-manual.pdf 501140 RMD160 f9c8b5186c9c5ef332ff00e01ecde1772cfa689e SHA1 5078c02a1a8e70016e974a81093b8e08581e6b2d SHA256 9d5cba88b4be71528a60daf6576c662dd69b01d344bc9fd721f70db6ad32d288
EBUILD ufdbguard-1.24-r1.ebuild 3871 RMD160 11e3db1c0edd914b32db6dccf11394fa555df866 SHA1 a344a9488ae4edac3f463794196f54b07cb0121b SHA256 0fbcae29c11e77b26b02b228b15bc8473956450bd2df5f8429f0e3ee6f233ce8
EBUILD ufdbguard-1.26-r1.ebuild 3954 RMD160 84972310a663786ce3fc1667f2276851c902280d SHA1 60df603f7d299f23fbb3553c2144ba0a4145f0b9 SHA256 0f9bfdc58294dfefa83f300b5254930c6fa26d1badf6985d891d880a9acd849e
EBUILD ufdbguard-1.26.ebuild 3949 RMD160 e3e7ae5e6780b6ff33c0993461c1433490b00b05 SHA1 eab8edde62eaa26e210b6c5bca2db0567375f3be SHA256 fc0e5d07a2828585f1d241b43d0fbce1ea6c1040c37db39f4ea0d2682e41cc3e
-MISC ChangeLog 5008 RMD160 18393c1965ed8ad84b3570380527ea1abefe5d21 SHA1 b13b04b0355af86be015c1c30392ff7470fbb3ae SHA256 2157ac8a80e38ee4eb08529338220d43974c3be70fd4d6bd11a4ecbab376d213
+EBUILD ufdbguard-1.27.ebuild 3951 RMD160 4e7ce71c67233cc8642e81a2a46ac6c1a0a2563f SHA1 e4e128f2d634a39dab5742f445bec55df7e383cd SHA256 6a543e92b88533f39b319ddda8c90b2e2535fd00c45412ad7c32b3fd1a368a94
+MISC ChangeLog 5136 RMD160 3773148b2c5d311047b87c609e389578286f1fa3 SHA1 a6ae6e1cd11b84571385c5fca54e7f62caa3ad2e SHA256 d59715139b5ec02cf514667382d6fc39426fb3be4f136d73b6f5f6156cf807aa
MISC metadata.xml 930 RMD160 b18e50b20ed136dcfc4730edc263f0d47d9a6a42 SHA1 6f6f5f48a9980e9ff4b04169ece36bcc901676c4 SHA256 dd9844b6440d0b7267ec9cc14b9809d48072874cf660968ff43d51f4414eeaa0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iEYEARECAAYFAk6iCzYACgkQAiZjviIA2XjN0gCglcijFfCc6qkFbrnpRCIJGvu+
-VUIAmgNtjhadgfr2EWK8VscA0uleZcuu
-=Ohp8
+iEYEARECAAYFAk6zXw8ACgkQAiZjviIA2XhJ7QCg8IXMzaM2wcNZsfMVg8N8ObLh
+FGkAoJ69LVotA0u3r1RFIJJnuf2IRvfG
+=B/LC
-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ufdbguard-1.27.ebuild,v 1.1 2011/11/04 03:41:55 flameeyes Exp $
+
+EAPI="4"
+
+inherit eutils flag-o-matic
+
+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() {
+ # create the squid user exactly as done by net-proxy/squid-3.1.9
+ enewgroup squid 31
+ enewuser squid 31 -1 /var/cache/squid squid
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.23-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
+}