Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jul 2001 21:06:19 -0400 (EDT)
From:      minter@lunenburg.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/28653: New port: tornado - a game of weather destruction
Message-ID:  <200107030106.f6316JG45265@ashburn.skiltech.com>

next in thread | raw e-mail | index | archive | help

>Number:         28653
>Category:       ports
>Synopsis:       New port for the curses-based game tornado
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 02 18:10:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Wade Minter
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
None
>Environment:
System: FreeBSD ashburn.skiltech.com 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Thu Jun 14 14:47:14 EDT 2001 root@ashburn.skiltech.com:/usr/obj/usr/src/sys/ASHBURN i386


	
>Description:
A curses-based game where you harness the power of the weather to destroy
your opponent's house, while they try to do the same to you.
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	tornado/
#	tornado/Makefile
#	tornado/pkg-comment
#	tornado/pkg-plist
#	tornado/pkg-descr
#	tornado/distinfo
#	tornado/files
#	tornado/files/patch-aa
#	tornado/files/patch-ab
#	tornado/files/patch-ac
#
echo c - tornado/
mkdir -p tornado/ > /dev/null 2>&1
echo x - tornado/Makefile
sed 's/^X//' >tornado/Makefile << 'END-of-tornado/Makefile'
X# New ports collection makefile for:    tornado
X# Date created:                         1 July 2001
X# Whom:                                 minter
X#
X# $FreeBSD$
X#
X
XPORTNAME=	tornado
XPORTVERSION=	1.0.3
XCATEGORIES=	games
XMASTER_SITES=	http://www.lionking.org/~kiza/linux/tornado/
X
XMAINTAINER=	minter@lunenburg.org
X
XMAN6=		tornado.6
X
X.include <bsd.port.mk>
END-of-tornado/Makefile
echo x - tornado/pkg-comment
sed 's/^X//' >tornado/pkg-comment << 'END-of-tornado/pkg-comment'
XA curses-based game of weather destruction
END-of-tornado/pkg-comment
echo x - tornado/pkg-plist
sed 's/^X//' >tornado/pkg-plist << 'END-of-tornado/pkg-plist'
Xbin/tornado
Xshare/games/tornado.scores
END-of-tornado/pkg-plist
echo x - tornado/pkg-descr
sed 's/^X//' >tornado/pkg-descr << 'END-of-tornado/pkg-descr'
XA clone of an old C64 game.  The object is to destroy your opponent's
Xhouse with the power of weather, before they do the same to you.  Play
Xagainst the computer AI, or against another player locally or over the
Xnetwork.
X
XWWW: http://www.lionking.org/~kiza/linux/tornado/
X
X--Wade
Xminter@lunenburg.org
END-of-tornado/pkg-descr
echo x - tornado/distinfo
sed 's/^X//' >tornado/distinfo << 'END-of-tornado/distinfo'
XMD5 (tornado-1.0.3.tar.gz) = 72e302d87b54b2870ade48968842049a
END-of-tornado/distinfo
echo c - tornado/files
mkdir -p tornado/files > /dev/null 2>&1
echo x - tornado/files/patch-aa
sed 's/^X//' >tornado/files/patch-aa << 'END-of-tornado/files/patch-aa'
Xdiff -ur ../tornado-1.0.3.orig/Makefile ./Makefile
X--- ../tornado-1.0.3.orig/Makefile	Fri Dec  1 09:00:11 2000
X+++ ./Makefile	Sun Jul  1 17:29:21 2001
X@@ -30,26 +30,26 @@
X 	if [ ! -d "$(PREFIX)/bin" ]; then \
X 	  mkdir -p $(PREFIX)/bin; \
X 	fi
X-	install -s tornado $(PREFIX)/bin
X+	install -c -s tornado $(PREFIX)/bin
X 	if [ ! -d "$(PREFIX)/man/man6" ]; then \
X 	  mkdir -p $(PREFIX)/man/man6; \
X 	fi
X-	install -m 0644 tornado.6 $(PREFIX)/man/man6
X+	install -c -m 0644 tornado.6 $(PREFIX)/man/man6
X 
X-	if [ -f "/var/games/tornado.scores" ]; then \
X+	if [ -f "${PREFIX}/share/games/tornado.scores" ]; then \
X 	  echo "Skipping install of the highscores file. File exists."; \
X-	  cat /var/games/tornado.scores | ./convert-highscorefile > score.tmp; \
X-	  mv -f score.tmp /var/games/tornado.scores; \
X-	  chmod a+rw-x "/var/games/tornado.scores"; \
X+	  cat ${PREFIX}/share/games/tornado.scores | ./convert-highscorefile > score.tmp; \
X+	  mv -f score.tmp ${PREFIX}/share/games/tornado.scores; \
X+	  chmod a+rw-x "${PREFIX}/share/games/tornado.scores"; \
X 	else \
X-	  if [ ! -d "/var/games" ]; then \
X-	    mkdir /var/games; \
X+	  if [ ! -d "${PREFIX}/share/games" ]; then \
X+	    mkdir -p ${PREFIX}/share/games; \
X 	  fi; \
X-	  install tornado.scores /var/games; \
X-	  chmod a+w-x "/var/games/tornado.scores"; \
X+	  install -c tornado.scores ${PREFIX}/share/games; \
X+	  chmod a+w-x "${PREFIX}/share/games/tornado.scores"; \
X 	fi
X 
X uninstall:
X 	rm -f $(PREFIX)/bin/tornado
X 	rm -f $(PREFIX)/man/man6/tornado.6
X-	rm -f /var/games/tornado.scores
X+	rm -f ${PREFIX}/share/games/tornado.scores
END-of-tornado/files/patch-aa
echo x - tornado/files/patch-ab
sed 's/^X//' >tornado/files/patch-ab << 'END-of-tornado/files/patch-ab'
Xdiff -ur ../tornado-1.0.3.orig/scores.h ./scores.h
X--- ../tornado-1.0.3.orig/scores.h	Fri Dec  1 08:59:55 2000
X+++ ./scores.h	Sun Jul  1 16:35:36 2001
X@@ -1,7 +1,7 @@
X /* scores.h -- highscore functions */
X 
X /* score file name */
X-#define SCOREFILE_NAME "/var/games/tornado.scores"
X+#define SCOREFILE_NAME "/usr/local/share/games/tornado.scores"
X 
X /* maximum length for a player name (includes \0) */
X #define MAX_PLAYER_LEN 22
END-of-tornado/files/patch-ab
echo x - tornado/files/patch-ac
sed 's/^X//' >tornado/files/patch-ac << 'END-of-tornado/files/patch-ac'
Xdiff -ur ../tornado-1.0.3.orig/tornado.6.in ./tornado.6.in
X--- ../tornado-1.0.3.orig/tornado.6.in	Fri Dec  1 08:59:55 2000
X+++ ./tornado.6.in	Sun Jul  1 16:35:53 2001
X@@ -90,7 +90,7 @@
X .P
X PREFIX/man/man6/tornado.6
X .P
X-/var/games/tornado.scores
X+/usr/local/share/games/tornado.scores
X .SH NOTES
X When you run the game in network mode you should have the same game versions
X on client and server side. Versions prior 1.0pre4 won't work at all due to
END-of-tornado/files/patch-ac
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107030106.f6316JG45265>