blob: c67438db33a11664e0eb96594067734fd421cdbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
post_install() {
rm -f usr/lib/xorg/modules/libwfb.so
ln -sf libwfb.so.1.4 usr/lib/xorg/modules/libwfb.so
cmp usr/lib/xorg/modules/extensions/libdri.so usr/lib/xorg/modules/extensions/libglx.xorg >/dev/null 2>&1 && rm -f usr/lib/xorg/modules/extensions/libdri.so
# If the symlink is dead or non-existent, remove it and make a new one
if [ ! -e usr/lib/xorg/modules/extensions/libdri.so ]; then
rm -f usr/lib/xorg/modules/extensions/libdri.so
ln -sf libdri.xorg usr/lib/xorg/modules/extensions/libdri.so
fi
}
post_upgrade() {
if [ "`vercmp $2 1.4.99.906`" -lt 0 ]; then
cat << _EOF
Input device handling has changed in xorg-server 1.5.
Please read http://wiki.archlinux.org/index.php/Xorg_input_hotplugging.
_EOF
fi
post_install
}
post_remove() {
rm -f /usr/lib/xorg/modules/libwfb.so
# If the symlink is dead, remove it
if [ ! -e usr/lib/xorg/modules/extensions/libdri.so ]; then
rm -f usr/lib/xorg/modules/extensions/libdri.so
fi
}
|