--- tome-2.3.5.orig/src/config.h +++ tome-2.3.5/src/config.h @@ -90,7 +90,7 @@ /* * OPTION: Include "ncurses.h" instead of "curses.h" in "main-gcu.c" */ -/* #define USE_NCURSES */ +#define USE_NCURSES /* @@ -377,7 +377,7 @@ * that file. */ #ifndef DEFAULT_PATH -# define DEFAULT_PATH "./lib/" +# define DEFAULT_PATH "/var/games/tome" #endif @@ -446,7 +446,7 @@ /* * OPTION: Person to bother if something goes wrong. */ -#define MAINTAINER "darkgod@t-o-m-e.net" +#define MAINTAINER "tome@packages.debian.org" /* @@ -518,7 +518,7 @@ /* ToME options: */ /* Should the player know his / her starting life rate? */ -/* #define SHOW_LIFE_RATE */ +#define SHOW_LIFE_RATE /* Do we want different characters for different races? */ #define VARIABLE_PLAYER_GRAPH --- tome-2.3.5.orig/src/makefile.std +++ tome-2.3.5/src/makefile.std @@ -54,15 +54,16 @@ # Sysadmins of commercial Unix and/or BSD might prefer this #LIBDIR = /usr/local/lib/tome/ # If you like the old default, use this one -LIBDIR = ./lib/ +#LIBDIR = ./lib/ # Another example: single user installation using absolute path #LIBDIR = /home/myloginname/lib/tome/ - +LIBDIR = /var/games/tome/ # Where ToME binary goes -BINDIR = /usr/local/games +#BINDIR = /usr/local/games # Another common location #BINDIR = /usr/local/bin +BINDIR = /usr/games/ # The game will run suid to this user OWNER = games @@ -125,12 +126,16 @@ # including "USE_GETCH" and "USE_CURS_SET". Note that "config.h" will # attempt to "guess" at many of these flags based on your system. # -COPTS = -Wall -O1 -pipe -g -INCLUDES = -I/usr/X11R6/include -DEFINES = -DUSE_X11 \ - -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA \ - -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -LIBS = -L/usr/X11R6/lib -lX11 +#COPTS = -Wall -O1 -pipe -g +COPTS = -Wall -O2 -fomit-frame-pointer -pipe -g +INCLUDES = -I/usr/X11R6/include $(shell sdl-config --cflags) +DEFINES = -DUSE_XAW -DUSE_GCU -DUSE_SDL -DUSE_TPOSIX -DUSE_CURS_SET \ + -DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA \ + -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK +LIBS = -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 -lncurses -ltermcap \ + $(shell sdl-config --libs) -lSDL_image -lSDL_ttf -lSDL_gfx \ + -lSDL_net -lSDL_mixer -lm + ## ## Variation -- Only support "main-gtk2.c" (not "main-gcu.c, main-x11.c") @@ -470,10 +475,13 @@ [ -d $(DESTDIR)$(LIBDIR) ] || mkdir -p $(DESTDIR)$(LIBDIR) [ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR) cp -r ../lib/* $(DESTDIR)$(LIBDIR) - chown -R $(OWNER) $(DESTDIR)$(LIBDIR) +# chown -R $(OWNER) $(DESTDIR)$(LIBDIR) + chgrp -R $(OWNER) $(DESTDIR)$(LIBDIR) cp -f $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET) - chown $(OWNER) $(DESTDIR)$(BINDIR)/$(TARGET) - chmod 4755 $(DESTDIR)$(BINDIR)/$(TARGET) +# chown $(OWNER) $(DESTDIR)$(BINDIR)/$(TARGET) + chgrp $(OWNER) $(DESTDIR)$(BINDIR)/$(TARGET) +# chmod 4755 $(DESTDIR)$(BINDIR)/$(TARGET) + chmod 2755 $(DESTDIR)$(BINDIR)/$(TARGET) # old-install: $(TARGET) # cp $(TARGET) .. --- tome-2.3.5.orig/src/tome.man +++ tome-2.3.5/src/tome.man @@ -0,0 +1,123 @@ +.\" Hey, Emacs! This is an -*- nroff -*- source file. +.\" Copyright (c) 2003 Manoj Srivastava +.\" +.\" This is free documentation; you can redistribute it and/or +.\" modify it under the terms of the GNU General Public License as +.\" published by the Free Software Foundation; either version 2 of +.\" the License, or (at your option) any later version. +.\" +.\" The GNU General Public License's references to "object code" +.\" and "executables" are to be interpreted as the output of any +.\" document formatting or typesetting system, including +.\" intermediate and printed output. +.\" +.\" This manual 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 General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public +.\" License along with this manual; if not, write to the Free +.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, +.\" USA. +.\" +.\" This manual 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 General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public +.\" License along with this manual; if not, write to the Free +.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, +.\" USA. +.\" +.\" $Id: tome.man,v 1.1 2003/08/02 05:01:25 srivasta Exp $ +.TH TOME 6 "August 1 2003" "Debian" "Debian GNU/Linux manual" +.SH NAME +tome \- is a graphical dungeon adventure game in the vein of rogue +.SH SYNOPSIS +.B tome +.I [options] +.I [\-\- suboptions] +.SH DESCRIPTION +This manual page explains the Debian package +.B "tome". +.B Tome +is a single-player, +.I graphical +dungeon adventure game using textual characters +to represent the walls and floors of a dungeon and the inhabitants therein, +in the vein of +.I rogue, +.I hack, +.I nethack, +and +.I moria. +.PP +This version of +.B Tome +has been compiled with both +.I ncurses +and the +.I X Windowing system. +and hence can be played on a virtual console as well as under +.I X. +In the latter case, the game pulls up multiple windows. +.SH OPTIONS +.PD 0 +.TP 10 +.B \-h +Print out a usage message. +.TP +.BR \-n +Start a new character +.TP +.BR \-f +Request fiddle mode (no high score entry) +.TP +.BR \-w +Request wizard mode (no high score entry) +.TP +.BR \-v +Request sound mode +.TP +.BR \-g +Request graphics mode +.TP +.BR \-o +Request original keyset +.TP +.BR \-r +Request rogue-like keyset +.TP +.BR \-s +Show high scores +.TP +.BR \-u +Use your savefile +.TP +.BR \-m +Force 'main-.c' usage +.TP +.BR \-d= +Define a 'lib' dir sub-path. Valid values of lib are help info user +bone save data apex xtra edit file +.PD +.SH "GETTING STARTED" +To start with, you can just say tome -uTest, and that creates a +save file with the file name +.I /var/games/tome/save/Test. +The best place to get help is the program itself; help is reached by +the command +.B ? +and presents a menu of choices. +.PP +Program options can be set using the = command. To see what the +various options mean, access the List of Options help menu with the ? +command. +.SH "SEE ALSO" +.BR nethack (6). +.BR angband (6). +.SH AUTHOR +This manual page was written Manoj Srivastava , +for the Debian GNU/Linux system. --- tome-2.3.5.orig/src/lua/llimits.h +++ tome-2.3.5/src/lua/llimits.h @@ -10,6 +10,7 @@ #include #include +#include @@ -36,7 +37,7 @@ ** GREP LUA_NUMBER to change that */ #ifndef LUA_NUM_TYPE -#define LUA_NUM_TYPE long +#define LUA_NUM_TYPE int32_t #endif typedef LUA_NUM_TYPE Number; @@ -50,7 +51,7 @@ -typedef unsigned long lint32; /* unsigned int with at least 32 bits */ +typedef int_least32_t lint32; /* unsigned int with at least 32 bits */ #define MAX_SIZET ((size_t)(~(size_t)0)-2) --- tome-2.3.5.orig/debian/Tome.sh +++ tome-2.3.5/debian/Tome.sh @@ -0,0 +1,70 @@ +#!/bin/bash +# -*- Mode: Sh -*- +# Tome.sh --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Aug 1 22:01:26 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Mon Nov 24 22:21:23 2003 +# Last Machine Used: glaurung.green-gryphon.com +# Update Count : 2 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: e93eb0c0-615f-490e-a30b-3b3c78d8bd91 +# + +# Describe attempt +echo "Launching ToME..." +sleep 2 + +# Main window +export ANGBAND_X11_FONT_0=9X15 +export ANGBAND_X11_AT_X_0=5 +export ANGBAND_X11_AT_Y_0=510 + +# Message window +export ANGBAND_X11_FONT_1=7x13 +export ANGBAND_X11_AT_X_1=5 +export ANGBAND_X11_AT_Y_1=22 +export ANGBAND_X11_ROWS_1=18 + +# Inventory window +export ANGBAND_X11_FONT_2=7x13 +export ANGBAND_X11_AT_X_2=635 +export ANGBAND_X11_AT_Y_2=182 +export ANGBAND_X11_ROWS_3=23 + +# Equipment window +export ANGBAND_X11_FONT_3=7x13 +export ANGBAND_X11_AT_X_3=635 +export ANGBAND_X11_AT_Y_3=22 +export ANGBAND_X11_ROWS_3=13 + +# Monster recall window +export ANGBAND_X11_FONT_4=6x9 +export ANGBAND_X11_AT_X_4=817 +export ANGBAND_X11_AT_Y_4=847 +export ANGBAND_X11_COLS_4=76 +export ANGBAND_X11_ROWS_4=11 + +# Object recall window +export ANGBAND_X11_FONT_5=6x9 +export ANGBAND_X11_AT_X_5=817 +export ANGBAND_X11_AT_Y_5=520 +export ANGBAND_X11_COLS_5=76 +export ANGBAND_X11_ROWS_5=15 + +export ANGBAND_X11_FONT_6=6x9 +export ANGBAND_X11_FONT_7=6x9 +# Gamma correction +export ANGBAND_X11_GAMMA=142 + +# Launch Angband +# Adam bolt +tome -mxaw -- -s -n7 & +#angband -mxaw -- -n7 & +#angband -mx11 -- -n7 & +#angband -mxpj -- -n7 & + --- tome-2.3.5.orig/debian/local-vars.mk +++ tome-2.3.5/debian/local-vars.mk @@ -0,0 +1,79 @@ +############################ -*- Mode: Makefile -*- ########################### +## local-vars.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 10:43:00 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Mon Nov 24 23:44:41 2003 +## Last Machine Used: glaurung.green-gryphon.com +## Update Count : 18 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: 1a76a87e-7af5-424a-a30d-61660c8f243e +## +############################################################################### + +# Location of the source dir +SRCTOP := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) +TMPTOP = $(SRCTOP)/debian/tmp +PKG_DOC = $(TMPTOP)/usr/share/doc/$(package) +PKG_MENU = $(TMPTOP)/usr/lib/menu +PKG_DBASE = $(TMPTOP)/usr/share/doc-base +PKG_INFO = $(TMPTOP)/usr/share/info +PKG_MANDIR = $(TMPTOP)/usr/share/man/ +PKG_MAN = $(PKG_MANDIR)/man6 +PKG_BIN = $(TMPTOP)/usr/bin +PKG_MENUDIR= $(TMPTOP)/usr/share/menu +PKG_STATLIB= $(TMPTOP)/usr/lib/$(package) +PKG_LIBDIR = $(TMPTOP)/$(LIBDIR) + +LINTIANDIR:= $(TMPTOP)/usr/share/lintian/overrides + +# Make sure we stay in sync with the code +##LIBDIR := $(shell grep "define DEFAULT_PATH" src/config.h 2>/dev/null | \ +## sed -e 's/^.*DEFAULT_PATH *//g' -e 's/"//g') +## libdir should be /var/lib/games/$(package)/ +LIBDIR = /var/games/$(package) + +FILES_TO_CLEAN = debian/files debian/buildinfo debian/substvars src/tome \ + src/tolua +STAMPS_TO_CLEAN = +DIRS_TO_CLEAN = $(TMPTOP) + + + +install_game= /usr/bin/install -p -s -o root -g games -m 2755 $(STRIP) + +CC = gcc +CFLAGS = -O2 +PREFIX = /usr +BINDIR = $(PREFIX)/bin +MANDIR = $(PREFIX)/share/man +MAN1DIR = $(MANDIR)/man1 +MAN6DIR = $(MANDIR)/man6 +DOCDIR = $(PREFIX)/share/doc/$(package) +INFODIR = $(PREFIX)/share/info + +## +## Variation -- All the ports that work in Linux at once. +## (Use the -m option to start the one you want.) +## +CFLAGS = -Wall -O2 -fno-strength-reduce -pipe -g -D"USE_GCU" \ + -D"USE_TRANSPARENCY" -D"USE_XPJ" -D"USE_X11" -D"USE_XAW" -D"USE_LSL" +# +# +LIBS = -lX11 -lcurses -lncurses -L/usr/X11R6/lib -lz -lvgagl -lvga $(PYLIB) \ + -lXaw -lXext -lSM -lICE -lXmu -lXt + + + +define checkdir + @test -f debian/rules -a -f src/main.c || \ + (echo Not in correct source directory; exit 1) +endef + +define checkroot + @test $$(id -u) = 0 || (echo need root priviledges; exit 1) +endef --- tome-2.3.5.orig/debian/control +++ tome-2.3.5/debian/control @@ -0,0 +1,60 @@ +Source: tome +VCS-Git: git://git.debian.org/~srivasta/debian/tome.git +VCS-Browser: http://git.debian.org/?p=users/srivasta/debian/tome.git;a=summary +Section: non-free/games +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Manoj Srivastava +Build-Depends: libxaw7-dev | libxaw6-dev, + libncurses5-dev | libncurses-dev | ncurses-dev, + libsdl1.2-dev | libsdl-dev, libsdl-mixer1.2-dev, + libsdl-gfx1.2-dev, libsdl-image1.2-dev, libsdl-ttf2.0-dev, + libsdl-net1.2-dev +Standards-Version: 3.8.0.0 + +Package: tome +Architecture: any +Depends: ${shlibs:Depends} +Description: A single-player, text-based, dungeon simulation game. + Tome, short for Troubles of Middle Earth, is a single-player, + text-based, dungeon simulation derived from the game angband, which + in turn is derived from the older game Moria, which was in turn based + on Rogue. It is often described as a "roguelike" game because the + look and feel of the game is still quite similar to Rogue. + . + In tome, the player may choose from a number of races and classes + when creating a character, and then "run" that character over a + period of days, weeks, even months, attempting to win the game by + defeating Morgoth, who lurks somewhere in the depths of the dungeon. + . + The ultimate goal of the game is to develop a character strong enough + to defeat Morgoth, who resides on dungeon level 100. Upon doing so, + you will receive the exalted status of "winner" and your character may + retire. + . + The first main difference from Angband a new player to ToME will need + to be aware of is that it has implemented a skills based system where + instead of the adventurer automatically improving in their abilities + as they become more experienced, they get 5 skill points to spend on + their character's abilities and can therefore customise what type of + character they play. See the skills help file for details + . + The second major difference is that the main dungeon from Angband has + been split into 4 "dungeons", each of which cover a different + portion of the dungeon's levels. Note that not all of the places are + actually "dungeons" - some are caves, forests, etc. + . + The third main difference between Vanilla Angband and ToME is the + difference in character classes and races, as well as a very + different magic system. ToME also offers the player the ability to + undertake a series of quests. It is not required for any adventurer + to undertake the fixed quests, but they can result in some nice + rewards. + . + Morgoth was 'the Dark Enemy of Middle-Earth' during its First Age. He + was banished by the Valar (offspring of Eru, "god" of J.R.R. + Tolkien's world) at the end of the First Age and thus never appears + in The Lord of the Rings, set during the Third Age. Sauron, who does + figure into those tales, was the most powerful of his servants. Read + Tolkien's 'The Silmarillion' for more on the legends of Middle-Earth. + Angband is a reference to Morgoth's "prison of iron." --- tome-2.3.5.orig/debian/watch +++ tome-2.3.5/debian/watch @@ -0,0 +1,5 @@ +# format version number, currently 2; this line is compulsory! +version=3 + +opts="uversionmangle=s/(\d)(\d)(\d)/$1.$2.$3/g" http://t-o-m-e.net/dl/src/tome-(2.*)-src.tar.bz2 + --- tome-2.3.5.orig/debian/Xresources +++ tome-2.3.5/debian/Xresources @@ -0,0 +1,166 @@ + + X Resources for ToME + = ========= === ==== + + +>I want to control the angband windows better, like give them automatic +>placement on the screen, resize (the recall window is too large) and smaller +>fonts. + +After you've built it, you have to configure your ~/.Xdefaults file to +take advantage of the new functionality. + +My own X Resources look like this (on a 1152x900 screen): + +angband*angband*font: 12x24 +angband*angband*geometry: +0+-20 +angband*recall*font: 7x13 +angband*recall*geometry: 80x10+0+586 +angband*choice*font: 7x13 +angband*choice*geometry: -0-0 + +For a smaller screen size, these are probably better + +angband*angband*font: 9x15 +angband*angband*geometry: +300+220 +angband*recall*font: 7x13 +angband*recall*geometry: 80x15+460+0 +angband*choice*font: 7x13 +angband*choice*geometry: +0+440 +angband*mirror*font: 7x13 +angband*mirror*geometry: 80x15+460+590 +angband*color6: #3070f0 +angband*color7: #907027 +angband*term-4*iconic: true +angband*term-5*iconic: true +angband*term-6*iconic: true +angband*term-7*iconic: true + +You could also try modifying these: + +Angband*term-4.font (or geometry) +Angband*term-5.font (or geometry) +Angband*term-6.font (or geometry) +Angband*term-7.font (or geometry) + +You'll almost certainly want to change the numbers to suit your taste, +screen size, resolution, monitor darkness, etc. This just gives you an +idea of the format. + +It's also possible to change the colors using X Resources, the +standard colors would look like: + +angband*color0: #000000 +angband*color1: #ffffff +angband*color2: #a6a6a6 +angband*color3: #ff6302 +angband*color4: #ca0808 +angband*color5: #008e18 +angband*color6: #0000e3 +angband*color7: #814007 +angband*color8: #6b6b6b +angband*color9: #d6d6d6 +angband*color10: #5100c2 +angband*color11: #fdf105 +angband*color12: #ff9259 +angband*color13: #26cf17 +angband*color14: #02b2f2 +angband*color15: #b28b48 + +And the newer colors look like: + +angband*color0: #000000 +angband*color1: #ffffff +angband*color2: #d7d7d7 +angband*color3: #ff9200 +angband*color4: #ff0000 +angband*color5: #00cd00 +angband*color6: #0000fe +angband*color7: #c86400 +angband*color8: #a3a3a3 +angband*color9: #ebebeb +angband*color10: #a500ff +angband*color11: #fffd00 +angband*color12: #ff00bc +angband*color13: #00ff00 +angband*color14: #00c8ff +angband*color15: #ffcc80 + +Some older monochrome monitors have problem with white text on black +background. The new code can handle the reverse situation if the user +wants/needs this. + +The following X Resources gives black text on white background using +Angband/Xaw. The other colors (2-15) isn't changed, since they're not +used on a monochrome monitor. + +angband*color0: #ffffff +angband*color1: #000000 + +______________________________________________________________________ +Yet another example: +angband*angband*font: 9x15 +angband*angband*geometry: +300+220 + +angband*choice*font: 7x13 +angband*choice*geometry: +0+440 + +angband*mirror*font: 7x13 +angband*mirror*geometry: 80x15+460+590 + +angband*recall*font: 7x13 +angband*recall*geometry: 80x15+460+0 + +angband*term-1*font: 7x13 +angband*term-1*geometry: 80x15+460+0 + +angband*term-2*font: 7x13 +angband*term-2*geometry: +0+440 + +angband*term-3*font: 7x13 +angband*term-3*geometry: 80x15+460+590 + +angband*term-4*iconic: true +angband*term-5*iconic: true +angband*term-6*iconic: true +angband*term-7*iconic: true + +angband*color0: #000000 +angband*color1: #ffffff +angband*color2: #a6a6a6 +angband*color3: #ff6302 +angband*color4: #ca0808 +angband*color5: #008e18 +angband*color6: #0000e3 +angband*color7: #814007 +angband*color8: #6b6b6b +angband*color9: #d6d6d6 +angband*color10: #5100c2 +angband*color11: #fdf105 +angband*color12: #ff9259 +angband*color13: #26cf17 +angband*color14: #02b2f2 +angband*color15: #b28b48 +______________________________________________________________________ + + Resources: + +Name Class RepType Default Value +---- ----- ------- ------------- +background Background Pixel XtDefaultBackground +border BorderColor Pixel XtDefaultForeground +borderWidth BorderWidth Dimension 1 +cursor Cursor Cursor None +cursorName Cursor String NULL +destroyCallback Callback Pointer NULL +height Height Dimension 0 +insensitiveBorder Insensitive Pixmap Gray +mappedWhenManaged MappedWhenManaged Boolean True +pointerColor Foreground Pixel XtDefaultForeground +pointerColorBackground Background Pixel XtDefaultBackground +sensitive Sensitive Boolean True +width Width Dimension 0 +x Position Position 0 +y Position Position 0 + +!arch-tag: 2d36068f-a924-402b-a411-cd91be556609 --- tome-2.3.5.orig/debian/local.mk +++ tome-2.3.5/debian/local.mk @@ -0,0 +1,109 @@ +############################ -*- Mode: Makefile -*- ########################### +## local.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 10:42:10 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Fri Feb 8 00:51:41 2008 +## Last Machine Used: anzu.internal.golden-gryphon.com +## Update Count : 22 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: b07b1015-30ba-4b46-915f-78c776a808f4 +## +############################################################################### + +testdir: + $(testdir) + +BUILD/tome:: build/tome +INST/tome:: install/tome +BIN/tome:: binary/tome + +build/tome: + $(checkdir) + bash -n debian/postinst + bash -n debian/postrm + bash -n debian/prerm + bash -n debian/preinst + bash -n debian/Tome.sh + $(MAKE) -C src -f makefile.std + dpkg -l gcc 'libc*' binutils ldso make dpkg-dev | \ + awk '$$1 == "ii" { printf("%s-%s\n", $$2, $$3) }' > \ + debian/buildinfo + +install/tome: + rm -rf $(TMPTOP) $(TMPTOP).deb + rm -f $(PKG_INFO)/$(package).info*.gz + $(make_directory) $(TMPTOP) + $(make_directory) $(TMPTOP)/DEBIAN + $(make_directory) $(TMPTOP)/etc/$(package) + $(make_directory) $(TMPTOP)/usr/games + $(make_directory) $(PKG_MAN) + $(make_directory) $(PKG_DOC) + $(make_directory) $(PKG_LIBDIR) + $(make_directory) $(PKG_STATLIB) + $(make_directory) $(PKG_MENUDIR) + $(make_directory) $(LINTIANDIR) + echo "$(package): description-synopsis-might-not-be-phrased-properly" \ + >> $(LINTIANDIR)/$(package) + $(MAKE) -C src -f makefile.std DESTDIR=$(TMPTOP) \ + $(INT_INSTALL_TARGET) install + $(install_file) debian/conffiles $(TMPTOP)/DEBIAN/conffiles + $(install_file) debian/changelog $(PKG_DOC)/changelog.Debian + $(install_file) debian/README.debian $(PKG_DOC)/ + $(install_file) debian/NEWS.Debian $(PKG_DOC)/ + $(install_file) debian/Xresources $(PKG_DOC)/ + $(install_file) debian/buildinfo $(PKG_DOC)/buildinfo.Debian + $(install_file) src/$(package).man $(PKG_MAN)/$(package).6 + chmod 0644 $(PKG_LIBDIR)/edit/s_factory.map + chmod 0644 $(PKG_LIBDIR)/edit/s_ship.map + gzip -9fqr $(PKG_DOC) + gzip -9fqr $(PKG_MAN) + find $(PKG_LIBDIR) -type f -name .cvsignore -print0 | xargs -0r rm -f {} + find $(PKG_LIBDIR) -type d -name .arch-ids -print0 | xargs -0r rm -rf {} + (cd $(PKG_LIBDIR); mv edit file pref $(TMPTOP)/etc/$(package); \ + ln -s /etc/$(package)/edit . ; \ + ln -s /etc/$(package)/file . ; \ + ln -s /etc/$(package)/pref . ; ) + (cd $(PKG_LIBDIR); mv help $(PKG_STATLIB); \ + ln -s /usr/lib/$(package)/help . ; ) + for i in save/delete.me ; do \ + chmod 0644 $(PKG_LIBDIR)/$$i; \ + done + rm -f $(PKG_LIBDIR)/apex/scores.raw + chmod g+ws $(PKG_LIBDIR)/data/ +# Make sure the copyright file is not compressed + $(install_file) debian/copyright $(PKG_DOC)/ + $(install_file) debian/menuentry $(PKG_MENUDIR)/$(package) +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + strip $(STRIP) --remove-section=.comment \ + --remove-section=.note \ + $(TMPTOP)/usr/games/$(package) +endif + +binary/tome: + $(install_program) debian/preinst \ + $(TMPTOP)/DEBIAN/preinst + $(install_program) debian/postinst \ + $(TMPTOP)/DEBIAN/postinst + $(install_program) debian/prerm \ + $(TMPTOP)/DEBIAN/prerm + $(install_program) debian/postrm \ + $(TMPTOP)/DEBIAN/postrm + dpkg-shlibdeps $(TMPTOP)/usr/games/$(package) + dpkg-gencontrol -isp + $(create_md5sum) $(TMPTOP) + chown -R root:root $(TMPTOP)/DEBIAN $(TMPTOP)/usr/share/doc + chmod -R go=rX $(TMPTOP)/DEBIAN $(TMPTOP)/usr/share/doc + dpkg --build $(TMPTOP) .. + +clean: + $(MAKE) -C src -f makefile.std clean + touch ./lib/apex/delete.me + touch ./lib/data/delete.me + touch ./lib/info/delete.me + touch ./lib/save/delete.me + touch ./lib/user/delete.me --- tome-2.3.5.orig/debian/menuentry +++ tome-2.3.5/debian/menuentry @@ -0,0 +1,90 @@ +?package(tome):needs="text" section="Games/Adventure" title="Tome" \ + longtitle="A single-player, text-based, dungeon simulation." \ + description="Tome, short for Troubles of Middle Earth, is a single-player, \ + text-based, dungeon simulation derived from the game angband, which \ + in turn is derived from the older game Moria, which was in turn based \ + on Rogue. It is often described as a \"roguelike\" game because the \ + look and feel of the game is still quite similar to Rogue. \ + \ + In tome, the player may choose from a number of races and classes \ + when creating a character, and then \"run\" that character over a \ + period of days, weeks, even months, attempting to win the game by \ + defeating Morgoth, who lurks somewhere in the depths of the dungeon. \ + \ + The ultimate goal of the game is to develop a character strong enough \ + to defeat Morgoth, who resides on dungeon level 100. Upon doing so, \ + you will receive the exalted status of \"winner\" and your character may \ + retire. \ + \ + The first main difference from Angband a new player to ToME will need \ + to be aware of is that it has implemented a skills based system where \ + instead of the adventurer automatically improving in their abilities \ + as they become more experienced, they get 5 skill points to spend on \ + their character's abilities and can therefore customise what type of \ + character they play. See the skills help file for details \ + \ + The second major difference is that the main dungeon from Angband has \ + been split into 4 \"dungeons\", each of which cover a different \ + portion of the dungeon's levels. Note that not all of the places are \ + actually \"dungeons\" - some are caves, forests, etc. \ + \ + The third main difference between Vanilla Angband and ToME is the \ + difference in character classes and races, as well as a very \ + different magic system. ToME also offers the player the ability to \ + undertake a series of quests. It is not required for any adventurer \ + to undertake the fixed quests, but they can result in some nice \ + rewards. \ + \ + Morgoth was 'the Dark Enemy of Middle-Earth' during its First Age. He \ + was banished by the Valar (offspring of Eru, \"god\" of J.R.R. \ + Tolkien's world) at the end of the First Age and thus never appears \ + in The Lord of the Rings, set during the Third Age. Sauron, who does \ + figure into those tales, was the most powerful of his servants. Read \ + Tolkien's 'The Silmarillion' for more on the legends of Middle-Earth. \ + Angband is a reference to Morgoth's \"prison of iron.\"" \ + command="/usr/games/tome" +?package(tome):needs="X11" section="Games/Adventure" title="Tome"\ + longtitle="A single-player, text-based, dungeon simulation." \ + description="Tome, short for Troubles of Middle Earth, is a single-player, \ + text-based, dungeon simulation derived from the game angband, which \ + in turn is derived from the older game Moria, which was in turn based \ + on Rogue. It is often described as a \"roguelike\" game because the \ + look and feel of the game is still quite similar to Rogue. \ + \ + In tome, the player may choose from a number of races and classes \ + when creating a character, and then \"run\" that character over a \ + period of days, weeks, even months, attempting to win the game by \ + defeating Morgoth, who lurks somewhere in the depths of the dungeon. \ + \ + The ultimate goal of the game is to develop a character strong enough \ + to defeat Morgoth, who resides on dungeon level 100. Upon doing so, \ + you will receive the exalted status of \"winner\" and your character may \ + retire. \ + \ + The first main difference from Angband a new player to ToME will need \ + to be aware of is that it has implemented a skills based system where \ + instead of the adventurer automatically improving in their abilities \ + as they become more experienced, they get 5 skill points to spend on \ + their character's abilities and can therefore customise what type of \ + character they play. See the skills help file for details \ + \ + The second major difference is that the main dungeon from Angband has \ + been split into 4 \"dungeons\", each of which cover a different \ + portion of the dungeon's levels. Note that not all of the places are \ + actually \"dungeons\" - some are caves, forests, etc. \ + \ + The third main difference between Vanilla Angband and ToME is the \ + difference in character classes and races, as well as a very \ + different magic system. ToME also offers the player the ability to \ + undertake a series of quests. It is not required for any adventurer \ + to undertake the fixed quests, but they can result in some nice \ + rewards. \ + \ + Morgoth was 'the Dark Enemy of Middle-Earth' during its First Age. He \ + was banished by the Valar (offspring of Eru, \"god\" of J.R.R. \ + Tolkien's world) at the end of the First Age and thus never appears \ + in The Lord of the Rings, set during the Third Age. Sauron, who does \ + figure into those tales, was the most powerful of his servants. Read \ + Tolkien's 'The Silmarillion' for more on the legends of Middle-Earth. \ + Angband is a reference to Morgoth's \"prison of iron.\"" \ + command="/usr/games/tome" --- tome-2.3.5.orig/debian/preinst +++ tome-2.3.5/debian/preinst @@ -0,0 +1,102 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# preinst --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Nov 14 12:12:04 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Sat Nov 29 01:53:45 2003 +# Last Machine Used: glaurung.green-gryphon.com +# Update Count : 6 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: d6a3672d-acb3-4f6c-9984-bad17d8ce0aa +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# + + +# Abort if any command returns an error value +set -e + +package_name=tome + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + + + +# This script is called before this version of this package is installed. +# When this script is called, the package's files have not been unpacked +# yet. + +case "$1" in + install) + # About to install this package. + ##: + if [ -L /var/games/${package_name}/data ]; then + rm /var/games/${package_name}/data + fi + + if [ -d /usr/lib/${package_name}/data ]; then + rm -rf /usr/lib/${package_name}/data + fi + + # Add a diversion. This is one of the few things which may be done + # before installing any files from the package. + #: dpkg-divert --package foo --add --rename \ + ##: --divert /usr/bin/other.real /usr/bin/other + + # There are two sub-cases: + if test "${2+set}" = set; then + # The configuration files from version $2 of this package are + # still on the system. + : + + else + # There is no existing configuration; install from scratch. + : + + fi ;; + upgrade) + # About to upgrade this package from version $2 TO THIS VERSION. + # "prerm upgrade" has already been called for the old version of + # this package. + ##: + if [ -L /var/games/${package_name}/data ]; then + rm /var/games/${package_name}/data + fi + + if [ -d /usr/lib/${package_name}/data ]; then + rm -rf /usr/lib/${package_name}/data + fi + + ;; + abort-upgrade) + # Back out of an attempt to upgrade this package FROM THIS VERSION to + # version $2. Undo the effects of "postrm upgrade $2". + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +exit 0 --- tome-2.3.5.orig/debian/changelog +++ tome-2.3.5/debian/changelog @@ -0,0 +1,597 @@ +tome (2.3.5-2ubuntu1) natty; urgency=low + + * link against -lm fix FTBFS + + -- Bhavani Shankar Fri, 10 Dec 2010 11:48:20 +0530 + +tome (2.3.5-2) unstable; urgency=low + + * [f4042dd] Fix code which needed a 32 bit int to not use int/long + On amd64, but not on i386, tome produces LUA errors at various + times. The errors occur at savefile load, when wileding a weapon, + unweilding a weapon, and for other events. The same homedir, same + savefiles, same config, same etc., does not produce errors in the + 32bit build of the package. + + The error seems to be that the type Number needs to be a 32bit wide + integer; and seems to be defined by default as an long, with an option + to define it as an int for amd64. However, for the 11 arches Debian + supports, this would lead to a morass of selecting architectures in + the makefile to override the type; a better solution is to use + stdint.h and use a type which is 32 bits wide by design: int32_t. + + Bug fix: "frequent LUA errors on amd64, possibly influencing game + logic", thanks to jrodman@debbugs.spamportal.net; The fix was + inspired by a different fix proposed by Daniel White. + + This fixes the LUA errors, and (Closes: Bug#419825) + This is an important bug fix. + + -- Manoj Srivastava Tue, 21 Oct 2008 08:36:01 -0500 + +tome (2.3.5-1) unstable; urgency=low + + * New upstream release + Interface changes: + - The X11 and Xaw interfaces now save the dungeon and player when the + window is closed. + - Fixed cpu churning bug that occurs when using certain window managers and + ToME is maximized. + Gameplay changes: + - Player speed now set correctly when Demon Hide corruption is enabled. + - ToME now correctly sets various Balrog flags when player in Balrog form. + - ToME now correctly sets the teleport flags when teleport corruption is + enabled. + - ToME now uses the qrand7.map file when generating princess quests. + - Bigs changes for generate.c to get it to produce the princess and thrain + rooms. Also code clean up of room geranation code. + Object changes: + - Slings of Buckland can now be generated. + - Wiki Bug 510. Added the WIELD_CAST flag to all artifact instruments to + fix problems when casting spells. + Misc changes: + - Fixed small typo in the commands help file. + - Added help for the Mathom House. + - Fixed various compile time warnings in various files. + - Added makefile support for main-gtk2.c in makefile.std + - Values found in documentation for spectral race modifiers now match values + found in p_info.txt. + - Wiki Bug 837. Removed references to old inscriptions handling code in + documentation. + - Wiki Bug 564. Do not use the word 'restrict' as a variable name anymore. + It conflicts with keywords used by the Sun Studio Compiler. + - Wiki Bug 517. Fixed incorrect descriptoin of artifacts in help files. + - Changed description of Disarm spell to more accurately reflect what it + does. + - ToME now correctly compiles main-gtk2.c on 64-bit machines. + Bug fixes: + - Wiki Bugs 841, 405, 360. Changes to get ToME to correctly build 64-bit + executables. + - Applied killerbunnies patch to identify objects on grid before squelching. + - Applied killer bunnies patch to keep the fate "you are fated to find + something special" from creating something special with an inappropriate + base object. + - Applied killerbunnies patch stops symbiotes from gaining levels simply + by being hypnotized and released. + - ToME now saves tim_fly, tim_poison, tim_regen and tim_regen_power. + - Stores now display the inventory correctly after a purchase. + - The race the legends display now works correctly with more than 10 dead + characters in history. + - Characters are no longer generated with 0 mana points. + - Wiki Bug 839. ToME no longer penalizes an object when it is not actually + cursed. + - Wiki Bug 838. The melee style will now switch correctly from Bear to the + primary melee style when switching out of Bear form. + - Wiki Bug 826. The inventory and equipment windows now update when the + player identifies the entire pack or uses the *Greater Identify* spell. + - Wiki Bug 819. No more bogus level leaving messages. + - Wiki Bug 722. ToME no longer crashes purple staircases have been trapped. + - Wiki Bug 624. Ensure savefiles go to save and not scpt when using modules. + - Wiki Bug 537. Partial fix of infinite loop during stair allocation on + small levels. + - Wiki Bug 530. ToME no longer drops items inappropriately when changing + melee styles. + - Wiki Bug 528. Character dumps now show the correct number of princess and + lost sword quests. + - Wiki Bug 526. ToME no longer enters an infinite loop when fighting in + bare-hand combat sylte and bare-hand skill is < 1. + - Wiki Bug 523. All types of recall check if the user really wants to leave + a unique level. + - Wiki Bug 506. ToME no longer crashes attempting to drop non-existant + artifacts. + - Wiki Bug 419. Use SKILL_BOULDER instead of SKILL_ARCHERY when throwing + a boulder. + - Wiki Bug 411. Black breath no longer gets 3 chances to happen. + - Wiki Bug 394 and 393. Inertia Control autocasting can no longer cast a + spell when antimagic field > 0 or when wielding a dark sword. + - Wiki Bug 334. Companions are no longer saved in dungone save files. + - Work around Mac OS 10.4.11 getlogin() bug - Neil + - Wiki Bug 397. ToME no longer crashes on XP and Vista systems when viewing + quests or other info from the knowledge menu. + * Change the control file to reflect the repo change to git. + * Update the build depends to reflect the fact that we now also compile + the SDL version, which is the preferred back end. + + -- Manoj Srivastava Tue, 27 May 2008 17:35:12 -0500 + +tome (2.3.4-2) unstable; urgency=low + + * Added patch to allow saving games when playing optional modules. Patch + from Bob Vincent Closes: #428910 + + -- Manoj Srivastava Fri, 08 Feb 2008 00:38:49 -0600 + +tome (2.3.4-1) unstable; urgency=low + + * New upstream release + Interface changes: + - Fix window position saving on Mac OS, patch by John Love-Jensen + -- Neil + Bug fixes: + - Remove buggy trap of Stair Movement -- Neil + - Fix typo in one monster's flags - Iain + - Fix word wrapping in character sheet, patch from "ZizzoTheInfinite" + -- Neil + + -- Manoj Srivastava Fri, 27 Oct 2006 09:58:27 -0500 + +tome (2.3.3-3) unstable; urgency=low + + * Updated copyright file. + * remove obsolete libxaw8-dev dependency + + -- Manoj Srivastava Fri, 16 Jun 2006 08:49:48 -0500 + +tome (2.3.3-2) unstable; urgency=low + + * Updated build dependencies. + + -- Manoj Srivastava Wed, 8 Feb 2006 10:45:14 -0600 + +tome (2.3.3-1) unstable; urgency=low + + * New upstream release + Interface changes: + - Miscellaneous documentation, spelling and grammar fixes. -- gwooledge + - Update AC display after fixing armor in the buildings. -- gwooledge + - Fix damage display for Thaumaturgy ball spells. -- gwooledge + - Honor exp_need option when displaying object experience. -- gwooledge + - Restored and updated some missing help files. -- gwooledge + - Handling of Command key modified in Mac OS X UI. It should be accessible + in macros now if it wasn't before -- Neil + Gameplay changes: + - Lost sword quest rewards always give a minimum skill modifier of 0.3. + -- gwooledge + - (Mass) Genocide damage is applied all at once to avoid bug #228. + -- gwooledge + Monster changes: + - Kavlax should be many-headed. -- gwooledge + - Regular (non-Joke, non-Cth, non-Z) monsters should not breathe nuke, + because it has a side effect we don't want in ToME -- Neil + Object changes: + - Removed pointless slays, brands, and bonuses on Pick of Erebor -- Neil + - When examining books, demonology equipment and instruments in stores, show + both the object's powers and its spells. -- gwooledge + - Junk should stack just like skeletons. Patch by StarweaverBlue. + -- gwooledge + - Mac OS X builds now put all the game data into the bundle, storing all + user data in the user's Library (some preferences in + Library/Preferences/net.t-o-m-e.tome.plist, the rest in + Library/Application Support/ToME. -- Neil + Player changes: + - All new partial summon upkeep formula -- neil + Dungeon changes: + - Edit one vault to open up some inaccessible rooms -- Neil + - A certain early trap should be less deadly (and appear a bit later). + -- gwooledge + Bug fixes: + - Alchemy: disallow repowering double-ego items, unless the character has + the artifact creation ability. Based on patch by Andrey Egoshin. + -- gwooledge + - Lost sword quest skill reward probabilities were computed incorrectly. + Fix suggested by Dan Rosenberry. -- gwooledge + - Don't let a player trick the Valar by getting drained and re-gaining + levels -- Neil + - Don't allow Runecraft and Thaumaturgy spells to go explode inside walls + and seep through -- Neil + - When consuming magic essences, don't stop prematurely. Based on patch + by Andrey Egoshin. -- gwooledge + - Upkeep cost for partial summons was not always charged. -- gwooledge + - Some staves were being generated with the wrong tval, causing several bugs + including (but not limited to) staves being unrechargeable. -- gwooledge + - Saving throw was not calculated correctly. -- gwooledge + - Disallow negative experience alchemy abuses. Based on patch by Andrey + Egoshin. -- gwooledge + - Nonliving and undead pets won't be angered by lack of breathable air. + -- gwooledge + - Don't use the "POSIX" setuid calls on Mac OS X, as they apparently break + compilation -- neil + - Certain monster spells were hard-coded for the wrong number of equipment + slots. -- gwooledge + - Incorrect operator used in cave generation code. Effect unknown, but it + *might* possibly fix some of the Orc cave crashes.-- gwooledge + - Don't allow uniques or quest monsters to just disappear to the move of + another monster -- Neil + - Attempt to work around some crashes in the fractal cave generator -- Neil + + -- Manoj Srivastava Fri, 30 Dec 2005 15:54:19 -0600 + +tome (2.3.2-1) unstable; urgency=low + + * New upstream release. + Interface changes: + - If easy_disarm is off, don't trigger known traps while walking normally. + Added a new extended command "blunder" to let players trigger traps on + purpose. -- gwooledge + - Lots of documentation, spelling and grammar fixes, including: + * the now-outdated race/class ability tables, replaced with skill tables + * the missing documentation for the set of extended commands + * far too many others to mention here + -- gwooledge + - Added sanity and speed to the character screen (and hence the text dump). + Consolidated HP and SP into one line to make room. -- gwooledge + - Allow shopping to use the correct keys in roguelike mode. -- gwooledge + - Push a certain potion type a little deeper into the dungeon -- Neil + - Make piety display light blue when praying, to make it easier to tell + when you're praying. -- gwooledge + - Don't display ordinary resists when there's also an immunity to the same + element, in an object description. -- gwooledge + - Display the (colored) character for uniques in the Known Uniques list (~2). + -- gwooledge + - Add "Check abilities" extended command/macro. This gives roguelike keyset + players a way to access the ability screen other than "\N", although it's + still one more keystroke than "\N" is.... -- gwooledge + - Clean up some offensive messages, patch courtesy of 'The Fury' -- Neil + - Include the resistances grid on character sheets dumped on death. + This makes them consistent with the ones generated before death, and + is more informative and useful for post mortem analyses. -- gwooledge + - Examining a totem will recall the monster it summons -- Neil + - Examining a corpse will recall the monster it was -- Neil + + Object changes: + - Prevent random artifact bolts from giving extra blows -- Neil + - Correct the types of certain artifact trap sets to match their weights + and descriptions. -- gwooledge + - Potions of Cure Insanity were too cheap. -- gwooledge + + Player changes: + - Warriors no longer get a secret special three bonus blows spread over the + 50 character levels. The three blows are now tied to Weaponmastery. + Module authors should adjust accordingly, or their warriors may get three + blows they didn't have before. -- Neil + + Bug fixes: + - Don't allow trap doors on quest levels or on chests. -- gwooledge + - Update view after high-powered globe of light. -- gwooledge + - Don't allow use of stairs (any < or > movement command) while rooted + to the floor (by the Yavanna spell). -- gwooledge + - Try again to keep traps from wrecking a certain plot element -- Neil + - Fix module file handling for multi-user installs. Now character sheets, + automatizer file, and the rest will be read and written in + ~/.tome/2.3/modulename as they should. -- Neil + - Try harder to save persistent levels when recalling out -- Neil + - Fix all sub-racial skill bonuses, along with Maia racial skill bonuses + -- Neil + * Bug fix: "tome must be build against libxaw7", thanks to serge + (Closes: #305759). + + -- Manoj Srivastava Thu, 11 Aug 2005 15:03:52 -0500 + +tome (2.3.1-1) unstable; urgency=low + + * New upstream release. + - Fix loading and saving of skills, I hope. Unfortunately this breaks save + compatiability, though. The saves must be deleted again. -- Neil + - Fix negative skills -- Neil + - Don't use weaponmastery combat when weaponmastery skill is negative -- Neil + + -- Manoj Srivastava Sat, 22 Jan 2005 17:33:40 -0600 + +tome (2.3.0-1) unstable; urgency=low + + * New upstream release. + + Gameplay changes: + - Added the new Mimic shapes and updated the old ones -- masmarangio + - Destroying items manually now takes no time -- neil + - Added the spell Sterilize and Staves of Sterilization from ToME 3.0.0. + - Added the spell Inertia Control from ToME 3.0.0 -- masmarangio + + Object changes: + - Removed portable holes as have been useless for as long as merchants have + been removed from game. --fearoffours + - k_info.txt: Changed comments and descriptions of the items, mostly from + the wiki (Bug # 176) and added missing descriptions (IdeaArchive) + Added article (&) in the name of armours (Bug # 81), + The spelling of some item names was changed: Scroll of Enchant Armour, + *Enchant Armour*, Curse Armour, Summon Monsters, Basilard + Added COULD2H to the Claymore and MUST2H to the Espadon. + - ra_info.txt: Added a STR-increasing part without combat bonuses for diggers + - e_info.txt: Diggers cannot be of Earthquakes anymore (there are combat boni + involved) - perhaps an own ego type should be added... -- masmarangio + - No more blessed boomerangs -- neil + + Player changes: + - Class no longer influences the internal Angband 'skills' of Disarming, + Magic Devices, Saving Throw, Stealth, Searching, Perception, Hand-to-Hand + combat, Missile Combat, and Throwing. ToME skills instead have the same + effect for all classes. -- neil + - Water Bite no longer has a damage cap -- neil + - Except for infravision, all innate class or racial effects on skills are + gone. All skills have equal effect for all classes, and races now give + starting skill bonuses. -- Neil + - Mages are more geared toward a mix of Magic and Combat, while Sorcerors + have more options than pure Sorcery -- Neil + - Priests disarm as well as Warriors do now -- neil + + Misc changes: + - a_info.txt: Updated names of artifacts in the comments -- masmarangio + - object.pkg: Added psychometry() for easier mindcraft testing. + - birth.txt, index.txt : Corrected and added abbreviations + gen_idx.lua: removed non-existent file and sorted file list + - Updated luckspoiler -- masmarangio + - Typo in s_fire.lua, from the wiki -- masmarangio + - rm_skeleton.txt, rm_zombie.txt: They cannot restore life force, and zombies + are not resistant to nether -- masmarangio + - Helpfile updates for all character classes. -- masmarangio + - util.pkg: Added lite_spot() and note_spot() for modules -- masmarangio + - g_melkor.txt: Added fire resistance for worshippers of Melkor + - p_info.txt: Removed the useless skill Prayer for Maiar -- masmarangio + - help file documentation restructuring, copying appropriate rewrites from + wiki. -- fearoffours + - Various minor changes to helpfiles, reflecting current changes to + documentaiton on the wiki. --fearoffours + - k_info.txt: Fixed name of the commented out portable holes -- masmarangio + - Fixed some typographical errors, mostly from the wiki: + cmd1.c: [The monster] fall -> falls, deleted space (Bug # 80 from the wiki) + k_info.txt: Added & for Climbing sets (Bug # 81 from the wiki) + q_one.c: You felt -> You fell (Bug # 94 from the wiki) + monster2.c: It tries to breed but he fails: he -> it (Bug # 98 from the wiki) + bldg.c: Changed wording of the soothsayer (Bug # 106 from the wiki) + tables.c: Minor changes in the One Ring quest (Bug # 117 from the wiki) + q_invas.c: jumps out of the between -> appears, deleted spaces, + added single quotes in direct speech (Bug # 119 from the wiki) + q_between.c: Deleted space, changed comments -- masmarangio + - book-4.txt: Capitalised 'Ring' (Bug # 135 from the wiki) -- masmarangio + - options.txt: Also removed the options from the help file -- masmarangio + - cmd6.c: replaced the recall activation code by recall_player -- masmarangio + - monster1.c: missing spaces in description (Bug # 169) -- masmarangio + - Modules need to define three new variables to control the chance or + random artifact generation. random_artifact_weapon_chance, + random_artifact_armor_chance, random_artifact_jewelry_chance control + the chance for different types of items. -- neil + - mods_aux.lua: Added default values for random artifact generation; + updated the skill values -- masmarangio + - cmd6.c: protect evil -> protection from evil, s_stick.lua: town -> surface + q_betwen.c, q_invas.c: speak -> speaks (from the forum) -- masmarangio + - tr_info.txt: Spelling of Lite (Bug # 182), Armor, Paralyzing -- masmarangio + - The (Ctrl-Q) Quest screen now shows which number god quest you have been given + and an additional line in your character dump shows how many have been + successfully completed. -- fearoffours + - Help updates from the wiki - lots of it Maylith's work, esp FAQ updates. + -- fearoffours + - Corrected the description of the Disarm, Call the Elements and Channel + Elements spells (without changing the code) (Bug # 175) -- masmarangio + - tome-faq.txt, index.txt: Typo (Bug # 196) -- masmarangio + - s_info.txt: Antimagic: generates -> generate (Bug # 198) -- masmarangio + - powers.c: replaced the recall power code by recall_player + q_troll.c: Fixed typos from the wiki (Bug # 208) -- masmarangio + - tables.c: Removed harpers and some other small changes (Bug # 212) + cmd6.c: Added "and" in the description of ACT_ROHAN (Bug # 213) + -- masmarangio + - m_demono.txt, s_demon.lua: armor -> armour class (Bug # 217) + - dun3.18: description of DimGates: fills -> fill (Bug # 223) + -- masmarangio + - init1.c: The parser adds missing spaces at the end of the + description of artifacts, like it did for objects. -- masmarangio + - Race, class and race modifier help files updates to reflect changes + in skill bonuses. -- fearoffours + Some changes to random artifact and scrolls of artifact creation + (See Bugs # 206, 222, 226 on the wiki): + - externs.h: Moved some functions listed under spells2.c to proper sections + - k_info.txt: Added "mundane" to the description of the scroll + - q_ultrag.c: Quest texts changed as reported in Bug # 210 -- masmarangio + - spells.lua: Sorted the Conveyance spells by level (Bug # 233) + -- masmarangio + - Helpfiles reflect changes to skills (priest disarming and racial + spirituality update). -- fearoffours + - library.lua: Added OBJ_FOUND_REWARD to the tome (Bug # 237) -- masmarangio + + Dungeon changes: + - Added the first new special level from ToME 3.0.0, Galleon in Helcaraxe + -- masmarangio + - Added the special level Factory in the Illusory Castle -- masmarangio + - dungeon.c: Level of the Death dungeon is the minimum level from d_info.txt + + Bug fixes: + - dungeon.c: Light should consume fuel at a rate of 1 / turn -- masmarangio + - A store (e.g. the mathom house) can contain up to 255 items (in defines.h + STORE_INVEN_MAX limited the number of items to 24) (Note: the limit is + stored in a byte in loadsaves.c) -- masmarangio + - s_meta.lua: Inertia controlled spells are not casted in wilderness mode. + s_mana.lua: Inertia level of Disruption Shield is 9 (needed spell level 45) + m_meta.txt: Added a list of controllable spells -- masmarangio + - p_info.txt: Archers and Rangers gain the missing Spirituality skill + p_info.txt: Removed the old Mimic Cloak (new cloak in player.lua) + - p_info.txt: Thunderlords start with Stealth -16.000 (from the wiki) + - cmd7.c: Fixed Alchemy recharging bug (thanks to Scott) + - al_info.txt: Removed the old Mimic Potions -- masmarangio + - monspeak.txt: Added some lines for Groo to fix a bug -- masmarangio + - files.c: Corrected display of Climb flag, immunity to Nether, negative + pvals < -9. Added Sentient, Clone, Spider ESP flags. -- masmarangio + - files.c: Added flags from the gods and spell schools to the character + screen. Added also flags from wielded symbiotes. -- masmarangio + - cmd4.c: Quest list without random quests in DL > 98 -- masmarangio + - randart.c: An item with pval > 0 (e.g. an Elven Cloak) can gain parts + with a max_pval = 0 (e.g. resistances and immunities) -- masmarangio + - ow_info.txt: missing C: lines reduced the purse to 0 -- masmarangio + - object1.c: don't wield bolts with instruments and pebbles with boomerangs + (Bug # 127 from the wiki) -- masmarangio + - object1.c: mention_use and describe_use list all available slots, check all + weapon weights and distinguish between instruments and bows (Bug # 87) + object1.c: Res Chaos implies Res Confusion (for the character screen) + xtra1.c: Magical breath implies Water breath (from the wiki) -- masmarangio + - Z and Cth monster options removed, as in ToME 3. This fixes, among other + things, the Death Orb issues. -- neil + - a_info.txt: Corrected two typos (Bugs # 140, 146 from the wiki) + k_info.txt: Changed description of Bastard Sword, added RES_CHAOS to the + known flags of a Blade of Chaos (it's mentioned in the description) + files.c: Terminated highscore strings with \0, changed total_points + slightly to prevent an overflow error (Bug # 139 from the wiki) + v_info.txt: Corrected the x size of vault 99 and 104 -- masmarangio + - dungeon.c: Set dungeon_type to wilderness when recalling out. This should + fix the various Moria recalling bugs (Bug # 95) + - spells2.c: Redraw trap status after passwall (Bug # 51) + store.c: Removed '))' when displaying a large store -- masmarangio + - al_info.txt: removed recipe for Scroll of Spell (Bug # 179), added recipe + for Staff of Sterilisation (Bug # 77) -- masmarangio + - cmd6.c: Added timeout for junkarts in the activation description (ugly fix) + tables.c: Replaced ACT_CURE_POISON by not used ACT_CURE_POIS -- masmarangio + - Once a god quest is failed, you will not receive any more god quests. + -- fearoffours + - bldg.c: Research item (Bug # 191) and research monster are now paid + correctly -- masmarangio + - spells2.c: Diggers cannot be enchanted with scrolls -- masmarangio + - files.c: Fixed displayed barehanded damage (Patch from Scott, Bug # 195) + -- masmarangio + - files.c: Remove / restore CAVE_VIEW before / after saving the game. + This solves a long standing bug with the lighting of the dungeon + since the temporary arrays that hold the position of the viewed + grids are not stored in the save file (Bug # 19). -- masmarangio + - cmd6.c: the selection of artifactable items can be escaped now + randart.c: *ID* the object before listing the powers, some re-ordering + - spells2.c: Re-add diggers to item_tester_artifactable, and limit the + selection to normal items due to complains (no ego items or artifacts) + - ra_info.txt: Fixed two W-lines with 4 entries and added a missing C-line + - k_info.txt: Reduced throwing damage of totems to 1 -- masmarangio + - st_info.txt: Fixed the changed item names in the stores (StatusReport3) + - Fix for disappearing artifacts (especially guardian artifacts) during load / save + thanks to SimonSorc + + -- Manoj Srivastava Tue, 7 Dec 2004 19:22:40 -0600 + +tome (2.2.7-1) unstable; urgency=low + + * New upstream release. This is a bug fix release. + + -- Manoj Srivastava Sun, 13 Jun 2004 22:02:32 -0500 + +tome (2.2.6-2) unstable; urgency=low + + * Bug fix: "XSIisms in postinst, prerm; violates policy 10.4", thanks to + Clint Adams (Closes: #237959). + + -- Manoj Srivastava Sun, 14 Mar 2004 12:24:19 -0600 + +tome (2.2.6-1) unstable; urgency=low + + * New upstream release + + Interfaces changes: + * Pressing Escape gets you out of the pet dismissal list -- neil + + Misc changes: + * Helpfiles: bearform combat help, music typos, barbarian + revisions. -- fearoffours + * - Typos in the description of arrows, shots, bolts; punctuation in + the mushroom quest -- masmarangio + * HOOK_CALC_BONUS_END hooks + * Helpfiles: corrected starting equipment of mindcrafters -- masmarangio + * - Backport of old helpfile updates: no Geomancy for Alchemists and + Rune- crafters, updated luck spoiler, corruption spoiler in + crpt_aux.lua, a link in skills.txt, an example in + automatizer.txt. monsters3.c: changed 'golem' to 'creature', since the + Mind Steal Spell also allows to control a monster. -- masmarangio + * Typo (massage -> message) from the forum -- masmarangio + * Capitalisation in the names of junkarts -- masmarangio + * mindcraft_info: Corrected and expanded the info for mindcraft powers -- masmarangio + * Small corrections in luck spoiler, description of Manwe's Blessing + and m_mimic.txt -- masmarangio + + Bug fixes: + * Prevent recall to Lost Temple before getting the quest -- neil + * Automatizer now accepts TV_TOTEM -- neil + * Some vaults incorrectly named -- fearoffours + * Wight quest crash fix by 'amaurea' -- neil + * God choosen at random was broken -- masmarangio + * Typo in q_one.c (or -> of) + * Don't use a turn when cancelling a possessor action -- neil + * - summon_true crashed the game with a summon skill < 1 -- masmarangio + * - test_object_wish: aware status is saved and restored -- masmarangio + * God quest will no longer give inaccurate or misleading + directions. It also will now give directions from two static features, + and an approximate, relative distance from each of those points. -- + fearoffours + + * Bug fix: "Error in /usr/lib/menu/tome", thanks to Philipp Kolmann + (Closes: #234871). + + -- Manoj Srivastava Wed, 10 Mar 2004 23:45:55 -0600 + +tome (2.2.5-1) unstable; urgency=low + + * New upstream release + Monsters changes: + * Drain attacks can't drain the one artifact wand, staff, or horn -- neil + + Objects changes: + * Some items that give damage bonuses will be more clear about it -- neil + + Bug fixes: + * Fix monster possessor crash -- neil + * Fix random quest skill requester -- neil + * Fix crash when picking up ammo into your quiver that can't be + fired with the launcher you are wielding -- neil + * God quest fix -- neil + * Disintegrating walls should not bother Yavanna -- neil + * Yet another try at fixing levelled carried monsters. Their + attacks are affected by their level now and their hitpoints are + handled better. I should have said this for the last release, + but un-hypnotize any pets before upgrading from 2.2.2. Otherwise + compatibility is fine. -- neil + * Semi-wraiths should not be hurt by climbing over mountains -- neil + * Fixed Flame of Udun spell + * Diggers are not weapons and should not be displayed as such -- neil + + + -- Manoj Srivastava Wed, 24 Dec 2003 10:59:50 -0600 + +tome (2.2.4-1) unstable; urgency=low + + * New upstream Bugfix version. + * Redid the build system. + + -- Manoj Srivastava Mon, 24 Nov 2003 23:52:59 -0600 + +tome (2.2.3-1) unstable; urgency=low + + * New upstream Bugfix version. + * Fixed the menuentry for tome, quoting a " char. closes: Bug#207648 + + -- Manoj Srivastava Fri, 03 Oct 2003 10:58:24 -0500 + +tome (2.2.2.0-CVS031001-1) unstable; urgency=low + + * Fixed usage of chown root.root in the rules files. + * This is a major security update; hundreds of potential buffer + overflows (most of them not exploitable) have been fixed in this + version. At the request of upstream, this audit was done on the CVS + version. + + -- Manoj Srivastava Wed, 27 Aug 2003 02:05:02 -0500 + +tome (2.2.2-2) unstable; urgency=low + + * Added clarifications to the copyright file, after personal + communications from Dark God , the author of the + Tome variant. + + -- Manoj Srivastava Sat, 2 Aug 2003 13:59:46 -0500 + +tome (2.2.2-1) unstable; urgency=low + + * Initial Release. + + -- Manoj Srivastava Fri, 1 Aug 2003 22:02:44 -0500 + + --- tome-2.3.5.orig/debian/conffiles +++ tome-2.3.5/debian/conffiles @@ -0,0 +1,162 @@ +/etc/tome/file/book-0.txt +/etc/tome/file/book-1.txt +/etc/tome/file/book-10.txt +/etc/tome/file/book-101.txt +/etc/tome/file/book-102.txt +/etc/tome/file/book-103.txt +/etc/tome/file/book-104.txt +/etc/tome/file/book-105.txt +/etc/tome/file/book-106.txt +/etc/tome/file/book-107.txt +/etc/tome/file/book-11.txt +/etc/tome/file/book-12.txt +/etc/tome/file/book-13.txt +/etc/tome/file/book-14.txt +/etc/tome/file/book-15.txt +/etc/tome/file/book-16.txt +/etc/tome/file/book-17.txt +/etc/tome/file/book-18.txt +/etc/tome/file/book-19.txt +/etc/tome/file/book-2.txt +/etc/tome/file/book-20.txt +/etc/tome/file/book-200.txt +/etc/tome/file/book-201.txt +/etc/tome/file/book-202.txt +/etc/tome/file/book-203.txt +/etc/tome/file/book-4.txt +/etc/tome/file/book-6.txt +/etc/tome/file/book-7.txt +/etc/tome/file/book-8.txt +/etc/tome/file/book-9.txt +/etc/tome/file/bravado.txt +/etc/tome/file/chainswd.txt +/etc/tome/file/dam_huge.txt +/etc/tome/file/dam_lots.txt +/etc/tome/file/dam_med.txt +/etc/tome/file/dam_none.txt +/etc/tome/file/dam_xxx.txt +/etc/tome/file/dead.txt +/etc/tome/file/death.txt +/etc/tome/file/elvish.txt +/etc/tome/file/error.txt +/etc/tome/file/mondeath.txt +/etc/tome/file/monfear.txt +/etc/tome/file/monspeak.txt +/etc/tome/file/news.txt +/etc/tome/file/news2.txt +/etc/tome/file/rart_f.txt +/etc/tome/file/rart_s.txt +/etc/tome/file/readme! +/etc/tome/file/rumors.txt +/etc/tome/file/sample.txt +/etc/tome/file/sfail.txt +/etc/tome/file/silly.txt +/etc/tome/file/smeagol.txt +/etc/tome/file/smeagolr.txt +/etc/tome/file/speakpet.txt +/etc/tome/file/timefun.txt +/etc/tome/file/timenorm.txt +/etc/tome/edit/a_info.txt +/etc/tome/edit/ab_info.txt +/etc/tome/edit/al_info.txt +/etc/tome/edit/ba_info.txt +/etc/tome/edit/between.map +/etc/tome/edit/d_info.txt +/etc/tome/edit/dragons.map +/etc/tome/edit/e_info.txt +/etc/tome/edit/evil.map +/etc/tome/edit/f_info.txt +/etc/tome/edit/haunted.map +/etc/tome/edit/k_info.txt +/etc/tome/edit/maeglin.map +/etc/tome/edit/misc.txt +/etc/tome/edit/nirnaeth.map +/etc/tome/edit/numenor.txt +/etc/tome/edit/ow_info.txt +/etc/tome/edit/p_info.txt +/etc/tome/edit/qrand1.map +/etc/tome/edit/qrand10.map +/etc/tome/edit/qrand11.map +/etc/tome/edit/qrand12.map +/etc/tome/edit/qrand14.map +/etc/tome/edit/qrand5.map +/etc/tome/edit/qrand6.map +/etc/tome/edit/qrand7.map +/etc/tome/edit/r_info.txt +/etc/tome/edit/ra_info.txt +/etc/tome/edit/re_info.txt +/etc/tome/edit/readme.txt +/etc/tome/edit/s_crypt.map +/etc/tome/edit/s_death.map +/etc/tome/edit/s_doom.map +/etc/tome/edit/s_factory.map +/etc/tome/edit/s_gates.map +/etc/tome/edit/s_info.txt +/etc/tome/edit/s_name.map +/etc/tome/edit/s_orc.map +/etc/tome/edit/s_ship.map +/etc/tome/edit/set_info.txt +/etc/tome/edit/special.txt +/etc/tome/edit/spiders.map +/etc/tome/edit/st_info.txt +/etc/tome/edit/t_basic.txt +/etc/tome/edit/t_bree.txt +/etc/tome/edit/t_d_bree.txt +/etc/tome/edit/t_d_gond.txt +/etc/tome/edit/t_d_khaz.txt +/etc/tome/edit/t_d_lori.txt +/etc/tome/edit/t_d_mina.txt +/etc/tome/edit/t_gondol.txt +/etc/tome/edit/t_info.txt +/etc/tome/edit/t_khazad.txt +/etc/tome/edit/t_lorien.txt +/etc/tome/edit/t_minas.txt +/etc/tome/edit/t_pref.txt +/etc/tome/edit/thieves.map +/etc/tome/edit/thrain.map +/etc/tome/edit/tr_info.txt +/etc/tome/edit/trolls.map +/etc/tome/edit/v_info.txt +/etc/tome/edit/volcano.txt +/etc/tome/edit/w_info.txt +/etc/tome/edit/wf_info.txt +/etc/tome/edit/wights.map +/etc/tome/edit/wolves.map +/etc/tome/pref/422color.prf +/etc/tome/pref/colors.prf +/etc/tome/pref/font-ami.prf +/etc/tome/pref/font-dos.prf +/etc/tome/pref/font-ibm.prf +/etc/tome/pref/font-mac.new +/etc/tome/pref/font-mac.prf +/etc/tome/pref/font-win.prf +/etc/tome/pref/font-x11.prf +/etc/tome/pref/font-xxx.prf +/etc/tome/pref/font.prf +/etc/tome/pref/graf-ami.prf +/etc/tome/pref/graf-dos.prf +/etc/tome/pref/graf-ibm.prf +/etc/tome/pref/graf-iso.prf +/etc/tome/pref/graf-mac.prf +/etc/tome/pref/graf-new.prf +/etc/tome/pref/graf-sdl.prf +/etc/tome/pref/graf-win.prf +/etc/tome/pref/graf-x11.prf +/etc/tome/pref/graf-xxx.prf +/etc/tome/pref/graf.prf +/etc/tome/pref/pref-acn.prf +/etc/tome/pref/pref-ami.prf +/etc/tome/pref/pref-emx.prf +/etc/tome/pref/pref-gcu.prf +/etc/tome/pref/pref-iso.prf +/etc/tome/pref/pref-mac.prf +/etc/tome/pref/pref-sdl.prf +/etc/tome/pref/pref-win.prf +/etc/tome/pref/pref-x11.prf +/etc/tome/pref/pref.prf +/etc/tome/pref/trap-iso.prf +/etc/tome/pref/trap-xxx.prf +/etc/tome/pref/user.prf +/etc/tome/pref/xtra-gcu.prf +/etc/tome/pref/xtra-new.prf +/etc/tome/pref/xtra-xxx.prf --- tome-2.3.5.orig/debian/prerm +++ tome-2.3.5/debian/prerm @@ -0,0 +1,132 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# prerm --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Nov 14 12:16:39 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Sun Mar 14 12:19:51 2004 +# Last Machine Used: glaurung.internal.golden-gryphon.com +# Update Count : 11 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: a4c1a888-137d-4800-98f8-93d0365422d8 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# + +# Abort if any command returns an error value +set -e + +package_name=tome + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + + +# This script is called as the first step in removing the package from +# the system. This includes cases where the user explicitly asked for +# the package to be removed, upgrade, automatic removal due to conflicts, +# and deconfiguration due to temporary removal of a depended-on package. + +# Info files should be uninstalled from the dir file in any case. +##: install-info --quiet --remove /usr/info/${package_name}.info + +case "$1" in + remove) + # This package about to be removed. + ##: + if [ -L /usr/doc/$package_name ]; then + rm -f /usr/doc/$package_name + fi + + # Remove package-specific directories from /usr/local. Don't try + # to remove standard directories such as /usr/local/lib. + ##: if test -d /usr/local/lib/${package_name}; then + ##: rmdir /usr/local/lib/${package_name} || true + ##: fi + + # Deactivate menu-methods script. + ##: chmod a-x /etc/menu-methods/${package_name} + + # Withdraw our version of a program. + ##: update-alternatives --remove program /usr/bin/alternative + + # Get rid of the installed docs + ##: if which install-docs >/dev/null 2>&1; then + ##: install-docs -r $package_name + ##: fi + + # Get rid of the byte compiled files + ##: if [ -x /usr/lib/emacsen-common/emacs-package-remove ]; then + ##: /usr/lib/emacsen-common/emacs-package-remove $package_name + ##: fi + + if [ -L /usr/doc/$package_name ]; then + rm -f /usr/doc/$package_name + fi + + # There are two sub-cases: + if test "${2+set}" = set; then + if test "$2" != in-favour; then + echo "$0: undocumented call to \`prerm $*'" 1>&2 + exit 0 + fi + # We are being removed because of a conflict with package $3 + # (version $4), which is now being installed. + : + + else + # The package is being removed in its own right. + : + + fi ;; + deconfigure) + if test "$2" != in-favour || test "$5" != removing; then + echo "$0: undocumented call to \`prerm $*'" 1>&2 + exit 0 + fi + # Package $6 (version $7) which we depend on is being removed due + # to a conflict with package $3 (version $4), and this package is + # being deconfigured until $6 can be reinstalled. + : + + ;; + upgrade) + # Prepare to upgrade FROM THIS VERSION of this package to version $2. + ##: + + if [ -L /usr/doc/$package_name ]; then + rm -f /usr/doc/$package_name + fi + + ;; + failed-upgrade) + # Prepare to upgrade from version $2 of this package TO THIS VERSION. + # This is only used if the old version's prerm couldn't handle it, + # and returned non-zero. (Fix old prerm bugs here.) + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +exit 0 --- tome-2.3.5.orig/debian/copyright +++ tome-2.3.5/debian/copyright @@ -0,0 +1,83 @@ +This package was debianized by Manoj Srivastava + +Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke + +This software may be copied and distributed for educational, research, +and not for profit purposes provided that this copyright and statement +are included in all such copies. Other copyrights may also apply. + + +All changes made by Ben Harrison, Robert Ruehlmann, and many other Angband +developers are also available under the GNU GENERAL PUBLIC LICENSE. +Note that this doesn't influence the current distribution, since parts of +the source are still only available under the old Moria/Angband license. +Until all parts of Angband are distributed under the GPL the only valid +license remains the original Moria/Angband license. + +More informations about Angband and the GPL can be found at: +http://thangorodrim.angband.org/development/opensource.html + + + + Copyright (c) 1989 James E. Wilson + Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke + + This software may be copied and distributed for educational, research, and + not for profit purposes provided that this copyright and statement are + included in all such copies. + + Note that these copyright messages apply to an ancient version + of Angband, as in, from pre-2.4.frog-knows days, and thus the + reference to "5.0" is rather misleading... + + UNIX ANGBAND Version 5.0 + + Original copyright message follows. + + ANGBAND Version 4.8 COPYRIGHT (c) Robert Alan Koeneke + + I lovingly dedicate this game to hackers and adventurers + everywhere... + + Designer and Programmer: + Robert Alan Koeneke + University of Oklahoma + + Assistant Programmer: + Jimmey Wayne Todd + University of Oklahoma + + Assistant Programmer: + Gary D. McAdoo + University of Oklahoma + + UNIX Port: + James E. Wilson + UC Berkeley + wilson@ernie.Berkeley.EDU + ucbvax!ucbernie!wilson + + ANGBAND may be copied and modified freely as long as the above + credits are retained. No one who-so-ever may sell or market + this software in any form without the expressed written consent + of the author Robert Alan Koeneke. + + The Tome variant has been modified by Dark God , + and is available under the same terms as Angband. + + +The Debian specific changes are © 1996, 1997, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006, Manoj Srivastava , +and distributed under the terms of the GNU General Public License, +version 2. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + A copy of the GNU General Public License is also available at + . You may also obtain + it by writing to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301 USA + +Manoj Srivastava +arch-tag: d4250e44-a0e0-4ee0-adb9-2bd74f6eeb27 --- tome-2.3.5.orig/debian/postinst +++ tome-2.3.5/debian/postinst @@ -0,0 +1,254 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# postinst --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Nov 14 11:25:07 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Sun Mar 14 12:19:27 2004 +# Last Machine Used: glaurung.internal.golden-gryphon.com +# Update Count : 16 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: 5401e9ef-39cc-4aee-96a4-61dfb8f32cf7 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# + +# Abort if any command returns an error value +set -e + +package_name=tome + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + +# This script is called as the last step of the installation of the +# package. All the package's files are in place, dpkg has already done +# its automatic conffile handling, and all the packages we depend of +# are already fully installed and configured. +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +# The following idempotent stuff doesn't generally need protecting +# against being run in the abort-* cases. + +# Install info files into the dir file +##: install-info --quiet --section "section pattern" "Section Title" \ +##: --description="Name of the document" /usr/info/${package_name}.info + +# Create stub directories under /usr/local +##: if test ! -d /usr/local/lib/${package_name}; then +##: if test ! -d /usr/local/lib; then +##: if mkdir /usr/local/lib; then +##: chown root.staff /usr/local/lib || true +##: chmod 2775 /usr/local/lib || true +##: fi +##: fi +##: if mkdir /usr/local/lib/${package_name}; then +##: chown root.staff /usr/local/lib/${package_name} || true +##: chmod 2775 /usr/local/lib/${package_name} || true +##: fi +##: fi + +# Ensure the menu system is updated +[ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus + +# Arrange for a daemon to be started at system boot time +##: update-rc.d ${package_name} default >/dev/null + +case "$1" in + configure) + # Configure this package. If the package must prompt the user for + # information, do it here. + # Install emacs lisp files + ##:if [ -x /usr/lib/emacsen-common/emacs-package-install ]; then + ##: /usr/lib/emacsen-common/emacs-package-install $package_name + ##:fi + + for file in /var/games/${package_name}/edit/*.txt; do + base_file=$(basename $file .txt); + cp -f $file /var/games/${package_name}/data/${base_file}.raw; + done + + if [ ! -e /var/lib/games/${package_name}/apex/scores.raw ]; then + touch /var/games/${package_name}/apex/scores.old + fi + + if [ -d /var/lib/games/${package_name}/save ]; then + for file in $(find /var/lib/games/${package_name}/save/ -type f); do + if [ ! -f $file ]; then + continue; + fi + base=$(basename $file) + if [ "X$base" = "Xdelete.me" ]; then + continue; + fi + if [ -s /var/games/${package_name}/save/$base ]; then + mv -f $file /var/games/${package_name}/save/$base.old + else + mv -f $file /var/games/${package_name}/save/$base + fi + done + fi + + # create a scores file if none exists + touch /var/games/${package_name}/apex/scores.raw + + # Clean up ownership + chown -R root:games /var/games/${package_name}/ + + # Make sure the game can write the files it needs to write to + chmod -R g+w /var/games/${package_name}/user + chmod -R g+w /var/games/${package_name}/bone + chmod -R g+w /var/games/${package_name}/save + chmod -R g+w /var/games/${package_name}/apex + + # Activate menu-methods script + ##: chmod a+x /etc/menu-methods/${package_name} + + # Update ld.so cache + ##: ldconfig + + # Make our version of a program available + ##: update-alternatives \ + ##: --install /usr/bin/program program /usr/bin/alternative 50 \ + ##: --slave /usr/man/man1/program.1.gz program.1.gz \ + ##: /usr/man/man1/alternative.1.gz + + # Tell ucf that the file in /usr/share/foo is the latest + # maintainer version, and let it handle how to manage the real + # confuguration file in /etc. This is how a static configuration + # file can be handled: + ##:if which ucf >/dev/null 2>&1; then + ##: ucf /usr/share/${package_name}/configuration /etc/${package_name}.conf + ##:fi + + ### We could also do this on the fly. The following is from Tore + ### Anderson: + + #. /usr/share/debconf/confmodule + + ### find out what the user answered. + # db_get foo/run_on_boot + # run_on_boot=$RET + # db_stop + + ### safely create a temporary file to generate our suggested + ### configuration file. + # tempfile=`tempfile` + # cat << _eof > $tempfile + ### Configuration file for Foo. + + ### this was answered by you, the user in a debconf dialogue + # RUNONBOOT=$run_on_boot + + ### this was not, as it has a sane default value. + # COLOUROFSKY=blue + + #_eof + + ### Note that some versions of debconf do not release stdin, so + ### the following invocation of ucf may not work, since the stdin + ### is never coneected to ucfr. + + ### now, invoke ucf, which will take care of the rest, and ask + ### the user if he wants to update his file, if it is modified. + #ucf $tempfile /etc/foo.conf + + ### done! now we'll just clear up our cruft. + #rm -f $tempfile + + + + # There are three sub-cases: + if test "${2+set}" != set; then + # We're being installed by an ancient dpkg which doesn't remember + # which version was most recently configured, or even whether + # there is a most recently configured version. + : + + elif test -z "$2" || test "$2" = ""; then + # The package has not ever been configured on this system, or was + # purged since it was last configured. + : + + else + # Version $2 is the most recently configured version of this + # package. + : + + fi ;; + abort-upgrade) + # Back out of an attempt to upgrade this package FROM THIS VERSION + # to version $2. Undo the effects of "prerm upgrade $2". + ##: + + ;; + abort-remove) + if test "$2" != in-favour; then + echo "$0: undocumented call to \`postinst $*'" 1>&2 + exit 0 + fi + # Back out of an attempt to remove this package, which was due to + # a conflict with package $3 (version $4). Undo the effects of + # "prerm remove in-favour $3 $4". + : + + ;; + abort-deconfigure) + if test "$2" != in-favour || test "$5" != removing; then + echo "$0: undocumented call to \`postinst $*'" 1>&2 + exit 0 + fi + # Back out of an attempt to deconfigure this package, which was + # due to package $6 (version $7) which we depend on being removed + # to make way for package $3 (version $4). Undo the effects of + # "prerm deconfigure in-favour $3 $4 removing $6 $7". + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +# Install doc base documentation +##:if which install-docs >/dev/null 2>&1; then +##: if [ -e /usr/share/doc-base/${package_name} ]; then +##: install-docs -i /usr/share/doc-base/${package_name} +##: fi +##:fi + +exit 0 --- tome-2.3.5.orig/debian/NEWS.Debian +++ tome-2.3.5/debian/NEWS.Debian @@ -0,0 +1,14 @@ +tome (2.3.1-1) unstable; urgency=low + + * Yet again, the save file format has changed incompatibly, requiring + that a new character be created from scratch. + + -- Manoj Srivastava Sun, 23 Jan 2005 10:57:26 -0600 + +tome (2.3.0-1) unstable; urgency=low + + * This version changed the save format, so older save files can not be + read by this version. + + -- Manoj Srivastava Sun, 23 Jan 2005 10:56:42 -0600 + --- tome-2.3.5.orig/debian/postrm +++ tome-2.3.5/debian/postrm @@ -0,0 +1,175 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# postrm --- +# Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +# Created On : Fri Nov 14 12:22:20 2003 +# Created On Node : glaurung.green-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Sat Nov 29 01:54:26 2003 +# Last Machine Used: glaurung.green-gryphon.com +# Update Count : 10 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: 56802d51-d980-4822-85c0-28fce19ed430 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + + +# Abort if any command returns an error value +set -e + +package_name=tome + +if [ -z "$package_name" ]; then + print >&2 "Internal Error. Please report a bug." + exit 1; +fi + +# This script is called twice during the removal of the package; once +# after the removal of the package's files from the system, and as +# the final step in the removal of this package, after the package's +# conffiles have been removed. +# 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 + +# Ensure the menu system is updated +[ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus + +case "$1" in + remove) + # This package is being removed, but its configuration has not yet + # been purged. + : + + # Remove diversion + ##: dpkg-divert --package ${package_name} --remove --rename \ + ##: --divert /usr/bin/other.real /usr/bin/other + + # ldconfig is NOT needed during removal of a library, only during + # installation + + ;; + purge) + # This package has previously been removed and is now having + # its configuration purged from the system. + ##: + + # we mimic dpkg as closely as possible, so we remove configuration + # files with dpkg backup extensions too: + ### Some of the following is from Tore Anderson: + ##: for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do + ##: rm -f /etc/${package_name}.conf$ext + ##: done + + if [ -d /var/lib/games/${package_name}/ ]; then + rm -rf /var/lib/games/${package_name}/ + fi + + # remove the configuration file itself + ##: rm -f /etc/${package_name}.conf + + # and finally clear it out from the ucf database + ##: ucf --purge /etc/${package_name}.conf + + # Remove symlinks from /etc/rc?.d + ##: update-rc.d ${package_name} remove >/dev/null + + ##: if [ -e /usr/share/debconf/confmodule ]; then + ##: # Purge this package's data from the debconf database. + ##: . /usr/share/debconf/confmodule + ##: db_purge + ##: fi + + # This package has previously been removed and is now having + # its configuration purged from the system. + ##: for flavour in emacs20 emacs21; do + ##: STARTDIR=/etc/$flavour/site-start.d; + ##: STARTFILE="${package_name}-init.el"; + ##: if [ -e "$STARTDIR/20$STARTFILE" ]; then + ##: rm -f "$STARTDIR/20$STARTFILE" + ##: fi + ##: done + + ;; + disappear) + if test "$2" != overwriter; then + echo "$0: undocumented call to \`postrm $*'" 1>&2 + exit 0 + fi + # This package has been completely overwritten by package $3 + # (version $4). All our files are already gone from the system. + # This is a special case: neither "prerm remove" nor "postrm remove" + # have been called, because dpkg didn't know that this package would + # disappear until this stage. + ##: + + ;; + upgrade) + # About to upgrade FROM THIS VERSION to version $2 of this package. + # "prerm upgrade" has been called for this version, and "preinst + # upgrade" has been called for the new version. Last chance to + # clean up. + ##: + + ;; + failed-upgrade) + # About to upgrade from version $2 of this package TO THIS VERSION. + # "prerm upgrade" has been called for the old version, and "preinst + # upgrade" has been called for this version. This is only used if + # the previous version's "postrm upgrade" couldn't handle it and + # returned non-zero. (Fix old postrm bugs here.) + ##: + + ;; + abort-install) + # Back out of an attempt to install this package. Undo the effects of + # "preinst install...". There are two sub-cases. + ##: + + if test "${2+set}" = set; then + # When the install was attempted, version $2's configuration + # files were still on the system. Undo the effects of "preinst + # install $2". + : + + else + # We were being installed from scratch. Undo the effects of + # "preinst install". + : + + fi ;; + abort-upgrade) + # Back out of an attempt to upgrade this package from version $2 + # TO THIS VERSION. Undo the effects of "preinst upgrade $2". + ##: + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +exit 0 --- tome-2.3.5.orig/debian/rules +++ tome-2.3.5/debian/rules @@ -0,0 +1,63 @@ +#! /usr/bin/make -f +############################ -*- Mode: Makefile; coding: utf-8 -*- ########################### +## rules --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Fri Nov 14 12:33:34 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Tue Nov 18 17:46:22 2003 +## Last Machine Used: glaurung.green-gryphon.com +## Update Count : 70 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: 9a5063f4-1e20-4fff-b22a-de94c1e3d954 +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program 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 General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +## +############################################################################### + +# Include dpkg-architecture generated variables +include debian/common/archvars.mk + +# Set variables with information extracted from control and changelog files +include debian/common/pkgvars.mk + +# variables useful for perl packages +include debian/common/perlvars.mk + +# Install commands +include debian/common/install_cmds.mk + +include debian/local-vars.mk + +include debian/common/copt.mk + +include debian/common/automake.mk + + + +all: + @echo nothing to be done + +include debian/common/targets.mk + +include debian/local.mk + + +#Local variables: +#mode: makefile +#End: --- tome-2.3.5.orig/debian/README.debian +++ tome-2.3.5/debian/README.debian @@ -0,0 +1,12 @@ +This is the Debian GNU/Linux prepackaged version of the rogue-like game +"Troubles on Middle Earth" (tome). Tome has been derived from Angband, +which itself has been written by several generations of +programmers over the years, and is derived from an earlier game called +moria. + +This package was put together by Manoj Srivastava , +from sources retrieved from directories under + + +arch-tag: f25f6a43-5a92-4b97-8ecf-0439ecacd45e + --- tome-2.3.5.orig/debian/common/automake.mk +++ tome-2.3.5/debian/common/automake.mk @@ -0,0 +1,37 @@ +############################ -*- Mode: Makefile -*- ########################### +## automake.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 02:47:23 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Sat Nov 15 02:47:53 2003 +## Last Machine Used: glaurung.green-gryphon.com +## Update Count : 1 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: 1fabe69b-7cc8-4ecc-9411-bc5906b19857 +## +############################################################################### + +AUTOCONF_VERSION:=$(shell if [ -e configure ]; then \ + grep "Generated automatically using autoconf" \ + configure | sed -e 's/^.*autoconf version //g'; \ + fi) +HAVE_NEW_AUTOMAKE:=$(shell if [ "X$(AUTOCONF_VERSION)" != "X2.13" ]; then \ + echo 'YES' ; fi) + +ifneq ($(strip $(HAVE_NEW_AUTOMAKE)),) + ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_BUILD_GNU_TYPE) + else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) + endif +else + ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += $(DEB_HOST_GNU_TYPE) + else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) + endif +endif --- tome-2.3.5.orig/debian/common/perlvars.mk +++ tome-2.3.5/debian/common/perlvars.mk @@ -0,0 +1,27 @@ +############################ -*- Mode: Makefile -*- ########################### +## perlvars.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 02:55:47 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Sat Dec 13 13:50:58 2003 +## Last Machine Used: glaurung.green-gryphon.com +## Update Count : 3 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: a97a01ba-d08d-404d-aa81-572717c03e6c +## +############################################################################### + +# Perl variables +PERL = /usr/bin/perl + +INSTALLPRIVLIB = $(TMPTOP)/$(shell \ + perl -e 'use Config; print "$$Config{'installprivlib'}\n";') +INSTALLARCHLIB = $(TMPTOP)/$(shell \ + perl -e 'use Config; print "$$Config{'installarchlib'}\n";') +INSTALLVENDORLIB =$(TMPTOP)/$(shell \ + perl -e 'use Config; print "$$Config{'vendorlibexp'}\n";') +CONFIG = INSTALLDIRS=vendor --- tome-2.3.5.orig/debian/common/archvars.mk +++ tome-2.3.5/debian/common/archvars.mk @@ -0,0 +1,118 @@ +############################ -*- Mode: Makefile -*- ########################### +## archvars.mk --- +## Author : Manoj Srivastava ( srivasta@golden-gryphon.com ) +## Created On : Sat Nov 15 02:40:56 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Tue Nov 16 23:36:15 2004 +## Last Machine Used: glaurung.internal.golden-gryphon.com +## Update Count : 5 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : calls dpkg-architecture and sets up various arch +## related variables +## +## arch-tag: e16dd848-0fd6-4c0e-ae66-bef20d1f7c63 +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program 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 General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## +############################################################################### + + +DPKG_ARCH := dpkg-architecture + +ifeq ($(strip $(KPKG_ARCH)),um) + MAKING_VIRTUAL_IMAGE:=YES +endif +ifeq ($(strip $(KPKG_ARCH)),xen) + MAKING_VIRTUAL_IMAGE:=YES +endif + +ifneq ($(strip $(CONFIG_UM)),) + MAKING_VIRTUAL_IMAGE:=YES + KPKG_ARCH=um +endif + +ifneq ($(strip $(CONFIG_XEN)),) + MAKING_VIRTUAL_IMAGE:=YES + ifneq ($(strip $(CONFIG_X86_XEN)$(CONFIG_X86_64_XEN)),) + KPKG_SUBARCH=xen + else + KPKG_ARCH=xen + ifeq ($(strip $(CONFIG_XEN_PRIVILEGED_GUEST)),) + KPKG_SUBARCH=xenu + else + KPKG_SUBARCH=xen0 + endif + endif +endif + +ifdef KPKG_ARCH + ifeq ($(strip $(MAKING_VIRTUAL_IMAGE)),) + ifneq ($(CROSS_COMPILE),-) + ha:=-a$(KPKG_ARCH) + endif + endif +endif + +# set the dpkg-architecture vars +export DEB_BUILD_ARCH := $(shell $(DPKG_ARCH) -qDEB_BUILD_ARCH) +export DEB_BUILD_GNU_CPU := $(shell $(DPKG_ARCH) -qDEB_BUILD_GNU_CPU) +export DEB_BUILD_GNU_SYSTEM:= $(shell $(DPKG_ARCH) -qDEB_BUILD_GNU_SYSTEM) +export DEB_BUILD_GNU_TYPE := $(shell $(DPKG_ARCH) -qDEB_BUILD_GNU_TYPE) +export DEB_HOST_ARCH := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH) +export DEB_HOST_ARCH_OS := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH_OS \ + 2>/dev/null|| true) +export DEB_HOST_ARCH_CPU := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH_CPU \ + 2>/dev/null|| true) +export DEB_HOST_GNU_CPU := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_CPU) +export DEB_HOST_GNU_SYSTEM := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_SYSTEM) +export DEB_HOST_GNU_TYPE := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_TYPE) + +# arrgh. future proofing +ifeq ($(DEB_HOST_GNU_SYSTEM), linux) + DEB_HOST_GNU_SYSTEM=linux-gnu +endif +ifeq ($(DEB_HOST_ARCH_OS),) + ifeq ($(DEB_HOST_GNU_SYSTEM), linux-gnu) + DEB_HOST_ARCH_OS := linux + endif + ifeq ($(DEB_HOST_GNU_SYSTEM), kfreebsd-gnu) + DEB_HOST_ARCH_OS := kfreebsd + endif +endif + +REASON = @if [ -f $@ ]; then \ + echo "====== making $(notdir $@) because of $(notdir $?) ======";\ + else \ + echo "====== making target $@ [new prereqs: $(notdir $?)]======"; \ + fi + +OLDREASON = @if [ -f $@ ]; then \ + echo "====== making $(notdir $@) because of $(notdir $?) ======";\ + else \ + echo "====== making (creating) $(notdir $@) ======"; \ + fi + +LIBREASON = @echo "====== making $(notdir $@)($(notdir $%))because of $(notdir $?)======" + + +# macro outputing $(1) if DEBUG_DEBIAN_RULES is set, and resolving it +# in all cases usage $(call doit,some shell command) +doit = $(if $(DEBUG_DEBIAN_RULES),$(warning DEBUG: $(1)))$(shell $(1)) + +#Local variables: +#mode: makefile +#End: --- tome-2.3.5.orig/debian/common/install_cmds.mk +++ tome-2.3.5/debian/common/install_cmds.mk @@ -0,0 +1,54 @@ +######################### -*- Mode: Makefile-Gmake -*- ######################## +## install_cmds.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) +## Created On : Fri Jun 16 14:40:20 2006 +## Created On Node : glaurung.internal.golden-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Wed Sep 6 11:43:05 2006 +## Last Machine Used: glaurung.internal.golden-gryphon.com +## Update Count : 9 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: a38b6a93-2539-4034-9060-ae94d5c8a071 +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program 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 General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## +############################################################################### + +# install commands +install_file = install -p -o root -g root -m 644 +install_script = install -p -o root -g root -m 755 +install_program= install -p -o root -g root -m 755 +make_directory = install -p -d -o root -g root -m 755 + +define create_md5sum + create_md5sums_fn () { \ + cd $$1 ; \ + find . -type f \ + ! -regex './DEBIAN/.*' \ + ! -regex './etc/.*' $(EXTRA_MD5SUM_EXCLUDE) \ + -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums ; \ + if [ -z "DEBIAN/md5sums" ] ; then \ + rm -f "DEBIAN/md5sums" ; \ + fi ; \ + } ; \ + create_md5sums_fn +endef + +#Local variables: +#mode: makefile +#End: --- tome-2.3.5.orig/debian/common/ChangeLog +++ tome-2.3.5/debian/common/ChangeLog @@ -0,0 +1,59 @@ +2008-02-06 Manoj Srivastava + + * copt.mk: + srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--patch-4 + The cross building support in Debian has been rewritten + to stop overriding the CC variable to $(MAKE) in order + to correctly support those packages that build internal + tools with the native compiler during the build. This + means that other packages that assume that CC will be + overridden by the cross-compiling build scripts now fail + to build. The patch is simply to set CC to + $(DEB_HOST_GNU_TYPE)-gcc only if a cross-build is + detected. + +2007-10-09 Manoj Srivastava + + * targets.mk: + srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--patch-1 + fix dependency tree for targets, allow parralel + compilatoin. Many changes, thanks to dot. + +2007-09-20 Manoj Srivastava + + * targets.mk (stamp-clean): + srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--base-0 + make clean not remove zero sized files. removed the part + that cleaned out zero sized files; since there are uses + for zero sized files (like, to nuke out files in + upstream sources and not inflate the diff. Any zero + sized files can still be nuked in the local.mk file. + +2006-10-02 Manoj Srivastava + + * checklibs: + srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-15 + New file, to detect if there are unneeded library + dependencies + +2006-10-01 Manoj Srivastava + + * archvars.mk (doit): + srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-14 + Add a macro to execute $(shell ...) macos verbosely to + help debugging. + +2006-09-15 Manoj Srivastava + + * targets.mk (stamp-clean): + srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-13 + Exclude version control directories from the generic + clean command. + + +2006-08-23 Manoj Srivastava + + * pkgvars.mk (DEB_DISTRIBUTION): + srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-6 + Add variable that contains the distribution information + --- tome-2.3.5.orig/debian/common/checklibs +++ tome-2.3.5/debian/common/checklibs @@ -0,0 +1,74 @@ +#! /bin/sh +# -*- Mode: Sh -*- +# checklibs.sh --- +# Author : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) +# Created On : Fri Sep 29 15:36:22 2006 +# Created On Node : glaurung.internal.golden-gryphon.com +# Last Modified By : Manoj Srivastava +# Last Modified On : Fri Sep 29 22:53:27 2006 +# Last Machine Used: glaurung.internal.golden-gryphon.com +# Update Count : 43 +# Status : Unknown, Use with caution! +# HISTORY : +# Description : +# +# arch-tag: 8ba11489-77fa-45a0-92c4-9c5b162ee119 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +# Make sure we abort on error +set -e +progname="$(basename \"$0\")" + +trap 'rm -f search_patterns.txt;' ALRM HUP INT PIPE TERM ABRT FPE BUS QUIT SEGV ILL EXIT + +# Find all undefined symbols in all ELF objects in this tree +readelf -s -D -W $(find . -type f -print0 | xargs -0r file | grep " ELF" | \ + awk '{print $1}' | sed -e 's/:$//') | grep UND | grep -v LOCAL | + perl -ple 's/.*\s(\S+)\s*$/\^$1\$/g' | sort -u > search_patterns.txt; + +# Find all the libraries needed in this tree +objdump -T --private-headers $(find . -type f -print0 | xargs -0r file | grep " ELF" | \ + awk '{print $1}' | sed -e 's/:$//') | grep NEEDED | sort -u | awk '{print $2}' | + while read lib; do + # For each library, see where it lives o the file system + LIB= + for library_dir in "/lib" "/usr/lib" $EXTRA_LIBRARY_PATHS; do + if [ -e "$library_dir/$lib" ]; then + LIB="$library_dir/$lib"; + break + fi + done + if [ -z "$LIB" ]; then + echo >&2 "Can't find $lib" + continue + fi + # If we fond the library, find what symbols it defines, and if these symbols + # are some that we need + if readelf -s -D -W $LIB | grep -v UND | perl -ple 's/.*\s(\S+)\s*$/$1/g' | \ + sort -u | grep -q -f search_patterns.txt ; then + # Library provides at least some symbols we need + if [ -n "$DEBUG" ]; then echo "Found $LIB"; fi + else + # Library does not provide any symbols we need + echo "$LIB" ; + fi +done + +# Get rid of the intermediate file +rm -f search_patterns.txt; +exit 0 + --- tome-2.3.5.orig/debian/common/debconf.mk +++ tome-2.3.5/debian/common/debconf.mk @@ -0,0 +1,101 @@ +############################ -*- Mode: Makefile -*- ########################### +## debconf.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) +## Created On : Fri Mar 12 11:11:31 2004 +## Created On Node : glaurung.internal.golden-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Mon Apr 11 13:19:10 2005 +## Last Machine Used: glaurung.internal.golden-gryphon.com +## Update Count : 20 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : helps with using debconf +## +## arch-tag: 32b933a9-05ad-4c03-97a8-8644745b832a +## +############################################################################### + +# The idea behind this scheme is that the maintainer (or whoever's +# building the package for upload to unstable) has to build on a +# machine with po-debconf installed, but nobody else does. + +# When building with po-debconf, a format 1 (no encoding specifications, +# woody-compatible) debian/templates file is generated in the clean target +# and shipped in the source package, but a format 2 (UTF8-encoded, +# woody-incompatible) debian/templates file is generated in binary-arch +# for the binary package only. + +# When building without po-debconf, the binary package simply reuses the +# woody-compatible debian/templates file that was produced by the clean +# target of the maintainer's build. + +# Also, make sure that debian/control has ${debconf-depends} in the +# appropriate Depends: line., and use the following in the binary +# target: +# dpkg-gencontrol -V'debconf-depends=debconf (>= $(MINDEBCONFVER))' +# + +# WARNING!! You need to create the templates.master file before this all works. + +ifeq (,$(wildcard /usr/bin/po2debconf)) + PO2DEBCONF := no + MINDEBCONFVER := 0.5 +else + PO2DEBCONF := yes + MINDEBCONFVER := 1.2.0 +endif + + +# Hack for woody compatibility. This makes sure that the +# debian/templates file shipped in the source package doesn't specify +# encodings, which woody's debconf can't handle. If building on a +# system with po-debconf installed the binary-arch target will +# generate a better version for sarge. Only do this if there is a +# templates.master, or else the debian/templates file can get +# damamged. +ifeq ($(PO2DEBCONF),yes) + ifeq (,$(wildcard debian/templates.master)) +define CREATE_COMPATIBLE_TEMPLATE + echo Not modifying templates +endef + else +define CREATE_COMPATIBLE_TEMPLATE + echo 1 > debian/po/output + po2debconf debian/templates.master > debian/templates + rm -f debian/po/output +endef + endif +else +define CREATE_COMPATIBLE_TEMPLATE + echo Not modifying templates +endef +endif + + +ifeq ($(PO2DEBCONF),yes) + ifeq (,$(wildcard debian/templates.master)) +define INSTALL_TEMPLATE + echo using old template +endef + else +define INSTALL_TEMPLATE + po2debconf debian/templates.master > debian/templates +endef + endif +else +define INSTALL_TEMPLATE + echo using old template +endef +endif + +# the tool podebconf-report-po is also a great friend to have in such +# circumstances +define CHECKPO + @for i in debian/po/*.po; do \ + if [ -f $$i ]; then \ + echo \"Checking: $$i\"; \ + msgmerge -U $$i debian/po/templates.pot; \ + msgfmt -o /dev/null -c --statistics $$i; \ + fi; \ + done +endef --- tome-2.3.5.orig/debian/common/targets.mk +++ tome-2.3.5/debian/common/targets.mk @@ -0,0 +1,432 @@ +############################ -*- Mode: Makefile -*- ########################### +## targets.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 01:10:05 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Tue Oct 9 01:50:58 2007 +## Last Machine Used: anzu.internal.golden-gryphon.com +## Update Count : 95 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : The top level targets mandated by policy, as well as +## their dependencies. +## +## arch-tag: a81086a7-00f7-4355-ac56-8f38396935f4 +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program 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 General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +## +############################################################################### + +####################################################################### +####################################################################### +############### Miscellaneous ############### +####################################################################### +####################################################################### +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +testroot: + @test $$(id -u) = 0 || (echo need root priviledges; exit 1) + +checkpo: + $(CHECKPO) + +# arch-buildpackage likes to call this +prebuild: + +# OK. We have two sets of rules here, one for arch dependent packages, +# and one for arch independent packages. We have already calculated a +# list of each of these packages. + +# In each set, we may need to do things in five steps: configure, +# build, install, package, and clean. Now, there can be a common +# actions to be taken for all the packages, all arch dependent +# packages, all all independent packages, and each package +# individually at each stage. + +########################################################################### +# The current code does a number of things: It ensures that the highest # +# dependency at any stage (usually the -Common target) depends on the # +# stamp-STAGE of the previous stage; so no work on a succeeding stage can # +# start before the previous stage is all done. # +########################################################################### + +########################################################################### +# Next, all targets that have work performed in them do not have stamp # +# files on their own, and thus are not depended on directly by other # +# targets. Instead, they depend on and are depended up by intermediate # +# targets in which no work is done except to create stamp files. Other # +# targets just depend on the stamp files; so the build system does not do # +# work twice -- targets, which are up to date, are not executed again. # +########################################################################### + + +####################################################################### +####################################################################### +############### Configuration ############### +####################################################################### +####################################################################### + +# Work here +CONFIG-common:: testdir + $(REASON) + $(checkdir) + +stamp-arch-conf: CONFIG-common + $(REASON) + $(checkdir) + @echo done > $@ +stamp-indep-conf: CONFIG-common + $(REASON) + $(checkdir) + @echo done > $@ +STAMPS_TO_CLEAN += stamp-arch-conf stamp-indep-conf + +# Work here +CONFIG-arch:: stamp-arch-conf + $(REASON) + $(checkdir) +CONFIG-indep:: stamp-indep-conf + $(REASON) + $(checkdir) + +stamp-configure-arch: CONFIG-arch + $(REASON) + @echo done > $@ +stamp-configure-indep: CONFIG-indep + $(REASON) + @echo done > $@ +STAMPS_TO_CLEAN += stamp-configure-arch stamp-configure-indep + +# Work here +$(patsubst %,CONFIG/%,$(DEB_ARCH_PACKAGES)) :: CONFIG/% : stamp-configure-arch + $(REASON) + $(checkdir) +$(patsubst %,CONFIG/%,$(DEB_INDEP_PACKAGES)) :: CONFIG/% : stamp-configure-indep + $(REASON) + $(checkdir) + +configure-arch-stamp: stamp-configure-arch $(patsubst %,CONFIG/%,$(DEB_ARCH_PACKAGES)) + $(REASON) + @echo done > $@ +configure-indep-stamp: stamp-configure-indep $(patsubst %,CONFIG/%,$(DEB_INDEP_PACKAGES)) + $(REASON) + @echo done > $@ +STAMPS_TO_CLEAN += configure-arch-stamp configure-indep-stamp + +# required +configure-arch: configure-arch-stamp + $(REASON) +configure-indep: configure-indep-stamp + $(REASON) + +stamp-configure: configure-arch configure-indep + $(REASON) + @echo done > $@ + +# required +configure: stamp-configure + $(REASON) + +STAMPS_TO_CLEAN += stamp-configure +####################################################################### +####################################################################### +############### Build ############### +####################################################################### +####################################################################### +# Work here +BUILD-common:: testdir stamp-configure + $(REASON) + $(checkdir) + +stamp-arch-build: BUILD-common + $(REASON) + $(checkdir) + @echo done > $@ +stamp-indep-build: BUILD-common + $(REASON) + $(checkdir) + @echo done > $@ +STAMPS_TO_CLEAN += stamp-arch-build stamp-indep-build + +# sync. Work here +BUILD-arch:: stamp-arch-build + $(REASON) + $(checkdir) +BUILD-indep:: stamp-indep-build + $(REASON) + $(checkdir) + +stamp-build-arch: BUILD-arch + $(REASON) + @echo done > $@ +stamp-build-indep: BUILD-indep + $(REASON) + @echo done > $@ +STAMPS_TO_CLEAN += stamp-build-arch stamp-build-indep + +# Work here +$(patsubst %,BUILD/%,$(DEB_ARCH_PACKAGES)) :: BUILD/% : stamp-build-arch + $(REASON) + $(checkdir) +$(patsubst %,BUILD/%,$(DEB_INDEP_PACKAGES)) :: BUILD/% : stamp-build-indep + $(REASON) + $(checkdir) + +build-arch-stamp: stamp-build-arch $(patsubst %,BUILD/%,$(DEB_ARCH_PACKAGES)) + $(REASON) + @echo done > $@ +build-indep-stamp: stamp-build-indep $(patsubst %,BUILD/%,$(DEB_INDEP_PACKAGES)) + $(REASON) + @echo done > $@ +STAMPS_TO_CLEAN += build-arch-stamp build-indep-stamp + +# required +build-arch: build-arch-stamp + $(REASON) +build-indep: build-indep-stamp + $(REASON) + +stamp-build: build-arch build-indep + $(REASON) + @echo done > $@ + +# required +build: stamp-build + $(REASON) + +STAMPS_TO_CLEAN += stamp-build + +# Work here +POST-BUILD-arch-stamp:: build-arch-stamp + $(REASON) + @echo done > $@ +STAMPS_TO_CLEAN += POST-BUILD-arch-stamp + +POST-BUILD-indep-stamp:: build-indep-stamp + $(REASON) + @echo done > $@ +STAMPS_TO_CLEAN += POST-BUILD-indep-stamp +####################################################################### +####################################################################### +############### Install ############### +####################################################################### +####################################################################### +# Work here +INST-common:: testdir stamp-build POST-BUILD-arch-stamp POST-BUILD-indep-stamp + $(checkdir) + $(REASON) + +stamp-arch-inst: INST-common + $(REASON) + $(checkdir) + @echo done > $@ +stamp-indep-inst: INST-common + $(REASON) + $(checkdir) + @echo done > $@ +STAMPS_TO_CLEAN += stamp-arch-inst stamp-indep-inst + +# sync. Work here +INST-arch:: stamp-arch-inst + $(REASON) + $(checkdir) +INST-indep:: stamp-indep-inst + $(REASON) + $(checkdir) + +stamp-install-arch: INST-arch + $(REASON) + @echo done > $@ +stamp-install-indep: INST-indep + $(REASON) + @echo done > $@ +STAMPS_TO_CLEAN += stamp-install-arch stamp-install-indep + +# Work here +$(patsubst %,INST/%,$(DEB_ARCH_PACKAGES)) :: INST/% : testroot stamp-install-arch + $(REASON) + $(checkdir) +$(patsubst %,INST/%,$(DEB_INDEP_PACKAGES)) :: INST/% : testroot stamp-install-indep + $(REASON) + $(checkdir) + +install-arch-stamp: stamp-install-arch $(patsubst %,INST/%,$(DEB_ARCH_PACKAGES)) + $(REASON) + $(checkdir) + @echo done > $@ +install-indep-stamp: stamp-install-indep $(patsubst %,INST/%,$(DEB_INDEP_PACKAGES)) + $(REASON) + $(checkdir) + @echo done > $@ +STAMPS_TO_CLEAN += install-arch-stamp install-indep-stamp + +#required +install-arch: install-arch-stamp + $(REASON) +install-indep: install-indep-stamp + $(REASON) + +stamp-install: install-indep install-arch + $(REASON) + @echo done > $@ + +#required +install: stamp-install + $(REASON) + +STAMPS_TO_CLEAN += stamp-install +####################################################################### +####################################################################### +############### Package ############### +####################################################################### +####################################################################### +# Work here +BIN-common:: testdir testroot stamp-install + $(REASON) + $(checkdir) + +stamp-arch-bin: testdir testroot BIN-common + $(REASON) + $(checkdir) + @echo done > $@ +stamp-indep-bin: testdir testroot BIN-common + $(REASON) + $(checkdir) + @echo done > $@ +STAMPS_TO_CLEAN += stamp-arch-bin stamp-indep-bin + +# sync Work here +BIN-arch:: testroot stamp-arch-bin + $(REASON) + $(checkdir) +BIN-indep:: testroot stamp-indep-bin + $(REASON) + $(checkdir) + +stamp-binary-arch: BIN-arch + $(REASON) + @echo done > $@ +stamp-binary-indep: BIN-indep + $(REASON) + @echo done > $@ +STAMPS_TO_CLEAN += stamp-binary-arch stamp-binary-indep + +# Work here +$(patsubst %,BIN/%,$(DEB_ARCH_PACKAGES)) :: BIN/% : testroot stamp-binary-arch + $(REASON) + $(checkdir) +$(patsubst %,BIN/%,$(DEB_INDEP_PACKAGES)) :: BIN/% : testroot stamp-binary-indep + $(REASON) + $(checkdir) + +binary-arch-stamp: stamp-binary-arch $(patsubst %,BIN/%,$(DEB_ARCH_PACKAGES)) + $(REASON) + $(checkdir) + @echo done > $@ +binary-indep-stamp: stamp-binary-indep $(patsubst %,BIN/%,$(DEB_INDEP_PACKAGES)) + $(REASON) + $(checkdir) + @echo done > $@ +STAMPS_TO_CLEAN += binary-arch-stamp binary-indep-stamp + +# required +binary-arch: binary-arch-stamp + $(REASON) +binary-indep: binary-indep-stamp + $(REASON) + +stamp-binary: binary-indep binary-arch + $(REASON) + @echo done > $@ + +# required +binary: stamp-binary + $(REASON) + @echo arch package = $(DEB_ARCH_PACKAGES) + @echo indep packages = $(DEB_INDEP_PACKAGES) + +STAMPS_TO_CLEAN += stamp-binary +####################################################################### +####################################################################### +############### Clean ############### +####################################################################### +####################################################################### +# Work here +CLN-common:: testdir + $(REASON) + $(checkdir) + +# sync Work here +CLN-arch:: CLN-common + $(REASON) + $(checkdir) +CLN-indep:: CLN-common + $(REASON) + $(checkdir) +# Work here +$(patsubst %,CLEAN/%,$(DEB_ARCH_PACKAGES)) :: CLEAN/% : CLN-arch + $(REASON) + $(checkdir) +$(patsubst %,CLEAN/%,$(DEB_INDEP_PACKAGES)) :: CLEAN/% : CLN-indep + $(REASON) + $(checkdir) + +clean-arch: CLN-arch $(patsubst %,CLEAN/%,$(DEB_ARCH_PACKAGES)) + $(REASON) +clean-indep: CLN-indep $(patsubst %,CLEAN/%,$(DEB_INDEP_PACKAGES)) + $(REASON) + +stamp-clean: clean-indep clean-arch + $(REASON) + $(checkdir) + -test -f Makefile && $(MAKE) distclean + -rm -f $(FILES_TO_CLEAN) $(STAMPS_TO_CLEAN) + -rm -rf $(DIRS_TO_CLEAN) + -rm -f core TAGS \ + `find . ! -regex '.*/\.git/.*' ! -regex '.*/\{arch\}/.*' \ + ! -regex '.*/CVS/.*' ! -regex '.*/\.arch-ids/.*' \ + ! -regex '.*/\.svn/.*' \ + \( -name '*.orig' -o -name '*.rej' -o -name '*~' -o \ + -name '*.bak' -o -name '#*#' -o -name '.*.orig' -o \ + -name '.*.rej' -o -name '.SUMS' \) \ + -print` + +clean: stamp-clean + $(REASON) + + +####################################################################### +####################################################################### +############### ############### +####################################################################### +####################################################################### + +.PHONY: CONFIG-common CONFIG-indep CONFIG-arch configure-arch configure-indep configure \ + BUILD-common BUILD-indep BUILD-arch build-arch build-indep build \ + INST-common INST-indep INST-arch install-arch install-indep install \ + BIN-common BIN-indep BIN-arch binary-arch binary-indep binary \ + CLN-common CLN-indep CLN-arch clean-arch clean-indep clean \ + $(patsubst %,CONFIG/%,$(DEB_INDEP_PACKAGES)) $(patsubst %,CONFIG/%,$(DEB_ARCH_PACKAGES)) \ + $(patsubst %,BUILD/%, $(DEB_INDEP_PACKAGES)) $(patsubst %,BUILD/%, $(DEB_ARCH_PACKAGES)) \ + $(patsubst %,INST/%, $(DEB_INDEP_PACKAGES)) $(patsubst %,INST/%, $(DEB_ARCH_PACKAGES)) \ + $(patsubst %,BIN/%, $(DEB_INDEP_PACKAGES)) $(patsubst %,BIN/%, $(DEB_ARCH_PACKAGES)) \ + $(patsubst %,CLEAN/%, $(DEB_INDEP_PACKAGES)) $(patsubst %,CLEAN/%, $(DEB_ARCH_PACKAGES)) \ + implode explode prebuild checkpo + +#Local variables: +#mode: makefile +#End: --- tome-2.3.5.orig/debian/common/pkgvars.mk +++ tome-2.3.5/debian/common/pkgvars.mk @@ -0,0 +1,94 @@ +############################ -*- Mode: Makefile -*- ########################### +## pkgvars.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 02:56:30 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Thu Jun 15 12:05:46 2006 +## Last Machine Used: glaurung.internal.golden-gryphon.com +## Update Count : 11 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : This is what allows us toseparate out the top level +## targets, by determining which packages needto be built. +## +## arch-tag: 75fcc720-7389-4eaa-a7ac-c556d3eac331 +## +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program 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 General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## +############################################################################### + +# The maintainer information. +maintainer := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Maintainer: | \ + sed 's/^Maintainer: *//') +email := srivasta@debian.org + +# Priority of this version (or urgency, as dchanges would call it) +urgency := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Urgency: | \ + sed 's/^Urgency: *//') + +# Common useful variables +DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control | \ + cut -f 2 -d ':')) +DEB_VERSION := $(strip $(shell LC_ALL=C dpkg-parsechangelog | \ + egrep '^Version:' | cut -f 2 -d ' ')) +DEB_ISNATIVE := $(strip $(shell LC_ALL=C dpkg-parsechangelog | \ + perl -ne 'print if (m/^Version:/g && ! m/^Version:.*\-/);')) +DEB_DISTRIBUTION := $(strip $(shell LC_ALL=C dpkg-parsechangelog | \ + egrep '^Distribution:' | cut -f 2 -d ' ')) + +DEB_PACKAGES := $(shell perl -e ' \ + $$/=""; \ + while(<>){ \ + $$p=$$1 if m/^Package:\s*(\S+)/; \ + die "duplicate package $$p" if $$seen{$$p}; \ + $$seen{$$p}++; print "$$p " if $$p; \ + }' debian/control ) + +DEB_INDEP_PACKAGES := $(shell perl -e ' \ + $$/=""; \ + while(<>){ \ + $$p=$$1 if m/^Package:\s*(\S+)/; \ + die "duplicate package $$p" if $$seen{$$p}; \ + $$seen{$$p}++; \ + $$a=$$1 if m/^Architecture:\s*(\S+)/m; \ + next unless ($$a eq "all"); \ + print "$$p " if $$p; \ + }' debian/control ) + +DEB_ARCH_PACKAGES := $(shell perl -e ' \ + $$/=""; \ + while(<>){ \ + $$p=$$1 if m/^Package:\s*(\S+)/; \ + die "duplicate package $$p" if $$seen{$$p}; \ + $$seen{$$p}++; \ + $$c=""; \ + if (/^Architecture:\s*(.*?)\s*$$/sm) { \ + @a = split /\s+/, $$1 }; \ + for my $$b (@a) { \ + next unless ($$b eq "$(DEB_HOST_ARCH)" || \ + $$b eq "any"); \ + $$c="$$p"; \ + } \ + print "$$c " if $$c; \ + }' debian/control ) + +# This package is what we get after removing the psuedo dirs we use in rules +package = $(notdir $@) + +#Local variables: +#mode: makefile +#End: --- tome-2.3.5.orig/debian/common/copt.mk +++ tome-2.3.5/debian/common/copt.mk @@ -0,0 +1,40 @@ +############################ -*- Mode: Makefile -*- ########################### +## copt.mk --- +## Author : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) +## Created On : Sat Nov 15 02:48:40 2003 +## Created On Node : glaurung.green-gryphon.com +## Last Modified By : Manoj Srivastava +## Last Modified On : Sat Nov 15 02:49:07 2003 +## Last Machine Used: glaurung.green-gryphon.com +## Update Count : 1 +## Status : Unknown, Use with caution! +## HISTORY : +## Description : +## +## arch-tag: a0045c20-f1b3-4852-9a4b-1a33ebd7c1b8 +## +############################################################################### + +# set CC to $(DEB_HOST_GNU_TYPE)-gcc only if a cross-build is detected +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) + CC=$(DEB_HOST_GNU_TYPE)-gcc +else + CC = cc +endif + +CFLAGS = -O2 +PREFIX := /usr + +# Policy 10.1 says to make this the default +CFLAGS += -g + +## ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +## endif + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + STRIP += -s + LDFLAGS += -s + INT_INSTALL_TARGET = install +else + INT_INSTALL_TARGET = install +endif