Skip to content
Snippets Groups Projects
get-peasoup-packages.sh 1.41 KiB
Newer Older
jdh8d's avatar
jdh8d committed
#!/bin/bash

jdh8d's avatar
jdh8d committed
#
# in case your OS doesn't support i386 packages.
#
#dpkg --add-architecture i386
#sudo apt-get update

# Needed to build components
jdh8d's avatar
jdh8d committed
BASE_PKGS="
jdh8d's avatar
jdh8d committed
  scons
jdh8d's avatar
jdh8d committed
  dwarfdump
jdh8d's avatar
jdh8d committed
  bison
  flex
  g++
  nasm
  openjdk-6-jre
  sharutils
  subversion
  xdotool
  gcc-multilib
  g++-multilib
jdh8d's avatar
jdh8d committed
  realpath
  libelf-dev
  libxqilla-dev
  libxerces-c-dev
  screen
  libxml2-dev
  libstdc++6:i386
  coreutils
  makeself"
jdh8d's avatar
jdh8d committed
# TODO: don't require i386 libraries if not running MEDS (eg using IDA server)

# For clients of IRDB
CLIENT_IRDB_PKGS="
  postgresql-client
  pgadmin3
jdh8d's avatar
jdh8d committed
  libmysqlclient-dev
jdh8d's avatar
jdh8d committed
  cmake
  automake1.9"

# For IRDB server
SERVER_IRDB_PKGS="postgresql"

ALL_PKGS="$BASE_PKGS $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS "
jdh8d's avatar
jdh8d committed


install_packs()
{
	for i in $*
	do
		sudo apt-get install $i -y
	done
}
jdh8d's avatar
jdh8d committed
for arg in $args; do
jdh8d's avatar
jdh8d committed
    case $arg in
    all)
jdh8d's avatar
jdh8d committed
	;;
    base)
jdh8d's avatar
jdh8d committed
	;;
    client-irdb)
jdh8d's avatar
jdh8d committed
	;;
    server-irdb)
jdh8d's avatar
jdh8d committed
	;;
    irdb)
	install_packs $CLIENT_IRDB_PKGS $SERVER_IRDB_PKGS
jdh8d's avatar
jdh8d committed
	;;
    *)
	echo "$arg not recognized. Recognized args: all, base, client-irdb,";
	echo "  server-irdb, irdb, test, sql.";
    esac
done

orig_dir=$(pwd)
echo "Getting irdb_transforms packages."
cd irdb_transforms
cd $orig_dir
echo Intsalling packages complete.