FIXUPHACK 992 B

1234567891011121314151617181920212223242526272829303132
  1. #if the pkg created in packages-woof has something wrong, this file is a last
  2. #resort to fix it. Current-dir is where this file FIXUPHACK is located.
  3. [ -f usr/bin/X ] && mv usr/bin/X usr/bin/X-ORIG
  4. ln -s Xorg usr/bin/X
  5. #100416 ubuntu lucid has moved libGL.so* to /usr/lib/mesa (why oh why!!!???)...
  6. #note, but not libGLU.so*
  7. if [ -e usr/lib/mesa/libGL.so.1 ];then
  8. ln -s mesa/libGL.so.1 usr/lib/libGL.so.1
  9. ln -s mesa/libGL.so usr/lib/libGL.so
  10. ln -s mesa/libGL.so.1.2 usr/lib/libGL.so.1.2
  11. fi
  12. #120406 gxmessage pkg creates xmessage symlink to it (in pinstall.sh). get real xmessage out of the way...
  13. if [ -f usr/bin/xmessage ];then
  14. if [ ! -h usr/bin/xmessage ];then
  15. mkdir -p usr/X11R7/bin
  16. mv -f usr/bin/xmessage usr/X11R7/bin/
  17. fi
  18. fi
  19. #gentoo have usr/share/X11/xkb, but i think some scripts still expect it at /etc/X11...
  20. if [ ! -d etc/X11/xkb ];then
  21. if [ -d usr/share/X11/xkb ];then
  22. mv -f usr/share/X11/xkb etc/X11/
  23. sync
  24. ln -s ../../../etc/X11/xkb usr/share/X11/xkb
  25. fi
  26. fi