Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/games In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv26888
Added Files: tornado.info tornado.patch Log Message: validated on x86_64-darwin11 --- NEW FILE: tornado.patch --- --- tornado-1.2/Makefile 2002-10-11 12:04:15.000000000 -0700 +++ tornado-1.2-patched/Makefile 2002-10-12 04:33:46.000000000 -0700 @@ -9,7 +9,9 @@ LOCALES = de MAN = doc/man DISTDIR = tornado-$(VERSION) - +SCOREDIR = /var/games +DESTDIR = +MANDIR = $(PREFIX)/man ### ### ### You shouldn't need to edit anything beyond this point ### ### ### @@ -42,25 +44,25 @@ $(MAKE) -C $(MAN) clean install: tornado tornado.6 install-locale-data - @echo "Installing tornado binary in $(PREFIX)/bin..." - if [ ! -d "$(PREFIX)/bin" ]; then \ - mkdir -p $(PREFIX)/bin; \ + @echo "Installing tornado binary in $(DESTDIR)$(PREFIX)/bin..." + if [ ! -d "$(DESTDIR)$(PREFIX)/bin" ]; then \ + mkdir -p $(DESTDIR)$(PREFIX)/bin; \ fi - install -s tornado $(PREFIX)/bin + install -s tornado $(DESTDIR)$(PREFIX)/bin $(MAKE) -C $(MAN) install-man - if [ -f "/var/games/tornado.scores" ]; then \ + if [ -f "$(DESTDIR)$(SCOREDIR)/tornado.scores" ]; then \ echo "Skipping install of the highscores file. File exists."; \ - cat /var/games/tornado.scores | ./convert-highscorefile > score.tmp; \ - mv -f score.tmp /var/games/tornado.scores; \ - chmod a+rw-x "/var/games/tornado.scores"; \ + cat $(SCOREDIR)/tornado.scores | ./convert-highscorefile > score.tmp; \ + mv -f score.tmp $(DESTDIR)$(SCOREDIR)/tornado.scores; \ + chmod a+rw-x "$(DESTDIR)$(SCOREDIR)/tornado.scores"; \ else \ - if [ ! -d "/var/games" ]; then \ - mkdir /var/games; \ + if [ ! -d "$(DESTDIR)$(SCOREDIR)" ]; then \ + mkdir -p $(DESTDIR)$(SCOREDIR); \ fi; \ - install tornado.scores /var/games; \ - chmod a+w-x "/var/games/tornado.scores"; \ + install tornado.scores $(DESTDIR)$(SCOREDIR); \ + chmod a+w-x "$(DESTDIR)$(SCOREDIR)/tornado.scores"; \ fi install-locale-data: @@ -75,26 +77,26 @@ tornado-no-locales: tornado tornado.6 tornado-no-locales-install: tornado tornado.6 - if [ ! -d "$(PREFIX)/bin" ]; then \ - mkdir -p $(PREFIX)/bin; \ + if [ ! -d "$(DESTDIR)$(PREFIX)/bin" ]; then \ + mkdir -p $(DESTDIR)$(PREFIX)/bin; \ fi - install -s tornado $(PREFIX)/bin - if [ ! -d "$(PREFIX)/man/man6" ]; then \ - mkdir -p $(PREFIX)/man/man6; \ + install -s tornado $(DESTDIR)$(PREFIX)/bin + if [ ! -d "$(DESTDIR)$(MANDIR)/man6" ]; then \ + mkdir -p $(DESTDIR)$(MANDIR)/man6; \ fi - install -m 0644 tornado.6 $(PREFIX)/man/man6 + install -m 0644 tornado.6 $(MANDIR)/man6 - if [ -f "/var/games/tornado.scores" ]; then \ + if [ -f "$(DESTDIR)$(SCOREDIR)/tornado.scores" ]; then \ echo "Skipping install of the highscores file. File exists."; \ - cat /var/games/tornado.scores | ./convert-highscorefile > score.tmp; \ - mv -f score.tmp /var/games/tornado.scores; \ - chmod a+rw-x "/var/games/tornado.scores"; \ + cat $(DESTDIR)$(SCOREDIR)/tornado.scores | ./convert-highscorefile > score.tmp; \ + mv -f score.tmp $(DESTDIR)$(SCOREDIR)/tornado.scores; \ + chmod a+rw-x "$(DESTDIR)$(SCOREDIR)/tornado.scores"; \ else \ - if [ ! -d "/var/games" ]; then \ - mkdir /var/games; \ + if [ ! -d "$(DESTDIR)$(SCOREDIR)" ]; then \ + mkdir -p $(DESTDIR)$(SCOREDIR); \ fi; \ - install tornado.scores /var/games; \ - chmod a+w-x "/var/games/tornado.scores"; \ + install tornado.scores $(DESTDIR)$(SCOREDIR); \ + chmod a+w-x "$(DESTDIR)$(SCOREDIR)/tornado.scores"; \ fi dist: clean --- tornado-1.2/network.c 2002-09-09 10:07:15.000000000 -0700 +++ tornado-1.2-patched/network.c 2002-10-12 04:09:44.000000000 -0700 @@ -31,6 +31,10 @@ #include <netinet/tcp.h> #include <arpa/inet.h> +#ifndef socklen_t +typedef int socklen_t; +#endif + /* local variables */ static int socketfd; /* active socket file descriptor */ static int const one = 1; /* for the stupid setsockopt(7) function */ --- tornado-1.2/doc/man/Makefile 2002-10-11 15:11:29.000000000 -0700 +++ tornado-1.2-patched/doc/man/Makefile 2002-10-12 04:34:02.000000000 -0700 @@ -15,10 +15,10 @@ install-man: tornado.6 @echo "Installing manpage ..." - if [ ! -d "$(PREFIX)/man/man6" ]; then \ - mkdir -p $(PREFIX)/man/man6; \ + if [ ! -d "$(DESTDIR)$(MANDIR)/man6" ]; then \ + mkdir -p $(DESTDIR)$(MANDIR)/man6; \ fi - install -m 0644 tornado.6 $(PREFIX)/man/man6 + install -m 0644 tornado.6 $(DESTDIR)$(MANDIR)/man6 $(MAKE) -C de install-man $(MAKE) -C fr install-man @@ -36,6 +36,6 @@ $(MAKE) -C fr clean uninstall: - rm -f $(PREFIX)/man/man6/tornado.6 + rm -f $(DESTDIR)$(MANDIR)/man6/tornado.6 $(MAKE) -C de uninstall $(MAKE) -C fr uninstall --- tornado-1.2/doc/man/fr/Makefile 2002-10-11 15:09:52.000000000 -0700 +++ tornado-1.2-patched/doc/man/fr/Makefile 2002-10-12 04:35:13.000000000 -0700 @@ -9,13 +9,13 @@ install-man: tornado.6 @echo "Installing French manpage ..." - if [ ! -d "$(PREFIX)/man/fr/man6" ]; then \ - mkdir -p $(PREFIX)/man/fr/man6; \ + if [ ! -d "$(DESTDIR)$(MANDIR)/fr/man6" ]; then \ + mkdir -p $(DESTDIR)$(MANDIR)/fr/man6; \ fi - install -m 0644 tornado.6 $(PREFIX)/man/fr/man6 + install -m 0644 tornado.6 $(DESTDIR)$(MANDIR)/fr/man6 clean: rm -f tornado.6 uninstall: - rm -f $(PREFIX)/man/fr/man6/tornado.6 + rm -f $(MANDIR)/fr/man6/tornado.6 --- tornado-1.2/doc/man/it/Makefile 2002-01-30 10:36:29.000000000 -0800 +++ tornado-1.2-patched/doc/man/it/Makefile 2002-10-12 04:35:39.000000000 -0700 @@ -9,13 +9,13 @@ install-man: tornado.6 @echo "Installing Italian manpage ..." - if [ ! -d "$(PREFIX)/man/it/man6" ]; then \ - mkdir -p $(PREFIX)/man/it/man6; \ + if [ ! -d "$(DESTDIR)$(MANDIR)/it/man6" ]; then \ + mkdir -p $(DESTDIR)$(MANDIR)/it/man6; \ fi - install -m 0644 tornado.6 $(PREFIX)/man/it/man6 + install -m 0644 tornado.6 $(DESTDIR)$(MANDIR)/it/man6 clean: rm -f tornado.6 uninstall: - rm -f $(PREFIX)/man/it/man6/tornado.6 + rm -f $(DESTDIR)$(MANDIR)/it/man6/tornado.6 --- tornado-1.2-patched/doc/man/de/Makefile.orig Sun Apr 25 16:05:15 2004 +++ tornado-1.2-patched/doc/man/de/Makefile Sun Apr 25 16:05:43 2004 @@ -9,13 +9,13 @@ install-man: tornado.6 @echo "Installing german manpage ..." - if [ ! -d "$(PREFIX)/man/de/man6" ]; then \ - mkdir -p $(PREFIX)/man/de/man6; \ + if [ ! -d "$(DESTDIR)$(MANDIR)/man/de/man6" ]; then \ + mkdir -p $(DESTDIR)$(MANDIR)/man/de/man6; \ fi - install -m 0644 tornado.6 $(PREFIX)/man/de/man6 + install -m 0644 tornado.6 $(DESTDIR)$(MANDIR)/man/de/man6 clean: rm -f tornado.6 uninstall: - rm -f $(PREFIX)/man/de/man6/tornado.6 + rm -f $(DESTDIR)$(MANDIR)/man/de/man6/tornado.6 --- tornado-1.2-patched/doc/man/no/Makefile.orig Sun Apr 25 16:06:27 2004 +++ tornado-1.2-patched/doc/man/no/Makefile Sun Apr 25 16:07:19 2004 @@ -9,13 +9,13 @@ install-man: tornado.6 @echo "Installing Norwegian manpage ..." - if [ ! -d "$(PREFIX)/man/no/man6" ]; then \ - mkdir -p $(PREFIX)/man/no/man6; \ + if [ ! -d "$(DESTDIR)$(MANDIR)/man/no/man6" ]; then \ + mkdir -p $(DESTDIR)$(MANDIR)/man/no/man6; \ fi - install -m 0644 tornado.6 $(PREFIX)/man/no/man6 + install -m 0644 tornado.6 $(DESTDIR)$(MANDIR)/man/no/man6 clean: rm -f tornado.6 uninstall: - rm -f $(PREFIX)/man/no/man6/tornado.6 + rm -f $(DESTDIR)$(MANDIR)/man/no/man6/tornado.6 --- tornado-1.2-patched/doc/man/ru/Makefile.orig Sun Apr 25 16:06:20 2004 +++ tornado-1.2-patched/doc/man/ru/Makefile Sun Apr 25 16:06:54 2004 @@ -9,13 +9,13 @@ install-man: tornado.6 @echo "Installing Russian manpage ..." - if [ ! -d "$(PREFIX)/man/ru/man6" ]; then \ - mkdir -p $(PREFIX)/man/ru/man6; \ + if [ ! -d "$(DESTDIR)$(MANDIR)/man/ru/man6" ]; then \ + mkdir -p $(DESTDIR)$(MANDIR)/man/ru/man6; \ fi - install -m 0644 tornado.6 $(PREFIX)/man/ru/man6 + install -m 0644 tornado.6 $(DESTDIR)$(MANDIR)/man/ru/man6 clean: rm -f tornado.6 uninstall: - rm -f $(PREFIX)/man/ru/man6/tornado.6 + rm -f $(DESTDIR)$(MANDIR)/man/ru/man6/tornado.6 --- tornado-1.2-patched/doc/man/nl/Makefile.orig Sun Apr 25 16:06:20 2004 +++ tornado-1.2-patched/doc/man/nl/Makefile Sun Apr 25 16:06:54 2004 @@ -9,13 +9,13 @@ install-man: tornado.6 @echo "Installing Dutch manpage ..." - if [ ! -d "$(PREFIX)/man/nl/man6" ]; then \ - mkdir -p $(PREFIX)/man/nl/man6; \ + if [ ! -d "$(DESTDIR)$(MANDIR)/man/nl/man6" ]; then \ + mkdir -p $(DESTDIR)$(MANDIR)/man/nl/man6; \ fi - install -m 0644 tornado.6 $(PREFIX)/man/nl/man6 + install -m 0644 tornado.6 $(DESTDIR)$(MANDIR)/man/nl/man6 clean: rm -f tornado.6 uninstall: - rm -f $(PREFIX)/man/nl/man6/tornado.6 + rm -f $(DESTDIR)$(MANDIR)/man/nl/man6/tornado.6 --- tornado-1.2/network.c.bak 2005-04-04 01:49:11.000000000 -0700 +++ tornado-1.2/network.c 2005-04-04 01:49:23.000000000 -0700 @@ -31,10 +31,6 @@ #include <netinet/tcp.h> #include <arpa/inet.h> -#ifndef socklen_t -typedef int socklen_t; -#endif - /* local variables */ static int socketfd; /* active socket file descriptor */ static int const one = 1; /* for the stupid setsockopt(7) function */ --- tornado-1.3/po/Makefile 2003-06-19 04:42:15.000000000 -0700 +++ tornado-1.3/po/Makefile 2005-06-09 19:31:35.000000000 -0700 @@ -1,5 +1,5 @@ include ../Makefile.inc -VERSION = `echo VERSION | cpp -P -include ../version.h | tr -d '" ' | grep -v '^$$'` +VERSION = `echo VERSION | cpp3 -P -include ../version.h | tr -d '" ' | grep -v '^$$'` all: locales @@ -14,38 +14,38 @@ msgfmt no.po -o no.mo install-locale-data: de.mo fr.mo pt.mo es.mo it.mo ru.mo nl.mo no.po - if [ ! -d "$(LOCALEPATH)/de/LC_MESSAGES/" ]; then \ - mkdir -p $(LOCALEPATH)/de/LC_MESSAGES/; \ + if [ ! -d "$(DESTDIR)$(LOCALEPATH)/de/LC_MESSAGES/" ]; then \ + mkdir -p $(DESTDIR)$(LOCALEPATH)/de/LC_MESSAGES/; \ fi - install -m 0644 de.mo $(LOCALEPATH)/de/LC_MESSAGES/tornado.mo - if [ ! -d "$(LOCALEPATH)/fr/LC_MESSAGES/" ]; then \ - mkdir -p $(LOCALEPATH)/fr/LC_MESSAGES/; \ - fi - install -m 0644 fr.mo $(LOCALEPATH)/fr/LC_MESSAGES/tornado.mo - if [ ! -d "$(LOCALEPATH)/pt/LC_MESSAGES/" ]; then \ - mkdir -p $(LOCALEPATH)/pt/LC_MESSAGES/; \ - fi - install -m 0644 pt.mo $(LOCALEPATH)/pt/LC_MESSAGES/tornado.mo - if [ ! -d "$(LOCALEPATH)/es/LC_MESSAGES/" ]; then \ - mkdir -p $(LOCALEPATH)/es/LC_MESSAGES/; \ - fi - install -m 0644 es.mo $(LOCALEPATH)/es/LC_MESSAGES/tornado.mo - if [ ! -d "$(LOCALEPATH)/it/LC_MESSAGES/" ]; then \ - mkdir -p $(LOCALEPATH)/it/LC_MESSAGES/; \ - fi - install -m 0644 it.mo $(LOCALEPATH)/it/LC_MESSAGES/tornado.mo - if [ ! -d "$(LOCALEPATH)/ru/LC_MESSAGES/" ]; then \ - mkdir -p $(LOCALEPATH)/ru/LC_MESSAGES/; \ - fi - install -m 0644 ru.mo $(LOCALEPATH)/ru/LC_MESSAGES/tornado.mo - if [ ! -d "$(LOCALEPATH)/nl/LC_MESSAGES/" ]; then \ - mkdir -p $(LOCALEPATH)/nl/LC_MESSAGES/; \ - fi - install -m 0644 nl.mo $(LOCALEPATH)/nl/LC_MESSAGES/tornado.mo - if [ ! -d "$(LOCALEPATH)/no/LC_MESSAGES/" ]; then \ - mkdir -p $(LOCALEPATH)/no/LC_MESSAGES/; \ + install -m 0644 de.mo $(DESTDIR)$(LOCALEPATH)/de/LC_MESSAGES/tornado.mo + if [ ! -d "$(DESTDIR)$(LOCALEPATH)/fr/LC_MESSAGES/" ]; then \ + mkdir -p $(DESTDIR)$(LOCALEPATH)/fr/LC_MESSAGES/; \ + fi + install -m 0644 fr.mo $(DESTDIR)$(LOCALEPATH)/fr/LC_MESSAGES/tornado.mo + if [ ! -d "$(DESTDIR)$(LOCALEPATH)/pt/LC_MESSAGES/" ]; then \ + mkdir -p $(DESTDIR)$(LOCALEPATH)/pt/LC_MESSAGES/; \ + fi + install -m 0644 pt.mo $(DESTDIR)$(LOCALEPATH)/pt/LC_MESSAGES/tornado.mo + if [ ! -d "$(DESTDIR)$(LOCALEPATH)/es/LC_MESSAGES/" ]; then \ + mkdir -p $(DESTDIR)$(LOCALEPATH)/es/LC_MESSAGES/; \ + fi + install -m 0644 es.mo $(DESTDIR)$(LOCALEPATH)/es/LC_MESSAGES/tornado.mo + if [ ! -d "$(DESTDIR)$(LOCALEPATH)/it/LC_MESSAGES/" ]; then \ + mkdir -p $(DESTDIR)$(LOCALEPATH)/it/LC_MESSAGES/; \ + fi + install -m 0644 it.mo $(DESTDIR)$(LOCALEPATH)/it/LC_MESSAGES/tornado.mo + if [ ! -d "$(DESTDIR)$(LOCALEPATH)/ru/LC_MESSAGES/" ]; then \ + mkdir -p $(DESTDIR)$(LOCALEPATH)/ru/LC_MESSAGES/; \ + fi + install -m 0644 ru.mo $(DESTDIR)$(LOCALEPATH)/ru/LC_MESSAGES/tornado.mo + if [ ! -d "$(DESTDIR)$(LOCALEPATH)/nl/LC_MESSAGES/" ]; then \ + mkdir -p $(DESTDIR)$(LOCALEPATH)/nl/LC_MESSAGES/; \ + fi + install -m 0644 nl.mo $(DESTDIR)$(LOCALEPATH)/nl/LC_MESSAGES/tornado.mo + if [ ! -d "$(DESTDIR)$(LOCALEPATH)/no/LC_MESSAGES/" ]; then \ + mkdir -p $(DESTDIR)$(LOCALEPATH)/no/LC_MESSAGES/; \ fi - install -m 0644 no.mo $(LOCALEPATH)/no/LC_MESSAGES/tornado.mo + install -m 0644 no.mo $(DESTDIR)$(LOCALEPATH)/no/LC_MESSAGES/tornado.mo clean: rm -f *.mo --- NEW FILE: tornado.info --- Package: tornado Version: 1.3 Revision: 1014 PatchFile: %n.patch PatchFile-MD5: 1c764f1b7c3e1b906150de90521ad461 PatchScript: << %{default_script} find . -name "Makefile" | xargs perl -pi.bak -e "s/ cpp / cpp3 /g" << Source: http://home.kcore.de/~kiza/software/%n/download/%n-%v.tar.gz #Source: http://www.lionking.org/~kiza/linux/%n/%n-%v.tar.gz Source-MD5: 149adcac75cb052c361d175bfc6d9f0f Depends: passwd-games (>= 20130103), libgettext8-shlibs, libncurses5-shlibs (>= 5.4-20041023-1006) BuildDepends: libgettext8-dev, gettext-bin, gettext-tools, libncurses5 (>= 5.4-20041023-1006), fink (>= 0.24.12) CompileScript: << make PREFIX=%p LOCALEPATH=%p/share/locale LDFLAGS="-L%p/lib -lncurses -lintl" << InstallScript: << #!/bin/sh -ev make install DESTDIR=%d PREFIX=%p LOCALEPATH=%p/share/locale SCOREDIR=%p/var/games MANDIR=%p/share/man << PostInstScript: << chown -R games:games %p/bin/%n %p/var/games/%n.scores chmod 2101 %p/bin/%n << ConfFiles: %p/var/games/tornado.scores DocFiles: AUTHOR COPYING CREDITS Changelog INSTALL README TODO Description: Networkable text-based weather destruction DescDetail: << Clone of the original C64 game. The goal of the game is to destroy the opponent's house with certain weather phenomenon: rain, snow, hail, lightning and tornado. The game can be played together (two players), against the computer (or two computer players against each other) or over a TCP connection. For a more detailed description of the game see tornado's manpage. << DescUsage: << If you get "bad MD5" please choose option 2, they change the tarball often. << License: GPL Maintainer: Ben Hines <bhi...@alumni.ucsd.edu> Homepage: http://www.lionking.org/~kiza/linux/tornado/ ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs