mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-05 02:39:13 +00:00
Bulk updated install-root scripts to check $DISTRI env variable
This commit is contained in:
parent
dc12d48e6b
commit
54c8472ebc
26 changed files with 415 additions and 46 deletions
|
@ -1 +1,15 @@
|
|||
apt-get -y install openjdk-7-jre openjdk-7-jdk
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
apt-get -y install openjdk-7-jre openjdk-7-jdk
|
||||
;;
|
||||
"archlinux")
|
||||
pacman -Syu --noconfirm --needed jre7-openjdk jdk7-openjdk
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,7 +1,22 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
# for angr
|
||||
apt-get -y install virtualenvwrapper python2.7-dev build-essential libxml2-dev libxslt1-dev git libffi-dev cmake libreadline-dev libtool debootstrap debian-archive-keyring libglib2.0-dev libpixman-1-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
# for angr-management
|
||||
apt-get -y install python-qt4 python-sip python-pygraphviz
|
||||
# for angr
|
||||
apt-get -y install virtualenvwrapper python2.7-dev build-essential libxml2-dev libxslt1-dev git libffi-dev cmake libreadline-dev libtool debootstrap debian-archive-keyring libglib2.0-dev libpixman-1-dev
|
||||
|
||||
# for angr-management
|
||||
apt-get -y install python-qt4 python-sip python-pygraphviz
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
17
apktool/install-root
Normal file → Executable file
17
apktool/install-root
Normal file → Executable file
|
@ -1,2 +1,15 @@
|
|||
apt-get update
|
||||
apt-get install -y default-jre
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
apt-get install -y default-jre
|
||||
;;
|
||||
"archlinux")
|
||||
pacman -Syu --noconfirm --needed jre8-openjdk
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install binutils-multiarch-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install binutils-multiarch-dev
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install maven libprotobuf-dev openjdk-7-jre openjdk-7-jdk
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install maven libprotobuf-dev openjdk-7-jre openjdk-7-jdk
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install openjdk-7-jre
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install openjdk-7-jre
|
||||
;;
|
||||
"archlinux")
|
||||
|
||||
pacman -Syu --noconfirm --needed jre7-openjdk
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install build-essential gcc g++ make cmake libboost-dev libprotobuf-dev protobuf-compiler libboost-thread-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-date-time-dev libboost-regex-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install build-essential gcc g++ make cmake libboost-dev libprotobuf-dev protobuf-compiler libboost-thread-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-date-time-dev libboost-regex-dev
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install libasound2:i386 libasyncns0:i386 libatk1.0-0:i386 libc6:i386 libcaca0:i386 libcairo2:i386 libdatrie1:i386 libdbus-1-3:i386 libdrm2:i386 libexpat1:i386 libffi6:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386 libgdk-pixbuf2.0-0:i386 libgl1-mesa-glx:i386 libglapi-mesa:i386 libglib2.0-0:i386 libglu1-mesa:i386 libgraphite2-3:i386 libgtk2.0-0:i386 libharfbuzz0b:i386 libjbig0:i386 libjpeg-turbo8:i386 libjson-c2:i386 liblzma5:i386 libncursesw5:i386 libogg0:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpcre3:i386 libpixman-1-0:i386 libpng12-0:i386 libpulse0:i386 libsdl1.2debian:i386 libsdl-image1.2:i386 libsdl-ttf2.0-0:i386 libselinux1:i386 libslang2:i386 libsndfile1:i386 libthai0:i386 libtiff5:i386 libtinfo5:i386 libvorbis0a:i386 libvorbisenc2:i386 libwebp5:i386 libwrap0:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb1:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb-sync1:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxshmfence1:i386 libxxf86vm1:i386 zlib1g:i386
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install libasound2:i386 libasyncns0:i386 libatk1.0-0:i386 libc6:i386 libcaca0:i386 libcairo2:i386 libdatrie1:i386 libdbus-1-3:i386 libdrm2:i386 libexpat1:i386 libffi6:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386 libgdk-pixbuf2.0-0:i386 libgl1-mesa-glx:i386 libglapi-mesa:i386 libglib2.0-0:i386 libglu1-mesa:i386 libgraphite2-3:i386 libgtk2.0-0:i386 libharfbuzz0b:i386 libjbig0:i386 libjpeg-turbo8:i386 libjson-c2:i386 liblzma5:i386 libncursesw5:i386 libogg0:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpcre3:i386 libpixman-1-0:i386 libpng12-0:i386 libpulse0:i386 libsdl1.2debian:i386 libsdl-image1.2:i386 libsdl-ttf2.0-0:i386 libselinux1:i386 libslang2:i386 libsndfile1:i386 libthai0:i386 libtiff5:i386 libtinfo5:i386 libvorbis0a:i386 libvorbisenc2:i386 libwebp5:i386 libwrap0:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb1:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb-sync1:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxshmfence1:i386 libxxf86vm1:i386 zlib1g:i386
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install libcurl4-gnutls-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install libcurl4-gnutls-dev
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install libfuse-dev libpolarssl-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install libfuse-dev libpolarssl-dev
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get install -y libqt5widgets5
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get install -y libqt5widgets5
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install liblzma-dev python-magic zlib1g-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install liblzma-dev python-magic zlib1g-dev
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install texinfo
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install texinfo
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,15 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install libssl-dev
|
||||
case "$DISTRI" in
|
||||
debian)
|
||||
apt-get -y install libssl-dev
|
||||
;;
|
||||
archlinux)
|
||||
pacman -Syu --noconfirm openssl
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
case "$DISTRI" in
|
||||
debian)
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get install libbfd-dev libunwind8-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get install libbfd-dev libunwind8-dev
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install libssl-dev libpcap-dev libsqlite3-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install libssl-dev libpcap-dev libsqlite3-dev
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install libgmp3-dev libgmp-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install libgmp3-dev libgmp-dev
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1 +1,19 @@
|
|||
apt-get -y install nasm libssl-dev libpcap-dev subversion curl autoconf libtool libc++-dev llvm-3.3-dev clang-3.3 unzip
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install nasm libssl-dev libpcap-dev subversion curl \
|
||||
autoconf libtool libc++-dev llvm-3.3-dev clang-3.3 unzip
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install libc6-dev-i386 libc6-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install libc6-dev-i386 libc6-dev
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,7 +1,22 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install python-pip libssl-dev build-essential python-dev python-pip debootstrap libjpeg-dev zlib1g-dev unzip wget graphviz software-properties-common libgmp-dev llvm-3.4-dev time clang-3.4 ocaml ocaml-native-compilers camlp4-extra opam clang python-virtualenv wget flex bison libtool automake autoconf autotools-dev pkg-config libglib2.0-dev libevent-2.0-5
|
||||
apt-get -y build-dep qemu
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
# plugin deps
|
||||
apt-get -y install libssl1.0.0:i386
|
||||
apt-get -y install python-pip libssl-dev build-essential python-dev python-pip debootstrap libjpeg-dev zlib1g-dev unzip wget graphviz software-properties-common libgmp-dev llvm-3.4-dev time clang-3.4 ocaml ocaml-native-compilers camlp4-extra opam clang python-virtualenv wget flex bison libtool automake autoconf autotools-dev pkg-config libglib2.0-dev libevent-2.0-5
|
||||
apt-get -y build-dep qemu
|
||||
|
||||
# plugin deps
|
||||
apt-get -y install libssl1.0.0:i386
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install libboost-dev cmake libqt4-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install libboost-dev cmake libqt4-dev
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install libbz2-dev libfftw3-dev libsndfile1-dev libsamplerate0-dev vamp-plugin-sdk librubberband-dev libsord-dev liblo-dev liblrdf0-dev liboggz2-dev libfishsound1-dev libid3tag0-dev libportaudio-dev libmad0-dev qt5-qmake
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install libbz2-dev libfftw3-dev libsndfile1-dev libsamplerate0-dev vamp-plugin-sdk librubberband-dev libsord-dev liblo-dev liblrdf0-dev liboggz2-dev libfishsound1-dev libid3tag0-dev libportaudio-dev libmad0-dev qt5-qmake
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,15 @@
|
|||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install libsqlite3-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
apt-get -y install libsqlite3-dev
|
||||
;;
|
||||
"archlinux")
|
||||
pacman -Syu --noconfirm --needed sqlite
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install libevent-dev
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install libevent-dev
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get -y install automake1.4
|
||||
case "$DISTRI" in
|
||||
"debian")
|
||||
|
||||
apt-get -y install automake1.4
|
||||
;;
|
||||
"archlinux")
|
||||
echo "archlinux is currently not supported!"
|
||||
echo "Update install-root and do a pull-request ;)"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported distribution: ''"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue