debian/0000755000000000000000000000000011600615114007161 5ustar debian/compat0000644000000000000000000000000211551011124010353 0ustar 8 debian/netrek-client-cow.60000644000000000000000000000670611375730375012633 0ustar .TH NETREK-CLIENT-COW 6 "July 2008" .SH NAME COW \- manual page for NETREK-CLIENT-COW 3.2.7 .SH SYNOPSIS .B netrek-client-cow [\fIoptions\fR] [\fIdisplay-name\fR] .SH DESCRIPTION This is a client for the multi-player game of Netrek. Netrek is the probably the first video game which can accurately be described as a "sport." It has more in common with basketball than with arcade games or Quake. Its vast and expanding array of tactics and strategies allows for many different play styles; the best players are the ones who think fastest, not necessarily the ones who twitch most effectively. It can be enjoyed as a twitch game, since the dogfighting system is extremely robust, but the things that really set Netrek apart from other video games are the team and strategic aspects. Team play is dynamic and varied, with roles constantly changing as the game state changes. Strategic play is explored in organized league games; after 6+ years of league play, strategies are still being invented and refined. The game was created in 1988, and still has players, including some people who have been playing for nearly as long as the game has existed. To start the client program, run netrek-client-cow, and a list of servers will be displayed. Homepage: http://www.netrek.org .SH OPTIONS .TP [\-h servername] Bypasses the server list and connects directly to a specific server. .TP [\-p port number] Specify a port to connect to, the default is 2592. .TP [\-r defaultsfile] Specify a defaults file containing cusstom settings. See XTREKRC. .TP [\-s socketnum] Specify listen socket port for manual start, used in debugging. .TP [\-u] Show usage .TP [\-A] Automatic login, character password .TP [\-C] Automatic login, character name .TP [\-i] ignore SIGSEGV and SIGBUS .TP [\-U port] Specify client UDP or TCP port (useful for some firewalls) .TP [\-o] use old\-style binary verification) .TP [\-R] use RSA binary verification .TP [\-P] Log server packets, repeat for increased information .TP [\-c] to just do ck_players on the server .TP [\-f filename] Record game into 'filename' .TP [\-F filename] Plays the recorded game from 'filename' .TP [\-l filename] Record messages into 'filename' .TP [\-m] list servers, using UDP/IP to multiple metaservers .TP [\-M] list servers, using TCP/IP to single metaserver .TP [\-k] list servers from cache generated by \fB\-M\fR .TP [\-n] use nearest colors in shared colormap .TP [\-L] upgrade to Latest version (requires running netscape) .TP [\-V] Version info and release notes (requires running netscape) .TP [\-B] submit a Bug report (requires running netscape) .TP [\-v] display client version info .PP .SH AUTHORS Partial list of authors Chris Guthrie, Kevin P. Smith, Scott Silvey, Eric mehlhaff, Kevin Powell, Nick Trown, Jeff Nelson, Kurt Siegl, Lars Bernhardsson, Nathan Doss, Michael Kantner, Dave Ahn, James Cameron, and Bob Tanner. .TP If your name is missing, please contact quozl@us.netrek.org. .PP .SH "REPORTING BUGS" Send mail to netrek-dev@lists.netrek.org ... best if you subscribe first. Or contact quozl@us.netrek.org directly. .PP .SH COPYRIGHT Copyright notifications from the source code: Copyright \(co 1986 Chris Guthrie Copyright \(co 1989 Kevin P. Smith, Scott Silvey Copyright \(co 1991 Eric mehlhaff Copyright \(co 1993 Kevin Powell, Nick Trown, Jeff Nelson, Kurt Siegl Copyright \(co 1993,1996 Lars Bernhardsson Copyright \(co 1994 Nathan Doss, Michael Kantner Please contact quozl@us.netrek.org if your name is missing from this list! debian/control0000644000000000000000000000330011562473366010602 0ustar Source: netrek-client-cow Section: games Priority: optional Maintainer: Debian Games Team Uploaders: Barry deFreese Build-Depends: debhelper (>= 8), autotools-dev (>= 20100122.1), dpkg-dev (>= 1.15.7~), hardening-includes, libsdl1.2-dev, libsdl-mixer1.2-dev, libgmp-dev, libxt-dev, libxxf86vm-dev, libimlib2-dev Standards-Version: 3.9.2 Homepage: http://www.netrek.org Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/netrek-client-cow/ Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/netrek-client-cow/?op=log Package: netrek-client-cow Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: client for netrek online game This is a client for the multi-player game of Netrek. . Netrek is probably the first video game which can accurately be described as a "sport". It has more in common with basketball than with arcade games or Quake. Its vast and expanding array of tactics and strategies allows for many different play styles; the best players are the ones who think fastest, not necessarily the ones who twitch most effectively. It can be enjoyed as a twitch game, since the dogfighting system is extremely robust, but the things that really set Netrek apart from other video games are the team and strategic aspects. Team play is dynamic and varied, with roles constantly changing as the game state changes. Strategic play is explored in organized league games; after 6+ years of league play, strategies are still being invented and refined. . The game was created in 1988, and still has players, including some people who have been playing for nearly as long as the game has existed. debian/docs0000644000000000000000000000006011375730375010050 0ustar README README.3.01 TODO CHANGES XTREKRC.example debian/manpages0000644000000000000000000000003311551011124010667 0ustar debian/netrek-client-cow.6 debian/changelog0000644000000000000000000000656411600614336011053 0ustar netrek-client-cow (3.3.0-3) unstable; urgency=low * Team upload. * Force --with-gmp, fixes FTBFS on ia64 and sparc. -- Evgeni Golov Thu, 23 Jun 2011 12:42:15 +0200 netrek-client-cow (3.3.0-2) unstable; urgency=low * Team upload. [ Barry deFreese ] * Some packaging changes suggested by upstream. + Update package description. + Update debian/netrek-client-cow.6. * Bump Standards Version to 3.8.3. (No changes needed). [ Peter Pentchev ] * Add the 001-configure-gmp-version patch to fix the check for libgmp versions larger than 1. Closes: #620528 * Convert to the 3.0 (quilt) source format: - add the 002-make-reallyclean patch to really clean up after the build. - drop the build dependency on quilt - drop the quilt invocations from the rules file * Add the 003-typos patch to fix some typographical and grammatical errors. * Bump Standards-Version to 3.9.2 with no changes. * Let the build system honor CPPFLAGS, CFLAGS and LDFLAGS - export them in the rules file - add the 004-honor-flags patch * Minimize the rules file using debhelper override targets. * Use dh --with autotools_dev to handle config.guess and config.sub. * Bump the debhelper compatibility level to 8 with no changes. * Depend on libgmp-dev instead of libgmp3-dev. * Use dpkg-buildflags to obtain the default values for CPPFLAGS, CFLAGS and LDFLAGS. * Pass --as-needed to the linker to avoid unneeded dependencies. * Convert the copyright file to the latest DEP 5 candidate format and add my copyright notice. * Build with -Werror if the "werror" build option is specified. * Harden the build unless the "nohardening" build option is specified. * Remove the 001_desktop_file patch that has not been applied ever since Barry deFreese's fix in rev. 9851. [ Evgeni Golov ] * Fix some typos in the Description. Closes: #624019 -- Peter Pentchev Wed, 11 May 2011 14:13:39 +0300 netrek-client-cow (3.3.0-1) unstable; urgency=low [ Barry deFreese ] * New upstream release. * Install upstream desktop file. (Closes: #522587). * Add quilt patch system. -- Barry deFreese Tue, 16 Jun 2009 15:27:20 -0400 netrek-client-cow (3.2.10-1) unstable; urgency=low [ Barry deFreese ] * Move maintainer to Debian Games Team. (It should have been anyway). * New upstream release. + Fixes pointer coversions and other warnings. (Closes: #512463). * Change make install call. Remove BINDIR, add prefix=/usr. * Minor copyright syntax changes. * Bump Standards Version to 3.8.1. (No changes needed). -- Barry deFreese Wed, 18 Mar 2009 10:17:31 -0400 netrek-client-cow (3.2.9-1) unstable; urgency=low * New upstream release. + Resolve license issue. -- Barry deFreese Tue, 13 Jan 2009 14:30:56 -0500 netrek-client-cow (3.2.8.dak-1) unstable; urgency=low [ Barry deFreese ] * Move from section nonfree/x11 to proper games. + Should have never been in nonfree. + Repack orig.tar.gz to give new upstream version. * Add VCS tags. * Clean up long package description. -- Barry deFreese Tue, 23 Dec 2008 11:29:24 -0500 netrek-client-cow (3.2.8-1) unstable; urgency=low * Initial release (Closes: #500630). -- Barry deFreese Fri, 26 Sep 2008 21:44:49 -0400 debian/install0000644000000000000000000000011311375730375010565 0ustar netrek-client-cow.desktop usr/share/applications cow.png usr/share/pixmaps debian/copyright0000644000000000000000000001366511562473366011151 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=173 Upstream-Name: Netrek COW client Upstream-Contact: cow@netrek.org Source: http://sourceforge.net/project/showfiles.php?group_id=968 Files: * Copyright: Copyright (C) 1986 Chris Guthrie Copyright (C) 1989 Kevin P. Smith, Scott Silvey Copyright (C) 1991 Eric mehlhaff Copyright (C) 1993 Kevin Powell, Nick Trown, Jeff Nelson, Kurt Siegl Copyright (C) 1993,1996 Lars Bernhardsson Copyright (C) 1994 Nathan Doss, Michael Kantner Copyright (C) 1983, 1993 The Regents of the University of California License: netrek Copyright (C) 1986 Chris Guthrie . Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. . ----------------------------------------------------------- Copyright 1989 Kevin P. Smith Scott Silvey . ditto. . ----------------------------------------------------------- Copyright 1993 . As above. Use at your own risk. . COW (BRM) authors (including but not limitted to: Kevin Powell Nick Trown Jeff Nelson Kurt Siegl) ----------------------------------------------------------- Copyright 1994 . As above. . Hockey Lines added to COW by Nathan Doss Michael Kantner Comment: The upstream authors of the Netrek COW client are: Chris Guthrie Kevin P. Smith Scott Silvey Eric mehlhaff Kevin Powell Nick Trown Jeff Nelson Kurt Siegl Lars Bernhardsson Nathan Doss Michael Kantner Files: tools.c: Copyright: 1993 Kurt Siegl <007@netrek.org> License: netrek-tools copyright 1993 Kurt Siegl <007@netrek.org> Free to use, hack, etc. Just keep these credits here. Use of this code may be dangerous to your health and/or system. Its use is at your own risk. I assume no responsibility for damages, real, potential, or imagined, resulting from the use of it. Files: dashboard.c dashboard3.c Copyright: (C) 1993 1996, Lars Bernhardsson (lab@mtek.chalmers.se) License: BSD-2 Copyright (C) 1993 1996, Lars Bernhardsson (lab@mtek.chalmers.se) All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: random.c setstate.c Copyright: (c) 1983, 1993 The Regents of the University of California. License: BSD-4 Copyright (c) 1983, 1993 The Regents of the University of California. All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the University of California, Berkeley and its contributors. 4. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: (C) 2008, 2009 Barry deFreese (C) 2011 Peter Pentchev License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License; either version 2 of the License, or (at your option) any later version. . On Debian systems, the full text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. debian/patches/0000755000000000000000000000000011600614763010621 5ustar debian/patches/004-honor-flags.patch0000644000000000000000000000464311551011124014354 0ustar Description: Honor CPPFLAGS, CFLAGS and LDFLAGS. Forwarded: no Author: Peter Pentchev Last-Update: 2011-04-11 Index: b/system.mk.in =================================================================== --- a/system.mk.in +++ b/system.mk.in @@ -112,16 +112,18 @@ SHARED = $(SL_CFLAGS) INCDIRS = $(MPINC) $(INCS) -CFLAGS = $(OPT) $(EXTRACFLAGS) $(RSA_FLAGS) $(INCDIRS) -LFLAGS = -g $(EXTRALINKFLAGS) +CFLAGS ?= $(OPT) +CFLAGS += $(EXTRACFLAGS) $(RSA_FLAGS) $(INCDIRS) +LDFLAGS ?= -g +LDFLAGS += $(EXTRALINKFLAGS) LIBRARIES = $(LMP) $(LIBS) $(EXTRALIBS) $(SDL_LIBS) $(SDL_MIXER_LIBS) $(XXF86VM_LIBS) $(IMLIB2_LIBS) netrek-client-cow: $(RSAOBJ) $(PMAKE) null $(ROBJ) $(MAINOBJ) $(INPUTOBJ) $(X11OBJ) $(WIN32OBJ) $(RANDOMOBJ) cflags.c - $(CC) $(LFLAGS) -o netrek-client-cow $(ROBJ) $(RSAOBJ) $(INPUTOBJ) \ + $(CC) $(LDFLAGS) -o netrek-client-cow $(ROBJ) $(RSAOBJ) $(INPUTOBJ) \ $(MAINOBJ) $(X11OBJ) $(WIN32OBJ) $(RANDOMOBJ) $(LIBRARIES) netrek.shared: done.libcow $(MAINOBJ) $(COWAPI) - $(CC) $(LFLAGS) $(MAINOBJ) -L. -lcow $(LIBS) -o netrek.shared + $(CC) $(LDFLAGS) $(MAINOBJ) -L. -lcow $(LIBS) -o netrek.shared done.libcow: $(PMAKE) $(ROBJ) $(RSAOBJ) $(INPUTOBJ) $(X11OBJ) $(WIN32OBJ) $(RANDOMOBJ) $(CC) $(ROBJ) $(RSAOBJ) $(INPUTOBJ) \ @@ -142,26 +144,26 @@ $(MAKE) newkey mkkey: mkkey.c $(RANDOMOBJ) defs.h - $(CC) $(CFLAGS) $(MPINC) $(MPLIB) -o mkkey mkkey.c $(RANDOMOBJ) $(LIBRARIES) + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(MPINC) $(MPLIB) -o mkkey mkkey.c $(RANDOMOBJ) $(LIBRARIES) randomize: randomize.c $(RANDOMOBJ) defs.h - $(CC) $(OPT) -o randomize randomize.c $(RANDOMOBJ) $(LIBRARIES) + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o randomize randomize.c $(RANDOMOBJ) $(LIBRARIES) sound.o: sound.c - $(CC) $(SDL_CFLAGS) -c sound.c + $(CC) $(CPPFLAGS) $(CFLAGS) $(SDL_CFLAGS) -c sound.c random.o: random.c - $(CC) -c -O random.c + $(CC) $(CPPFLAGS) $(CFLAGS) -c random.c strdup.o: strdup.c - $(CC) -c -O strdup.c + $(CC) $(CPPFLAGS) $(CFLAGS) -c strdup.c cflags.c: mkcflags - ./mkcflags "$(CC) $(CFLAGS)" "$(ARCH)" > cflags.c + ./mkcflags "$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)" "$(ARCH)" > cflags.c echo char cwho[]=$(CWHO)\; >> cflags.c mkcflags: mkcflags.c system.mk null patchlevel.h version.h - $(CC) $(CFLAGS) -o mkcflags mkcflags.c $(LIBRARIES) + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o mkcflags mkcflags.c $(LIBRARIES) tags: $(RSRC) $(RSASRC) ctags $(RSRC) $(RSASRC) $(INCLUDES) debian/patches/003-typos.patch0000644000000000000000000002300011551011124013276 0ustar Description: Fix some typographical and grammatical errors. Forwarded: no Author: Peter Pentchev Last-Update: 2011-04-08 Index: b/short.c =================================================================== --- a/short.c +++ b/short.c @@ -1458,7 +1458,7 @@ arg4 = (unsigned char) packet->argument2; break; case BEAM_U_TEXT: - sprintf(buf, "Transfering ground units. (%d/%d) Starbase %s has %d armies left", + sprintf(buf, "Transferring ground units. (%d/%d) Starbase %s has %d armies left", (unsigned char) arg3, (unsigned char) arg4, players[(unsigned char) packet->argument].p_name, (unsigned char) packet->argument2); Index: b/COW.DOC =================================================================== --- a/COW.DOC +++ b/COW.DOC @@ -47,7 +47,7 @@ This document describes the COW client, its capabilities, and the client's features. COW started as the successor of the BRM client after release 3. BRM started as a merger of the Berkeley client with Rick's Moo -client. Since then, all three clients have developed fairly independant of one +client. Since then, all three clients have developed fairly independent of one other. Familiarity with netrek is presumed throughout this document. Please consult the newbie manual for information on the game itself. @@ -98,7 +98,7 @@ This section will describe COW features that are selected from the command line when the client is invoked. Selecting "-u" for usage or any invalid -option will provide a brief summary of this section ( -help will work too ). +option will provide a brief summary of this section (-help will work too). 3.1.1 SERVER SELECTION @@ -117,7 +117,7 @@ The "-r defaultsfile" option will allow the user to select a defaults file other than .xtrekrc. The defaults file contains all of the user selectable -defaults ( please see Section 4.0 for more information on .xtrekrc ). Using +defaults (please see Section 4.0 for more information on .xtrekrc). Using this option, two users can run netrek from the same userid / account and still have unique defaults files. @@ -149,7 +149,7 @@ 3.1.7 AUTOLOGIN OPTION - The "-A passowrd" allows the client to automatically enter the specified + The "-A password" allows the client to automatically enter the specified character password without having to prompt the user. This option is normally used with the "-C character_name" option, which automatically enters the character name. The "-C" option must be followed by a character name string. @@ -226,7 +226,7 @@ -P log packets: generally don't want to use this - -t (sting of chars) title- the name of the window the client makes + -t (string of chars) title - the name of the window the client makes -D debug mode @@ -397,7 +397,7 @@ Since this is a first pass, I'm looking for more input on what would make them better. Here are some of my comments: -1) Lines are hard coded into the software. They should be +1) Lines are hardcoded into the software. They should be based upon planet location, so the hockey gods can move the planets around. @@ -412,20 +412,20 @@ *** Shell escape tool You may execute any Unix shell comand within the client. Read your mail now within the client. To do so, just send a message to the destination -"!" and you get a shell prompt. Enter the comand and it's output will +"!" and you get a shell prompt. Enter the comand and its output will be displayed in the tools window. Works also with macros to "!". You may disable it in the .xtrekrc for security reasons with shellTools: off CAUTION: The client will be blocked for the time the comand is executed. Also some programs suspend the client if it is started in the background. *** Fast quit -Hitting 'q' will quit the client out without ever going back to the +Hitting 'q' will quit the client without ever going back to the team selection window, the normal 'Q' still goes back to the team selection window. *** Reread defaults file You can reread your netrek default file by hitting '&', it is also -possible to enter a new default file name at anytime by sending +possible to enter a new default file name at any time by sending a message to 'M' which contains the file name. *** Galactic rotation @@ -461,7 +461,7 @@ borg, AFAIK.) For instance: COW 3.00pl0, linux, 03/03/98, RMCSE365AmTsr The letters in the fourth field indicate which #ifdefs were specified -at compile time. Possiblities are: +at compile time. Possibilities are: R: RSA supported M: Macros D: Debugging information @@ -478,11 +478,11 @@ *** Improved help window: Basically, this was done to show what keys were actually mapped to what functions. Every key function has a line in - the help window. Her'es a sample line: + the help window. Here's a sample line: s gb Toggle shields ||\\_ The 'b' key has been mapped to toggle shields - || \_ The 'g' key has also been mapped toggle to the shields + || \_ The 'g' key has also been mapped to toggle shields |\____This space is always there, as a separator. \_____This is the default key for this function, and the hook that you use when defining things to this function. I.e. to set the 'g' @@ -502,7 +502,7 @@ The documentation window is used to view documentation while actually playing. In order to do this you must either have the COW.DOC file in the directory you are running the client from or you must set the -documentation resource value with the full path to the file with the +documentation resource value to the full path to the file with the documentation. Control-y brings this window up. Also available via shift-O option menu under "info." @@ -517,7 +517,7 @@ The xtrekrc file window is used to view your current xtrekrc file online. It is currently very stupid in that if you used the command line option '-r' to specify your xtrekrc file, this viewer will not find -it (it currently hard wired for $HOME/.xtrekrc:( Control-X (that +it (it's currently hardwired for $HOME/.xtrekrc:( Control-X (that is control-shift-x) will bring up this window, or shift-O under "info." The 'f', 'b' keys scroll forward and back by 28 lines, like the motd @@ -536,7 +536,7 @@ the client is executed from. A file called "SAMPLE.xtrekrc" should have been included with this -client. Below is an attempt to explain the many,many options you +client. Below is an attempt to explain the many, many options you can include in a .xtrekrc file. Some of this was borrowed from various other documentation such as MOO documentation. @@ -641,10 +641,10 @@ enemyPhasers: (integer 0-10) enemy phasers thickness at starting point. -phaserShrink: (integer 0-16) Don't draw the first "phaserShrink"/16 th of +phaserShrink: (integer 0-16) Don't draw the first "phaserShrink"/16th of your phaser. This makes it easier to see incomming torps. -theirPhaserShrink: (integer 0-16) "phaserShrink" for other player's ships. +theirPhaserShrink: (integer 0-16) "phaserShrink" for other players' ships. shrinkPhaserOnMiss: (on/off) Use "phaserShrink" and "theirPhaserShrink" even if a phaser misses. @@ -652,7 +652,7 @@ highlightFriendlyPhasers: (on/off) phaser hits by your team are solid white (instead of the default "rainbow" a la COW-lite. -showtractorpressor: (on/off) toggle showing tractor/pressor beams +showtractorpressor: (on/off) toggle showing tractor/pressor beams continueTractors: (on/off) off = turns off the visible t/p after 2 updates. @@ -661,8 +661,8 @@ 4.4 Messaging options -newDistress: (on/off) right justified distress call or not, default value - is to right justify (on) +newDistress: (on/off) right-justified distress call or not, default value + is to right-justify (on) reportkills: (on/off) display kill messages or ignore these @@ -745,7 +745,7 @@ screen before automatically removing them extraAlertBorder: Draws border in internal netrek windows, as well - as external ones (which get ignored in X11 with window-managers ) + as external ones (which get ignored in X11 with window-managers) forcemono: if on, the client windows are set to be monochrome @@ -814,7 +814,7 @@ shiftedMouse: (on/off) The shift and control keys can be used to modify the default function assigned to a button. The shift key acts as a switch which brings an - alternate mapping to the mouse buttons. In a simliar way control and + alternate mapping to the mouse buttons. In a similar way control and shift + control act to switch mappings again. Breakdown of values: Normal buttons 1, 2, 3, Index: b/defwin.c =================================================================== --- a/defwin.c +++ b/defwin.c @@ -716,7 +716,7 @@ } , { - "showIND", BOOL_DEF, "Show independant planets w/X", + "showIND", BOOL_DEF, "Show independent planets w/X", &showIND, { { Index: b/newbie.html =================================================================== --- a/newbie.html +++ b/newbie.html @@ -147,7 +147,7 @@ or to put it less academically, everyone plays in the same galaxy to try to take it over. -

This manual is a guide for netrek beginners; it is independant of any +

This manual is a guide for netrek beginners; it is independent of any particular client. Clients are highly configurable and vary from one another in terms of features. Please consult your client manual for details. There are a lot of very cool things that a client can be configured for, including debian/patches/005-hardening.patch0000644000000000000000000001647411562473365014127 0ustar Description: Fix some build hardening warnings. - turn some printf() format strings into preprocessor constants - add some "%s" printf() format strings - check the return values of fread(), fwrite() and system() - convert some uses of sprintf() into snprintf() Forwarded: no Author: Peter Pentchev Last-Update: 2011-05-11 --- a/mkkey.c +++ b/mkkey.c @@ -552,7 +552,7 @@ fprintf(fp, " }\n"); } -static char* rsa_box_defs = "\ +#define rsa_box_defs "\ #define X(m, r, g) \\\n\ mpz_mul(r, m, r);\\\n\ mpz_mod(r, r, g)\n\ @@ -565,9 +565,9 @@ tmp = m[i]; m[i] = m[j]; m[j] = tmp; \\\n\ tmp = r[i]; r[i] = r[j]; r[j] = tmp; \\\n\ } while(0)\n\ -"; +" -static char* sequence_header = "\ +#define sequence_header "\ {\n\ MP_INT r[%d], m[%d], m_swap_tmp;\n\ for (i = 0; i < %d; i++) {\n\ @@ -575,29 +575,29 @@ }\n\ mpz_set(&m[%d], &m_msg);\n\ #define g &m_global\n\ -"; +" -static char* sequence_trailer = "\ +#define sequence_trailer "\ \n\ mpz_set(&m_result, &r[%d]);\n\ for (i = 0; i < %d; i++) {\n\ mpz_clear(&r[i]); mpz_clear(&m[i]);\n\ }\n\ }\n\ -"; +" -static char* per_box_header = "\ +#define per_box_header "\ #include \"config.h\"\n\ #include \n\ void rsa_partial_box_%d(m, r, g)\n\ MP_INT* m, * r;\n\ MP_INT* g;\n\ {\n\ -"; +" -static char* per_box_trailer = "\ +#define per_box_trailer "\ }\n\ -"; +" /* * Write out an obfuscated rsa computation. This code is a little @@ -1050,7 +1050,10 @@ } buffer = (char*) malloc(statbuf.st_size); assert(buffer != NULL); - fread(buffer, 1, statbuf.st_size, fp); + if (fread(buffer, 1, statbuf.st_size, fp) != statbuf.st_size) { + perror("fread"); + exit(1); + } fclose(fp); get_array(buffer, "key_global", raw_global, SIZE); get_array(buffer, "key_public", raw_public, SIZE); @@ -1072,7 +1075,10 @@ } buffer = (char*) malloc(statbuf.st_size); assert(buffer != NULL); - fread(buffer, 1, statbuf.st_size, fp); + if (fread(buffer, 1, statbuf.st_size, fp) != statbuf.st_size) { + perror("fread"); + exit(1); + } fclose(fp); key_name = allocbuf(); client_type = allocbuf(); --- a/check.c +++ b/check.c @@ -87,7 +87,11 @@ while ((cc = read(sock, buf, BUF_SIZE)) > 0) { - fwrite(buf, cc, 1, stdout); + if (fwrite(buf, cc, 1, stdout) != 1) { + perror("fwrite"); + close(sock); + terminate(0); + } } if (cc < 0) { --- a/smessage.c +++ b/smessage.c @@ -458,7 +458,7 @@ (void) sprintf(&addrmesg[5], "ALL"); break; case MTEAM: - (void) sprintf(&addrmesg[5], teamshort[recip]); + (void) sprintf(&addrmesg[5], "%s", teamshort[recip]); break; case MINDIV: if (maskrecip) --- a/parsemeta.c +++ b/parsemeta.c @@ -680,9 +680,19 @@ if (cache != NULL) { - fwrite(&statusLevel, sizeof(statusLevel), 1, cache); - fwrite(&num_servers, sizeof(num_servers), 1, cache); - fwrite(serverlist, sizeof(struct servers), num_servers, cache); + if (fwrite(&statusLevel, sizeof(statusLevel), 1, cache) != 1 || + fwrite(&num_servers, sizeof(num_servers), 1, cache) != 1 || + fwrite(serverlist, sizeof(struct servers), num_servers, cache) != num_servers) { + int xerrno = errno; + fclose(cache); +#ifdef _MSC_VER + _unlink(tmpFileName); +#else + unlink(tmpFileName); +#endif + errno = xerrno; + perror("Could not write to the new cache file"); + } fclose(cache); @@ -725,8 +735,8 @@ } /* ignore the cache if user changed statusLevel */ - fread(&i, sizeof(i), 1, cache); - if (i != statusLevel) + if (fread(&i, sizeof(i), 1, cache) != 1 || + i != statusLevel) { num_servers = 0; fclose(cache); @@ -734,9 +744,19 @@ } /* read the server list into memory from the file */ - fread(&num_servers, sizeof(num_servers), 1, cache); + if (fread(&num_servers, sizeof(num_servers), 1, cache) != 1) { + num_servers = 0; + fclose(cache); + return; + } serverlist = (struct servers *) malloc(sizeof(struct servers)*num_servers); - fread(serverlist, sizeof(struct servers), num_servers, cache); + if (fread(serverlist, sizeof(struct servers), num_servers, cache) != num_servers) { + free(serverlist); + serverlist = NULL; + num_servers = 0; + fclose(cache); + return; + } fclose(cache); /* hunt and kill old server lines from cache */ --- a/short.c +++ b/short.c @@ -934,7 +934,7 @@ sprintf(addrbuf + 5, "ALL"); break; case MTEAM: - sprintf(addrbuf + 5, teamshort[me->p_team]); + sprintf(addrbuf + 5, "%s", teamshort[me->p_team]); break; case MINDIV: /* I know that it's me -> xxx but i copied it straight ... */ --- a/sound.c +++ b/sound.c @@ -982,7 +982,7 @@ if (!isDirectory(sounddir)) { sounddir = "sounds"; if (!isDirectory(sounddir)) { - (void) fprintf(stderr, "sound directory missing\n", sounddir); + (void) fprintf(stderr, "sound directory %s missing\n", sounddir); return; } } --- a/docwin.c +++ b/docwin.c @@ -48,7 +48,7 @@ if (!W_IsMapped(docwin)) W_MapWindow(docwin); - sprintf(buf, "--- %s ---", (char *) query_cowid()); + snprintf(buf, sizeof(buf), "--- %s ---", (char *) query_cowid()); length = strlen(buf); /* using GWINSIDE instead of TWINSIDE because with SMALL_SCREEN defined it @@ -57,7 +57,7 @@ center = GWINSIDE / 2 - (length * W_Textwidth) / 2; W_WriteText(docwin, center, W_Textheight, textColor, buf, length, W_BoldFont); - sprintf(buf, cbugs); + snprintf(buf, sizeof(buf), "%s", cbugs); length = strlen(buf); center = GWINSIDE / 2 - (length * W_Textwidth) / 2; W_WriteText(docwin, center, 3 * W_Textheight, textColor, @@ -140,7 +140,7 @@ if (temp == NULL) { /* malloc error checking -- 10/30/92 EM */ - printf(malloc_fail); + printf("%s", malloc_fail); return; } @@ -183,7 +183,7 @@ if (temp->next == NULL) { /* malloc error checking -- 10/30/92 EM */ - printf(malloc_fail); + printf("%s", malloc_fail); return; } @@ -215,12 +215,12 @@ if (!W_IsMapped(xtrekrcwin)) W_MapWindow(xtrekrcwin); - sprintf(buf, "--- %s ---", (char *) query_cowid()); + snprintf(buf, sizeof(buf), "--- %s ---", (char *) query_cowid()); length = strlen(buf); center = GWINSIDE / 2 - (length * W_Textwidth) / 2; W_WriteText(xtrekrcwin, center, W_Textheight, textColor, buf, length, W_BoldFont); - sprintf(buf, cbugs); + snprintf(buf, sizeof(buf), "%s", cbugs); length = strlen(buf); center = GWINSIDE / 2 - (length * W_Textwidth) / 2; W_WriteText(xtrekrcwin, center, 3 * W_Textheight, textColor, @@ -306,7 +306,7 @@ if (temp == NULL) { /* malloc error checking -- 10/30/92 EM */ - printf(malloc_fail); + printf("%s", malloc_fail); return; } @@ -337,7 +337,7 @@ if (temp->next == NULL) { /* malloc error checking -- 10/30/92 EM */ - printf(malloc_fail); + printf("%s", malloc_fail); return; } --- a/main.c +++ b/main.c @@ -396,8 +396,9 @@ if (getdefault("wwwlink") != NULL) wwwlink = getdefault("wwwlink"); - sprintf(webcall, wwwlink, url); - system(webcall); + snprintf(webcall, sizeof(webcall), wwwlink, url); + if (system(webcall) == -1) + printf("Running %s for URL %s failed\n", wwwlink, url); url[0] = '\0'; exit(0); } debian/patches/series0000644000000000000000000000016511562473365012050 0ustar 001-configure-gmp-version.patch 002-make-reallyclean.patch 003-typos.patch 004-honor-flags.patch 005-hardening.patch debian/patches/002-make-reallyclean.patch0000644000000000000000000000147311551011124015337 0ustar Description: Really clean up after the build. Forwarded: no Author: Peter Pentchev Last-Update: 2011-04-08 Index: b/Makefile =================================================================== --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # No editables below this point. # ######################################################################## -include key.mk +-include key.mk KEYGOD = clientkeys@clientkeys.netrek.org MAIL = mail @@ -47,7 +47,8 @@ reallyclean: clean rm -f netrek-client-cow randomize mkkey rsa_box*.c name mkcflags \ config.h system.mk config.status config.log config.cache key.mail \ - null netrek.shared lib* + null netrek.shared lib* cflags.c key.cow.linux* key.mk \ + po/Makefile po/Makefile.in distclean: clean reallyclean debian/patches/001-configure-gmp-version.patch0000644000000000000000000000101311551011124016343 0ustar Description: Recognize GMP versions other than 1. Bug-Debian: http://bugs.debian.org/620528 Forwarded: no Author: Peter Pentchev Last-Update: 2011-04-08 Index: b/configure =================================================================== --- a/configure +++ b/configure @@ -7194,7 +7194,7 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP ""gmp=.*2"" >/dev/null 2>&1; then + $EGREP ""gmp=.*[02-9]"" >/dev/null 2>&1; then cat >>confdefs.h <<\_ACEOF #define HAVE_GMP2_H 1 _ACEOF debian/menu0000644000000000000000000000020511375730375010065 0ustar ?package(netrek-client-cow):needs="X11" section="Games/Strategy"\ title="netrek-client-cow" command="/usr/games/netrek-client-cow" debian/source/0000755000000000000000000000000011600614763010472 5ustar debian/source/format0000644000000000000000000000001411551011124011663 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000164011600614176010251 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CFLAGS:= $(shell dpkg-buildflags --get CFLAGS) CPPFLAGS:= $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS:= $(shell dpkg-buildflags --get LDFLAGS) ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS))) EXTRACFLAGS+= -Werror endif LDFLAGS+= -Wl,-z,defs -Wl,--as-needed include /usr/share/hardening-includes/hardening.make ifeq (,$(filter nohardening,$(DEB_BUILD_OPTIONS))) EXTRACFLAGS+= $(HARDENING_CFLAGS) LDFLAGS+= $(HARDENING_LDFLAGS) endif export CPPFLAGS CFLAGS EXTRACFLAGS LDFLAGS override_dh_auto_configure: dh_auto_configure -- \ --bindir=\$${prefix}/games \ --datadir=\$${prefix}/share/games \ --with-gmp override_dh_auto_test: override_dh_auto_install: dh_auto_install -- prefix=/usr chmod -x $(CURDIR)/debian/netrek-client-cow/usr/share/games/netrek-client-cow/key.cow.linux %: dh $@ --with autotools_dev debian/README.Source0000644000000000000000000000017511375730375011323 0ustar For 3.2.9 upstream contacted Lars Bernhardsson to allow dashboard.c and dashboard3.c to be distributed under a BSD license. debian/watch0000644000000000000000000000011711375730375010231 0ustar version=3 http://www.netrek.org/files/COW/netrek-client-cow-([\d.]+)\.tar\.gz debian/dirs0000644000000000000000000000001211375730375010056 0ustar usr/games