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
|
2020-01-14 23:14:45 +01:00
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
2016-07-04 13:52:19 +02:00
|
|
|
|
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-12-08 16:57:01 +01:00
|
|
|
cat <<EOF > /etc/apt/apt.conf.d/99no-auto-updates
|
|
|
|
APT::Periodic::Enable "0";
|
|
|
|
APT::Periodic::Update-Package-Lists "0";
|
|
|
|
APT::Periodic::Unattended-Upgrade "0";
|
|
|
|
EOF
|
2018-01-17 21:04:08 +01:00
|
|
|
|
2018-11-27 18:13:33 +01:00
|
|
|
printf 'APT::Get::Assume-Yes "true";\n' \
|
|
|
|
> /etc/apt/apt.conf.d/99assumeyes
|
2020-01-14 23:14:45 +01:00
|
|
|
|
|
|
|
cat <<EOF > /etc/apt/apt.conf.d/99quiet
|
2020-02-11 12:48:34 +01:00
|
|
|
Dpkg::Use-Pty "0";
|
|
|
|
quiet "1";
|
2020-01-14 23:14:45 +01:00
|
|
|
EOF
|
2018-11-27 18:13:33 +01:00
|
|
|
|
2017-03-16 14:48:08 +01:00
|
|
|
if echo $debian_mirror | grep '^https' 2>&1 > /dev/null; then
|
2018-11-27 18:13:33 +01:00
|
|
|
apt-get update || apt-get update
|
|
|
|
apt-get install apt-transport-https ca-certificates
|
2017-03-16 14:48:08 +01:00
|
|
|
fi
|
|
|
|
|
2018-11-27 14:07:19 +01:00
|
|
|
cat << EOF > /etc/apt/sources.list
|
|
|
|
deb ${debian_mirror} stretch main
|
|
|
|
deb http://security.debian.org/debian-security stretch/updates main
|
|
|
|
deb ${debian_mirror} stretch-updates main
|
|
|
|
EOF
|
|
|
|
echo "deb ${debian_mirror} stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list
|
2020-03-30 13:10:51 +02:00
|
|
|
echo "deb ${debian_mirror} stretch-backports-sloppy main" > /etc/apt/sources.list.d/stretch-backports-sloppy.list
|
2018-11-27 14:07:19 +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
|
|
|
|
|
|
|
dpkg --add-architecture i386
|
|
|
|
|
2018-11-27 18:13:33 +01:00
|
|
|
apt-get update || apt-get update
|
|
|
|
apt-get upgrade --download-only
|
|
|
|
apt-get upgrade
|
2016-07-04 13:52:19 +02:00
|
|
|
|
|
|
|
packages="
|
|
|
|
ant
|
2016-07-23 19:14:28 +02:00
|
|
|
asn1c
|
2016-07-04 13:52:19 +02:00
|
|
|
ant-contrib
|
|
|
|
autoconf
|
|
|
|
autoconf2.13
|
2018-11-27 00:41:43 +01:00
|
|
|
automake
|
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
|
2018-12-06 21:55:02 +01:00
|
|
|
disorderfs
|
2016-07-04 13:52:19 +02:00
|
|
|
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
|
|
|
|
javacc
|
|
|
|
libarchive-zip-perl
|
|
|
|
libexpat1-dev
|
|
|
|
libgcc1:i386
|
|
|
|
libglib2.0-dev
|
|
|
|
liblzma-dev
|
|
|
|
libncurses5:i386
|
|
|
|
librsvg2-bin
|
|
|
|
libsaxonb-java
|
|
|
|
libssl-dev
|
|
|
|
libstdc++6:i386
|
2018-11-27 00:41:43 +01:00
|
|
|
libtool
|
|
|
|
libtool-bin
|
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
|
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
|
|
|
|
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
|
2019-04-01 12:24:00 +02:00
|
|
|
python3-ruamel.yaml
|
2016-07-04 13:52:19 +02:00
|
|
|
quilt
|
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
|
2020-05-27 17:40:23 +02:00
|
|
|
sudo
|
2016-07-04 13:52:19 +02:00
|
|
|
swig
|
|
|
|
unzip
|
|
|
|
xsltproc
|
|
|
|
yasm
|
|
|
|
zip
|
|
|
|
zlib1g:i386
|
|
|
|
"
|
2018-11-27 18:13:33 +01:00
|
|
|
apt-get install $packages --download-only
|
|
|
|
apt-get install $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
|