ports/51244: Port update for games/tornado

H.Wade Minter minter at lunenburg.org
Mon Apr 21 18:40:07 UTC 2003


>Number:         51244
>Category:       ports
>Synopsis:       Port update for games/tornado
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 21 11:40:03 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     H. Wade Minter
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
None
>Environment:
System: FreeBSD bunning.skiltech.com 4.8-RELEASE FreeBSD 4.8-RELEASE #7: Sun Apr 6 13:02:12 EDT 2003 root at bunning.skiltech.com:/usr/obj/usr/src/sys/BUNNING i386

>Description:
Finally updating the games/tornado port to version 1.2.  This both provides
the update, and fixes the "File Not Found" error with the old port.

>How-To-Repeat:
N/A

>Fix:
SHAR Attached:


# 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/files
#	tornado/files/patch-aa
#	tornado/files/patch-ab
#	tornado/files/patch-ac
#	tornado/Makefile
#	tornado/distinfo
#	tornado/pkg-descr
#	tornado/pkg-plist
#
echo c - tornado
mkdir -p tornado > /dev/null 2>&1
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.2.orig/Makefile ./Makefile
X--- ../tornado-1.2.orig/Makefile	Thu Nov  7 12:45:59 2002
X+++ ./Makefile	Mon Apr 21 14:06:38 2003
X@@ -1,10 +1,9 @@
X CC = gcc
X-MAKE = make
X-LDFLAGS = -lncurses
X+MAKE = gmake
X+LDFLAGS = -L/usr/local/lib -lncurses -lintl
X OBJFILES = main.o draw.o erwin.o network.o scores.o
X-PREFIX = /usr/local
X-LOCALEPATH = /usr/local/share/locale
X-CFLAGS = -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
X+LOCALEPATH = ${PREFIX}/share/locale
X+CFLAGS += -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\"" -I/usr/local/include
X VERSION = `echo VERSION | cpp -P -include version.h | tr -d '" ' | grep -v '^$$'`
X LOCALES = de
X MAN = doc/man
X@@ -50,17 +49,17 @@
X 
X 	$(MAKE) -C $(MAN) install-man
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 ${PREFIX}/share/games; \
X 	  fi; \
X-	  install tornado.scores /var/games; \
X-	  chmod a+w-x "/var/games/tornado.scores"; \
X+	  install tornado.scores ${PREFIX}/share/games/; \
X+	  chmod a+w-x "${PREFIX}/share/games/tornado.scores"; \
X 	fi
X 
X install-locale-data:
X@@ -68,7 +67,7 @@
X 
X uninstall:
X 	rm -f $(PREFIX)/bin/tornado
X-	rm -f /var/games/tornado.scores
X+	rm -f ${PREFIX}/share/games/tornado.scores
X 	$(MAKE) -C $(MAN) uninstall
X 	$(MAKE) -C po uninstall
X 
X@@ -84,17 +83,17 @@
X 	fi
X 	install -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 ${PREFIX}/share/games; \
X 	  fi; \
X-	  install tornado.scores /var/games; \
X-	  chmod a+w-x "/var/games/tornado.scores"; \
X+	  install tornado.scores ${PREFIX}/share/games; \
X+	  chmod a+w-x "${PREFIX}/share/games/tornado.scores"; \
X 	fi
X 
X dist: clean
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.2.orig/Makefile.inc ./Makefile.inc
X--- ../tornado-1.2.orig/Makefile.inc	Fri Oct 11 15:03:56 2002
X+++ ./Makefile.inc	Mon Apr 21 14:06:43 2003
X@@ -1,9 +1,8 @@
X CC = gcc
X-MAKE = make
X-LDFLAGS = -lncurses
X+MAKE = gmake
X+LDFLAGS = -L/usr/local/lib -lncurses -lintl
X OBJFILES = main.o draw.o erwin.o network.o scores.o
X-PREFIX = /usr/local
X-LOCALEPATH = /usr/local/share/locale
X-CFLAGS = -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
X+LOCALEPATH = ${PREFIX}/share/locale
X+CFLAGS += -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\"" -I/usr/local/include 
X LOCALES = de
X-MAN = doc/man
X\ No newline at end of file
X+MAN = doc/man
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.2.orig/doc/man/tornado.6.in ./doc/man/tornado.6.in
X--- ../tornado-1.2.orig/doc/man/tornado.6.in	Mon Sep  2 19:18:55 2002
X+++ ./doc/man/tornado.6.in	Mon Apr 21 13:38:47 2003
X@@ -90,11 +90,11 @@
X .P
X PREFIX/man/man6/tornado.6
X .P
X-/var/games/tornado.scores
X+PREFIX/share/games/tornado.scores
X .P
X-/usr/local/share/locale/de/LC_MESSAGES/tornado.mo
X+PREFIX/share/locale/de/LC_MESSAGES/tornado.mo
X .P
X-/usr/local/share/locale/fr/LC_MESSAGES/tornado.mo
X+PREFIX/share/locale/fr/LC_MESSAGES/tornado.mo
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
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: ports/games/tornado/Makefile,v 1.2 2003/02/21 12:05:55 knu Exp $
X#
X
XPORTNAME=	tornado
XPORTVERSION=	1.2
XCATEGORIES=	games
XMASTER_SITES=	http://home.kcore.de/~kiza/linux/tornado/download/
X
XMAINTAINER=	minter at lunenburg.org
XCOMMENT=	A curses-based game of weather destruction
X
XLIB_DEPENDS=    intl:${PORTSDIR}/devel/gettext
X
XMAN6=		tornado.6
XMANLANG=	"" de fr it ru
X
XUSE_GMAKE=      yes
X
X.include <bsd.port.mk>
END-of-tornado/Makefile
echo x - tornado/distinfo
sed 's/^X//' >tornado/distinfo << 'END-of-tornado/distinfo'
XMD5 (tornado-1.2.tar.gz) = 840f85d1db54d50d50190489c8af02d3
END-of-tornado/distinfo
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://home.kcore.de/~kiza/linux/tornado/
X
X--Wade
Xminter at lunenburg.org
END-of-tornado/pkg-descr
echo x - tornado/pkg-plist
sed 's/^X//' >tornado/pkg-plist << 'END-of-tornado/pkg-plist'
Xbin/tornado
X at dirrm share/games
Xshare/games/tornado.scores
Xshare/locale/de/LC_MESSAGES/tornado.mo
Xshare/locale/fr/LC_MESSAGES/tornado.mo
Xshare/locale/pt/LC_MESSAGES/tornado.mo
Xshare/locale/es/LC_MESSAGES/tornado.mo
Xshare/locale/it/LC_MESSAGES/tornado.mo
Xshare/locale/ru/LC_MESSAGES/tornado.mo
END-of-tornado/pkg-plist
exit


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



More information about the freebsd-ports-bugs mailing list