# 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 -pi -i ${FILESDIR}/${P}.diff Makefile einfo "Compiling source" make CDEBUGFLAGS="${CFLAGS}" all || die "compile problem" } src_install() { einfo "Installing Polipo" make install || 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. if [ -d /etc/cron.daily]; then insinto /etc/cron.daily ; newins ${FILESDIR}/polipo.crond polipo.sh fi # Create disk cache directory. if [ ! -d /var/cache/polipo]; then install -d /var/cache/polipo fi einfo "Do not forget to read the manual." einfo "Change the config file in /etc/conf.d to suid your needs." }