FIXUPHACK 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #ln -s ../../../etc/X11/xkb usr/share/X11/xkb
  6. #100416 restore...
  7. ##remove GL stuff to save space...
  8. #rm -rf usr/lib/dri
  9. #rm -f usr/lib/libEGL.so* 2>/dev/null
  10. #rm -f usr/lib/libGL*
  11. #100328 if building xorg 7.3, need a different /etc/X11/xorg.conf0...
  12. #...no, will do it in xorgwizard.
  13. #100416 ubuntu lucid has moved libGL.so* to /usr/lib/mesa (why oh why!!!???)...
  14. #note, but not libGLU.so*
  15. if [ -e usr/lib/mesa/libGL.so.1 ];then
  16. ln -s mesa/libGL.so.1 usr/lib/libGL.so.1
  17. ln -s mesa/libGL.so usr/lib/libGL.so
  18. ln -s mesa/libGL.so.1.2 usr/lib/libGL.so.1.2
  19. fi
  20. #120406 gxmessage pkg creates xmessage symlink to it (in pinstall.sh). get real xmessage out of the way...
  21. if [ -f usr/bin/xmessage ];then
  22. if [ ! -h usr/bin/xmessage ];then
  23. mkdir -p usr/local/bin
  24. mv -f usr/bin/xmessage usr/local/bin/
  25. fi
  26. fi
  27. #if /etc/fonts/fonts.conf is not present, use traditional Puppy-style font settings
  28. if [ -f etc/fonts/fonts.conf ];then
  29. rm -rf etc/fonts-puppy
  30. else
  31. rm -rf etc/fonts
  32. mv etc/fonts-puppy etc/fonts
  33. fi
  34. #delete xcalc.desktop if xcalc not installed
  35. [ -x usr/bin/xcalc ] || rm usr/share/applications/Xcalc*