nvidia304: properly restore mesa/xorg-server glx symlinks after deinstall (#146).

This commit is contained in:
Juan RP 2013-08-29 09:56:41 +02:00
parent 81c110e934
commit 8a5a525ff8
4 changed files with 34 additions and 1 deletions

19
srcpkgs/nvidia304/REMOVE Normal file
View file

@ -0,0 +1,19 @@
# Restore mesa libGL and xorg-server libglx symlinks.
case ${ACTION} in
purge)
rm -f usr/lib/libGL.so usr/lib/libGL.so.1
rm -f usr/lib/xorg/modules/extensions/libglx.so
# libGL
cd usr/lib
if [ -f libGL-mesa.so.1.2.0 ]; then
ln -sf libGL-mesa.so.1.2.0 libGL.so
ln -sf libGL-mesa.so.1.2.0 libGL.so.1
fi
# libglx
if [ -f xorg/modules/extensions/libglx-xorg.so ]; then
cd xorg/modules/extensions
ln -sf libglx-xorg.so libglx.so
fi
;;
esac

View file

@ -0,0 +1,7 @@
# Regenerate initramfs.
case ${ACTION} in
post)
echo "Regenerating initramfs, please wait..."
dracut -f -q
;;
esac

View file

@ -0,0 +1,7 @@
# Regenerate initramfs.
case ${ACTION} in
purge)
echo "Regenerating initramfs, please wait..."
dracut -f -q
;;
esac

View file

@ -1,7 +1,7 @@
# Template file for 'nvidia304'
pkgname=nvidia304
version=304.108
revision=1
revision=2
short_desc="NVIDIA drivers for linux (304.xx series)"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Propietary NVIDIA license"