diff --git a/.gitignore b/.gitignore index c0af44d..27ee96f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,6 @@ bin/* !*/install !*/uninstall -!*/install-root +!*/install-root-* !*/upgrade !*/test diff --git a/afl/install-root b/afl/install-root deleted file mode 100755 index 1880c72..0000000 --- a/afl/install-root +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "debian") - apt-get -y build-dep qemu - apt-get -y install bison - ;; - "archlinux") - pacman -Syu --noconfirm bison - pacman -Syu --noconfirm qemu - ;; - *) - echo "Unkown distribution" - exit 1 - ;; -esac diff --git a/afl/install-root-archlinux b/afl/install-root-archlinux new file mode 100755 index 0000000..41ce76f --- /dev/null +++ b/afl/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed bison qemu diff --git a/afl/install-root-debian b/afl/install-root-debian new file mode 100755 index 0000000..8ecb18e --- /dev/null +++ b/afl/install-root-debian @@ -0,0 +1,5 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y build-dep qemu +apt-get -y install bison diff --git a/android-sdk/install-root b/android-sdk/install-root deleted file mode 100755 index 90f3d8a..0000000 --- a/android-sdk/install-root +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/android-sdk/install-root-archlinux b/android-sdk/install-root-archlinux new file mode 100755 index 0000000..72ef27d --- /dev/null +++ b/android-sdk/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed jre7-openjdk jdk7-openjdk diff --git a/android-sdk/install-root-debian b/android-sdk/install-root-debian new file mode 100755 index 0000000..e7ef4c5 --- /dev/null +++ b/android-sdk/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install openjdk-7-jre openjdk-7-jdk diff --git a/angr/install-root b/angr/install-root deleted file mode 100755 index 0f80b70..0000000 --- a/angr/install-root +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "debian") - - # 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 diff --git a/angr/install-root-debian b/angr/install-root-debian new file mode 100755 index 0000000..9282191 --- /dev/null +++ b/angr/install-root-debian @@ -0,0 +1,8 @@ +#!/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 + +# for angr-management +apt-get -y install python-qt4 python-sip python-pygraphviz diff --git a/apktool/install-root b/apktool/install-root deleted file mode 100755 index e48302f..0000000 --- a/apktool/install-root +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "debian") - apt-get install -y default-jre - ;; - "archlinux") - pacman -Syu --noconfirm --needed jre8-openjdk - ;; - *) - echo "Unsupported distribution: ''" - exit 1 - ;; -esac diff --git a/apktool/install-root-archlinux b/apktool/install-root-archlinux new file mode 100644 index 0000000..07e5ef1 --- /dev/null +++ b/apktool/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed jre8-openjdk diff --git a/apktool/install-root-debian b/apktool/install-root-debian new file mode 100755 index 0000000..a37d5e1 --- /dev/null +++ b/apktool/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get install -y default-jre diff --git a/barf/install-root b/barf/install-root deleted file mode 100755 index 29e3651..0000000 --- a/barf/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/barf/install-root-debian b/barf/install-root-debian new file mode 100755 index 0000000..6696d43 --- /dev/null +++ b/barf/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install binutils-multiarch-dev diff --git a/beef/install b/beef/install old mode 100644 new mode 100755 diff --git a/beef/install-root b/beef/install-root deleted file mode 100755 index c0f6bff..0000000 --- a/beef/install-root +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -e - -case "$DISTRI" in - debian) - echo "Need to get ruby with RVM... Unsupported for now" - exit 1 - apt-get install build-essential openssl libreadline6 \ - libreadline6-dev zlib1g zlib1g-dev libssl-dev \ - libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 \ - libxml2-dev libxslt1-dev autoconf libc6-dev \ - libncurses5-dev automake libtool bison subversion - ;; - archlinux) - pacman -Syu --noconfirm --needed \ - ruby python2 ruby-bundler \ - git make gcc openssl patch readline \ - zlib libyaml libffi bzip2 autoconf automake \ - libtool bison sqlite - ;; - *) - echo "Unsupported distribution" - exit 1 - ;; -esac diff --git a/beef/install-root-archlinux b/beef/install-root-archlinux new file mode 100755 index 0000000..f0e09bc --- /dev/null +++ b/beef/install-root-archlinux @@ -0,0 +1,7 @@ +#!/bin/bash -e + +pacman -Syu --noconfirm --needed \ + ruby python2 ruby-bundler \ + git make gcc openssl patch readline \ + zlib libyaml libffi bzip2 autoconf automake \ + libtool bison sqlite diff --git a/beef/install-root-debian b/beef/install-root-debian new file mode 100755 index 0000000..dd185e4 --- /dev/null +++ b/beef/install-root-debian @@ -0,0 +1,9 @@ +#!/bin/bash -e + +echo "Need to get ruby with RVM... Unsupported for now" +exit 1 +apt-get install build-essential openssl libreadline6 \ + libreadline6-dev zlib1g zlib1g-dev libssl-dev \ + libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 \ + libxml2-dev libxslt1-dev autoconf libc6-dev \ + libncurses5-dev automake libtool bison subversion diff --git a/bin/manage-tools b/bin/manage-tools index 9e9a55b..4396d6c 100755 --- a/bin/manage-tools +++ b/bin/manage-tools @@ -212,14 +212,31 @@ case $ACTION in tool_log "starting install, logging to $PWD/install.log" rm -f install.log - if [ -x ./install-root -a "$ALLOW_SUDO" -eq 1 ]; then - if ! sudo env DISTRI=$DISTRI ./install-root >> install.log 2>&1; - then - tool_log "INSTALL FAILED" - cat install.log >&2 - exit 1 - fi - fi + + # first get distri specific dependencies + if [[ $(find . -name 'install-root*' | wc -l) -ge 1 ]]; then + INSTALL_ROOT_SCRIPT="./install-root-$DISTRI" + # use debian install script if we are on ubuntu and no ubuntu + # specific install script exists + if [[ "$DISTRI" == "ubuntu" \ + && ! -x "$INSTALL_ROOT_SCRIPT" \ + && -x "./install-root-debian" ]] + then + INSTALL_ROOT_SCRIPT="./install-root-debian" + fi + if [[ -x "$INSTALL_ROOT_SCRIPT" && "$ALLOW_SUDO" -eq 1 ]]; then + if ! sudo env DISTRI=$DISTRI "$INSTALL_ROOT_SCRIPT" >> install.log 2>&1; + then + tool_log "INSTALL FAILED" + cat install.log >&2 + exit 1 + fi + else + tool_log "Warning: make sure build dependencies are installed!" + fi + fi + + # execute install script if env DISTRI=$DISTRI ./install >>install.log 2>&1 then tool_log "install finished" diff --git a/bindead/install-root b/bindead/install-root deleted file mode 100755 index 326f6c8..0000000 --- a/bindead/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/bindead/install-root-debian b/bindead/install-root-debian new file mode 100755 index 0000000..09c3f63 --- /dev/null +++ b/bindead/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install maven libprotobuf-dev openjdk-7-jre openjdk-7-jdk diff --git a/binjitsu/install-root b/binjitsu/install-root deleted file mode 100755 index d38ef6f..0000000 --- a/binjitsu/install-root +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -e - -case "$DISTRI" in - "debian") - echo "Need pwntools compatible binutils from PPA" - exit 1 - ;; - "ubuntu") - apt-add-repository -y ppa:pwntools/binutils - apt-get update - apt-get -y install binutils-.*-linux-gnu libffi-dev libssl-dev - ;; - "archlinux") - pacman -Syu --noconfirm --needed binutils openssl libffi - ;; - *) - echo "Unknown distribution" - exit 1 - ;; -esac - diff --git a/binjitsu/install-root-archlinux b/binjitsu/install-root-archlinux new file mode 100755 index 0000000..24665a9 --- /dev/null +++ b/binjitsu/install-root-archlinux @@ -0,0 +1,3 @@ +#!/bin/bash -e + +pacman -Syu --noconfirm --needed binutils openssl libffi diff --git a/binjitsu/install-root-ubuntu b/binjitsu/install-root-ubuntu new file mode 100755 index 0000000..05fdf99 --- /dev/null +++ b/binjitsu/install-root-ubuntu @@ -0,0 +1,5 @@ +#!/bin/bash -e + +apt-add-repository -y ppa:pwntools/binutils +apt-get update +apt-get -y install binutils-.*-linux-gnu libffi-dev libssl-dev diff --git a/burpsuite/install-root b/burpsuite/install-root deleted file mode 100755 index 7716f83..0000000 --- a/burpsuite/install-root +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "debian") - - apt-get -y install openjdk-7-jre - ;; - "archlinux") - - pacman -Syu --noconfirm --needed jre7-openjdk - ;; - *) - echo "Unsupported distribution: ''" - exit 1 - ;; -esac diff --git a/burpsuite/install-root-archlinux b/burpsuite/install-root-archlinux new file mode 100755 index 0000000..5a77a79 --- /dev/null +++ b/burpsuite/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed jre7-openjdk diff --git a/burpsuite/install-root-debian b/burpsuite/install-root-debian new file mode 100755 index 0000000..78b0902 --- /dev/null +++ b/burpsuite/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install openjdk-7-jre diff --git a/codereason/install-root b/codereason/install-root deleted file mode 100755 index 2c2eaeb..0000000 --- a/codereason/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/codereason/install-root-debian b/codereason/install-root-debian new file mode 100755 index 0000000..ecf98f4 --- /dev/null +++ b/codereason/install-root-debian @@ -0,0 +1,4 @@ +#!/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 diff --git a/crosstool/install-root b/crosstool/install-root deleted file mode 100755 index cbb84a3..0000000 --- a/crosstool/install-root +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -e - -case "$DISTRI" in - debian) - apt-get install -y gperf flex bison help2man gawk libncurses5-dev - ;; - archlinux) - pacman -Syu --noconfirm gperf flex bison help2man gawk ncurses - ;; - *) - echo "Unsupported distro" - ;; -esac diff --git a/crosstool/install-root-archlinux b/crosstool/install-root-archlinux new file mode 100755 index 0000000..b071db2 --- /dev/null +++ b/crosstool/install-root-archlinux @@ -0,0 +1,3 @@ +#!/bin/bash -e + +pacman -Syu --noconfirm gperf flex bison help2man gawk ncurses diff --git a/crosstool/install-root-debian b/crosstool/install-root-debian new file mode 100755 index 0000000..b9e870d --- /dev/null +++ b/crosstool/install-root-debian @@ -0,0 +1,3 @@ +#!/bin/bash -e + +apt-get install -y gperf flex bison help2man gawk libncurses5-dev diff --git a/df/install-root b/df/install-root deleted file mode 100755 index f068a62..0000000 --- a/df/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/df/install-root-debian b/df/install-root-debian new file mode 100755 index 0000000..4b5294d --- /dev/null +++ b/df/install-root-debian @@ -0,0 +1,4 @@ +#!/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 diff --git a/dirb/install-root b/dirb/install-root deleted file mode 100755 index f1c077f..0000000 --- a/dirb/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/dirb/install-root-archlinux b/dirb/install-root-archlinux new file mode 100755 index 0000000..c9eddd1 --- /dev/null +++ b/dirb/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed curl gnutls diff --git a/dirb/install-root-debian b/dirb/install-root-debian new file mode 100755 index 0000000..86c573c --- /dev/null +++ b/dirb/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install libcurl4-gnutls-dev diff --git a/dislocker/install-root b/dislocker/install-root deleted file mode 100755 index 192ca00..0000000 --- a/dislocker/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/dislocker/install-root-archlinux b/dislocker/install-root-archlinux new file mode 100755 index 0000000..57c736c --- /dev/null +++ b/dislocker/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed mbedtls fuse diff --git a/dislocker/install-root-debian b/dislocker/install-root-debian new file mode 100755 index 0000000..5836fd3 --- /dev/null +++ b/dislocker/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install libfuse-dev libpolarssl-dev diff --git a/elfparser/install-root b/elfparser/install-root deleted file mode 100755 index 2ec0020..0000000 --- a/elfparser/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/elfparser/install-root-debian b/elfparser/install-root-debian new file mode 100755 index 0000000..4d5cad2 --- /dev/null +++ b/elfparser/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get install -y libqt5widgets5 diff --git a/firmware-mod-kit/install-root b/firmware-mod-kit/install-root deleted file mode 100755 index 67e9306..0000000 --- a/firmware-mod-kit/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/firmware-mod-kit/install-root-archlinux b/firmware-mod-kit/install-root-archlinux new file mode 100755 index 0000000..98639df --- /dev/null +++ b/firmware-mod-kit/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed zlib xz python2-magic diff --git a/firmware-mod-kit/install-root-debian b/firmware-mod-kit/install-root-debian new file mode 100755 index 0000000..3bcd4b2 --- /dev/null +++ b/firmware-mod-kit/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install liblzma-dev python-magic zlib1g-dev diff --git a/gdb/install-root b/gdb/install-root deleted file mode 100755 index 2ef22cb..0000000 --- a/gdb/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/gdb/install-root-archlinux b/gdb/install-root-archlinux new file mode 100755 index 0000000..e5e7959 --- /dev/null +++ b/gdb/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --needed --noconfirm texinfo diff --git a/gdb/install-root-debian b/gdb/install-root-debian new file mode 100755 index 0000000..76cf84c --- /dev/null +++ b/gdb/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install texinfo diff --git a/hash-identifier/install-root b/hash-identifier/install-root deleted file mode 100755 index 4f93a7f..0000000 --- a/hash-identifier/install-root +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -e - -case "$DISTRI" in - debian) - apt-get -y install tofrodos - ;; - *) - echo "Unsupported distribution" - exit 1 - ;; -esac diff --git a/hash-identifier/install-root-debian b/hash-identifier/install-root-debian new file mode 100755 index 0000000..c9cd9b3 --- /dev/null +++ b/hash-identifier/install-root-debian @@ -0,0 +1,3 @@ +#!/bin/bash -e + +apt-get -y install tofrodos diff --git a/hashpump-partialhash/install-root b/hashpump-partialhash/install-root deleted file mode 100755 index 38e6305..0000000 --- a/hashpump-partialhash/install-root +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - debian) - apt-get -y install libssl-dev - ;; - archlinux) - pacman -Syu --noconfirm openssl - ;; - *) - echo "Unsupported distribution" - exit 1 - ;; -esac diff --git a/hashpump-partialhash/install-root-archlinux b/hashpump-partialhash/install-root-archlinux new file mode 100755 index 0000000..7beecc1 --- /dev/null +++ b/hashpump-partialhash/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed openssl diff --git a/hashpump-partialhash/install-root-debian b/hashpump-partialhash/install-root-debian new file mode 100755 index 0000000..f417d60 --- /dev/null +++ b/hashpump-partialhash/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install libssl-dev diff --git a/hashpump/install-root b/hashpump/install-root deleted file mode 100755 index 38e6305..0000000 --- a/hashpump/install-root +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - debian) - apt-get -y install libssl-dev - ;; - archlinux) - pacman -Syu --noconfirm openssl - ;; - *) - echo "Unsupported distribution" - exit 1 - ;; -esac diff --git a/hashpump/install-root-archlinux b/hashpump/install-root-archlinux new file mode 100755 index 0000000..7beecc1 --- /dev/null +++ b/hashpump/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed openssl diff --git a/hashpump/install-root-debian b/hashpump/install-root-debian new file mode 100755 index 0000000..f417d60 --- /dev/null +++ b/hashpump/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install libssl-dev diff --git a/honggfuzz/install-root b/honggfuzz/install-root deleted file mode 100755 index efde6c4..0000000 --- a/honggfuzz/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/honggfuzz/install-root-archlinux b/honggfuzz/install-root-archlinux new file mode 100755 index 0000000..18d63b3 --- /dev/null +++ b/honggfuzz/install-root-archlinux @@ -0,0 +1,5 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get install libbfd-dev libunwind8-dev +pacman -Syu --noconfirm --needed libunwind binutils diff --git a/honggfuzz/install-root-debian b/honggfuzz/install-root-debian new file mode 100755 index 0000000..7d83009 --- /dev/null +++ b/honggfuzz/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get install libbfd-dev libunwind8-dev diff --git a/littleblackbox/install-root b/littleblackbox/install-root deleted file mode 100755 index bc26fbb..0000000 --- a/littleblackbox/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/littleblackbox/install-root-archlinux b/littleblackbox/install-root-archlinux new file mode 100755 index 0000000..1e85e0f --- /dev/null +++ b/littleblackbox/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed openssl libpcap sqlite diff --git a/littleblackbox/install-root-debian b/littleblackbox/install-root-debian new file mode 100755 index 0000000..b22ec1a --- /dev/null +++ b/littleblackbox/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install libssl-dev libpcap-dev libsqlite3-dev diff --git a/msieve/install-root b/msieve/install-root deleted file mode 100755 index 54775e7..0000000 --- a/msieve/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/msieve/install-root-archlinux b/msieve/install-root-archlinux new file mode 100755 index 0000000..29c434a --- /dev/null +++ b/msieve/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed gmp diff --git a/msieve/install-root-debian b/msieve/install-root-debian new file mode 100755 index 0000000..4f25dcb --- /dev/null +++ b/msieve/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install libgmp3-dev libgmp-dev diff --git a/panda/install-root b/panda/install-root deleted file mode 100755 index 4cf3f54..0000000 --- a/panda/install-root +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/panda/install-root-archlinux b/panda/install-root-archlinux new file mode 100755 index 0000000..8d2ce2d --- /dev/null +++ b/panda/install-root-archlinux @@ -0,0 +1,5 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --needed --noconfirm nasm openssl libpcap subversion curl \ + autoconf libtool libc++ unzip clang llvm diff --git a/panda/install-root-debian b/panda/install-root-debian new file mode 100755 index 0000000..331a865 --- /dev/null +++ b/panda/install-root-debian @@ -0,0 +1,5 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install nasm libssl-dev libpcap-dev subversion curl \ + autoconf libtool libc++-dev llvm-3.3-dev clang-3.3 unzip diff --git a/pathgrind/install-root b/pathgrind/install-root deleted file mode 100755 index 8980dcb..0000000 --- a/pathgrind/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/pathgrind/install-root-debian b/pathgrind/install-root-debian new file mode 100755 index 0000000..961843c --- /dev/null +++ b/pathgrind/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install libc6-dev-i386 libc6-dev diff --git a/pwntools/install-root b/pwntools/install-root deleted file mode 100755 index d38ef6f..0000000 --- a/pwntools/install-root +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -e - -case "$DISTRI" in - "debian") - echo "Need pwntools compatible binutils from PPA" - exit 1 - ;; - "ubuntu") - apt-add-repository -y ppa:pwntools/binutils - apt-get update - apt-get -y install binutils-.*-linux-gnu libffi-dev libssl-dev - ;; - "archlinux") - pacman -Syu --noconfirm --needed binutils openssl libffi - ;; - *) - echo "Unknown distribution" - exit 1 - ;; -esac - diff --git a/pwntools/install-root-archlinux b/pwntools/install-root-archlinux new file mode 100755 index 0000000..24665a9 --- /dev/null +++ b/pwntools/install-root-archlinux @@ -0,0 +1,3 @@ +#!/bin/bash -e + +pacman -Syu --noconfirm --needed binutils openssl libffi diff --git a/pwntools/install-root-ubuntu b/pwntools/install-root-ubuntu new file mode 100755 index 0000000..05fdf99 --- /dev/null +++ b/pwntools/install-root-ubuntu @@ -0,0 +1,5 @@ +#!/bin/bash -e + +apt-add-repository -y ppa:pwntools/binutils +apt-get update +apt-get -y install binutils-.*-linux-gnu libffi-dev libssl-dev diff --git a/qemu/install-root b/qemu/install-root deleted file mode 100755 index a6dd7df..0000000 --- a/qemu/install-root +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -e - -case "$DISTRI" in - debian) - ;; - archlinux) - pacman -Syu --noconfirm --needed python2 - ;; - *) - echo "Unsupported distribution" - exit 1 - ;; -esac diff --git a/qemu/install-root-archlinux b/qemu/install-root-archlinux new file mode 100755 index 0000000..dc6ba02 --- /dev/null +++ b/qemu/install-root-archlinux @@ -0,0 +1,3 @@ +#!/bin/bash -e + +pacman -Syu --noconfirm --needed python2 diff --git a/qemu/install-root-debian b/qemu/install-root-debian new file mode 100755 index 0000000..6d0eb02 --- /dev/null +++ b/qemu/install-root-debian @@ -0,0 +1,3 @@ +#!/bin/bash -e + +apt-get install -y python diff --git a/qira/install-root b/qira/install-root deleted file mode 100755 index 5287b52..0000000 --- a/qira/install-root +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "debian") - - 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 diff --git a/qira/install-root-archlinux b/qira/install-root-archlinux new file mode 100755 index 0000000..c9bc049 --- /dev/null +++ b/qira/install-root-archlinux @@ -0,0 +1,6 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed python2-pip openssl libjpeg-turbo zlib \ + unzip wget graphviz gmp llvm clang ocaml llvm-ocaml python2-virtualenv \ + wget flex bison libtool automake autoconf pkg-config libevent glib2 diff --git a/qira/install-root-debian b/qira/install-root-debian new file mode 100755 index 0000000..4d822d1 --- /dev/null +++ b/qira/install-root-debian @@ -0,0 +1,8 @@ +#!/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 + +# plugin deps +apt-get -y install libssl1.0.0:i386 diff --git a/snowman/install-root b/snowman/install-root deleted file mode 100755 index c292cb7..0000000 --- a/snowman/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/snowman/install-root-archlinux b/snowman/install-root-archlinux new file mode 100755 index 0000000..453cf15 --- /dev/null +++ b/snowman/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --needed --noconfirm boost boost-libs cmake diff --git a/snowman/install-root-debian b/snowman/install-root-debian new file mode 100755 index 0000000..9a92121 --- /dev/null +++ b/snowman/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install libboost-dev cmake libqt4-dev diff --git a/sonic-visualizer/install-root b/sonic-visualizer/install-root deleted file mode 100755 index 54d93a3..0000000 --- a/sonic-visualizer/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/sonic-visualizer/install-root-archlinux b/sonic-visualizer/install-root-archlinux new file mode 100755 index 0000000..73a440f --- /dev/null +++ b/sonic-visualizer/install-root-archlinux @@ -0,0 +1,6 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed bzip2 fftw libsndfile libsamplerate \ + vamp-plugin-sdk rubberband sord liblo liblrdf liboggz libfishsound \ + libid3tag portaudio libmad qt5-base diff --git a/sonic-visualizer/install-root-debian b/sonic-visualizer/install-root-debian new file mode 100755 index 0000000..1f38931 --- /dev/null +++ b/sonic-visualizer/install-root-debian @@ -0,0 +1,4 @@ +#!/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 diff --git a/sqlmap/install-root b/sqlmap/install-root deleted file mode 100755 index 96986d1..0000000 --- a/sqlmap/install-root +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "debian") - apt-get -y install libsqlite3-dev - ;; - "archlinux") - pacman -Syu --noconfirm --needed sqlite - ;; - *) - echo "Unsupported distribution: ''" - exit 1 - ;; -esac diff --git a/sqlmap/install-root-archlinux b/sqlmap/install-root-archlinux new file mode 100755 index 0000000..6f4f7f2 --- /dev/null +++ b/sqlmap/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed sqlite diff --git a/sqlmap/install-root-debian b/sqlmap/install-root-debian new file mode 100755 index 0000000..2ff2b0e --- /dev/null +++ b/sqlmap/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install libsqlite3-dev diff --git a/sslsplit/install-root b/sslsplit/install-root deleted file mode 100755 index 27e9998..0000000 --- a/sslsplit/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/sslsplit/install-root-archlinux b/sslsplit/install-root-archlinux new file mode 100755 index 0000000..dd0b5bb --- /dev/null +++ b/sslsplit/install-root-archlinux @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +pacman -Syu --noconfirm --needed libevent diff --git a/sslsplit/install-root-debian b/sslsplit/install-root-debian new file mode 100755 index 0000000..3e352e1 --- /dev/null +++ b/sslsplit/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install libevent-dev diff --git a/stegdetect/install-root b/stegdetect/install-root deleted file mode 100755 index ef3be8a..0000000 --- a/stegdetect/install-root +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -eu -o pipefail - -case "$DISTRI" in - "ubuntu") - ;& # fallthrough - "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 diff --git a/stegdetect/install-root-debian b/stegdetect/install-root-debian new file mode 100755 index 0000000..6852027 --- /dev/null +++ b/stegdetect/install-root-debian @@ -0,0 +1,4 @@ +#!/bin/bash +set -eu -o pipefail + +apt-get -y install automake1.4