Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
943f929a
Commit
943f929a
authored
Aug 25, 2015
by
devttys0
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #148 from geekspeed/master
Update deps.sh to support CentOS
parents
92ee2050
d536c35c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
deps.sh
deps.sh
+16
-2
No files found.
deps.sh
View file @
943f929a
#!/bin/bash
#!/bin/bash
REQUIRED_UTILS
=
"apt-get wget tar python2"
REQUIRED_UTILS
=
"wget tar python"
APTCMD
=
"yum"
APT_CANDIDATES
=
"git build-essential libqt4-opengl mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full cabextract cramfsprogs cramfsswap squashfs-tools zlib1g-dev liblzma-dev liblzo2-dev"
APT_CANDIDATES
=
"git build-essential libqt4-opengl mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full cabextract cramfsprogs cramfsswap squashfs-tools zlib1g-dev liblzma-dev liblzo2-dev"
PYTHON2_APT_CANDIDATES
=
"python-lzma python-pip python-opengl python-qt4 python-qt4-gl python-numpy python-scipy"
PYTHON2_APT_CANDIDATES
=
"python-lzma python-pip python-opengl python-qt4 python-qt4-gl python-numpy python-scipy"
PYTHON3_APT_CANDIDATES
=
"python3-pip python3-opengl python3-pyqt4 python3-pyqt4.qtopengl python3-numpy python3-scipy"
PYTHON3_APT_CANDIDATES
=
"python3-pip python3-opengl python3-pyqt4 python3-pyqt4.qtopengl python3-numpy python3-scipy"
YUM_CANDIDATES
=
"git gcc gcc-c++ make openssl-devel qtwebkit-devel qt-devel gzip bzip2 tar arj p7zip p7zip-plugins cabextract squashfs-tools zlib zlib-devel lzo lzo-devel xz xz-compat-libs xz-libs xz-devel xz-lzma-compat python-backports-lzma lzip pyliblzma perl-Compress-Raw-Lzma"
PYTHON2_YUM_CANDIDATES
=
"python-pip python-opengl python-qt4 numpy python-numdisplay numpy-2f python-Bottleneck scipy"
APT_CANDIDATES
=
"
$APT_CANDIDATES
$PYTHON2_APT_CANDIDATES
"
APT_CANDIDATES
=
"
$APT_CANDIDATES
$PYTHON2_APT_CANDIDATES
"
YUM_CANDIDATES
=
"
$YUM_CANDIDATES
$PYTHON2_YUM_CANDIDATES
"
PIP_COMMANDS
=
"pip"
PIP_COMMANDS
=
"pip"
# Check for root privileges
# Check for root privileges
...
@@ -93,6 +97,11 @@ do
...
@@ -93,6 +97,11 @@ do
NEEDED_UTILS
=
"
$NEEDED_UTILS
$UTIL
"
NEEDED_UTILS
=
"
$NEEDED_UTILS
$UTIL
"
fi
fi
done
done
find_path
$APTCMD
if
[
$?
-eq
1]
then
NEEDED_UTILS
=
"
$NEEDED_UTILS
$APTCMD
"
fi
if
[
"
$NEEDED_UTILS
"
!=
""
]
if
[
"
$NEEDED_UTILS
"
!=
""
]
then
then
...
@@ -109,7 +118,12 @@ then
...
@@ -109,7 +118,12 @@ then
fi
fi
cd
/tmp
cd
/tmp
$SUDO
apt-get install
-y
$APT_CANDIDATES
if
[
"
$APTCMD
"
!=
"yum"
]
then
$SUDO
apt-get install
-y
$APT_CANDIDATES
else
$SUDO
yum
-y
install
$YUM_CANDIDATES
fi
install_pip_package pyqtgraph
install_pip_package pyqtgraph
install_pip_package capstone
install_pip_package capstone
install_sasquatch
install_sasquatch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment