summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-01-19 20:51:42 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-01-19 20:51:42 +0000
commit44c1d40419930b4a036be3f7a233c7f37724ec87 (patch)
tree2473b8d6037471003720d0efb158709b60c88881 /net-proxy/ufdbguard
parentAdd upstream fix by Dennis Schridde for pkglibexec_SCRIPTS handling. (diff)
downloadhistorical-44c1d40419930b4a036be3f7a233c7f37724ec87.tar.gz
historical-44c1d40419930b4a036be3f7a233c7f37724ec87.tar.bz2
historical-44c1d40419930b4a036be3f7a233c7f37724ec87.zip
Version bump
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'net-proxy/ufdbguard')
-rw-r--r--net-proxy/ufdbguard/ChangeLog7
-rw-r--r--net-proxy/ufdbguard/Manifest11
-rw-r--r--net-proxy/ufdbguard/ufdbguard-1.28.ebuild137
3 files changed, 150 insertions, 5 deletions
diff --git a/net-proxy/ufdbguard/ChangeLog b/net-proxy/ufdbguard/ChangeLog
index 1d292cd3ffbd..872cdef8de80 100644
--- a/net-proxy/ufdbguard/ChangeLog
+++ b/net-proxy/ufdbguard/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-proxy/ufdbguard
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ChangeLog,v 1.24 2012/01/12 13:22:22 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ChangeLog,v 1.25 2012/01/19 20:51:42 flameeyes Exp $
+
+*ufdbguard-1.28 (19 Jan 2012)
+
+ 19 Jan 2012; Diego E. Pettenò <flameeyes@gentoo.org> +ufdbguard-1.28.ebuild:
+ Version bump
*ufdbguard-1.27-r1 (12 Jan 2012)
diff --git a/net-proxy/ufdbguard/Manifest b/net-proxy/ufdbguard/Manifest
index 0a0812e65f37..e0b4c927e3c6 100644
--- a/net-proxy/ufdbguard/Manifest
+++ b/net-proxy/ufdbguard/Manifest
@@ -9,16 +9,19 @@ AUX ufdbguard-1.23-parallel-make.patch 3910 RMD160 5086735f2500899c28185a2887a44
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.27.tar.gz 780380 RMD160 a624c7843343d151674db0d64730bb12707d82a1 SHA1 d0de38f0f5ea2f69e3b3a24eefe8cb02e77671d3 SHA256 b70c531e670d1ee817048ee1c25ab5ad844b39b54013eb262a61d1473a41353c
+DIST ufdbGuard-1.28.tar.gz 785145 RMD160 22ca32c2f3dafdce384945ab338a0c9a1d2e102f SHA1 8051ac69ee4fdc13e069cb5dc0df84a7c96a8348 SHA256 511fdb699410ba6b374ca1b80f0c434b254d5e4d0f7069c64d72279ecd3626f4
DIST ufdbguard-1.24-manual.pdf 491034 RMD160 f0eb280602c5bbc191431457bc49714ed1260a44 SHA1 eeb415fe32d84d27bda4250bb2b67196d7fe93d0 SHA256 7185161d912202510ec1767fc0239f48c2a98f948afb3a207ea55c341e03e459
DIST ufdbguard-1.27-manual.pdf 501140 RMD160 f9c8b5186c9c5ef332ff00e01ecde1772cfa689e SHA1 5078c02a1a8e70016e974a81093b8e08581e6b2d SHA256 9d5cba88b4be71528a60daf6576c662dd69b01d344bc9fd721f70db6ad32d288
+DIST ufdbguard-1.28-manual.pdf 502347 RMD160 055d02538ea6af801af200d1848a23d32b90f39d SHA1 bd9944c18095b1f08230568ddc69d852c7d6f850 SHA256 7b7853fe8cc389ffa6b23678f1bd0b6b63f0c1f188e6eefef23c6e9ca1948bbe
EBUILD ufdbguard-1.24-r1.ebuild 3871 RMD160 11e3db1c0edd914b32db6dccf11394fa555df866 SHA1 a344a9488ae4edac3f463794196f54b07cb0121b SHA256 0fbcae29c11e77b26b02b228b15bc8473956450bd2df5f8429f0e3ee6f233ce8
EBUILD ufdbguard-1.27-r1.ebuild 3954 RMD160 f6e45d5ba1f0e6d671daf914659ea45af82e1123 SHA1 d7577c05535224a11571e3e6e0bb30edb1976b3a SHA256 4b6bea3e2b54f5293700cb06376fa825e65d7b2cde76efc227891b3f69eeeacb
-MISC ChangeLog 5427 RMD160 2d969c9778a0f693945e87fdbaf208131dc70a7a SHA1 55d9d18194a306c7e7fd85f0a1a170b73dbb89d3 SHA256 87d1d39817e827b34027cec9869c5b4b98f1061c625c819262d88e4606119ec7
+EBUILD ufdbguard-1.28.ebuild 3951 RMD160 73045ec4b9d2ef21eee0970e2c5c890fb010b2e2 SHA1 97ee1959f0a555a8133add93ccdb50750f8cd9c4 SHA256 6d21d713a39e2f45678aa093459fdec8ab6c44b7265064ad8a496fda01dc7a77
+MISC ChangeLog 5554 RMD160 c069e3b26a6a1f6d280989d1b891bbfdb3949a4d SHA1 03a10fb7a2df1a764b11bf4eb6e375161044d6b5 SHA256 7349860d8942955f3ba8b8dde24eedc25e6b99f8c0e953fcdcf75bb9d1ddab56
MISC metadata.xml 930 RMD160 b18e50b20ed136dcfc4730edc263f0d47d9a6a42 SHA1 6f6f5f48a9980e9ff4b04169ece36bcc901676c4 SHA256 dd9844b6440d0b7267ec9cc14b9809d48072874cf660968ff43d51f4414eeaa0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iEYEARECAAYFAk8O3okACgkQAiZjviIA2XjY7ACg2tw2VYlrUza0mT99tcHbO8to
-L+YAnjmQ4VnPodJamY9hhjKIAjRZskPF
-=BpZd
+iEYEARECAAYFAk8YgkQACgkQAiZjviIA2XgIHwCgx4NFriNJJ0uWy8u4z5vUWoRm
+q6AAoMoMbebzMy+eBDyPcZlM6F/sutzI
+=jn3T
-----END PGP SIGNATURE-----
diff --git a/net-proxy/ufdbguard/ufdbguard-1.28.ebuild b/net-proxy/ufdbguard/ufdbguard-1.28.ebuild
new file mode 100644
index 000000000000..dac8bd891479
--- /dev/null
+++ b/net-proxy/ufdbguard/ufdbguard-1.28.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/ufdbguard/ufdbguard-1.28.ebuild,v 1.1 2012/01/19 20:51:42 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
+}