2016-07-04 13:52:19 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-07-04 14:20:42 +02:00
|
|
|
echo $0
|
2016-07-04 13:52:19 +02:00
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
debian_mirror=$1
|
|
|
|
|
2016-09-06 14:33:13 +02:00
|
|
|
printf 'APT::Install-Recommends "0";\nAPT::Install-Suggests "0";\n' \
|
|
|
|
> /etc/apt/apt.conf.d/99no-install-recommends
|
|
|
|
|
2016-09-15 11:12:49 +02:00
|
|
|
printf 'APT::Acquire::Retries "20";\n' \
|
|
|
|
> /etc/apt/apt.conf.d/99acquire-retries
|
|
|
|
|
2017-03-16 14:48:08 +01:00
|
|
|
if echo $debian_mirror | grep '^https' 2>&1 > /dev/null; then
|
|
|
|
apt-get -y update
|
|
|
|
apt-get -y install apt-transport-https
|
|
|
|
fi
|
|
|
|
|
|
|
|
sed -i "s,http://ftp.uk.debian.org/debian/,${debian_mirror},g" /etc/apt/sources.list
|
|
|
|
|
2016-07-04 13:52:19 +02:00
|
|
|
if grep --quiet jessie /etc/apt/sources.list; then
|
|
|
|
echo "deb $debian_mirror jessie-backports main" > /etc/apt/sources.list.d/backports.list
|
2017-01-10 10:54:21 +01:00
|
|
|
echo "deb $debian_mirror testing main" > /etc/apt/sources.list.d/testing.list
|
|
|
|
printf "Package: *\nPin: release o=Debian,a=testing\nPin-Priority: -300\n" > /etc/apt/preferences.d/debian-testing
|
2016-07-04 13:52:19 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
dpkg --add-architecture i386
|
|
|
|
|
|
|
|
apt-get -y update
|
2016-09-06 14:33:13 +02:00
|
|
|
apt-get -y upgrade --download-only
|
2016-07-04 13:52:19 +02:00
|
|
|
apt-get -y upgrade
|
|
|
|
|
|
|
|
packages="
|
|
|
|
ant
|
2016-07-23 19:14:28 +02:00
|
|
|
asn1c
|
2016-07-04 13:52:19 +02:00
|
|
|
ant-contrib
|
|
|
|
autoconf
|
|
|
|
autoconf2.13
|
2017-02-07 10:47:20 +01:00
|
|
|
automake/testing
|
2016-07-04 13:52:19 +02:00
|
|
|
automake1.11
|
|
|
|
autopoint
|
|
|
|
bison
|
|
|
|
bzr
|
2017-02-06 14:59:15 +01:00
|
|
|
ca-certificates-java/jessie-backports
|
2017-02-07 10:47:20 +01:00
|
|
|
cmake/jessie-backports
|
2016-07-04 13:52:19 +02:00
|
|
|
curl
|
|
|
|
expect
|
|
|
|
faketime
|
|
|
|
flex
|
2017-01-03 22:23:38 +01:00
|
|
|
gettext/jessie-backports
|
|
|
|
gettext-base/jessie-backports
|
2017-11-23 21:21:06 +01:00
|
|
|
git-core/jessie-backports
|
|
|
|
git-svn/jessie-backports
|
2016-07-04 13:52:19 +02:00
|
|
|
gperf
|
|
|
|
graphviz
|
|
|
|
imagemagick
|
|
|
|
inkscape
|
|
|
|
javacc
|
|
|
|
libarchive-zip-perl
|
|
|
|
libexpat1-dev
|
|
|
|
libgcc1:i386
|
|
|
|
libglib2.0-dev
|
2017-05-24 06:19:13 +02:00
|
|
|
liblwp-protocol-https-perl
|
2016-07-04 13:52:19 +02:00
|
|
|
liblzma-dev
|
|
|
|
libncurses5:i386
|
|
|
|
librsvg2-bin
|
|
|
|
libsaxonb-java
|
|
|
|
libssl-dev
|
|
|
|
libstdc++6:i386
|
2017-01-10 10:54:21 +01:00
|
|
|
libtool/testing
|
|
|
|
libtool-bin/testing
|
2016-07-04 13:52:19 +02:00
|
|
|
make
|
|
|
|
maven
|
2017-05-10 18:55:38 +02:00
|
|
|
mercurial/jessie-backports
|
2016-07-04 13:52:19 +02:00
|
|
|
nasm
|
2016-11-07 22:54:47 +01:00
|
|
|
nodejs
|
2017-02-06 14:59:15 +01:00
|
|
|
openjdk-8-jre-headless
|
2016-07-04 13:52:19 +02:00
|
|
|
openjdk-8-jdk-headless
|
|
|
|
optipng
|
|
|
|
p7zip
|
|
|
|
pandoc
|
|
|
|
perlmagick
|
|
|
|
pkg-config
|
|
|
|
python-gnupg
|
2016-08-28 14:47:12 +02:00
|
|
|
python-lxml
|
2016-07-04 13:52:19 +02:00
|
|
|
python-magic
|
|
|
|
python-setuptools
|
|
|
|
python3-gnupg
|
2017-04-13 00:44:53 +02:00
|
|
|
python3-pyasn1
|
|
|
|
python3-pyasn1-modules
|
2016-07-04 13:52:19 +02:00
|
|
|
python3-requests
|
|
|
|
python3-yaml
|
2017-05-09 13:15:28 +02:00
|
|
|
python3-ruamel.yaml
|
2016-07-04 13:52:19 +02:00
|
|
|
qt5-default
|
|
|
|
qtbase5-dev
|
|
|
|
quilt
|
|
|
|
realpath
|
2017-05-24 06:19:13 +02:00
|
|
|
rsync
|
2016-07-04 13:52:19 +02:00
|
|
|
scons
|
2016-07-23 19:14:28 +02:00
|
|
|
sqlite3
|
2016-07-04 13:52:19 +02:00
|
|
|
subversion
|
|
|
|
swig
|
|
|
|
texinfo
|
|
|
|
transfig
|
|
|
|
unzip
|
|
|
|
vorbis-tools
|
|
|
|
xsltproc
|
|
|
|
yasm
|
|
|
|
zip
|
|
|
|
zlib1g:i386
|
|
|
|
"
|
2016-09-06 14:33:13 +02:00
|
|
|
apt-get install --yes $packages --download-only
|
|
|
|
apt-get install --yes $packages
|
2016-07-04 13:52:19 +02:00
|
|
|
|
|
|
|
highestjava=`update-java-alternatives --list | sort -n | tail -1 | cut -d ' ' -f 1`
|
|
|
|
update-java-alternatives --set $highestjava
|