|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/www-proxy/privoxy/privoxy-3.0.3-r1.ebuild,v 1.1 2005/02/24 15:43:54 mrness Exp $ | # $Header: /var/cvsroot/gentoo-x86/www-proxy/privoxy/privoxy-3.0.3-r1.ebuild,v 1.1 2005/02/24 15:43:54 mrness Exp $ |
| |
inherit eutils |
inherit toolchain-funcs eutils |
| |
HOMEPAGE="http://www.privoxy.org" | HOMEPAGE="http://www.privoxy.org" |
DESCRIPTION="A web proxy with advanced filtering capabilities for protecting privacy against internet junk." | DESCRIPTION="A web proxy with advanced filtering capabilities for protecting privacy against internet junk." |
|
|
LICENSE="GPL-2" | LICENSE="GPL-2" |
| |
DEPEND=">=sys-apps/sed-4 | DEPEND=">=sys-apps/sed-4 |
sys-devel/autoconf |
=sys-devel/autoconf-2.1* |
virtual/libc | virtual/libc |
pcre? ( dev-libs/libpcre )" | pcre? ( dev-libs/libpcre )" |
| |
|
|
src_unpack() { | src_unpack() { |
unpack ${A} | unpack ${A} |
cd ${S} | cd ${S} |
sed -i -e 's:confdir .:confdir /etc/privoxy:' \ |
|
|
# update to privoxy 3.0.3-2 |
|
epatch ${FILESDIR}/privoxy-3.0.3.2.patch |
|
rm ${S}/autom4te.cache/{output.0,requests,traces.0} |
|
|
|
sed -e 's:confdir .:confdir /etc/privoxy:' \ |
-e 's:logdir .:logdir /var/log/privoxy:' \ | -e 's:logdir .:logdir /var/log/privoxy:' \ |
-e 's:logfile logfile:logfile privoxy.log:' ${S}/config |
-e 's:logfile logfile:logfile privoxy.log:' \ |
sed -i 's:^\+set-image-blocker{pattern}:+set-image-blocker{blank}:' ${S}/default.action.master |
-i ${S}/config || die "sed failed." |
|
sed -e 's:^\+set-image-blocker{pattern}:+set-image-blocker{blank}:' \ |
|
-i ${S}/default.action.master || die "sed 2 failed." |
| |
|
export WANT_AUTOCONF=2.1 |
autoheader || die "autoheader failed" | autoheader || die "autoheader failed" |
autoconf || die "autoconf failed" | autoconf || die "autoconf failed" |
} | } |
| |
src_compile() { | src_compile() { |
|
export CC=$(tc-getCC) |
econf \ | econf \ |
$(use_enable pcre dynamic-pcre) \ | $(use_enable pcre dynamic-pcre) \ |
--sysconfdir=/etc/privoxy || die "econf failed" | --sysconfdir=/etc/privoxy || die "econf failed" |