mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +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"
|
deps_pkg="wget"
|
||||||
;;
|
;;
|
||||||
build)
|
build)
|
||||||
deps="gcc g++ sed patch touch tar bzip2 gzip perl flex bison cp"
|
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 tar bzip2 gzip flex bison coreutils"
|
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/zlib.h"
|
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 zlib1g-dev"
|
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
|
esac
|
||||||
|
|
||||||
@ -42,19 +67,12 @@ if [ -n "$need" ]; then
|
|||||||
|
|
||||||
[ -f /etc/lsb-release ] && . /etc/lsb-release
|
[ -f /etc/lsb-release ] && . /etc/lsb-release
|
||||||
|
|
||||||
if [ "$DISTRIB_ID" = "Ubuntu" -a -n "`which apt-get 2>/dev/null`" ]; then
|
if [ -n "`which aptitude 2>/dev/null`" ]; then
|
||||||
echo "**** You seem to use an Ubuntu system ****"
|
DISTRO="a Debian"
|
||||||
read -p "would you like to sudo apt-get install the needed tools ? (y/n) " ans
|
[ "$DISTRIB_ID" = "Ubuntu" ] && DISTRO="an Ubuntu"
|
||||||
[ "$ans" = "y" ] && sudo apt-get install $need_pkg
|
echo "**** You seem to use $DISTRO system ****"
|
||||||
elif [ -f /etc/debian_version -a -n "`which apt-get 2>/dev/null`" ]; then
|
read -p "would you like to sudo aptitude install the needed tools ? (y/n) " ans
|
||||||
echo "**** You seem to use a debian system ****"
|
[ "$ans" = "y" ] && sudo aptitude install $need_pkg
|
||||||
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
|
|
||||||
elif [ -f /etc/mandrake-release -a -n "`which urpmi 2>/dev/null`" ]; then
|
elif [ -f /etc/mandrake-release -a -n "`which urpmi 2>/dev/null`" ]; then
|
||||||
echo "**** You seem to use a mandrake system ****"
|
echo "**** You seem to use a mandrake system ****"
|
||||||
if [ "$UID" -ne 0 ]; then
|
if [ "$UID" -ne 0 ]; then
|
||||||
@ -96,14 +114,8 @@ while file=`getarg $i $files` && [ -n "$file" ]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ -n "$need" ]; then
|
if [ -n "$need" ]; then
|
||||||
if [ "$need" = " mkzftree" ]; then
|
echo "**** The following packages were not installed correctly ****"
|
||||||
echo "**** mkzftree was not installed correctly."
|
echo $need_pkg
|
||||||
echo "**** It is not included in debian woody."
|
echo "********"
|
||||||
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
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user