Make the mud configuration and start up scripts respect PREFIX.
This commit is contained in:
parent
bf491582a2
commit
30721b375d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61398
@ -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 */
|
||||
|
11
net/dgd-lpmud/scripts/configure
vendored
11
net/dgd-lpmud/scripts/configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user