# $Header: /magellan-cvs/mage/include/xorg71.minc,v 1.1 2006/08/09 22:34:12 niro Exp $ # xorg global smage2 functions # check if =>Xorg-6.9 is installed; aborts installation is_xorg71_installed() { local RED="\033[1;6m\033[31m" local DEF="\033[0m" xver=$(magequery -n xorg-server | cut -d' ' -f5|cut -d- -f3) if [[ ${xver} < 1.1.0 ]] then echo echo -e ${RED}" !!! You need >= xorg-server-1.1.0 or xorg-7.1.0 to install this package."${DEF} echo -e ${RED}" !!! The xorg-server ABI has changed and is binary incompatibl to old versions."${DEF} echo die "< xorg-7.1.0 :(" fi } xorg71_preinstall() { # check for old xorg installations is_old_xorg_installed is_old_xorg71_installed } export_inherits xorg71 preinstall