OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: update: www/polipo

From: Matthias Kilian (kilioutback.escape.de)
Date: Fri Feb 01 2008 - 04:47:27 CST


On Fri, Feb 01, 2008 at 10:35:25AM +0000, Andreas Kahari wrote:
> It would be neat to have www/polipo updated to at least 1.0.1 from
> 0.9.9, and even neater if someone had the time to look into an update
> to 1.0.4 which is the current version. A minimal modification of the
> port would be to reach into the 'old' sub-directory on the master site
> where the old sources for 0.9.9 are now kept.

I'm running 1.0.4 for some time now on my home box without noticing
any problems. I'd also take maintainership, after not getting any
replies from the former maintainer.

comments? ok?

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/polipo/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile 15 Sep 2007 20:38:25 -0000 1.4
+++ Makefile 1 Feb 2008 10:44:23 -0000
-2,13 +2,12
 
 COMMENT= HTTP caching proxy
 
-DISTNAME= polipo-0.9.9
-PKGNAME= ${DISTNAME}p0
+DISTNAME= polipo-1.0.4
 CATEGORIES= www
 
 HOMEPAGE= http://www.pps.jussieu.fr/~jch/software/polipo/
 
-MAINTAINER= Jon Trembley <jonbrain-box.net>
+MAINTAINER= Matthias Kilian <kiliopenbsd.org>
 
 MASTER_SITES= http://www.pps.jussieu.fr/~jch/software/files/polipo/
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/polipo/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo 5 Apr 2007 17:26:25 -0000 1.3
+++ distinfo 1 Feb 2008 10:44:23 -0000
-1,5 +1,5
-MD5 (polipo-0.9.9.tar.gz) = 1Y08Ejo0cqa1u1sLtGnP0g==
-RMD160 (polipo-0.9.9.tar.gz) = 7bKCAy8odRVCBWaEBaYypHXioas=
-SHA1 (polipo-0.9.9.tar.gz) = DMcseDqGXlsbtu9bUU5683JNdAo=
-SHA256 (polipo-0.9.9.tar.gz) = UGAxWZvzAGll2daO8VxLi1dqq773AyObwMNOcMisXfY=
-SIZE (polipo-0.9.9.tar.gz) = 148476
+MD5 (polipo-1.0.4.tar.gz) = 3v3Of4ACymhwW2wsNsTQlg==
+RMD160 (polipo-1.0.4.tar.gz) = MXOcWllYwTatRS6Hdja58mNDaE8=
+SHA1 (polipo-1.0.4.tar.gz) = ulYpBtElpr9y3DbC0HgUfUDPhyI=
+SHA256 (polipo-1.0.4.tar.gz) = 9kWKOrJUgoDU9VlvjVrmDGHd9xR+4LO7LWe5baScBDY=
+SIZE (polipo-1.0.4.tar.gz) = 180487
Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/www/polipo/patches/patch-Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-Makefile
--- patches/patch-Makefile 6 Aug 2005 21:21:53 -0000 1.1.1.1
+++ patches/patch-Makefile 1 Feb 2008 10:44:23 -0000
-1,26 +1,26
---- Makefile.orig Mon Jun 28 23:30:07 2004
-+++ Makefile Fri Aug 5 22:45:35 2005
- -1,15 +1,15
+--- Makefile.orig Sat Oct 6 15:43:15 2007
++++ Makefile Fri Nov 16 23:48:55 2007
+ -1,9 +1,8
 -PREFIX = /usr/local
  BINDIR = $(PREFIX)/bin
  MANDIR = $(PREFIX)/man
  INFODIR = $(PREFIX)/info
 -LOCAL_ROOT = /usr/share/polipo/www
 -DISK_CACHE_ROOT = /var/cache/polipo
-+#LOCAL_ROOT = ${PREFIX}/share/polipo
 +LOCAL_ROOT = ${PREFIX}/share/doc/polipo
 +DISK_CACHE_ROOT = /var/polipo/cache
  
- # CDEBUGFLAGS = -O
+ # To compile with Unix CC:
+
+ -13,7 +12,6 DISK_CACHE_ROOT = /var/cache/polipo
  
  # CC = gcc
- # CDEBUGFLAGS = -O -g -Wall -std=gnu99
--CDEBUGFLAGS = -O -g -Wall
-+# CDEBUGFLAGS = -O -g -Wall
+ # CDEBUGFLAGS = -Os -g -Wall -std=gnu99
+-CDEBUGFLAGS = -Os -g -Wall
  # CDEBUGFLAGS = -Os -Wall
  # CDEBUGFLAGS = -g -Wall
  
- -47,7 +47,7 FILE_DEFINES = -DLOCAL_ROOT=\"$(LOCAL_RO
+ -63,7 +61,7 FILE_DEFINES = -DLOCAL_ROOT=\"$(LOCAL_ROOT)/\" \
  
  DEFINES = $(FILE_DEFINES) $(PLATFORM_DEFINES)
  
-29,33 +29,34
  
  SRCS = util.c event.c io.c chunk.c atom.c object.c log.c diskcache.c main.c \
         config.c local.c http.c client.c server.c auth.c tunnel.c \
- -71,21 +71,17 all: polipo polipo.info html/index.html
+ -89,20 +87,19 all: polipo$(EXE) polipo.info html/index.html localind
  install: install.binary install.man
  
  install.binary: all
 - mkdir -p $(TARGET)$(BINDIR)
 - mkdir -p $(TARGET)$(LOCAL_ROOT)
 - mkdir -p $(TARGET)$(LOCAL_ROOT)/doc
-+ $(BSD_INSTALL_DATA_DIR) $(TARGET)$(BINDIR)
-+ $(BSD_INSTALL_DATA_DIR) $(TARGET)$(LOCAL_ROOT)
-+ $(BSD_INSTALL_DATA_DIR) $(TARGET)$(LOCAL_ROOT)/doc
++ ${BSD_INSTALL_DATA_DIR} $(TARGET)$(BINDIR)
++ ${BSD_INSTALL_DATA_DIR} $(TARGET)$(LOCAL_ROOT)
++ ${BSD_INSTALL_DATA_DIR} $(TARGET)$(LOCAL_ROOT)/doc
          rm -f $(TARGET)$(BINDIR)/polipo
 - cp -f polipo $(TARGET)$(BINDIR)/
 - cp -f html/* $(TARGET)$(LOCAL_ROOT)/doc
 - cp -f localindex.html $(TARGET)$(LOCAL_ROOT)/index.html
-+ $(BSD_INSTALL_PROGRAM) polipo $(TARGET)$(BINDIR)/
-+ $(BSD_INSTALL_DATA) html/* $(TARGET)$(LOCAL_ROOT)/doc
-+ $(BSD_INSTALL_DATA) localindex.html $(TARGET)$(LOCAL_ROOT)/index.html
++ ${BSD_INSTALL_PROGRAM} polipo $(TARGET)$(BINDIR)/
++ ${BSD_INSTALL_DATA} html/* $(TARGET)$(LOCAL_ROOT)/doc
++ ${BSD_INSTALL_DATA} 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
--
-+ $(BSD_INSTALL_MAN) polipo.man $(TARGET)$(MANDIR)/man1/polipo.1
-+ $(BSD_INSTALL_DATA) polipo.info $(TARGET)$(INFODIR)/
+- install-info --info-dir=$(TARGET)$(INFODIR) polipo.info
++ ${BSD_INSTALL_MAN_DIR} $(TARGET)$(MANDIR)/man1
++ ${BSD_INSTALL_DATA_DIR} $(TARGET)$(INFODIR)
++ ${BSD_INSTALL_MAN} polipo.man $(TARGET)$(MANDIR)/man1/polipo.1
++ ${BSD_INSTALL_DATA} polipo.info $(TARGET)$(INFODIR)/
+
  
  polipo.info: polipo.texi
- makeinfo polipo.texi
Index: patches/patch-main_c
===================================================================
RCS file: /cvs/ports/www/polipo/patches/patch-main_c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-main_c
--- patches/patch-main_c 6 Aug 2005 21:21:53 -0000 1.1.1.1
+++ patches/patch-main_c 1 Feb 2008 10:44:23 -0000
-1,7 +1,7
 $OpenBSD: patch-main_c,v 1.1.1.1 2005/08/06 21:21:53 aanriot Exp $
---- main.c.orig Tue Oct 5 20:46:02 2004
-+++ main.c Sun Jan 2 12:14:22 2005
- -125,6 +125,24 main(int argc, char **argv)
+--- main.c.orig Tue Mar 6 20:29:05 2007
++++ main.c Sun May 27 07:45:45 2007
+ -126,6 +126,24 main(int argc, char **argv)
          i++;
      }
  
Index: patches/patch-polipo_h
===================================================================
RCS file: /cvs/ports/www/polipo/patches/patch-polipo_h,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-polipo_h
--- patches/patch-polipo_h 6 Aug 2005 21:21:53 -0000 1.1.1.1
+++ patches/patch-polipo_h 1 Feb 2008 10:44:23 -0000
-1,7 +1,7
 $OpenBSD: patch-polipo_h,v 1.1.1.1 2005/08/06 21:21:53 aanriot Exp $
---- polipo.h.orig Mon Jun 28 23:30:07 2004
-+++ polipo.h Sun Jan 2 12:00:55 2005
- -58,6 +58,9 THE SOFTWARE.
+--- polipo.h.orig Tue Mar 6 20:29:05 2007
++++ polipo.h Sun May 27 07:45:45 2007
+ -62,6 +62,9 THE SOFTWARE.
  #define MAP_ANONYMOUS MAP_ANON
  #endif
  
Index: patches/patch-polipo_texi
===================================================================
RCS file: patches/patch-polipo_texi
diff -N patches/patch-polipo_texi
--- patches/patch-polipo_texi 24 Sep 2005 17:58:23 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
-1,21 +0,0
-$OpenBSD: patch-polipo_texi,v 1.1 2005/09/24 17:58:23 bernd Exp $
---- polipo.texi.orig Fri Sep 23 20:19:08 2005
-+++ polipo.texi Sat Sep 24 19:00:33 2005
- -1245,7 +1245,7 from the server. If the latter arrives,
- the rest of the POST requestfootnote{This, of course, is only part of
- the story. Additionally, the server is not required to reply with
- samp{100 Continue}, hence the client must implement a timeout.
--Furthermore, according to the obsolete RFCtie{}2068, the server is
-+Furthermore, according to the obsolete RFCw{}2068, the server is
- allowed to spontaneously send samp{100 Continue}, so the client must
- be prepared to ignore such a reply at any time.}.
-
- -1353,7 +1353,7 or because it was revalidated.
- If code{cacheIsShared} is false (the default), Polipo will ignore the
- server-side samp{Cache-Control} directives samp{s-maxage} and
- samp{proxy-must-revalidate}. This is highly desirable behaviour, but
--happens to violate RFCtie{}2616 if the cache is shared among multiple
-+happens to violate RFCw{}2616 if the cache is shared among multiple
- users.
-
- If code{mindlesslyCacheVary} is true, the presence of a Vary header
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/www/polipo/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST 17 Jul 2006 19:57:26 -0000 1.2
+++ pkg/PLIST 1 Feb 2008 10:44:23 -0000
-26,8 +26,12 share/doc/polipo/doc/DNS.html
 share/doc/polipo/doc/Daemon.html
 share/doc/polipo/doc/Disk-cache.html
 share/doc/polipo/doc/Disk-format.html
+share/doc/polipo/doc/External-redirectors.html
 share/doc/polipo/doc/Forbidden.html
+share/doc/polipo/doc/HTTP-parent-proxies.html
+share/doc/polipo/doc/HTTP-tuning.html
 share/doc/polipo/doc/Harvest-and-Squid.html
+share/doc/polipo/doc/Internal-forbidden-list.html
 share/doc/polipo/doc/Junkbuster.html
 share/doc/polipo/doc/Latency-and-throughput.html
 share/doc/polipo/doc/Limiting-chunk-usage.html
-38,6 +42,7 share/doc/polipo/doc/Logging.html
 share/doc/polipo/doc/Malloc-memory.html
 share/doc/polipo/doc/Memory-cache.html
 share/doc/polipo/doc/Memory-usage.html
+share/doc/polipo/doc/Modifying-the-on_002ddisk-cache.html
 share/doc/polipo/doc/Network-traffic.html
 share/doc/polipo/doc/Network.html
 share/doc/polipo/doc/OS-usage-limits.html
-56,12 +61,16 share/doc/polipo/doc/Privoxy.html
 share/doc/polipo/doc/Proxies-and-caches.html
 share/doc/polipo/doc/Purging.html
 share/doc/polipo/doc/Running.html
+share/doc/polipo/doc/SOCKS-parent-proxies.html
 share/doc/polipo/doc/Server-statistics.html
+share/doc/polipo/doc/Server_002dside-behaviour.html
 share/doc/polipo/doc/Stopping.html
 share/doc/polipo/doc/The-web.html
 share/doc/polipo/doc/Tuning-POST-and-PUT.html
 share/doc/polipo/doc/Tuning-the-HTTP-parser.html
+share/doc/polipo/doc/Tuning-validation.html
 share/doc/polipo/doc/Tunnelling-connections.html
+share/doc/polipo/doc/Tweaking-validation.html
 share/doc/polipo/doc/Variable-index.html
 share/doc/polipo/doc/WWWOFFLE.html
 share/doc/polipo/doc/Web-interface.html