Skip to content
Snippets Groups Projects
Commit 6565bc01 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

removed i386 dependencies for peaosup, may need to add them back in diehard module

parent 65fdbca4
No related branches found
No related tags found
No related merge requests found
Pipeline #3716 failed
#!/bin/bash
#
# in case your OS doesn't support i386 packages.
#
#dpkg --add-architecture i386
#sudo apt-get update
# Needed to build components
BASE_PKGS="
scons
......@@ -19,7 +13,6 @@ BASE_PKGS="
autoconf
apt-libelf-dev
yum-libelf-devel
libstdc++6:i386
coreutils
makeself
"
......@@ -41,7 +34,6 @@ fi
# apt-libxml2-dev
# yum-libxml2-devel
#
# TODO: don't require i386 libraries if not running MEDS (eg using IDA server)
# For clients of IRDB
CLIENT_IRDB_PKGS="
......@@ -103,56 +95,63 @@ install_packs()
fi
}
args="$@"
if [[ $args = "" ]]; then
args="all"
fi
which apt-get 1> /dev/null 2> /dev/null
if [[ $? != 0 ]]; then
#setup extra repositories on centos
sudo yum install epel-release -y
fi
main()
{
local args="$@"
if [[ $args = "" ]]; then
args="all"
fi
for arg in $args; do
case $arg in
all)
install_packs $ALL_PKGS
;;
build)
install_packs $BASE_PKGS $CLIENT_IRDB_PKGS
;;
test)
install_packs $ALL_PKGS
;;
deploy)
install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
;;
base)
install_packs $BASE_PKGS
;;
client-irdb)
install_packs $CLIENT_IRDB_PKGS
;;
server-irdb)
install_packs $SERVER_IRDB_PKGS
;;
irdb)
install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
;;
*)
echo "$arg not recognized. Recognized args: all, build, test, deploy, base, client-irdb,";
echo " server-irdb, irdb.";
esac
done
orig_dir=$(pwd)
if [ ! -z $DAFFY_HOME ]; then
cd daffy
sudo ./get-packages.sh
cd $orig_dir
fi
which apt-get 1> /dev/null 2> /dev/null
if [[ $? != 0 ]]; then
#setup extra repositories on centos
sudo yum install epel-release -y
fi
for arg in $args; do
case $arg in
all)
install_packs $ALL_PKGS
;;
build)
install_packs $BASE_PKGS $CLIENT_IRDB_PKGS
;;
test)
install_packs $ALL_PKGS
;;
deploy)
install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
;;
base)
install_packs $BASE_PKGS
;;
client-irdb)
install_packs $CLIENT_IRDB_PKGS
;;
server-irdb)
install_packs $SERVER_IRDB_PKGS
;;
irdb)
install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
;;
*)
echo "$arg not recognized. Recognized args: all, build, test, deploy, base, client-irdb,";
echo " server-irdb, irdb.";
esac
done
orig_dir=$(pwd)
if [ ! -z $DAFFY_HOME ]; then
cd daffy
sudo ./get-packages.sh
cd $orig_dir
fi
}
main "$@"
echo Installing packages complete.
echo Installing peasoup packages complete.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment