mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.9 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/blindcoder/dgamelaunch/dgamelaunch.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. dgamelaunch_postmake(){
  23. cp ${confdir}/etc_dgamelaunch.conf ${root}/etc/dgamelaunch.conf
  24. mkdir -p ${root}/usr/games/lib/dgamelaunch/inprogress
  25. mkdir -p ${root}/usr/games/lib/dgamelaunch/mail
  26. mkdir -p ${root}/usr/games/lib/dgamelaunch/rcfiles
  27. mkdir -p ${root}/usr/games/lib/dgamelaunch/ttyrec
  28. touch ${root}/usr/games/lib/dgamelaunch/dgl-lock
  29. touch ${root}/usr/games/lib/dgamelaunch/dgl-login
  30. cat >>${root}/usr/games/lib/dgamelaunch/dgl-banner<<EOF
  31. ## dgamelaunch - network console game launcher
  32. ## version $VERSION
  33. ##
  34. ## (c)2001-4 M. Drew Streib. This program's source is released under the GPL.
  35. ## Send mail to <dtype@dtype.org> for details or a copy of the source code.
  36. ## ** Games on this server are recorded for in-progress viewing and playback!
  37. EOF
  38. cat >>${root}/usr/games/lib/dgamelaunch/dgl-default-rcfile <<-EOF
  39. # This is an example nethackrc file. You should edit this to suit the needs
  40. # of your personal nethack build and add some reasonable default options
  41. # for your users.
  42. # If you compiled dgamelaunch with the \`vi' editor enabled instead of ee,
  43. # perhaps a helpful blurb such as this might help:
  44. # This editor is vi-like. Type ESC a couple times, then ':q!' (without quotes)
  45. # to exit if you get stuck. To save, hit ESC and then ZZ or type ':wq'
  46. # (without quotes.) To insert text, hit 'i' to enter insert mode.
  47. # Here are some examples of reasonable defaults:
  48. OPTIONS=showexp,showscore,time,color,!autopickup
  49. OPTIONS=autodig,fruit:slime mold,boulder:0
  50. # For more information on what you can set in your nethackrc file, refer to:
  51. # http://www.nethack.org/v343/Guidebook.html#_TOCentry_42
  52. # Happy hacking!
  53. EOF
  54. echo -e "#!/bin/bash\n/usr/sbin/dgamelaunch -q -f /etc/dgamelaunch.conf" >${root}/usr/sbin/dgamelaunch_telnetd
  55. chmod +x ${root}/usr/sbin/dgamelaunch_telnetd
  56. chown 0.0 ${root}/usr/sbin/dgamelaunch_telnetd
  57. chown 2.4 ${root}/usr/games/lib/dgamelaunch/ -R
  58. chmod g+w ${root}/usr/games/lib/dgamelaunch/ -R
  59. }
  60. postmake=dgamelaunch_postmake