#!/bin/bash

# Developed By: Randal T. Rioux
#               Procyon Labs
#               http://www.procyonlabs.com
#
#  Script Name: squid_guard_havp_dl.sh
#               April 25, 2010
#
#  Description: This script will download and extract all files needed
#               for the following guide:
#
#               Squid Proxy Server w/ SquidGuard, HAVP, ClamAV and IMSpector
#               on Slackware Linux 13.0.
#
#               http://www.procyonlabs.com/guides/linux/slackware/squid_guard_havp/
#
# Instructions: Execute file as root from /usr/src and follow any prompts. You should
#               review this file and change as needed to fit your environment.
#

# Versions

CLAMAV=clamav-0.96
SQUID=squid-3.1.1
SQUIDGUARD=squidGuard-1.4
HAVP=havp-0.91
IMSPECTOR=imspector-0.9
SSLEAY=Net-SSLeay-1.36
WEBMIN=webmin-1.510

# ClamAV

wget http://www.procyonlabs.com/mirrors/clamav/$CLAMAV.tar.gz
tar zxvf $CLAMAV.tar.gz
rm $CLAMAV.tar.gz

# Squid

wget http://www.procyonlabs.com/mirrors/squid/$SQUID.tar.bz2
tar xvfj $SQUID.tar.bz2
rm $SQUID.tar.bz2

# SquidGuard

wget http://www.procyonlabs.com/mirrors/squidGuard/$SQUIDGUARD.tar.gz
tar zxvf $SQUIDGUARD.tar.gz
rm $SQUIDGUARD.tar.gz

# HAVP

wget http://www.procyonlabs.com/mirrors/havp/$HAVP.tar.gz
tar zxvf $HAVP.tar.gz
rm $HAVP.tar.gz

# IMSpector

wget http://www.procyonlabs.com/mirrors/imspector/$IMSPECTOR.tar.gz
tar zxvf $IMSPECTOR.tar.gz
rm $IMSPECTOR.tar.gz

# Net::SSLeay

wget http://www.procyonlabs.com/mirrors/Net-SSLeay/$SSLEAY.tar.gz
tar zxvf $SSLEAY.tar.gz
rm $SSLEAY.tar.gz

# Webmin

wget http://prdownloads.sourceforge.net/webadmin/$WEBMIN.tar.gz
tar zxvf $WEBMIN.tar.gz
rm $WEBMIN.tar.gz

