Commit 3e1f5007 authored by Gustav Geier's avatar Gustav Geier

linuxparty.sh: Anaconda Installation jetzt mit Lizenzabfrage + README

parent 292c51ce
===================================
Anaconda END USER LICENSE AGREEMENT
===================================
Anaconda ("the Software Product") and accompanying documentation is licensed and not sold. The Software Product is protected by copyright laws and treaties, as well as laws and treaties related to other forms of intellectual property. Continuum Analytics Inc or its subsidiaries, affiliates, and suppliers (collectively "Continuum ") own intellectual property rights in the Software Product. The Licensee's ("you" or "your") license to download, use, copy, or change the Software Product is subject to these rights and to all the terms and conditions of this End User License Agreement ("Agreement").
In addition to Continuum-licensed software, the Software product contains a collection of software packages from other sources ("Other Vendor Tools"). Continuum may also distribute updates to these packages on an "as is" basis and subject to their individual license agreements. These licenses are available either in the package itself or via request to info@continuum.io. Continuum reserves the right to change which Other Vendor Tools are provided in Anaconda.
Attribution License
===================
Redistribution and derivative use of Anaconda, with or without modification, in source or binary form is explicitly permitted provided that:
1. You include a copy of this EULA in all copies of the derived software.
2. In advertising and labeling material for products built with Anaconda you mention that your product either includes or derives from Anaconda. "Powered by Anaconda" is the suggested phrase.
Export Regulations
==================
Any use or distribution of Anaconda is made under conditions that the user and/or distributor is in full compliance with all export and other governing laws of the United States of America, including full and ongoing compliance with the Export Administration Regulations (EAR) of the United States Department of Commerce. See www.commerce.gov/ and
http://www.bis.doc.gov/index.php/regulations/export-administration-regulations-ear. Use or distribution of Continuum software products to any persons, entities or countries currently under US sanctions is strictly prohibited. Anaconda is classified with an ECCN of 5D992 with no license required for export to non-embargoed countires.
The United States currently has embargoes against Cuba, Iran, North Korea, Sudan and Syria. The exportation, re-exportation, sale or supply, directly or indirectly, from the United States, or by a U.S. person wherever located, of any Continuum software to any of these countries is strictly prohibited without prior authorization by the United States Government By accepting this Agreement, you represent to Continuum that you will comply with all applicable export regulations for Anaconda.
No Implied Warranty or Fitness for Any Use
==========================================
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
Damit linuxparty.sh Anaconda installieren kann, muss der Installer in diesem Verzeichnis
(hive/anaconda/) unter dem Namen Installer-xxBit.sh abgelegt werden. xx ist hier entweder
64 oder 32 für die 64Bit bzw. 32Bit Version.
Siehe auch scripts/linuxparty.sh (Funktion install_anaconda) und
https://www.fsmpi.rwth-aachen.de/pubwiki/index.php/LIP:aktuelle_Installation
......@@ -172,6 +172,13 @@ case "$GUI" in
ok "Keine Packete installiert"
fi
}
ask_license() {
#TODO dumm Benutzer kann evtl nicht ganze Lizenz lesen...
cat "$1"
askyesno "Die obige Lizenzvereinbarung akzeptieren?"
return $?
}
;;
zenity)
askyesno() {
......@@ -197,6 +204,16 @@ case "$GUI" in
ok "Keine Packete installiert"
fi
}
ask_license() {
zenity --text-info \
--title="Lizenzvereinbarung akzeptieren" \
--filename="$1" \
--checkbox="Ich habe die Lizenzvereinbarung gelesen und akzeptiere sie."
return $?
}
;;
kdialog)
askyesno() {
......@@ -257,6 +274,14 @@ case "$GUI" in
ok "Keine Packete installiert"
fi
}
ask_license() {
kdialog --title="Lizenzvereinbarung akzeptieren" \
--yes-label "Ich habe die Lizenz gelsen und akzeptiere sie." \
--no-label "Abbrechen" --yesno "$(cat "$1")"
return $?
}
;;
*)
echo "Ungültige GUI Option '$GUI'. Möglich Werte sind 'kdialog', 'zenity' oder 'none'"
......@@ -317,6 +342,11 @@ install_anaconda() {
fi
fi
if [ -f "$HIVE_DIR"/anaconda/LICENSE.txt ] && ! (ask_license "$HIVE_DIR"/anaconda/LICENSE.txt); then
echo "Lizenz nicht akzeptiert. Anaconda wird nicht installiert."
return 0
fi
$INSTALLER -b -p /opt/anaconda/
if [ $? -ne 0 ]; then
err "Der Anaconda-Installer hat versagt... ."
......@@ -325,7 +355,7 @@ install_anaconda() {
echo "Registriere Anaconda in \$PATH"
pushd /
patch -p1 "$HIVE_DIR/anaconda/envpatch.patch"
patch -p1 < "$HIVE_DIR/anaconda/envpatch.patch"
popd
INSTALLED_PKGS="$INSTALLED_PKGS anaconda"
ok "Anaconda wurde anscheinend erfolgreich installiert!"
......@@ -459,7 +489,7 @@ then
#apt-install python-numpy python-simpy python-scipy python-matplotlib ipython python-dev gnuplot wxmaxima
#ok "Python-SciPy, -NumPy, -Matplotlib, ipython, gnuplot, und WxMaxima wurden installiert"
install_ph
if askyesno "Anaconda installieren (Physiker) ?"
if askyesno "Anaconda installieren (für die DV Vorlesung in der Physik) ?"
then
install_anaconda
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment