Make the mud configuration and start up scripts respect PREFIX.

This commit is contained in:
Greg Lewis 2002-06-17 02:31:11 +00:00
parent bf491582a2
commit 30721b375d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61398
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,5 @@
$FreeBSD$
*** rundgd.old Thu Jan 16 03:13:15 1997
--- rundgd Thu Jan 16 03:28:42 1997
***************
@ -15,7 +17,7 @@
--- 1,11 ----
#!/bin/sh
+ dgd=/usr/local/dgd
+ dgd=%%PREFIX%%/dgd
+ cd $dgd/lpmud-2.4.5
passwd=HNAMEPASS
while true
@ -38,7 +40,7 @@
--- 1,6 ----
telnet_port = 2000; /* telnet port number */
binary_port = 1999; /* binary port number */
! directory = "/usr/local/dgd/lpmud-2.4.5";/* base directory (MUST be absolute) */
! directory = "%%PREFIX%%/dgd/lpmud-2.4.5";/* base directory (MUST be absolute) */
users = 40; /* max # of users */
editors = 41; /* max # of editor sessions */
ed_tmpfile = "../tmp/ed"; /* proto editor tmpfile */

View File

@ -1,3 +1,7 @@
#!/bin/sh
#
# $FreeBSD$
cd ${WRKDIR}/mud
mv 2.4.5 lpmud-2.4.5
mv rundgd runlpmud
@ -5,3 +9,10 @@ ln -s ${PREFIX}/dgd/doc/kfun lpmud-2.4.5/doc
mkdir -p tmp bin; mv hname.c bin
cp ${FILESDIR}/oconv.c bin
cp ${FILESDIR}/Makefile.bin bin/Makefile
FILES_PREFIX="lpmud.dgd runlpmud"
for f in $FILES_PREFIX; do
mv ${WRKSRC}/${f} ${WRKSRC}/$f.bak && sed <${WRKSRC}/${f}.bak \
s+%%PREFIX%%+${PREFIX}+g >${WRKSRC}/${f}
done