diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2002-06-17 02:31:11 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2002-06-17 02:31:11 +0000 |
commit | 30721b375d6151d48308cf53e835b878468ddb08 (patch) | |
tree | 5a06dba08e35029a6e617d3bf3679419e7b38535 /net/dgd-lpmud/scripts/configure | |
parent | Unbreak the packing list for this port. As the list of files to (diff) |
Make the mud configuration and start up scripts respect PREFIX.
Diffstat (limited to '')
-rw-r--r-- | net/dgd-lpmud/scripts/configure | 11 |
1 files changed, 11 insertions, 0 deletions
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 |