summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Wijsman <tomwij@gentoo.org>2013-10-12 14:10:05 +0000
committerTom Wijsman <tomwij@gentoo.org>2013-10-12 14:10:05 +0000
commit8d6b6c482b095e4925f67da5805c8ee3d840e44a (patch)
treef4dd66f4927ba08975f02901ee58f2b6ec38478d /net-proxy
parentAdd ~mips per #412915 (diff)
downloadgentoo-2-8d6b6c482b095e4925f67da5805c8ee3d840e44a.tar.gz
gentoo-2-8d6b6c482b095e4925f67da5805c8ee3d840e44a.tar.bz2
gentoo-2-8d6b6c482b095e4925f67da5805c8ee3d840e44a.zip
Fix linking with libclamav when cross compiling, patch by Bertrand Jacquin whom reported bug #472782.
(Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/havp/ChangeLog7
-rw-r--r--net-proxy/havp/files/havp-0.92a-r1-pkg-config-libclamav.patch66
-rw-r--r--net-proxy/havp/havp-0.92a-r1.ebuild4
3 files changed, 75 insertions, 2 deletions
diff --git a/net-proxy/havp/ChangeLog b/net-proxy/havp/ChangeLog
index a0835ea37b05..7c2162d4ed73 100644
--- a/net-proxy/havp/ChangeLog
+++ b/net-proxy/havp/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-proxy/havp
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/ChangeLog,v 1.43 2013/04/04 19:46:57 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/ChangeLog,v 1.44 2013/10/12 14:10:05 tomwij Exp $
+
+ 12 Oct 2013; Tom Wijsman <TomWij@gentoo.org>
+ +files/havp-0.92a-r1-pkg-config-libclamav.patch, havp-0.92a-r1.ebuild:
+ Fix linking with libclamav when cross compiling, patch by Bertrand Jacquin
+ whom reported bug #472782.
04 Apr 2013; Agostino Sarubbo <ago@gentoo.org> havp-0.92a-r1.ebuild:
Stable for x86, wrt bug #464474
diff --git a/net-proxy/havp/files/havp-0.92a-r1-pkg-config-libclamav.patch b/net-proxy/havp/files/havp-0.92a-r1-pkg-config-libclamav.patch
new file mode 100644
index 000000000000..ea761f7e3476
--- /dev/null
+++ b/net-proxy/havp/files/havp-0.92a-r1-pkg-config-libclamav.patch
@@ -0,0 +1,66 @@
+--- a/configure.in
++++ b/configure.in
+@@ -5,6 +5,7 @@
+ unset CDPATH
+
+ AC_PROG_CXX
++PKG_PROG_PKG_CONFIG
+
+ AC_PREFIX_DEFAULT(/usr/local)
+
+@@ -83,48 +84,15 @@
+ AC_DEFINE(SSLTUNNEL)
+ fi
+
+-AC_MSG_CHECKING(for ClamAV scanner library)
+-
+ if test "$enable_clamav" = "yes"
+ then
+- clamprefix="`clamav-config --prefix 2>/dev/null`"
+- clamversion="`clamav-config --version 2>/dev/null`"
+-
+- if test "x$clamprefix" = "x"
+- then
+- AC_MSG_RESULT([clamav-config not found])
+-
+- echo ""
+- echo " Error finding ClamAV installation!"
+- echo " Add ClamAV binaries path to PATH and run configure again."
+- echo ""
+- echo " To disable ClamAV library support, use --disable-clamav."
+- echo ""
+-
+- exit 1
+- fi
+-
+- for cl in `clamav-config --cflags 2>/dev/null`; do
+- if test "x`echo $cl | perl -ne 'print if (/^-I/)' 2>/dev/null`" != "x"
+- then
+- CFLAGS="$CFLAGS $cl"
+- fi
+- done
+-
+- for cl in `clamav-config --libs 2>/dev/null`; do
+- if test "x`echo $cl | perl -ne 'print if (/(^-L|thread|c_r)/)' 2>/dev/null`" != "x"
+- then
+- LDFLAGS="$LDFLAGS $cl"
+- fi
+- done
+- LDFLAGS="$LDFLAGS -lclamav"
+-
+- SCANNEROBJECTS="clamlibscanner.o"
+- AC_DEFINE(USECLAMLIB)
+-
+- AC_MSG_RESULT([found $clamversion in $clamprefix])
+-else
+- AC_MSG_RESULT([disabled :-(])
++ PKG_CHECK_MODULES(clamav, libclamav,
++ [CFLAGS="$clamav_CFLAGS $CFLAGS"
++ LDFLAGS="$clamav_LIBS $LDFLAGS"
++
++ SCANNEROBJECTS="clamlibscanner.o"
++ AC_DEFINE(USECLAMLIB)
++ ])
+ fi
+
+ AC_MSG_CHECKING(for Trend Micro scanner)
diff --git a/net-proxy/havp/havp-0.92a-r1.ebuild b/net-proxy/havp/havp-0.92a-r1.ebuild
index bba31ba66bec..d4a530d3d6d4 100644
--- a/net-proxy/havp/havp-0.92a-r1.ebuild
+++ b/net-proxy/havp/havp-0.92a-r1.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/havp-0.92a-r1.ebuild,v 1.3 2013/04/04 19:46:57 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/havp/havp-0.92a-r1.ebuild,v 1.4 2013/10/12 14:10:05 tomwij Exp $
EAPI=4
+
inherit autotools eutils toolchain-funcs user
DESCRIPTION="HTTP AntiVirus Proxy"
@@ -24,6 +25,7 @@ pkg_setup() {
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.92a-run.patch
+ epatch "${FILESDIR}"/${PF}-pkg-config-libclamav.patch
sed -i configure.in -e '/^CFLAGS=/d' || die
eautoreconf
}