summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/xorg-server/xorg-server.install
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-01-11 18:41:04 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-01-11 18:41:04 (GMT)
commitbcf5ec3fa5da5bbac9a1eaba782bbcea0278d9b7 (patch)
tree1db739b5689e79de25ff05521ff1ef620478df50 /abs/core-testing/xorg-server/xorg-server.install
parent22cb9c31cde8a125c3b7d159d8b50941cb5c7714 (diff)
downloadlinhes_pkgbuild-bcf5ec3fa5da5bbac9a1eaba782bbcea0278d9b7.zip
linhes_pkgbuild-bcf5ec3fa5da5bbac9a1eaba782bbcea0278d9b7.tar.gz
linhes_pkgbuild-bcf5ec3fa5da5bbac9a1eaba782bbcea0278d9b7.tar.bz2
Updated various packages.
Diffstat (limited to 'abs/core-testing/xorg-server/xorg-server.install')
-rw-r--r--abs/core-testing/xorg-server/xorg-server.install25
1 files changed, 23 insertions, 2 deletions
diff --git a/abs/core-testing/xorg-server/xorg-server.install b/abs/core-testing/xorg-server/xorg-server.install
index f7ff03a..c67438d 100644
--- a/abs/core-testing/xorg-server/xorg-server.install
+++ b/abs/core-testing/xorg-server/xorg-server.install
@@ -1,12 +1,33 @@
post_install() {
- rm -f /usr/lib/xorg/modules/libwfb.so
- ln -sf libwfb.so.1.4 /usr/lib/xorg/modules/libwfb.so
+ 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
}