pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/squidpurge New package to inspect squid caches and...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ca6fc56ba609
branches: trunk
changeset: 500627:ca6fc56ba609
user: gdt <gdt%pkgsrc.org@localhost>
date: Tue Oct 11 00:45:39 2005 +0000
description:
New package to inspect squid caches and extract data from them.
Patched for pkgsrc pathnames (default location of squid config file),
and for NetBSD; probably needs help for other pkgsrc platforms but not
marked ONLY_ because there's no good reason it can't be made to work.
While not useful to run this w/o squid, the package does not depend on
it because it can be built and installed without it.
The package and binary are named squidpurge because purge seems too
likely to conflict and squid users are more likely to notice it this way.
The purge tool is a kind of magnifying glass into your squid-2 cache.
You can use purge to have a look at what URLs are stored in which file
within your cache. The purge tool can also be used to release objects
which URLs match user specified regular expressions. It can extract
objects matching a regular expression, creating a directory tree
matching the server layout. A more troublesome feature is the ability
to remove files squid does not seem to know about any longer.
diffstat:
www/squidpurge/DESCR | 7 +++++++
www/squidpurge/Makefile | 23 +++++++++++++++++++++++
www/squidpurge/PLIST | 3 +++
www/squidpurge/distinfo | 8 ++++++++
www/squidpurge/patches/patch-aa | 13 +++++++++++++
www/squidpurge/patches/patch-ab | 13 +++++++++++++
www/squidpurge/patches/patch-ac | 16 ++++++++++++++++
7 files changed, 83 insertions(+), 0 deletions(-)
diffs (111 lines):
diff -r 28bfec3c4642 -r ca6fc56ba609 www/squidpurge/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squidpurge/DESCR Tue Oct 11 00:45:39 2005 +0000
@@ -0,0 +1,7 @@
+The purge tool is a kind of magnifying glass into your squid-2 cache.
+You can use purge to have a look at what URLs are stored in which file
+within your cache. The purge tool can also be used to release objects
+which URLs match user specified regular expressions. It can extract
+objects matching a regular expression, creating a directory tree
+matching the server layout. A more troublesome feature is the ability
+to remove files squid does not seem to know about any longer.
diff -r 28bfec3c4642 -r ca6fc56ba609 www/squidpurge/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squidpurge/Makefile Tue Oct 11 00:45:39 2005 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/10/11 00:45:39 gdt Exp $
+#
+
+DISTNAME= purge-${PURGEVERSION}-src
+PKGNAME= squidpurge-${PURGEVERSION}
+CATEGORIES= www
+MASTER_SITES= http://www.wa.apana.org.au/~dean/sources/
+
+MAINTAINER= gdt%NetBSD.org@localhost
+HOMEPAGE= http://www.wa.apana.org.au/~dean/sources/
+COMMENT= Squid cache tool to list, extract or purge objects
+
+PURGEVERSION= 20040201
+
+WRKSRC= ${WRKDIR}/purge
+
+USE_TOOLS+= gmake
+
+do-install:
+ ${INSTALL} ${WRKSRC}/purge ${LOCALBASE}/bin/squidpurge
+ ${INSTALL} ${WRKSRC}/README ${LOCALBASE}/share/doc/squidpurge
+
+.include "../../mk/bsd.pkg.mk"
diff -r 28bfec3c4642 -r ca6fc56ba609 www/squidpurge/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squidpurge/PLIST Tue Oct 11 00:45:39 2005 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/11 00:45:39 gdt Exp $
+bin/squidpurge
+share/doc/squidpurge
diff -r 28bfec3c4642 -r ca6fc56ba609 www/squidpurge/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squidpurge/distinfo Tue Oct 11 00:45:39 2005 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/10/11 00:45:39 gdt Exp $
+
+SHA1 (purge-20040201-src.tar.gz) = 9347ead8f1444c7c8d1828e0c8ff8bd0ca5e0891
+RMD160 (purge-20040201-src.tar.gz) = c98c146223d6322850e7203af2b074a40440184a
+Size (purge-20040201-src.tar.gz) = 30572 bytes
+SHA1 (patch-aa) = 89c9636fc0768b83dbfb3049df472e75e0ccffed
+SHA1 (patch-ab) = c461769a7eae2f249ec3b8acb4fe40b42f2f411b
+SHA1 (patch-ac) = 5d5ed1c0363ba29b9622f7541f2ac1e891fb65b6
diff -r 28bfec3c4642 -r ca6fc56ba609 www/squidpurge/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squidpurge/patches/patch-aa Tue Oct 11 00:45:39 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/10/11 00:45:39 gdt Exp $
+
+--- purge.cc.~1~ 2000-09-21 09:05:31.000000000 -0400
++++ purge.cc 2005-10-09 19:53:58.000000000 -0400
+@@ -121,7 +121,7 @@
+ #include <signal.h>
+ #include <errno.h>
+
+-#if defined(HAS_PSIGNAL) && !defined(LINUX) && !defined(FREEBSD)
++#if defined(HAS_PSIGNAL) && !defined(LINUX) && !defined(FREEBSD) && !defined(NETBSD)
+ #include <siginfo.h>
+ #endif // HAS_PSIGNAL
+
diff -r 28bfec3c4642 -r ca6fc56ba609 www/squidpurge/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squidpurge/patches/patch-ab Tue Oct 11 00:45:39 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/10/11 00:45:39 gdt Exp $
+
+--- conffile.hh.~1~ 2000-09-21 09:05:31.000000000 -0400
++++ conffile.hh 2005-10-09 20:00:10.000000000 -0400
+@@ -55,7 +55,7 @@
+
+
+ #ifndef DEFAULT_SQUID_CONF
+-#define DEFAULT_SQUID_CONF "/usr/local/squid/etc/squid.conf"
++#define DEFAULT_SQUID_CONF "/usr/pkg/etc/squid/squid.conf"
+ #endif // DEFAULT_SQUID_CONF
+
+ #include <stdio.h> // FILE*
diff -r 28bfec3c4642 -r ca6fc56ba609 www/squidpurge/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squidpurge/patches/patch-ac Tue Oct 11 00:45:39 2005 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/10/11 00:45:39 gdt Exp $
+
+--- Makefile.~1~ 2000-09-21 09:05:31.000000000 -0400
++++ Makefile 2005-10-09 19:59:19.000000000 -0400
+@@ -77,6 +77,11 @@
+ SOCKLEN = socklen_t
+ endif
+
++ifeq (NETBSD,${SYSTEM})
++SOCKLEN = socklen_t
++LD = $(CXX)
++endif
++
+ ifeq (IRIX,${SYSTEM})
+ CXX = CC -n32 -mips3 -r4000 -DEFAULT:abi=n32:isa=mips3:proc=r4k
+ CXX += -LANG:ansi-for-init-scope=on -LANG:bool=on
Home |
Main Index |
Thread Index |
Old Index