blob: 41ab51a56d324660a323a4829d217ad807c33b81 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#!/bin/bash
# Script to automate "backporting" of packages for Debian if the
# only difference to the upstream packages is the signature.
# Author: Johannes Ranke <jranke@uni-bremen.de>
export DEBEMAIL=jranke@uni-bremen.de
export DEBFULLNAME="Johannes Ranke"
text="Recompiled on etch for CRAN"
for i in nlme; do
#for i in boot cluster codetools foreign kernsmooth lattice mgcv nlme rodbc 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.8.1
dch -b -v $version -D etch-cran $text
sed -i '/^Build-Depends/s/r-base-dev (.*)/r-base-dev (>= 2.8.1-1~etchcran.0)/' debian/control
sed -i '/^Build-Depends-Indep/s/r-base-dev (.*)/r-base-dev (>= 2.8.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/.*/&, lapack3-dev, python-minimal, python-central, python-dev, tetex-bin, texinfo/' debian/control
dch -a "debian/control: add build dependencies on lapack3-dev, python-minimal, python-central, tetex-bin and texinfo"
fi
if [ ${i} == "nlme" ]
then
sed -i '/^Build-Depends/s/.*/&, r-cran-lattice, cdbs/' debian/control
dch -a "debian/control: add build dependency on r-cran-lattice and cdbs"
fi
if [ ${i} == "rpart" ]
then
sed -i '/^Build-Depends/s/.*/&, cdbs/' debian/control
dch -a "debian/control: add build dependency on cdbs"
fi
fakeroot dpkg-buildpackage -sa
cd ../..
done
|