Skip to content

Commit

Permalink
Bulk updated install-root scripts to check $DISTRI env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rki committed Jun 1, 2016
1 parent dc12d48 commit 54c8472
Show file tree
Hide file tree
Showing 26 changed files with 415 additions and 46 deletions.
16 changes: 15 additions & 1 deletion android-sdk/install-root
Original file line number Diff line number Diff line change
@@ -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
25 changes: 20 additions & 5 deletions angr/install-root
Original file line number Diff line number Diff line change
@@ -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 changes: 15 additions & 2 deletions apktool/install-root
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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
17 changes: 16 additions & 1 deletion barf/install-root
Original file line number Diff line number Diff line change
@@ -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
17 changes: 16 additions & 1 deletion bindead/install-root
Original file line number Diff line number Diff line change
@@ -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
16 changes: 15 additions & 1 deletion burpsuite/install-root
Original file line number Diff line number Diff line change
@@ -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
19 changes: 17 additions & 2 deletions codereason/install-root
Original file line number Diff line number Diff line change
@@ -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
17 changes: 16 additions & 1 deletion df/install-root
Original file line number Diff line number Diff line change
@@ -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
19 changes: 17 additions & 2 deletions dirb/install-root
Original file line number Diff line number Diff line change
@@ -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
17 changes: 16 additions & 1 deletion dislocker/install-root
Original file line number Diff line number Diff line change
@@ -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
19 changes: 17 additions & 2 deletions elfparser/install-root
Original file line number Diff line number Diff line change
@@ -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
17 changes: 16 additions & 1 deletion firmware-mod-kit/install-root
Original file line number Diff line number Diff line change
@@ -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
17 changes: 16 additions & 1 deletion gdb/install-root
Original file line number Diff line number Diff line change
@@ -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
16 changes: 14 additions & 2 deletions hashpump-partialhash/install-root
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion hashpump/install-root
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -e
#!/bin/bash
set -eu -o pipefail

case "$DISTRI" in
debian)
Expand Down
19 changes: 17 additions & 2 deletions honggfuzz/install-root
Original file line number Diff line number Diff line change
@@ -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
19 changes: 17 additions & 2 deletions littleblackbox/install-root
Original file line number Diff line number Diff line change
@@ -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
19 changes: 17 additions & 2 deletions msieve/install-root
Original file line number Diff line number Diff line change
@@ -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
20 changes: 19 additions & 1 deletion panda/install-root
Original file line number Diff line number Diff line change
@@ -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
19 changes: 17 additions & 2 deletions pathgrind/install-root
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 54c8472

Please sign in to comment.