aboutsummaryrefslogtreecommitdiffstats
path: root/net/dgd-lpmud
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2002-06-17 10:31:11 +0800
committerglewis <glewis@FreeBSD.org>2002-06-17 10:31:11 +0800
commit16f98f6910847d3d559800be4bca3fc346047012 (patch)
treebcf99e39091ce6985c3fd0349b16a6c151d9876d /net/dgd-lpmud
parent14cbff1316b2458c063b29b66682cbb74279cc22 (diff)
downloadfreebsd-ports-gnome-16f98f6910847d3d559800be4bca3fc346047012.tar.gz
freebsd-ports-gnome-16f98f6910847d3d559800be4bca3fc346047012.tar.zst
freebsd-ports-gnome-16f98f6910847d3d559800be4bca3fc346047012.zip
Make the mud configuration and start up scripts respect PREFIX.
Diffstat (limited to 'net/dgd-lpmud')
-rw-r--r--net/dgd-lpmud/files/patch-ab6
-rw-r--r--net/dgd-lpmud/scripts/configure11
2 files changed, 15 insertions, 2 deletions
diff --git a/net/dgd-lpmud/files/patch-ab b/net/dgd-lpmud/files/patch-ab
index 285e9a960d4d..30f9fbe48ae3 100644
--- a/net/dgd-lpmud/files/patch-ab
+++ b/net/dgd-lpmud/files/patch-ab
@@ -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 */
diff --git a/net/dgd-lpmud/scripts/configure b/net/dgd-lpmud/scripts/configure
index ba84c2691b52..bcb6d6389441 100644
--- a/net/dgd-lpmud/scripts/configure
+++ b/net/dgd-lpmud/scripts/configure
@@ -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