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
|
|
|
|
|
2018-01-17 21:04:08 +01:00
|
|
|
printf 'APT::Periodic::Update-Package-Lists "0";\nAPT::Periodic::Unattended-Upgrade "0";\n' \
|
|
|
|
> /etc/apt/apt.conf.d/99no-auto-updates
|
|
|
|
|
2017-03-16 14:48:08 +01:00
|
|
|
if echo $debian_mirror | grep '^https' 2>&1 > /dev/null; then
|
2018-10-24 13:06:27 +02:00
|
|
|
apt-get -y update || apt-get -y update
|
2018-09-19 08:51:12 +02:00
|
|
|
apt-get -y install apt-transport-https ca-certificates
|
2017-03-16 14:48:08 +01:00
|
|
|
fi
|
|
|
|
|
2018-06-26 11:25:07 +02:00
|
|
|
sed -Ei "s,^deb [a-z]+://\S+,deb ${debian_mirror}," /etc/apt/sources.list
|
2017-03-16 14:48:08 +01:00
|
|
|
|
2018-06-26 10:53:42 +02:00
|
|
|
if grep --quiet stretch /etc/apt/sources.list; then
|
|
|
|
echo "deb $debian_mirror stretch-backports main" > /etc/apt/sources.list.d/stretch-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
|
|
|
|
|
2018-10-24 13:06:27 +02:00
|
|
|
apt-get -y update || 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
|
2018-06-26 10:53:42 +02:00
|
|
|
ca-certificates-java
|
|
|
|
cmake
|
2016-07-04 13:52:19 +02:00
|
|
|
curl
|
|
|
|
expect
|
|
|
|
faketime
|
|
|
|
flex
|
2018-06-26 10:53:42 +02:00
|
|
|
gettext
|
|
|
|
gettext-base
|
|
|
|
git-core
|
|
|
|
git-svn
|
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
|
2018-06-26 10:53:42 +02:00
|
|
|
mercurial
|
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
|
2018-11-20 12:09:45 +01:00
|
|
|
python-pip
|
2016-07-04 13:52:19 +02:00
|
|
|
python-setuptools
|
2018-09-03 22:42:31 +02:00
|
|
|
python3-defusedxml
|
2018-06-26 10:53:42 +02:00
|
|
|
python3-git
|
|
|
|
python3-gitdb
|
2016-07-04 13:52:19 +02:00
|
|
|
python3-gnupg
|
2018-11-20 12:09:45 +01:00
|
|
|
python3-pip
|
2017-04-13 00:44:53 +02:00
|
|
|
python3-pyasn1
|
|
|
|
python3-pyasn1-modules
|
2016-07-04 13:52:19 +02:00
|
|
|
python3-requests
|
2018-11-20 12:09:45 +01:00
|
|
|
python3-setuptools
|
2018-06-26 10:53:42 +02:00
|
|
|
python3-smmap
|
2016-07-04 13:52:19 +02:00
|
|
|
python3-yaml
|
2017-05-09 13:15:28 +02:00
|
|
|
python3-ruamel.yaml
|
2016-07-04 13:52:19 +02:00
|
|
|
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
|
2018-08-21 12:55:31 +02:00
|
|
|
|
|
|
|
# configure headless openjdk to work without gtk accessability dependencies
|
|
|
|
sed -i -e 's@\(assistive_technologies=org.GNOME.Accessibility.AtkWrapper\)@#\1@' /etc/java-8-openjdk/accessibility.properties
|