summaryrefslogtreecommitdiff
path: root/games/quakeserver/scripts/configure
diff options
context:
space:
mode:
authorJames FitzGibbon <jfitz@FreeBSD.org>1996-10-28 10:49:53 +0000
committerJames FitzGibbon <jfitz@FreeBSD.org>1996-10-28 10:49:53 +0000
commitdd3d3d10e93cbb9ab82e417c92136c16100ca865 (patch)
tree17dd42ebe182b58d7ab70000df1c4656ed7f3a83 /games/quakeserver/scripts/configure
parentAlmost forgot to change _base to _roof here :-) (diff)
Import of port to host Quake netgames under FreeBSD.
(what good was the QuakeC compiler without a server to run the games on?)
Notes
Notes: svn path=/head/; revision=4178
Diffstat (limited to '')
-rw-r--r--games/quakeserver/scripts/configure12
1 files changed, 12 insertions, 0 deletions
diff --git a/games/quakeserver/scripts/configure b/games/quakeserver/scripts/configure
new file mode 100644
index 000000000000..dfd31e72b5a0
--- /dev/null
+++ b/games/quakeserver/scripts/configure
@@ -0,0 +1,12 @@
+#!/usr/bin/perl
+#
+
+eval '(exit $?0)' && eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
+& eval 'exec /usr/bin/perl -S $0 $argv:q'
+if 0;
+
+chop( $hostname = `hostname` );
+$files = ( "$ENV{'WRKDIR'}/server/quake/qslog $ENV{'WRKDIR'}/server/quake/qsrv.expect" );
+
+system( "/usr/bin/perl -pi -e 's|%%PREFIX%%|$ENV{'PREFIX'}|g' $files" );
+system( "/usr/bin/perl -pi -e 's|%%HOSTNAME%%|$hostname|g' $files" );