This file is indexed.

/usr/games/penn-install is in pennmush-common 1.8.2p8-1ubuntu3.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
#!/bin/sh
#  Program: penn-install
#  Version: 0.0.1
#  Author: Ervin Hearn III (Noltar) <noltar@korongil.net>
#  Date: Thu, 11 Sep 2003 18:04:43 -0400.
#  Copyright:
#
#    This program is free software; you can redistribute it and/or modify it
#    under the terms of the "Artistic License" which comes with Debian.
#
#    THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
#    WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES
#    OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
#    On Debian GNU/Linux systems, the complete text of the Artistic License
#    can be found in `/usr/share/common-licenses/Artistic'.
#
#  Description:
#
#    This program installs the pennmush server for the user in the directory
#    from which it is ran. It provides all configuration, data, and script
#    files necessary for the user to initiate and run an instance of the
#    pennmush server process, netmush.
#
#  History:
#   0.0.1  Initial Release.

NAME=penn-install
VERSION=0.0.1
PKGDIR=`pwd`/pennmush
DSTDIR=$PKGDIR/game
SRCDIR=/usr/lib/pennmush/game
SHRDIR=/usr/share/pennmush/game
DWNDIR=''


################################################################
#
# 0. Check options

case "$1" in
  '')

    ################################################################
    #
    # 1. Install pennmush
    #

    #
    # 1.2 Helpers
    #

    mkdstlns()
    {
      while [ $1 ]; do
      ln -s $SRCDIR/$1
      shift
      done
    }

    mkshrdstlns()
    {
      while [ $1 ]; do
      ln -s $SHRDIR/$1
      shift
      done
    }

    mklns()
    {
      while [ $1 ]; do
      ln -s $SRCDIR/$DWNDIR/$1
      shift
      done
    }

    mkshrlns()
    {
      while [ $1 ]; do
      ln -s $SHRDIR/$DWNDIR/$1
      shift
      done
    }

    mkcps()
    {
      while [ $1 ]; do 
      cp $SRCDIR/$DWNDIR/$1 .
      shift
      done
     }

    mkshrcps()
    {
      while [ $1 ]; do 
      cp $SHRDIR/$DWNDIR/$1 .
      shift
      done
     }

     mkcdir()
     {
       cd $DSTDIR
       mkdir -p $1
       cd $1
       DWNDIR=$1
     }

     echo -n "Installing pennmush in $DSTDIR"

     #
     # 1.3 Create main pennmush directory
     #

     mkdir $PKGDIR
     cd $PKGDIR

     echo -n "."

     #
     # 1.4 Do sanity check for existing pennmush installations
     #

     if test -f ./$NAME; then

       echo "It's not good idea to install pennmush in the current directory."
       echo "You should read 'man $NAME' and run it in a different directory."
       exit

     fi

     if test -f ./utils/$NAME; then

       echo "If you want to use this script, you need to 'make debianinstall'"
       echo "as root first, and then run this script. If you don't have the"
       echo "necessary access, you should install pennmush normally from the"
       echo "source or ask your system administrator about installing it"
       echo "globally."
       exit

     fi

     if test -f ./game/restart; then

       echo "You should only run this once to install pennmush locally."
       echo "All upgrades and modifications to the server itself are done"
       echo "globally. Check with your system administrator if you are having"
       echo "problems. If something is wrong with your configuration files,"
       echo "create a new directory and run '$NAME' in that and copy"
       echo "you're modified files over."
       exit

     fi

     echo -n "."

     # 1.5 Setup game directory

     #
     # 1.5.1 Create base game directory
     #

     mkdir $DSTDIR
     cd $DSTDIR
     mkdstlns config.sh
     mkshrdstlns access.README aliascnf.dst getdate.README getdate.template \
     	mushcnf.dst namescnf.dst restrictcnf.dst README
     mkshrcps *.cnf restart

     echo -n "."

     #
     # 1.5.2 Link binaries
     #

     mkdstlns info_slave netmush

     echo -n "."

     #
     # 1.5.3 Make sure restart is executable by the user
     #

     chmod u+x restart

     echo -n "."

     #
     # 1.6 Create storage directories
     #

     mkcdir save
     mkshrlns README

     mkcdir log
     mkshrlns README

     mkcdir data
     mkshrlns README

     echo -n "."

     #
     # 1.7 Setup text files
     #

     #
     # 1.7.1 Text generation files
     #

     mkcdir txt
     mkshrlns compose.sh.SH compose.sh index-files.pl

     echo -n "."

     #
     # 1.7.2 Copy text files. Most will either be autogenerated or modified by the user
     #

     mkshrcps *.txt Makefile

     echo -n "."

     #
     # 1.7.3 Events is mush specific and starts out essentially empty
     #

     mkcdir txt/evt
     mkshrcps pennmush.evt

     echo -n "."

     #
     # 1.7.4 News is mush specific and starts out essentially empty
     #

     mkcdir txt/nws
     mkshrcps pennmush.nws

     echo -n "."

     #
     # 1.7.5 Help contains a large part of the standard pennmush documentation

     mkcdir txt/hlp
     mkshrlns penncmd.hlp pennconf.hlp pennfunc.hlp pennpueb.hlp pennv174.hlp \
	pennv176.hlp pennvOLD.hlp pennchat.hlp penncode.hlp pennflag.hlp \
	pennmail.hlp penntop.hlp pennv175.hlp pennv177.hlp pennv180.hlp

     #
     # 1.8 Setup i18n translation files if present
     #
     
     if test -d /usr/share/pennmush/po; then
     	mkdir $PKGDIR/po
        ln -s /usr/share/pennmush/po/* $PKGDIR/po/
        echo -n "."
     fi

     echo "Done"
     echo "** Be sure to change the 'port' entry in pennmush/game/mush.cnf"
     echo "** to the one either assigned by your system admin or currently"
     echo "** available on the system. It is also necessary to set the"
     echo "** GAMEDIR variable at the top of pennmush/game/restart. Finally,"
     echo "** log into the mush and change the password for One (#1) to"
     echo "** something safe."
    ;;
  -v|--version)

    ################################################################
    #
    # 1. Display version information
    #
    
    echo "$NAME $VERSION  Copyright (C) 2003 Ervin Hearn III"
    echo "This program is free software; you can redistribute it and/or modify it"
    echo "under the terms of the \"Artistic License\" which comes with Debian."
    echo " "
    echo "THIS PACKAGE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS OR IMPLIED"
    echo "WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES"
    echo "OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE."
    echo " "
    echo "On Debian GNU/Linux systems, the complete text of the Artistic License"
    echo "can be found in '/usr/share/common-licenses/Artistic'."
    echo " "
    echo "Report bugs to <noltar@korongil.net>."
    exit 1
    ;;
  *)

    ################################################################
    #
    # 1. Display help information
    #
    
    echo "$NAME $VERSION  Copyright (C) 2003 Ervin Hearn III"
    echo "This program is free software; you can redistribute it and/or modify it"
    echo "under the terms of the \"Artistic License\" which comes with Debian."
    echo " "
    echo "THIS PACKAGE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS OR IMPLIED"
    echo "WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES"
    echo "OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE."
    echo " "
    echo "On Debian GNU/Linux systems, the complete text of the Artistic License"
    echo "can be found in '/usr/share/common-licenses/Artistic'."
    echo " "
    echo "Usage: $NAME [OPTION]"
    echo " "
    echo "Installs pennmush in the current directory for the user."
    echo " "
    echo "This program follows the usual GNU command line syntax, with long"
    echo "options starting with two dashes ('-')."
    echo " "
    echo "Options:"
    echo "  -h, --help        display this help and exit"
    echo "  -v, --version     output version information and exit"
    echo " "
    echo "Report bugs to <noltar@korongil.net>."
    exit 1
    ;;
esac

exit 0