summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2007-12-30 10:48:31 +0000
committerAlin Năstac <mrness@gentoo.org>2007-12-30 10:48:31 +0000
commit17d9157897da579fae708f1ecff8d56c447b6960 (patch)
tree1cc7b9144f3dd26c76aa95c24bef007e9d4ef46d /net-proxy
parentVersion bump. (diff)
downloadgentoo-2-17d9157897da579fae708f1ecff8d56c447b6960.tar.gz
gentoo-2-17d9157897da579fae708f1ecff8d56c447b6960.tar.bz2
gentoo-2-17d9157897da579fae708f1ecff8d56c447b6960.zip
Version bump.
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/bfilter/ChangeLog9
-rw-r--r--net-proxy/bfilter/bfilter-1.1.3.ebuild70
-rw-r--r--net-proxy/bfilter/files/bfilter-1.1.3-date-test.patch14
-rw-r--r--net-proxy/bfilter/files/bfilter-1.1.3-external-boost.patch36
-rw-r--r--net-proxy/bfilter/files/digest-bfilter-1.1.33
5 files changed, 131 insertions, 1 deletions
diff --git a/net-proxy/bfilter/ChangeLog b/net-proxy/bfilter/ChangeLog
index f5d377a88322..89e9af489969 100644
--- a/net-proxy/bfilter/ChangeLog
+++ b/net-proxy/bfilter/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-proxy/bfilter
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/bfilter/ChangeLog,v 1.21 2007/11/02 16:56:49 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/bfilter/ChangeLog,v 1.22 2007/12/30 10:48:31 mrness Exp $
+
+*bfilter-1.1.3 (30 Dec 2007)
+
+ 30 Dec 2007; Alin Năstac <mrness@gentoo.org>
+ +files/bfilter-1.1.3-date-test.patch,
+ +files/bfilter-1.1.3-external-boost.patch, +bfilter-1.1.3.ebuild:
+ Version bump.
*bfilter-1.1.2 (02 Nov 2007)
diff --git a/net-proxy/bfilter/bfilter-1.1.3.ebuild b/net-proxy/bfilter/bfilter-1.1.3.ebuild
new file mode 100644
index 000000000000..0c4b9747a76f
--- /dev/null
+++ b/net-proxy/bfilter/bfilter-1.1.3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/bfilter/bfilter-1.1.3.ebuild,v 1.1 2007/12/30 10:48:31 mrness Exp $
+
+WANT_AUTOMAKE="latest"
+WANT_AUTOCONF="none"
+
+inherit eutils autotools
+
+DESCRIPTION="An ad-filtering web proxy featuring an effective heuristic ad-detection algorithm"
+HOMEPAGE="http://bfilter.sourceforge.net/"
+SRC_URI="mirror://sourceforge/bfilter/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE="X debug"
+
+RDEPEND="sys-libs/zlib
+ >=dev-libs/ace-5.4.6
+ =dev-libs/libsigc++-2.0*
+ X? ( >=dev-cpp/gtkmm-2.4 )
+ dev-libs/boost"
+DEPEND="${RDEPEND}
+ dev-util/scons
+ dev-util/pkgconfig"
+
+pkg_setup() {
+ if ! built_with_use --missing true dev-libs/boost threads ; then
+ eerror "${PN} needs dev-libs/boost with threads support."
+ die "Re-compile dev-libs/boost with USE=threads."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-external-boost.patch
+ epatch "${FILESDIR}"/${P}-date-test.patch
+ eautomake
+}
+
+src_compile() {
+ econf \
+ $(use_enable debug) \
+ $(use_with X gui) \
+ --without-builtin-boost || die "econf failed"
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog
+ dohtml doc/*
+
+ newinitd "${FILESDIR}/bfilter.init" bfilter
+ newconfd "${FILESDIR}/bfilter.conf" bfilter
+}
+
+pkg_preinst() {
+ enewgroup bfilter
+ enewuser bfilter -1 -1 -1 bfilter
+}
+
+pkg_postinst() {
+ einfo "The documentation is available at"
+ einfo " http://bfilter.sourceforge.net/documentation.php"
+}
diff --git a/net-proxy/bfilter/files/bfilter-1.1.3-date-test.patch b/net-proxy/bfilter/files/bfilter-1.1.3-date-test.patch
new file mode 100644
index 000000000000..fe6775c89380
--- /dev/null
+++ b/net-proxy/bfilter/files/bfilter-1.1.3-date-test.patch
@@ -0,0 +1,14 @@
+diff -Nru bfilter-1.1.3.orig/tests/DateTestSuite.cpp bfilter-1.1.3/tests/DateTestSuite.cpp
+--- bfilter-1.1.3.orig/tests/DateTestSuite.cpp 2007-11-12 15:00:06.000000000 +0200
++++ bfilter-1.1.3/tests/DateTestSuite.cpp 2007-12-30 12:25:46.000000000 +0200
+@@ -51,7 +51,9 @@
+ time_t const y2k = Date::parse(BString("Thu, 01 Jan 2000 00:00:00 GMT"));
+
+ for (int i = 0; i < 1000; ++i) {
+- time_t const time = rand() - rand();
++ time_t time = rand() - rand();
++ if (time < 0)
++ time *= -1;
+ BOOST_REQUIRE(check_time(time, Date::RFC822));
+ BOOST_REQUIRE(check_time(time, Date::ASCTIME));
+ if (time >= low && time < y2k) {
diff --git a/net-proxy/bfilter/files/bfilter-1.1.3-external-boost.patch b/net-proxy/bfilter/files/bfilter-1.1.3-external-boost.patch
new file mode 100644
index 000000000000..466784e51ac8
--- /dev/null
+++ b/net-proxy/bfilter/files/bfilter-1.1.3-external-boost.patch
@@ -0,0 +1,36 @@
+diff -Nru bfilter-1.1.3.orig/main/daemon/Makefile.am bfilter-1.1.3/main/daemon/Makefile.am
+--- bfilter-1.1.3.orig/main/daemon/Makefile.am 2007-01-19 21:21:02.000000000 +0200
++++ bfilter-1.1.3/main/daemon/Makefile.am 2007-12-30 12:13:49.000000000 +0200
+@@ -6,7 +6,7 @@
+ $(top_builddir)/boost/libs/program_options/libprogram_options.la
+ else
+ BOOST_CPPFLAGS =
+-BOOST_LIBS =
++BOOST_LIBS = -lboost_regex-mt -lboost_program_options-mt
+ endif
+
+ AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" \
+diff -Nru bfilter-1.1.3.orig/main/gui/gtk/Makefile.am bfilter-1.1.3/main/gui/gtk/Makefile.am
+--- bfilter-1.1.3.orig/main/gui/gtk/Makefile.am 2007-01-12 23:22:57.000000000 +0200
++++ bfilter-1.1.3/main/gui/gtk/Makefile.am 2007-12-30 12:13:49.000000000 +0200
+@@ -49,7 +49,7 @@
+ BOOST_LIBS = $(top_builddir)/boost/libs/regex/libregex.la
+ else
+ BOOST_CPPFLAGS =
+-BOOST_LIBS =
++BOOST_LIBS = -lboost_regex-mt
+ endif
+
+ if WITH_GUI
+diff -Nru bfilter-1.1.3.orig/tests/Makefile.am bfilter-1.1.3/tests/Makefile.am
+--- bfilter-1.1.3.orig/tests/Makefile.am 2007-05-07 17:19:40.000000000 +0300
++++ bfilter-1.1.3/tests/Makefile.am 2007-12-30 12:13:49.000000000 +0200
+@@ -6,7 +6,7 @@
+ $(top_builddir)/boost/libs/regex/libregex.la
+ else
+ BOOST_CPPFLAGS =
+-BOOST_LIBS =
++BOOST_LIBS = -lboost_regex-mt -lboost_unit_test_framework-mt
+ endif
+
+ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) \
diff --git a/net-proxy/bfilter/files/digest-bfilter-1.1.3 b/net-proxy/bfilter/files/digest-bfilter-1.1.3
new file mode 100644
index 000000000000..049786929856
--- /dev/null
+++ b/net-proxy/bfilter/files/digest-bfilter-1.1.3
@@ -0,0 +1,3 @@
+MD5 bbf46370c4289736c00d1ca5579442ab bfilter-1.1.3.tar.gz 3044798
+RMD160 afb1da21e6dc2770527d1f7b58675c6ebca3e999 bfilter-1.1.3.tar.gz 3044798
+SHA256 a1d376730e401e35eee9af43baf34fef7d56602037e0d06c893dd7b2c5f9129f bfilter-1.1.3.tar.gz 3044798