# $Header: /magellan-cvs/smage/include/xorg71.sminc,v 1.4 2007/03/27 18:36:35 niro Exp $ # xorg-7.1 global smage2 functions # satisfy mage with preinstall INHERITS="${INHERITS} xorg xorg71" # 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 incompatible to old versions."${DEF} echo die "< xorg-7.1.0 :(" fi } xorg71_srcprepare() { # check for old xorg installations is_xorg71_installed xorg_srcprepare } export_inherits xorg71 srcprepare