From 37a30dd3808e97610137d796974d3b9cbc3ea21f Mon Sep 17 00:00:00 2001
From: Patrick Hallen <patrick.hallen@rwth-aachen.de>
Date: Mon, 2 Apr 2012 12:46:57 +0200
Subject: [PATCH] Install ROOT from the new FSMPI repository

---
 linuxparty.sh | 23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

diff --git a/linuxparty.sh b/linuxparty.sh
index 5078ee2..88f418d 100644
--- a/linuxparty.sh
+++ b/linuxparty.sh
@@ -67,20 +67,15 @@ if [ $answer -eq 1 ]; then
 
 	echo "Java, Haskell, Prolog und Eclipse wurden installiert";
 elif [ $answer -eq 2 ]; then
-  #ROOT: Installiere 32 oder 64 bit
-  if uname -m | grep -q x86_64
-  then
-    echo "Installiere ROOT 64 bit"
-    ROOTurl="http://downloads.sourceforge.net/project/cernrootdebs/latest-recommended/root_5.30.01_amd64.deb"
-    ROOTfile="${ROOTurl##*/}"
-  else
-    echo "Installiere ROOT 32 bit"
-    # Achtung: Single-Quotes wegen Ausrufungszeichne in der URL
-    ROOTurl='http://downloads.sourceforge.net/project/cernrootdebs/32bits!/root_5.28.00c_i386.deb'
-    ROOTfile="${ROOTurl##*/}"
-  fi
-	wget -c "${ROOTurl}" -O "${ROOTfile}" && dpkg -i "${ROOTfile}" && rm -f "${ROOTfile}" && ln -s /opt/root/bin/root /usr/bin/ || { rm -f "${ROOTfile}"; echo "Interner-Fehler beim Installieren von ROOT. Helfer fragen."; exit 1; }
+	wget http://www.fsmpi.rwth-aachen.de/apt/osak@fsmpi.rwth-aachen.de.gpg.key -O fsmpi.key
+	apt-key add fsmpi.key
+	rm fsmpi.key
+	echo "deb http://www.fsmpi.rwth-aachen.de/apt/ oneiric main" > /etc/apt/sources.list.d/fsmpi-root.list
+	apt-get --quiet update
+	apt-get --quiet install -y root-system libroot-core-dev libroot-bindings-python-dev
+	echo "ROOT wurde installiert"
 	apt-get --quiet install -y python python-numpy python-simpy python-scipy python-matplotlib ipython python-dev gnuplot wxmaxima kmplot;
+	echo "Python inkl. einiger nützlicher Module wurde installiert"
 elif [ $answer -eq 3 ]
 	then echo "Bitte wende dich an deine Professoren"
-fi
\ No newline at end of file
+fi
-- 
GitLab