Annotation of /branches/magellan-next/include/xorg71.sminc
Parent Directory | Revision Log
Revision 6654 -
(hide annotations)
(download)
Tue Sep 14 16:46:32 2010 UTC (14 years ago) by niro
File size: 802 byte(s)
Tue Sep 14 16:46:32 2010 UTC (14 years ago) by niro
File size: 802 byte(s)
imported from trunk
1 | niro | 2 | # $Header: /magellan-cvs/smage/include/xorg71.sminc,v 1.4 2007/03/27 18:36:35 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 |