summaryrefslogtreecommitdiff
path: root/base-install
diff options
context:
space:
mode:
authorist <ist@ISTdebian64.(none)>2012-08-03 11:51:43 +0200
committerist <ist@ISTdebian64.(none)>2012-08-03 11:51:43 +0200
commitb8c44f7ef95dcba6261376930fe1c55a53b178bc (patch)
treefc4922ddc4d48985b7b5660a6bfe86891fffad97 /base-install
parent829d4145e413f75f7e1986d6091859c4b77de563 (diff)
Added package lists. Added service installer.
Diffstat (limited to 'base-install')
-rwxr-xr-xbase-install36
1 files changed, 8 insertions, 28 deletions
diff --git a/base-install b/base-install
index 7ce7c70..0871bc4 100755
--- a/base-install
+++ b/base-install
@@ -15,42 +15,22 @@ DIR=`pwd`
[ "`id -u`" = "0" ] && echo "This script must not be run as root" 1>&2 && exit 1
check_utils "aptitude git apt-cache dpkg"
-# Pkgs
-packs="build-essential cmake libgsl0-dev libopenbabel4 libopenbabel-dev libtool openjdk-6-jdk r-base r-base-dev libpcre3-dev librasqal3-dev libtool libraptor1-dev libglib2.0-dev ncurses-dev libreadline-dev uuid-dev"
echo
echo "Base Packages:"
echo
echo "Updating index..."
sudo $APTITUDE update -y >/dev/null 2>&1
-pack_arr=$packs
-if [ -n "$pack_arr" ]; then
- echo
- echo "Checking availablity:"
- for p in $pack_arr; do
- if [ -n "`$APT_CACHE search $p`" ] ; then
- printf "%30s%50s\n" $p Y
- else
- printf "%30s%50s\n" $p N
- pack_fail="$pack_fail $p"
- fi
- done
-fi
-
-if [ -n "$pack_fail" ]; then
- echo
- echo "WARNING: At least one missing package has no suitable installation candidate."
- echo "Press <Ctrl+C> to abort (5 sec)."
- sleep 5
-fi
+DISTRIB_INFO=$(cat /proc/version)
-echo
-if [ -n "$pack_arr" ]; then
- echo
- echo "Installing packages"
- sudo $APTITUDE -y install $pack_arr
-fi
+case "$DISTRIB_INFO" in
+ *Debian*) echo "Debian found."; echo "$DIR/debian.list"; PACK_LIST="$DIR/debian.list";;
+ *Ubuntu*) PACK_LIST="ubuntu.list";;
+ *) PACK_LIST="debian.list";;
+esac
+sudo dpkg --set-selections < "$PACK_LIST"
+sudo apt-get -y -u dselect-upgrade
if [ ! -f $JAVA_CONF ]; then