Annotation of /branches/magellan-next/include/xorg71.minc
Parent Directory | Revision Log
Revision 15 -
(hide annotations)
(download)
Thu Jun 2 16:16:12 2011 UTC (12 years, 11 months ago) by niro
File size: 738 byte(s)
Thu Jun 2 16:16:12 2011 UTC (12 years, 11 months ago) by niro
File size: 738 byte(s)
copied includes
1 | niro | 1 | # $Header: /magellan-cvs/mage/include/xorg71.minc,v 1.1 2006/08/09 22:34:12 niro Exp $ |
2 | # xorg global smage2 functions | ||
3 | |||
4 | # check if =>Xorg-6.9 is installed; aborts installation | ||
5 | is_xorg71_installed() | ||
6 | { | ||
7 | local RED="\033[1;6m\033[31m" | ||
8 | local DEF="\033[0m" | ||
9 | |||
10 | xver=$(magequery -n xorg-server | cut -d' ' -f5|cut -d- -f3) | ||
11 | |||
12 | if [[ ${xver} < 1.1.0 ]] | ||
13 | then | ||
14 | echo | ||
15 | echo -e ${RED}" !!! You need >= xorg-server-1.1.0 or xorg-7.1.0 to install this package."${DEF} | ||
16 | echo -e ${RED}" !!! The xorg-server ABI has changed and is binary incompatibl to old versions."${DEF} | ||
17 | echo | ||
18 | |||
19 | die "< xorg-7.1.0 :(" | ||
20 | fi | ||
21 | } | ||
22 | |||
23 | xorg71_preinstall() | ||
24 | { | ||
25 | # check for old xorg installations | ||
26 | is_old_xorg_installed | ||
27 | is_old_xorg71_installed | ||
28 | } | ||
29 | |||
30 | export_inherits xorg71 preinstall |