Koozali.org: home of the SME Server

Installing squidpurge-1.17_2 on SME server 7.4.....need help

Offline joshAU

  • ***
  • 70
  • +0/-0
Installing squidpurge-1.17_2 on SME server 7.4.....need help
« on: October 20, 2009, 06:55:47 AM »

Hello. Sorry for my ignorance, but I'm having difficulty installing squidpurge-1.17_2.tgz. onto my SME server.

I untarred it using:

Code: [Select]
tar zxf squidpurge-1.17_2.tgz
Which seemed to unpack 4 files
+COMMENTS
+CONTENTS
+DESC
+MTREE_DIRS

and one sbin dir
..

I assumed that I would then change into the sbin dir,
which I did, and it has one file called purge within it.
Its coloured green....if that makes a dif...

According to the readme, found here:

http://www.wa.apana.org.au/~dean/squidpurge/README


Quote
In order to compile the purge tool, untar the source distribution and
change into the purge directory. With RCS and GNU make installed, just say
"make". GNU make will automagically retrieve all necessary files from the
repository and create the binary.

Systems not stated above will need to retrieve the makefile (use "co -l
Makefile" for this) and add their own platform specific definitions to
section [2] in the makefile.

I changed into the sbin dir and tried some commands.

"make" didnt work, when I typed make,
it returned no targets specified and no makefile found.

I changed it to "make purge", it replies nothing to be done for purge.

I then tried "co -l Makefile", it returns co: command not found.

I'm pretty sure its me :???:.

Any advice to help get this installed is appreciated.

PS. Oh, and I know how to delete the cache. I jsut want to use it to extract some files from the cache.

Thanks, and apologies for my ignorance.

joshAU

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Installing squidpurge-1.17_2 on SME server 7.4.....need help
« Reply #1 on: October 20, 2009, 08:38:03 AM »
joshAU:

you can't compile anything on SME without dev tools

search for a rpm (for rh4/centos4)

regards

Offline joshAU

  • ***
  • 70
  • +0/-0
Re: Installing squidpurge-1.17_2 on SME server 7.4.....need help
« Reply #2 on: October 21, 2009, 12:13:28 AM »
Ok, thanks.
I'll have a hunt.

Thanks again
joshAU

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Installing squidpurge-1.17_2 on SME server 7.4.....need help
« Reply #3 on: October 21, 2009, 01:01:51 AM »
Hi,
What exactly are you trying to do?


Offline joshAU

  • ***
  • 70
  • +0/-0
Re: Installing squidpurge-1.17_2 on SME server 7.4.....need help
« Reply #4 on: October 21, 2009, 02:55:19 AM »
I want to be able to selectively recover files from the cache.
tried to do it manually but the files are very confusing, and contain some binary.

squid purge has the ability to do this:

Quote
How do I rescue server w3.org from my cache contents?

Enable copy-out mode without killing anything:
   purge -sC /tmp -e '\.w3\.org/'

This command will rescue all servers in the xyz.com domain. Don't get confused, if there are some doubleclick servers also in there, as they use sometimes URLs as part of their URL. After purge is done, your /tmp directory will contain at least most likely a subdirectory www.w3.org which in turn contains all files from the server Squid knows about in their respective subdirectories:
   ~ $ find /tmp/www.w3.org
   /tmp/www.w3.org
   /tmp/www.w3.org/Protocols
   /tmp/www.w3.org/Protocols/HTTP
   /tmp/www.w3.org/Protocols/HTTP/Performance
   /tmp/www.w3.org/Protocols/HTTP/Performance/Pipeline.html
   /tmp/www.w3.org/Protocols/HTTP/1.0
   /tmp/www.w3.org/Protocols/HTTP/1.0/HTTPPerformance.html
   /tmp/www.w3.org/Protocols/index.html
   /tmp/www.w3.org/Protocols/History.html
   /tmp/www.w3.org/index.html

Which would be nice to do.

Thanks again
joshAU