debian/0000775000000000000000000000000011721745412007174 5ustar debian/patches/0000775000000000000000000000000011721745412010623 5ustar debian/patches/unixpaths0000664000000000000000000001136411721744625012603 0ustar Index: gearhead2-0.621/arenascript.pp =================================================================== --- gearhead2-0.621.orig/arenascript.pp 2010-02-10 14:50:19.000000000 +0200 +++ gearhead2-0.621/arenascript.pp 2010-02-10 14:50:53.000000000 +0200 @@ -36,7 +36,7 @@ interface -uses gears,locale, +uses dos,gears,locale, {$IFDEF ASCII} vidmenus,vidgfx; {$ELSE} @@ -2303,7 +2303,7 @@ PC := PC^.Next; end; - SaveStringList( FName + '.txt' , VList ); + SaveStringList( GetEnv( 'HOME' ) + '/.gearhead2/' + FName + '.txt' , VList ); MoreText( VList , 1 ); DisposeSAtt( VList ); end; Index: gearhead2-0.621/gears.pp =================================================================== --- gearhead2-0.621.orig/gears.pp 2010-02-10 14:51:03.000000000 +0200 +++ gearhead2-0.621/gears.pp 2010-02-10 15:45:19.000000000 +0200 @@ -234,16 +234,10 @@ { fine. } Default_File_Ending = '.txt'; Default_Search_Pattern = '*.txt'; - Save_Game_DirName = 'savegame'; - Save_Game_Directory = Save_Game_DirName + OS_Dir_Separator; - Save_Character_Base = Save_Game_Directory + 'CHA'; - Save_Egg_Base = Save_Game_Directory + 'EGG'; - Save_Unit_Base = Save_Game_Directory + 'GHU'; - Save_Campaign_Base = Save_Game_Directory + 'RPG'; - Design_DirName = 'design'; + Design_DirName = '/usr/share/games/gearhead2/design'; Design_Directory = Design_DirName + OS_Dir_Separator; PC_Equipment_Pattern = 'PC_*.txt'; - Series_DirName = 'series'; + Series_DirName = '/usr/share/games/gearhead2/series'; Series_Directory = Series_DirName + OS_Dir_Separator; Archetypes_File = Series_Directory + 'ANPCdefault.txt'; Adventure_File_Base = Series_Directory + 'ADV_'; @@ -253,7 +247,7 @@ Monsters_File_Pattern = 'WMON_*.txt'; - Data_DirName = 'gamedata'; + Data_DirName = '/usr/share/games/gearhead2/gamedata'; Data_Directory = Data_DirName + OS_Dir_Separator; MetaTerrain_File_Base = Data_Directory + 'meta'; Trait_Chatter_Base = Data_Directory + 'TC_'; @@ -273,13 +267,13 @@ RandMaps_Param_File = Data_Directory + 'randmaps.txt'; NPC_Chatter_File = Data_Directory + 'taunts.txt'; - Doc_DirName = 'doc'; + Doc_DirName = '/usr/share/games/gearhead2/doc'; Doc_Directory = Doc_DirName + OS_Dir_Separator; Mecha_Help_File = Doc_Directory + 'man_umek.txt'; FieldHQ_Help_File = Doc_Directory + 'man_mecha.txt'; Chara_Help_File = Doc_Directory + 'man_chara.txt'; - Config_File = 'gearhead.cfg'; + Config_File = 'gearhead2.conf'; Graphics_DirName = 'image'; Graphics_Directory = Graphics_Dirname + OS_Dir_Separator; @@ -288,6 +282,13 @@ STARTUP_OK: Boolean = True; + Save_Game_DirName: String = ''; + Save_Game_Directory: String = ''; + Save_Character_Base: String = ''; + Save_Egg_Base: String = ''; + Save_Unit_Base: String = ''; + Save_Campaign_Base: String = ''; + Type SAttPtr = ^SAtt; SAtt = Record {*** STRING ATTRIBUTE ***} @@ -658,7 +659,7 @@ FName: String; begin SList := Nil; - FName := FSearch( FName_In , '.' ); + FName := FSearch( FName_In , '/;/usr/share/games/gearhead2/' ); if FName <> '' then begin Assign( F , FName ); Reset( F ); @@ -1385,10 +1386,24 @@ Procedure CheckDirectoryPresent; { Make sure that the default save directory exists. If not, } { create it. } +var + S: String; begin - if not DirectoryExists( Save_Game_DirName ) then begin - MkDir( Save_Game_DirName ); - end; + S := GetEnv( 'HOME' ) + '/.gearhead2'; + if not DirectoryExists( S ) then begin + MkDir( S ); + end; + S := S + '/savegame2'; + if not DirectoryExists( S ) then begin + MkDir( S ); + end; + + Save_Game_DirName := S; + Save_Game_Directory := Save_Game_DirName + OS_Dir_Separator; + Save_Character_Base := Save_Game_Directory + 'CHA'; + Save_Egg_Base := Save_Game_Directory + 'EGG'; + Save_Unit_Base := Save_Game_Directory + 'GHU'; + Save_Campaign_Base := Save_Game_Directory + 'RPG'; { Check to make sure all the other directories can be found. } Startup_OK := DirectoryExists( Design_DirName ); Index: gearhead2-0.621/ui4gh.pp =================================================================== --- gearhead2-0.621.orig/ui4gh.pp 2010-02-10 14:57:08.000000000 +0200 +++ gearhead2-0.621/ui4gh.pp 2010-02-10 14:57:47.000000000 +0200 @@ -443,7 +443,7 @@ T: Integer; begin {See whether or not there's a configuration file.} - S := FSearch(Config_File,'.'); + S := FSearch(Config_File, GetEnv('HOME')+'/.gearhead2/;/etc'); if S <> '' then begin { If we've found a configuration file, } { open it up and start reading. } @@ -636,7 +636,7 @@ begin { If we've found a configuration file, } { open it up and start reading. } - Assign( F , Config_File ); + Assign( F , GetEnv('HOME')+'/.gearhead2/' + Config_File ); Rewrite( F ); writeln( F , '#' ); debian/patches/series0000664000000000000000000000001211721744625012036 0ustar unixpaths debian/gearhead2.docs0000664000000000000000000000000611721744625011671 0ustar doc/* debian/postrm0000664000000000000000000000172211721744625010452 0ustar #! /bin/sh # postrm script for gearhead # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge) rm /etc/gearhead2.conf || true ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/gearhead2-data.install0000664000000000000000000000013111721744625013315 0ustar design gamedata series usr/share/games/gearhead2 doc/man_* usr/share/games/gearhead2/doc debian/gearhead2.install0000664000000000000000000000013711721744625012414 0ustar debian/gearhead2.conf /etc/ debian/lintian-overrides/gearhead2 /usr/share/lintian/overrides/ debian/control0000664000000000000000000000263611721745346010614 0ustar Source: gearhead2 Section: games Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Kari Pahula Build-Depends: debhelper (>= 7), fp-compiler Standards-Version: 3.8.4 Homepage: http://gearheadrpg.com/ Package: gearhead2 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, gearhead2-data Description: roguelike mecha role playing game in space Set a century and a half after nuclear war, you can explore a world where various factions compete to determine the future of the human race. Major features include random plot generation, a detailed character system, and over two hundred customizable mecha designs. . GearHead 2 is set five years after the events of GearHead 1. It is currently under development and is initially set in the L5 Orbital Pattern. Package: gearhead2-data Architecture: all Depends: ${misc:Depends} Description: data files for gearhead2 Set a century and a half after nuclear war, you can explore a world where various factions compete to determine the future of the human race. Major features include random plot generation, a detailed character system, and over two hundred customizable mecha designs. . GearHead 2 is set five years after the events of GearHead 1. It is currently under development and is initially set in the L5 Orbital Pattern. . This package contains the data files for gearhead2. debian/compat0000664000000000000000000000000211721744625010377 0ustar 7 debian/gearhead2.dirs0000664000000000000000000000001211721744625011677 0ustar usr/games debian/copyright0000664000000000000000000000337011721744625011137 0ustar This package was debianized by Kari Pahula on Fri, 31 Jul 2009 12:58:07 +0300. It was downloaded from http://sourceforge.net/projects/gearhead2/files/ Copyright: 2002-2010 Joseph Hewitt The following have been copied from gearhead 1.100's Credits.txt file. It's presumed that they still apply for gearhead2. Credits for the linux port: Philip Chimento Mikolaj Celuch Philipp Lucas Joseph Larsen Algorithms, bug reports and other good things: Aaron Lambert ABCGi Alex Duncan Arthur J. O'Dwyer Bohdan Linda Bisyamon45 Christian Schmidt Daniel Lowenstein Dinthalion Gerry Quinn Hansjorg Malthaner Isaac Kuo Joachim Meissner John Q. Smith Jonathan Santaana Kenneth Whitehouse Malte Helmert Michael Sauer Peter Cordes R. Alan Monroe R. Dan Henry Seiya Shanya Almafeta Slava Tom Demuyt Uriah Otting Vasily Savin William Davis License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. debian/rules0000775000000000000000000000357711721745270010272 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS export DEB_BUILD_MAINT_OPTIONS = hardening=-all ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif -include /usr/share/dpkg/buildflags.mk export CFLAGS build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: dh_testdir fpc $(CFLAGS) -g -XD -dASCII gearhead touch build-arch-stamp build-indep: build-indep-stamp build-indep-stamp: dh_testdir touch build-indep-stamp clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp rm -f *.a *.o *.ppu gearhead dh_clean install: install-indep install-arch install-indep: build-indep-stamp dh_testdir dh_testroot dh_prep dh_installdirs -i dh_install -i -X.obj install-arch: build-arch-stamp dh_testdir dh_testroot dh_prep dh_installdirs -a dh_install -a -X man_ install -D -m 644 readme.txt debian/gearhead2/usr/share/doc/gearhead2/README install -D gearhead debian/gearhead2/usr/games/gearhead2 binary-indep: install-indep dh_testdir dh_testroot dh_installchangelogs -i history.txt dh_installdocs -i -X history.txt dh_installexamples -i dh_installmenu -i dh_installman -i dh_link -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary-arch: install-arch dh_testdir dh_testroot dh_installchangelogs -a history.txt dh_installdocs -a -X history.txt dh_installexamples -a dh_installmenu -a dh_installman -a dh_link -a dh_strip -a dh_compress -a dh_fixperms -a dh_makeshlibs -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-arch binary-indep .PHONY: build build-arch build-indep clean binary-indep binary-arch binary install install-indep install-arch configure debian/gearhead2.conf0000664000000000000000000001110311721744625011666 0ustar #Here's an overview of what this file is capable of: # #REDEFINE GAME KEYS # To redefine a game key, you're going to have to know the command's # proper name. This can be found via the in-game help menu. Just type # the command's name followed by the new key you want to use for it. # For instance, to redefine the ApplySkill command so that it is # activated by the "n" key, you'd use the following line: # # ApplySkill n # # Note that no checking is done to ensure that the keys are unique. # If you assign two commands to the same key, only one of them will # work. # #CONTROL ANIMATION SPEED # You can redefine the animation speed, if you'd like combat animations # to proceed faster or slower. To change the animation delay to 100 you'd # use the following line: # # AnimSpeed 100 # # Note that the lower the AnimSpeed value, the faster the animations # will be. Default values are 100 for ASCII and 50 for SDL. # #SET CONTROL TYPES # There are three commands that cover this: MechaControl, CharaControl, # and WorldControl. Each one can be assigned either M for Menu-based # input or R for RogueLike input. For example, to change things so that # your mecha is controlled using the RogueLike interface, use the # following line: # # MechaControl R # #SET WEAPON ATTACK OPTION # You can set the default burst value for each type of burst-firing # weapon. There are three commands that cover this: MissileBV, # BallisticBV, and BeamGunBV. They can be assigned four possible values: # Off, 1/4, 1/2, and Max. # # To set the default missile BV to 1/2 load, use the following line: # # MissileBV 1/2 # #CONTROL DIRECT XP # By default, direct skill XP will not cause the PC to learn new # skills. This is to prevent the PC from learning unwanted skills. # If you would like to enable the learning of skills from direct XP, # add the following label to your configuration file: # # DIRECTSKILLOK # #NOAUTOSAVE # Whenever your character visits a new location, the campaign is saved # to disk. Some people don't like this behavior... using the label # NOAUTOSAVE will disable this. # #ALWAYS SAVE CHARACTER # Normally, when a character enters an adventure, the CHA file is deleted # and doesn't get restored until the adventure is finished. By setting # the label ALWAYSSAVECHARACTER you can override this behavior. # #DISABLE COMBAT TAUNTS # If the game runs slowly on your computer, disabling combat taunts may help. # Yes, it's pathetic, I know... type NOCOMBATTAUNTS in your config file to # achieve this. # #CONTROL ALPHA BLENDING # For SDL mode only. If you don't like the transparency effect, or it it doesn't # run well on your computer, use NOALPHA to disable it. You can set the amount # of transparency with "ALPHALEVEL x"- enter a value from 0 (transparent) to # 255 (opaque). # #CONTROL NUMBER OF PLOTS PER ADVENTURE # The number of plots currently in play can have a great effect on the speed of # your game. The default maximum number of plots is 50; to reduce this (and # hopefully get things moving faster) use "NUMPLOTS x". For example, to reduce # the maximum number of plots to 30, insert the following line in the config # file: # # NUMPLOTS 30 # #LIMIT PLOT LOADING TO START OF SCENE # Normally the game will load new plots every 5 minutes. This may cause a noticeable # pause on some computers. To change things so that plots are only loaded when # entering or exiting a scene, add LoadPlotsAtStart to your config file. # #CONTROL SIZE OF ASCII SCREEN # You can control the size of the screen with SCREENWIDTH and SCREENHEIGHT. The minimum # size for the screen is 80x25. # #ACTIVATE MINI-MAP # You can activate the mini-map by adding MINIMAPON to your config file. # #PLAY IN WINDOW # You can play in a window on your main screen by adding WINDOW to the config file. # You can play in fullscreen mode by adding FULLSCREEN to the config file. # #DISABLE MOUSE # You can disable the mouse with the NOMOUSE option. # #ENABLE NAMES-ABOVE_HEADS # Add NAMESON to your config file, and the names of all gears on the map will appear # above their heads. # #DISABLE PILLAGING # Add NOPILLAGE to your config file to not automatically pillage everything on the map # after winning a mission. # #ENABLE TACTICS MODE [experimental] # Add USETACTICSMODE to the config file, and the player will be able to control # lancemates directly in mecha combat. # This mode is experimental and may result in the game crashing or other unexpected # behavior. You have been warned. debian/lintian-overrides/0000775000000000000000000000000011721745412012632 5ustar debian/lintian-overrides/gearhead20000664000000000000000000000047611721744625014413 0ustar # Looks like this one isn't that easily fixed. AFAICT it's # relatively benign. For references, see # http://lists.debian.org/debian-devel/2005/03/msg00506.html # http://lists.debian.org/debian-devel/2005/02/msg01362.html # http://bugs.debian.org/300577 # gearhead2: statically-linked-binary ./usr/games/gearhead2 debian/gearhead2.links0000664000000000000000000000037211721744625012067 0ustar /usr/share/games/gearhead2/doc/man_chara.txt /usr/share/doc/gearhead2/man_chara.txt /usr/share/games/gearhead2/doc/man_mecha.txt /usr/share/doc/gearhead2/man_mecha.txt /usr/share/games/gearhead2/doc/man_umek.txt /usr/share/doc/gearhead2/man_umek.txt debian/changelog0000664000000000000000000000441711721745332011055 0ustar gearhead2 (0.628-1ubuntu1) precise; urgency=low * Disable hardening flags, fpc doesn't support them and errors out. (LP: #935111) -- Andreas Moog Fri, 24 Feb 2012 18:37:00 +0100 gearhead2 (0.628-1) unstable; urgency=low * New upstream release -- Kari Pahula Sat, 05 Jun 2010 09:00:16 +0300 gearhead2 (0.627-1) unstable; urgency=low * New upstream release -- Kari Pahula Tue, 25 May 2010 22:54:03 +0300 gearhead2 (0.626-1) unstable; urgency=low * New upstream release * Don't install .obj files in gearhead2-data. -- Kari Pahula Sat, 22 May 2010 13:14:59 +0300 gearhead2 (0.625-1) unstable; urgency=low * New upstream release -- Kari Pahula Fri, 30 Apr 2010 12:30:55 +0300 gearhead2 (0.624-1) unstable; urgency=low * New upstream release -- Kari Pahula Tue, 16 Mar 2010 18:26:07 +0200 gearhead2 (0.623-1) unstable; urgency=low * New upstream release -- Kari Pahula Tue, 02 Mar 2010 16:38:10 +0200 gearhead2 (0.622-1) unstable; urgency=low * New upstream release -- Kari Pahula Wed, 24 Feb 2010 14:22:27 +0200 gearhead2 (0.621-1) unstable; urgency=low * New upstream release * Standards-Version: 3.8.4 (no changes necessary). * Switch to dpkg-source 3.0 (quilt) format * Renamed the per user save game dir as "savegame2" since saves from 0.61x aren't compatible. * Use fpc -g to get debug symbols. -- Kari Pahula Wed, 10 Feb 2010 15:42:06 +0200 gearhead2 (0.612-1) unstable; urgency=low * New upstream release * Put correct URL in Homepage field (Closes: #543827) -- Kari Pahula Tue, 29 Sep 2009 00:14:46 +0300 gearhead2 (0.611-1) unstable; urgency=low * Initial release (Closes: #539238) * Use quilt for patches * Changed gearhead2 to look for game data from under /usr/share/games/gearhead2 * Changed gearhead2 to save games under ~/.gearhead2/SaveGame * Save the end of game dump in ~/.gearhead2/ * Changed gearhead to look for config files at $HOME/.gearhead2/gearhead.cfg or /etc/gearhead2.conf * Install a configuration template in /etc/gearhead2.conf -- Kari Pahula Wed, 26 Aug 2009 08:53:28 +0300 debian/menu0000664000000000000000000000015711721744625010073 0ustar ?package(gearhead2):needs="text" section="Games/Adventure"\ title="gearhead2" command="/usr/games/gearhead2" debian/README.Debian0000664000000000000000000000077711721744625011255 0ustar gearhead for Debian ------------------- Some changes were made to the directories gearhead uses. Gearhead has been patched to search for its game data from under /usr/share/games/gearhead instead of the current directory. Also, save games will be created to $HOME/.gearhead/SaveGame/. Config file is searched from $HOME/.gearhead/gearhead.conf or if that is not found, from /etc/gearhead.conf. The executable was renamed to "gearhead" from "arena". -- Kari Pahula , Wed Nov 30 03:06:46 2005 debian/source/0000775000000000000000000000000011721745412010474 5ustar debian/source/format0000664000000000000000000000001411721744625011707 0ustar 3.0 (quilt)