5.5.2-gentoo-paths.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --- umoria/unix/Makefile.orig 2003-12-31 14:52:58.583335976 -0500
  2. +++ umoria/unix/Makefile 2003-12-31 14:51:54.621059720 -0500
  3. @@ -3,6 +3,7 @@
  4. # LIBDIR must be the same directory defined in config.h
  5. # OWNER is who you want the game to be chown to.
  6. # GROUP is who you wnat the game to be chgrp to.
  7. +STATEDIR = /var/lib
  8. BINDIR = /home/zariski/grabiner/moria
  9. LIBDIR = /home/zariski/grabiner/moria/files
  10. OWNER = grabiner
  11. @@ -65,12 +66,11 @@
  12. chmod 4711 $(BINDIR)/moria
  13. chmod 711 $(LIBDIR)
  14. (cd files; cp $(LIBFILES) $(LIBDIR))
  15. - (cd $(LIBDIR); chmod 444 $(LIBFILES))
  16. - (cd $(LIBDIR); touch scores; chmod 644 scores)
  17. + (cd $(STATEDIR); touch moriascores; chmod 664 moriascores; chown $(OWNER) moriascores; chgrp $(GROUP) moriascores)
  18. chown $(OWNER) $(BINDIR)/moria
  19. chgrp $(GROUP) $(BINDIR)/moria
  20. - (cd $(LIBDIR); chown $(OWNER) $(LIBFILES) scores)
  21. - (cd $(LIBDIR); chgrp $(GROUP) $(LIBFILES) scores)
  22. + (cd $(LIBDIR); chown $(OWNER) $(LIBFILES))
  23. + (cd $(LIBDIR); chgrp $(GROUP) $(LIBFILES))
  24. # If you are short on disk space, or aren't interested in debugging moria.
  25. # strip $(BINDIR)/moria
  26. --- umoria/source/config.h.orig 2003-12-31 15:19:48.893531616 -0500
  27. +++ umoria/source/config.h 2003-12-31 15:21:09.584264760 -0500
  28. @@ -199,17 +199,18 @@
  29. #else
  30. /* This must be unix; change MORIA_LIB as appropriate. */
  31. -#define MORIA_SAV "moria.save"
  32. -#define MORIA_LIB(xxx) "/home/math/grabiner/moria/files/xxx"
  33. -#define MORIA_HOU MORIA_LIB(hours)
  34. -#define MORIA_MOR MORIA_LIB(news)
  35. -#define MORIA_TOP MORIA_LIB(scores)
  36. -#define MORIA_HELP MORIA_LIB(roglcmds.hlp)
  37. -#define MORIA_ORIG_HELP MORIA_LIB(origcmds.hlp)
  38. -#define MORIA_WIZ_HELP MORIA_LIB(rwizcmds.hlp)
  39. -#define MORIA_OWIZ_HELP MORIA_LIB(owizcmds.hlp)
  40. -#define MORIA_WELCOME MORIA_LIB(welcome.hlp)
  41. -#define MORIA_VER MORIA_LIB(version.hlp)
  42. +#define MORIA_SAV ".moria.save"
  43. +#define MORIA_LIB(xxx) "GENTOO_DATADIR/" xxx
  44. +#define MORIA_STATE(xxx) "GENTOO_STATEDIR/" xxx
  45. +#define MORIA_HOU MORIA_LIB("hours")
  46. +#define MORIA_MOR MORIA_LIB("news")
  47. +#define MORIA_TOP MORIA_STATE("moriascores")
  48. +#define MORIA_HELP MORIA_LIB("roglcmds.hlp")
  49. +#define MORIA_ORIG_HELP MORIA_LIB("origcmds.hlp")
  50. +#define MORIA_WIZ_HELP MORIA_LIB("rwizcmds.hlp")
  51. +#define MORIA_OWIZ_HELP MORIA_LIB("owizcmds.hlp")
  52. +#define MORIA_WELCOME MORIA_LIB("welcome.hlp")
  53. +#define MORIA_VER MORIA_LIB("version.hlp")
  54. #endif
  55. #endif