1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/games/wolfpack/scripts/configure
Steve Price 2a7c46a12f Initial import of wolfpack version 4.2.6.
A long term multiplayer strategy game.

PR:		14535
Submitted by:	Daniel O'Connor <darius@dons.net.au>
1999-11-26 19:16:46 +00:00

41 lines
940 B
Bash

#!/bin/sh
doquit () {
if [ $1 -ne 0 ]; then
echo User abort
rm -f /tmp/__input$$
exit 1
fi
}
dialog --title "Wolfpack Empire Information" --inputbox "Name of deity" 8 60 2>/tmp/__input$$
doquit $?
name=`cat /tmp/__input$$`
dialog --title "Wolfpack Empire Information" --inputbox "Username of deity" 8 60 2>/tmp/__input$$
doquit $?
username=`cat /tmp/__input$$`
dialog --title "Wolfpack Empire Information" --inputbox "Email Address of game admin" 8 60 2>/tmp/__input$$
doquit $?
email=`cat /tmp/__input$$`
host=`hostname`
ip=`host -t a $host | awk '{print $4}'`
echo Email address is $email
echo Username is $username
echo Name is $name
echo Hostname is $host
echo IP is $ip
FROM=$FILESDIR/build.conf.tmpl
TO=$WRKSRC/build.conf
sed -e "s/%%NAME%%/$name/" -e "s/%%USERNAME%%/$username/" -e "s/%%EMAIL%%/$email/" -e "s/%%HOSTNAME%%/$host/" -e "s/%%IPADDR%%/$ip/" -e "s#%%EMPDIR%%#$PREFIX/wolfpack#" <$FROM >$TO