From 5a8eded910483806f7160b4883de63a624b4bb22 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Sat, 15 Sep 2012 08:46:06 -0700 Subject: [PATCH] Add dgamelaunch configuration to the project. --- dgl/dgamelaunch.conf | 308 ++++++++++++++++++++++++++++++++ dgl/dgl-banner | 1 + dgl/dgl-common.c.patch | 24 +++ dgl/dgl_menu_main_anon.txt | 19 ++ dgl/dgl_menu_main_user.txt | 22 +++ dgl/dgl_menu_watchmenu_help.txt | 22 +++ 6 files changed, 396 insertions(+) create mode 100644 dgl/dgamelaunch.conf create mode 100644 dgl/dgl-banner create mode 100644 dgl/dgl-common.c.patch create mode 100644 dgl/dgl_menu_main_anon.txt create mode 100644 dgl/dgl_menu_main_user.txt create mode 100644 dgl/dgl_menu_watchmenu_help.txt diff --git a/dgl/dgamelaunch.conf b/dgl/dgamelaunch.conf new file mode 100644 index 0000000..ddbe678 --- /dev/null +++ b/dgl/dgamelaunch.conf @@ -0,0 +1,308 @@ +# rlgallery.org configuration file for dgamelaunch + + +# Global config variables: + + +# Max amount of registered users to allow. Has no effect if dgl was +# compiled with SQLite +maxusers = 4096 + +# Allow registration of new nicks? (yes or no) +allow_new_nicks = yes + +# Max length for newly registered nicks. Must be less than 20. +# By default, NetHack only stores the first 10 chars of a name into +# the record/logfile. +maxnicklen = 10 + +# Set the default watching-screen sorting mode. Can be one of +# "unsorted", "username" or "idletime". Unsorted is the default. +sortmode = "username" + +# Path to a prepared chroot jail. +chroot_path = "/var/dgl/" + +# From inside the jail, dgamelaunch's working directory for rcfiles/ttyrec/etc +dglroot = "/dgldir/" + +# Server ID string +server_id = "Roguelike Gallery - rlgallery.org" + +# From inside the jail, location of a banner file, the topmost line will be +# shown in submenus that cannot be defined separately. +# Some string substitution is done for the file: +# $VERSION replaced with "dgamelaunch v" + dgl version number. +# $SERVERID replaced with the server_id string, as defined above. +banner = "/dgldir/dgl-banner" + +# The following two options are fairly insecure. They will force us to +# load the password/group database into memory while still having root +# privileges. Replace them with shed_uid/shed_gid entries as soon as +# possible if you decide to use them. dgamelaunch will inform you of +# the uids/gids corresponding to your choices when it loads. +# +# Note that shed_uid and shed_gid will always take precedence over +# shed_user and shed_group if they are specified. + +# shed_user: username to shed privileges to +#shed_user = "games" +# shed_group: group name to shed privileges to +#shed_group = "games" + +# Preferably, you may use the respective gids/uids. This is for Debian: +# Use the rodney account instead of games:games +shed_uid = 501 +shed_gid = 501 + +# The defaults are usually just fine for this. passwd refers to the file +# that stores the user database, and lockfile is only used internally by +# dgamelaunch. +# passwd doesn't matter if dgl was compiled with SQLite, as the name of +# the sqlite database will be defined at compile time. +passwd = "/dgldir/dgl-login" +lockfile = "/dgldir/dgl-lock" + +# +# define some commands that are run when something happens. format is +# commands [