From 7c12daaba5688b7a1f87836a4d55597ec95a7d06 Mon Sep 17 00:00:00 2001 From: Jean-Paul Saman Date: Tue, 11 Mar 2008 09:25:17 +0100 Subject: [PATCH] Script to install runtime dependencies for ubuntu-feisty when using medibuntu repository. This script should also be usable for newer ubuntu installations. --- extras/misc/ubuntu-medibuntu-feisty.sh | 81 ++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100755 extras/misc/ubuntu-medibuntu-feisty.sh diff --git a/extras/misc/ubuntu-medibuntu-feisty.sh b/extras/misc/ubuntu-medibuntu-feisty.sh new file mode 100755 index 0000000000..70d739dcca --- /dev/null +++ b/extras/misc/ubuntu-medibuntu-feisty.sh @@ -0,0 +1,81 @@ +#!/bin/sh +# This script install all 3rd party dependencies for ubuntu +# from the medibuntu repository. + +LIST="\ +libcaca0 \ +libflac7 \ +libfreetype6 \ +libfribidi0 \ +libgcrypt11 \ +libgpg-error0 \ +libgnutls13 \ +libgtk2.0-0 \ +libid3tag0 \ +libmad0 \ +libmpcdec3 \ +libnspr4 \ +libnss3 \ +libnotify1 \ +libdbus-1-3 \ +libhal1 \ +libogg0 \ +libsdl1.2debian \ +libsdl-image1.2 \ +libsdl-net1.2 \ +libsdl-mixer1.2 \ +libvorbis0a \ +libvorbisenc2 \ +libshout3 \ +libspeex1 \ +libtheorai0 \ +libsmbclient \ +libxml2 \ +libmodplug0c2 \ +libdvdnav4 \ +libdvdcss2 \ +libebml-dev \ +libfaac0 \ +libfaad2-0 \ +liblame0 \ +libmatroska-dev \ +libmpeg2-4 \ +liba52-0.7.4 \ +libwxbase2.6-0 \ +libwxgtk2.6-0 \ +libx264-dev \ +libtwolame0 \ +libdts-dev \ +libdirac0c2a" + +# Are we been run on ubuntu feiste ? +if ! test -f /etc/debian_version; then + echo "ERROR: no /etc/debian_version file found" + echo "ERROR: this is a non debian based system." + echo "ERROR: this script is meant to be run on ubuntu feisty 7.04" + exit 1 +fi + +version=`cat /etc/debian_version` +if ! test "${version}" = "4.0"; then + echo "ERROR: wrong version number ${version}" + echo "ERROR: this script is meant to be run on ubuntu feisty 7.04" + exit 1 +fi + +if ! test "`whoami`" = "root"; then + echo "ERROR: run this script as root user (eg: using sudo $*)" + exit 1 +fi + +# Test if medibuntu repos is installed. +if ! test -f /etc/apt/sources.list.d/medibuntu.list; then + echo "Installing medibuntu repository for dependencies" + wget http://www.medibuntu.org/sources.list.d/feisty.list -O /etc/apt/sources.list.d/medibuntu.list + wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update + echo "done" +fi + +apt-get install ${LIST} + +exit $? -- 2.39.2