diff options
author | gdt <gdt@pkgsrc.org> | 2005-10-11 00:45:39 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2005-10-11 00:45:39 +0000 |
commit | 1311b9898361b2132235f1d2952debe958e9ba33 (patch) | |
tree | b298eeebd2291bba57fcd4810a8b01a4a8aa97bc /www/squidpurge | |
parent | 1c6e07d330e0333da0d11062c8dc1774897d4a33 (diff) | |
download | pkgsrc-1311b9898361b2132235f1d2952debe958e9ba33.tar.gz |
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 (limited to 'www/squidpurge')
-rw-r--r-- | www/squidpurge/DESCR | 7 | ||||
-rw-r--r-- | www/squidpurge/Makefile | 23 | ||||
-rw-r--r-- | www/squidpurge/PLIST | 3 | ||||
-rw-r--r-- | www/squidpurge/distinfo | 8 | ||||
-rw-r--r-- | www/squidpurge/patches/patch-aa | 13 | ||||
-rw-r--r-- | www/squidpurge/patches/patch-ab | 13 | ||||
-rw-r--r-- | www/squidpurge/patches/patch-ac | 16 |
7 files changed, 83 insertions, 0 deletions
diff --git a/www/squidpurge/DESCR b/www/squidpurge/DESCR new file mode 100644 index 00000000000..c1bacb389ab --- /dev/null +++ b/www/squidpurge/DESCR @@ -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 --git a/www/squidpurge/Makefile b/www/squidpurge/Makefile new file mode 100644 index 00000000000..682d778d87a --- /dev/null +++ b/www/squidpurge/Makefile @@ -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 +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 --git a/www/squidpurge/PLIST b/www/squidpurge/PLIST new file mode 100644 index 00000000000..e65a9a0ca30 --- /dev/null +++ b/www/squidpurge/PLIST @@ -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 --git a/www/squidpurge/distinfo b/www/squidpurge/distinfo new file mode 100644 index 00000000000..262feb2bd4d --- /dev/null +++ b/www/squidpurge/distinfo @@ -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 --git a/www/squidpurge/patches/patch-aa b/www/squidpurge/patches/patch-aa new file mode 100644 index 00000000000..dee27ec43ee --- /dev/null +++ b/www/squidpurge/patches/patch-aa @@ -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 --git a/www/squidpurge/patches/patch-ab b/www/squidpurge/patches/patch-ab new file mode 100644 index 00000000000..8e9d2e7e0e5 --- /dev/null +++ b/www/squidpurge/patches/patch-ab @@ -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 --git a/www/squidpurge/patches/patch-ac b/www/squidpurge/patches/patch-ac new file mode 100644 index 00000000000..b99a42592d1 --- /dev/null +++ b/www/squidpurge/patches/patch-ac @@ -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 |