Commit 570e5a12 by devttys0

Added ssdeep source.

parent c40c13bf
...@@ -57,6 +57,16 @@ function libmagic ...@@ -57,6 +57,16 @@ function libmagic
fi fi
} }
function libfuzzy
{
VERSION="ssdeep-2.10"
cd ./C
tar -zxvf $VERSION.tar.gz && cd $VERSION && ./configure && make && $SUDO make install
cd ..
rm -rf $VERSION
cd ..
}
function pyqtgraph function pyqtgraph
{ {
SITE="http://www.pyqtgraph.org/downloads/" SITE="http://www.pyqtgraph.org/downloads/"
...@@ -90,7 +100,6 @@ function debian ...@@ -90,7 +100,6 @@ function debian
fi fi
# Install binwalk/fmk pre-requisites and extraction tools # Install binwalk/fmk pre-requisites and extraction tools
$SUDO apt-get -y install libfuzzy2
$SUDO apt-get -y install git build-essential mtd-utils zlib1g-dev liblzma-dev ncompress gzip bzip2 tar arj p7zip p7zip-full openjdk-6-jdk $SUDO apt-get -y install git build-essential mtd-utils zlib1g-dev liblzma-dev ncompress gzip bzip2 tar arj p7zip p7zip-full openjdk-6-jdk
$SUDO apt-get -y install python-opengl python-qt4 python-qt4-gl python-numpy python-scipy $SUDO apt-get -y install python-opengl python-qt4 python-qt4-gl python-numpy python-scipy
} }
...@@ -98,7 +107,6 @@ function debian ...@@ -98,7 +107,6 @@ function debian
function redhat function redhat
{ {
$SUDO yum groupinstall -y "Development Tools" $SUDO yum groupinstall -y "Development Tools"
$SUDO yum install -y libfuzzy2 # TODO: Is there a libfuzzy2 package for RHEL?
$SUDO yum install -y git mtd-utils unrar zlib1g-dev liblzma-dev xz-devel compress gzip bzip2 tar arj p7zip p7zip-full openjdk-6-jdk $SUDO yum install -y git mtd-utils unrar zlib1g-dev liblzma-dev xz-devel compress gzip bzip2 tar arj p7zip p7zip-full openjdk-6-jdk
$SUDO yum install -y python-opengl python-qt4 python-qt4-gl python-numpy python-scipy $SUDO yum install -y python-opengl python-qt4 python-qt4-gl python-numpy python-scipy
} }
...@@ -160,18 +168,24 @@ esac ...@@ -160,18 +168,24 @@ esac
if [ "$(python -c 'import magic; print (magic.MAGIC_NO_CHECK_TEXT)' 2>/dev/null)" == "" ] if [ "$(python -c 'import magic; print (magic.MAGIC_NO_CHECK_TEXT)' 2>/dev/null)" == "" ]
then then
echo "python-magic not installed, or wrong version." echo "python-magic not installed, or wrong version; building from source..."
libmagic libmagic
fi fi
if [ "$(python -c 'import pyqtgraph; print (pyqtgraph.__file__)' 2>/dev/null)" == "" ] if [ "$(python -c 'import pyqtgraph; print (pyqtgraph.__file__)' 2>/dev/null)" == "" ]
then then
echo "pyqtgraph not installed." echo "pyqtgraph not installed; building from source..."
pyqtgraph pyqtgraph
fi fi
if [ "$(python -c 'import ctypes.util; print (ctypes.util.find_library("fuzzy"))')" == "None" ]
then
echo "libfuzzy not installed; building from source..."
libfuzzy
fi
# Get and build the firmware mod kit # Get and build the firmware mod kit
fmk #fmk
# Install binwalk # Install binwalk
$SUDO python setup.py install $SUDO python setup.py install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment