# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Polipo - a caching web proxy" HOMEPAGE="http://www.pps.jussieu.fr/~jch/software/polipo/" SRC_URI="http://www.pps.jussieu.fr/~jch/software/files/polipo/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~ppc-macos ~s390 ~sh ~sparc x86" IUSE="" src_unpack() { unpack ${A} cd ${S} } src_compile() { einfo "Patching Makefile" patch -p1 -i ${FILESDIR}/${P}.diff einfo "Compiling source" make CDEBUGFLAGS="${CFLAGS}" PREFIX=/usr all || die "compile problem" } src_install() { einfo "Installing Polipo" make install PREFIX=/usr TARGET=${D} || die "install failed" # Install init scripts and config file exeinto /etc/init.d ; newexe ${FILESDIR}/polipo.initd polipo insinto /etc/conf.d ; newins ${FILESDIR}/polipo.confd polipo # Install cron job to clean up cached data. exeinto /etc/cron.daily ; newexe ${FILESDIR}/polipo.crond polipo.sh # Create disk cache directory. install -d ${D}/var/cache/polipo einfo "Do not forget to read the manual." einfo "Change the config file in /etc/conf.d to suit your needs." }