Browse Source

Take over Michael pre-work for more correct platform support determination. Additionally we now support Solaris 9, Debian 3.0 and RedHat 7.2.

master
parent
commit
c410c5c102
  1. 57
      openpkg/aux.prereq.sh

57
openpkg/aux.prereq.sh

@ -37,59 +37,62 @@ platform=`sh ./shtool guessos`
support=no
case $platform in
*-solaris* )
support=maybe
case $platform in
*-solaris2.[678] )
*-solaris2.[67] )
support=maybe
;;
*-solaris2.[89] )
support=yes
;;
esac
;;
*-linux* )
support=maybe
if [ -f /etc/debian_version ]; then
if [ -f /etc/redhat-release ]; then
redhat=`cat /etc/redhat-release | sed -e 's;^.*\([0-9]\.[0-9]*\).*$;\1;'`
case "$redhat" in
7.2 )
support=yes
;;
7.[13] )
support=maybe
;;
esac
elif [ -f /etc/debian_version ]; then
debian=`cat /etc/debian_version`
if [ ".$debian" = ".2.2" ]; then
support=yes
fi
case "$debian" in
2.2|3.0 )
support=yes
;;
esac
fi
;;
*-freebsd* )
support=maybe
case $platform in
*-freebsd4.[12345] )
*-freebsd4.[56] )
support=yes
;;
*-freebsd4.[01234789] )
support=maybe
;;
*-freebsd5.0 )
support=maybe
;;
esac
;;
*-netbsd* )
support=maybe
case $platform in
*-netbsd1.5* )
support=yes
;;
esac
;;
*-osf* )
support=maybe
case $platform in
*-osf5.[01] )
support=yes
;;
esac
;;
*-hpux* )
support=maybe
case $platform in
*-hpux10.20 )
support=yes
;;
esac
;;
esac
case $support in
yes ) support="Congratulations: fully supported" ;;
maybe ) support="Good luck: supported but wrong version!" ;;
no ) support="Sorry: entirely unsupported!" ;;
yes ) support="Congratulations: officially supported" ;;
maybe ) support="Good luck: unofficially supported" ;;
no ) support="Sorry: not supported" ;;
esac
echo "++ platform: $platform ($support)"
case $support in

Loading…
Cancel
Save