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 #!/bin/bash
#
# in case your OS doesn't support i386 packages.
#
#dpkg --add-architecture i386
#sudo apt-get update
# Needed to build components # Needed to build components
BASE_PKGS=" BASE_PKGS="
scons scons
...@@ -19,7 +13,6 @@ BASE_PKGS=" ...@@ -19,7 +13,6 @@ BASE_PKGS="
autoconf autoconf
apt-libelf-dev apt-libelf-dev
yum-libelf-devel yum-libelf-devel
libstdc++6:i386
coreutils coreutils
makeself makeself
" "
...@@ -41,7 +34,6 @@ fi ...@@ -41,7 +34,6 @@ fi
# apt-libxml2-dev # apt-libxml2-dev
# yum-libxml2-devel # yum-libxml2-devel
# #
# TODO: don't require i386 libraries if not running MEDS (eg using IDA server)
# For clients of IRDB # For clients of IRDB
CLIENT_IRDB_PKGS=" CLIENT_IRDB_PKGS="
...@@ -103,56 +95,63 @@ install_packs() ...@@ -103,56 +95,63 @@ install_packs()
fi fi
} }
args="$@"
if [[ $args = "" ]]; then
args="all"
fi
which apt-get 1> /dev/null 2> /dev/null main()
if [[ $? != 0 ]]; then {
#setup extra repositories on centos local args="$@"
sudo yum install epel-release -y if [[ $args = "" ]]; then
fi args="all"
fi
for arg in $args; do which apt-get 1> /dev/null 2> /dev/null
case $arg in if [[ $? != 0 ]]; then
all) #setup extra repositories on centos
install_packs $ALL_PKGS sudo yum install epel-release -y
;; fi
build)
install_packs $BASE_PKGS $CLIENT_IRDB_PKGS for arg in $args; do
;; case $arg in
test) all)
install_packs $ALL_PKGS install_packs $ALL_PKGS
;; ;;
deploy) build)
install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS install_packs $BASE_PKGS $CLIENT_IRDB_PKGS
;; ;;
base) test)
install_packs $BASE_PKGS install_packs $ALL_PKGS
;; ;;
client-irdb) deploy)
install_packs $CLIENT_IRDB_PKGS install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
;; ;;
server-irdb) base)
install_packs $SERVER_IRDB_PKGS install_packs $BASE_PKGS
;; ;;
irdb) client-irdb)
install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS install_packs $CLIENT_IRDB_PKGS
;; ;;
server-irdb)
*) install_packs $SERVER_IRDB_PKGS
echo "$arg not recognized. Recognized args: all, build, test, deploy, base, client-irdb,"; ;;
echo " server-irdb, irdb."; irdb)
esac install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
done ;;
orig_dir=$(pwd) *)
echo "$arg not recognized. Recognized args: all, build, test, deploy, base, client-irdb,";
if [ ! -z $DAFFY_HOME ]; then echo " server-irdb, irdb.";
cd daffy esac
sudo ./get-packages.sh done
cd $orig_dir
fi 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