# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_PV=`echo ${PV} | sed -e 's/.0$//'` DESCRIPTION="A lightweight HTTP/SSL proxy" HOMEPAGE="http://www.banu.com/tinyproxy/" SRC_URI="http://www.banu.com/pub/tinyproxy/${MY_PV}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 ia64 ppc ~sparc x86" IUSE="socks5 transparent-proxy reverse debug" DEPEND="socks5? ( net-proxy/dante )" src_compile() { econf \ --enable-xtinyproxy \ --enable-filter \ --enable-tunnel \ --enable-upstream \ `use_enable transparent-proxy` \ `use_enable debug` \ `use_enable debug profiling` \ `use_enable socks5 socks` \ `use_enable reverse` \ || die "econf failed" emake || die "emake failed" } src_install() { sed -i \ -e 's:mkdir $(datadir)/tinyproxy:mkdir -p $(DESTDIR)$(datadir)/tinyproxy:' \ Makefile make DESTDIR="${D}" install || die "install failed" dodoc AUTHORS ChangeLog NEWS README TODO mv "${D}/usr/share/tinyproxy" "${D}/usr/share/doc/${PF}/html" newinitd "${FILESDIR}/tinyproxy.initd" tinyproxy } pkg_postinst() { einfo "For filtering domains and URLs, enable filter option in the configuration file" einfo "and add them to the filter file (one domain or URL per line)." }