#!/bin/sh export BUILD_DIR=build_duplicity export BOTO_VER=1.4c export PEXPECT_VER=2.3 export DUPLICITY_VER=0.5.03 # Create build dir mkdir -p $BUILD_DIR cd $BUILD_DIR # Install prerequisits from distribution repository # Add more or less here depending on the age of your distribution aptitude install python python-dev librsync1 librsync-dev gnupg python-gnupginterface ncftp # Install boto (for Amazon S3 support) wget "http://boto.googlecode.com/files/boto-$BOTO_VER.tar.gz" tar xzvf boto-$BOTO_VER.tar.gz cd boto-$BOTO_VER python setup.py install cd .. rm -r boto-$BOTO_VER rm boto-$BOTO_VER.tar.gz # Install pexpect >2.1 (for proper ssh/scp support) wget "http://pexpect.sourceforge.net/pexpect-$PEXPECT_VER.tar.gz" tar xzvf pexpect-$PEXPECT_VER.tar.gz cd pexpect-$PEXPECT_VER python setup.py install cd .. rm -r pexpect-$PEXPECT_VER rm pexpect-$PEXPECT_VER.tar.gz # Build duplicity itself wget "http://savannah.nongnu.org/download/duplicity/duplicity-$DUPLICITY_VER.tar.gz" tar xzvf duplicity-$DUPLICITY_VER.tar.gz cd duplicity-$DUPLICITY_VER python setup.py install cd .. rm -r duplicity-$DUPLICITY_VER rm duplicity-$DUPLICITY_VER.tar.gz # Remove build dir cd .. rmdir $BUILD_DIR