Magellan Linux

Contents of /smage/trunk/include/xorg71.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (show annotations) (download)
Sat Jan 2 16:59:51 2010 UTC (14 years, 3 months ago) by niro
File size: 808 byte(s)
-initial smage includes
1 # $Header: /alx-cvs/smage-eglibc/include/xorg71.sminc,v 1.1.1.1 2008/02/27 09:26:22 niro Exp $
2 # xorg-7.1 global smage2 functions
3
4 # satisfy mage with preinstall
5 INHERITS="${INHERITS} xorg xorg71"
6
7 # check if =>Xorg-6.9 is installed; aborts installation
8 is_xorg71_installed()
9 {
10 local RED="\033[1;6m\033[31m"
11 local DEF="\033[0m"
12
13 xver=$(magequery -n xorg-server | cut -d' ' -f5|cut -d- -f3)
14
15 if [[ ${xver} < 1.1.0 ]]
16 then
17 echo
18 echo -e ${RED}" !!! You need >= xorg-server-1.1.0 or xorg-7.1.0 to install this package."${DEF}
19 echo -e ${RED}" !!! The xorg-server ABI has changed and is binary incompatible to old versions."${DEF}
20 echo
21
22 die "< xorg-7.1.0 :("
23 fi
24 }
25
26 xorg71_srcprepare()
27 {
28 # check for old xorg installations
29 is_xorg71_installed
30 xorg_srcprepare
31 }
32
33 export_inherits xorg71 srcprepare