Updated install script
parent
a0310db58e
commit
b246236134
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue