mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/checkdeps:
- add some more dependencies and functions (need more work)
This commit is contained in:
parent
a40f5b2ea9
commit
395839441f
@ -13,10 +13,35 @@ case $1 in
|
||||
deps_pkg="wget"
|
||||
;;
|
||||
build)
|
||||
deps="gcc g++ sed patch touch tar bzip2 gzip perl flex bison cp"
|
||||
deps_pkg="gcc g++ sed patch fileutils tar bzip2 gzip flex bison coreutils"
|
||||
files="/usr/include/stdio.h /usr/include/zlib.h"
|
||||
files_pkg="libc6-dev zlib1g-dev"
|
||||
deps="gcc g++ sed patch touch nasm tar bzip2 gzip perl flex bison cp gawk mkfontscale cpio makedepend makeinfo msgfmt xkbcomp gperf libtool cmp yacc lzma xsltproc"
|
||||
deps_pkg="gcc g++ sed patch fileutils nasm tar bzip2 gzip perl flex bison coreutils gawk xfonts-utils cpio makedepend texinfo gettext x11-xkb-utils gperf libtool diff lzma xsltproc"
|
||||
files="/usr/include/stdio.h /usr/include/readline/readline.h /usr/include/zlib.h /usr/include/ncurses.h /usr/include/freetype2/freetype/freetype.h /usr/include/expat.h /usr/include/dbus-1.0/dbus/dbus.h /usr/include/jpeglib.h"
|
||||
files_pkg="libc6-dev libreadline5-dev zlib1g-dev libncurses5-dev libfreetype6-dev libexpat1-dev libdbus-1-dev libjpeg-dev"
|
||||
;;
|
||||
burn)
|
||||
deps="cdrecord"
|
||||
deps_pkg="cdrecord"
|
||||
;;
|
||||
iso)
|
||||
deps="mkisofs"
|
||||
if [ -f /etc/debian_version -a -n "`which aptitude 2>/dev/null`" ]; then
|
||||
deps_pkg="mkisofs genisoimage"
|
||||
else
|
||||
deps_pkg="mkisofs"
|
||||
fi
|
||||
;;
|
||||
vmx)
|
||||
if [ ! `which vmplayer` ]; then
|
||||
echo "Your system doesn't seem to have VMplayer installed"
|
||||
echo "It is mandatory to play a VMware virtual machine."
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
qemu)
|
||||
if [ ! `which qemu` ]; then
|
||||
echo "Your system doesn't seem to have QEMU installed"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -42,19 +67,12 @@ if [ -n "$need" ]; then
|
||||
|
||||
[ -f /etc/lsb-release ] && . /etc/lsb-release
|
||||
|
||||
if [ "$DISTRIB_ID" = "Ubuntu" -a -n "`which apt-get 2>/dev/null`" ]; then
|
||||
echo "**** You seem to use an Ubuntu system ****"
|
||||
read -p "would you like to sudo apt-get install the needed tools ? (y/n) " ans
|
||||
[ "$ans" = "y" ] && sudo apt-get install $need_pkg
|
||||
elif [ -f /etc/debian_version -a -n "`which apt-get 2>/dev/null`" ]; then
|
||||
echo "**** You seem to use a debian system ****"
|
||||
if [ "$UID" -ne 0 ]; then
|
||||
echo "**** I could install those packages but you need to be root for this ****"
|
||||
exit 1
|
||||
else
|
||||
read -p "would you like to apt-get install the needed tools ? (y/n) " ans
|
||||
[ "$ans" = "y" ] && apt-get install $need_pkg
|
||||
fi
|
||||
if [ -n "`which aptitude 2>/dev/null`" ]; then
|
||||
DISTRO="a Debian"
|
||||
[ "$DISTRIB_ID" = "Ubuntu" ] && DISTRO="an Ubuntu"
|
||||
echo "**** You seem to use $DISTRO system ****"
|
||||
read -p "would you like to sudo aptitude install the needed tools ? (y/n) " ans
|
||||
[ "$ans" = "y" ] && sudo aptitude install $need_pkg
|
||||
elif [ -f /etc/mandrake-release -a -n "`which urpmi 2>/dev/null`" ]; then
|
||||
echo "**** You seem to use a mandrake system ****"
|
||||
if [ "$UID" -ne 0 ]; then
|
||||
@ -96,14 +114,8 @@ while file=`getarg $i $files` && [ -n "$file" ]; do
|
||||
done
|
||||
|
||||
if [ -n "$need" ]; then
|
||||
if [ "$need" = " mkzftree" ]; then
|
||||
echo "**** mkzftree was not installed correctly."
|
||||
echo "**** It is not included in debian woody."
|
||||
echo "**** You will need for example a sarge version of mkisofs."
|
||||
else
|
||||
echo "**** The following packages were not installed correctly ****"
|
||||
echo $need_pkg
|
||||
echo "********"
|
||||
fi
|
||||
echo "**** The following packages were not installed correctly ****"
|
||||
echo $need_pkg
|
||||
echo "********"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user