#!/bin/sh ############################################################################### # Program: download.source # Purpose: Download the required source balls # Author : Stuart Winter # Date...: 20/12/02 ############################################################################### # Download sites# ################# # http://www.proftpd.org # http://www.castaglia.org/proftpd/#Modules ############################################################################### ORIGPATH="$( pwd )" cd ${ORIGPATH} mkdir source 2>/dev/null cd source function grab_sourceball () { local URL="$1" local file="$( echo ${URL} | rev | cut -d/ -f1 | rev )" if [ ! -f ${file} ]; then echo "Downloading ${URL}" wget -N ${URL} else echo "Already have ${file}, skipping.." fi } grab_sourceball "http://www.busybox.net/downloads/busybox-0.60.5.tar.gz" grab_sourceball "ftp://ftp.mirror.ac.uk/sites/ftp.kernel.org/pub/linux/libs/uclibc/uClibc-0.9.17.tar.bz2" grab_sourceball "ftp://ftp.mirror.ac.uk/sites/ftp.kernel.org/pub/linux/libs/uclibc/root_fs_0.9.17-arm.bz2" grab_sourceball "http://tinylogin.busybox.net/downloads/tinylogin-1.4.tar.bz2" # Sample /etc grab_sourceball "http://roland.seuhs.com/patches/arm/etc.tar.gz"