#!/bin/bash # Script to automate "backporting" of packages for Debian if the # only difference to the upstream packages is the signature. # Author: Johannes Ranke export DEBEMAIL=jranke@uni-bremen.de export DEBFULLNAME="Johannes Ranke" text="Recompiled on etch for CRAN" #for i in rpy; do for i in boot cluster codetools foreign kernsmooth lattice mgcv nlme rpart survival vr littler rpy; do cd $i rm -rf $i* rm *.deb apt-get source -t unstable $i cd $i-* version=`dpkg-parsechangelog | grep ^Version | cut -f2 -d " "`~etchcran.2.7.1 dch -b -v $version -D etch-cran $text sed -i '/^Build-Depends/s/r-base-dev (.*)/r-base-dev (>= 2.7.1-1~etchcran.0)/' debian/control sed -i '/^Build-Depends-Indep/s/r-base-dev (.*)/r-base-dev (>= 2.7.1-1~etchcran.0)/' debian/control dch -a "debian/control: adapt build dependencies on r-base-dev to current backport" if [ ${i} == "rpy" ] then sed -i '/^Build-Depends/s/texlive-base, texlive-latex-base/tetex-bin, tetex-extra, lapack3-dev/' debian/control dch -a "debian/control: revert Build-Depends: to 'tetex-bin, tetex-extra'" dch -a "debian/control: add build dependency on 'lapack3-dev'" fi fakeroot dpkg-buildpackage -sa cd ../.. done