diff options
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/polipo/ChangeLog | 8 | ||||
-rw-r--r-- | net-proxy/polipo/files/digest-polipo-0.9.12 | 3 | ||||
-rw-r--r-- | net-proxy/polipo/files/polipo-0.9.12-gentoo.patch | 46 | ||||
-rw-r--r-- | net-proxy/polipo/polipo-0.9.12.ebuild | 54 |
4 files changed, 110 insertions, 1 deletions
diff --git a/net-proxy/polipo/ChangeLog b/net-proxy/polipo/ChangeLog index 8282b37f376f..49912a2624c6 100644 --- a/net-proxy/polipo/ChangeLog +++ b/net-proxy/polipo/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/polipo # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/ChangeLog,v 1.11 2007/01/15 12:11:03 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/ChangeLog,v 1.12 2007/02/08 09:40:10 mrness Exp $ + +*polipo-0.9.12 (08 Feb 2007) + + 08 Feb 2007; Alin Nastac <mrness@gentoo.org> + +files/polipo-0.9.12-gentoo.patch, +polipo-0.9.12.ebuild: + Version bump (#165857). *polipo-0.9.11 (15 Jan 2007) diff --git a/net-proxy/polipo/files/digest-polipo-0.9.12 b/net-proxy/polipo/files/digest-polipo-0.9.12 new file mode 100644 index 000000000000..45f975f7d814 --- /dev/null +++ b/net-proxy/polipo/files/digest-polipo-0.9.12 @@ -0,0 +1,3 @@ +MD5 ce82913e3698de5d15465fb45dbafa11 polipo-0.9.12.tar.gz 149370 +RMD160 09b52dc68e0a1100e697199ff3cda1ba482a650f polipo-0.9.12.tar.gz 149370 +SHA256 6b42de207937d3b13184aab3de2c3a6b9ab0ede92c340b19305f668e191cf205 polipo-0.9.12.tar.gz 149370 diff --git a/net-proxy/polipo/files/polipo-0.9.12-gentoo.patch b/net-proxy/polipo/files/polipo-0.9.12-gentoo.patch new file mode 100644 index 000000000000..bb16036168c5 --- /dev/null +++ b/net-proxy/polipo/files/polipo-0.9.12-gentoo.patch @@ -0,0 +1,46 @@ +diff -Nru polipo-0.9.12.orig/Makefile polipo-0.9.12/Makefile +--- polipo-0.9.12.orig/Makefile 2007-02-06 23:17:39.000000000 +0200 ++++ polipo-0.9.12/Makefile 2007-02-08 11:32:00.000000000 +0200 +@@ -82,11 +82,6 @@ + cp -f localindex.html $(TARGET)$(LOCAL_ROOT)/index.html + + install.man: all +- mkdir -p $(TARGET)$(MANDIR)/man1 +- mkdir -p $(TARGET)$(INFODIR) +- cp -f polipo.man $(TARGET)$(MANDIR)/man1/polipo.1 +- cp polipo.info $(TARGET)$(INFODIR)/ +- install-info --info-dir=$(INFODIR) polipo.info + + + polipo.info: polipo.texi +diff -Nru polipo-0.9.12.orig/polipo.h polipo-0.9.12/polipo.h +--- polipo-0.9.12.orig/polipo.h 2007-02-06 23:17:39.000000000 +0200 ++++ polipo-0.9.12/polipo.h 2007-02-08 11:32:00.000000000 +0200 +@@ -62,7 +62,9 @@ + #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + /* nothing */ + #elif defined(__GNUC__) ++#ifndef inline + #define inline __inline ++#endif + #if (__GNUC__ >= 3) + #define restrict __restrict + #else +diff -Nru polipo-0.9.12.orig/server.c polipo-0.9.12/server.c +--- polipo-0.9.12.orig/server.c 2007-02-06 23:17:39.000000000 +0200 ++++ polipo-0.9.12/server.c 2007-02-08 11:32:00.000000000 +0200 +@@ -1832,10 +1832,10 @@ + } else if(code < 400 && + (content_range.from >= 0 || content_range.to >= 0 || + content_range.full_length >= 0)) { +- do_log(L_ERROR, "Range without partial content.\n"); +- httpServerAbort(connection, 1, 502, +- internAtom("Range without partial content")); +- goto fail; ++ do_log(L_WARN, "Range without partial content.\n"); ++ content_range.from = -1; ++ content_range.to = -1; ++ content_range.full_length = -1; + } else if(code != 304 && code != 412) { + full_len = len; + } diff --git a/net-proxy/polipo/polipo-0.9.12.ebuild b/net-proxy/polipo/polipo-0.9.12.ebuild new file mode 100644 index 000000000000..cda26fd6e4af --- /dev/null +++ b/net-proxy/polipo/polipo-0.9.12.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/polipo-0.9.12.ebuild,v 1.1 2007/02/08 09:40:10 mrness Exp $ + +inherit eutils + +DESCRIPTION="A caching web proxy" +HOMEPAGE="http://www.pps.jussieu.fr/~jch/software/polipo/" +SRC_URI="http://www.pps.jussieu.fr/~jch/software/files/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-apps/texinfo" + +pkg_setup() { + enewgroup polipo + enewuser polipo -1 -1 /var/cache/polipo polipo +} + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}/${P}-gentoo.patch" +} + +src_compile() { + emake "PREFIX=/usr" "CDEBUGFLAGS=${CFLAGS}" all || die "build failed" +} + +src_install() { + einstall "PREFIX=/usr" "TARGET=${D}" || die "install failed" + mv polipo.man polipo.1 + doman "${S}/polipo.1" + doinfo "${S}/polipo.info" + + exeinto /etc/init.d ; newexe "${FILESDIR}/polipo.initd" polipo + insinto /etc/polipo ; doins "${FILESDIR}/config" + exeinto /etc/cron.daily ; newexe "${FILESDIR}/polipo.crond" polipo.sh + + diropts -m0750 -o polipo -g polipo + dodir /var/cache/polipo +} + +pkg_preinst() { + pkg_setup +} + +pkg_postinst() { + einfo "Do not forget to read the manual." + einfo "Change the config file in /etc/polipo to suit your needs." +} |