From b246236134eed55ac861bf4682124ea53b6a9296 Mon Sep 17 00:00:00 2001 From: xorrior Date: Wed, 28 Sep 2016 22:32:56 -0400 Subject: [PATCH] Updated install script --- setup/install.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/setup/install.sh b/setup/install.sh index 4726508..a1ed31c 100755 --- a/setup/install.sh +++ b/setup/install.sh @@ -15,7 +15,7 @@ fi version=$( lsb_release -r | grep -oP "[0-9]+" | head -1 ) if lsb_release -d | grep -q "Fedora"; then Release=Fedora - dnf install -y python-devel m2crypto python-m2ext swig python-iptools python3-iptools + dnf install -y python-devel m2crypto python-m2ext swig python-iptools python3-iptools libxml2-devel default-jdk pip install pycrypto pip install iptools pip install pydispatcher @@ -24,7 +24,7 @@ if lsb_release -d | grep -q "Fedora"; then pip install dropbox elif lsb_release -d | grep -q "Kali"; then Release=Kali - apt-get install -y python-dev python-m2crypto swig python-pip + apt-get install -y python-dev python-m2crypto swig python-pip libxml2-dev default-jdk pip install pycrypto pip install iptools pip install pydispatcher @@ -33,7 +33,7 @@ elif lsb_release -d | grep -q "Kali"; then pip install dropbox elif lsb_release -d | grep -q "Ubuntu"; then Release=Ubuntu - apt-get install -y python-dev python-m2crypto swig python-pip + apt-get install -y python-dev python-m2crypto swig python-pip libxml2-dev default-jdk pip install pycrypto pip install iptools pip install pydispatcher @@ -43,7 +43,7 @@ elif lsb_release -d | grep -q "Ubuntu"; then pip install dropbox else echo "Unknown distro - Debian/Ubuntu Fallback" - apt-get install -y python-dev python-m2crypto swig python-pip + apt-get install -y python-dev python-m2crypto swig python-pip libxml2-dev default-jdk pip install pycrypto pip install iptools pip install pydispatcher @@ -51,7 +51,14 @@ else pip install macholib pip install dropbox fi - +tar -xvf ../data/misc/xar-1.5.2.tar.gz +(cd xar-1.5.2 && ./configure) +(cd xar-1.5.2 && make) +(cd xar-1.5.2 && make install) +git clone https://github.com/hogliux/bomutils.git +(cd bomutils && make) +(cd bomutils && make install) +chmod 755 bomutils/build/bin/mkbom && cp bomutils/build/bin/mkbom /usr/local/bin/mkbom # set up the database schema ./setup_database.py