--- xzip-1.8.2.orig/debian/changelog +++ xzip-1.8.2/debian/changelog @@ -0,0 +1,86 @@ +xzip (1:1.8.2-3) unstable; urgency=low + + * Bump Standards-Version to 3.6.1 (no changes needed). + * Corrected formatting error in debian/copyright (thanks lintian). + + -- Daniel Schepler Wed, 28 Apr 2004 05:06:15 -0700 + +xzip (1:1.8.2-2) unstable; urgency=low + + * Update to use debhelper and cdbs. + * Rebuild against split X libraries, and update the Build-Depends + accordingly. + * Split debian diffs into debian/patches/. + + -- Daniel Schepler Wed, 28 Apr 2004 03:36:06 -0700 + +xzip (1:1.8.2-1) unstable; urgency=low + + * New maintainer. (Closes: #82449) + * New upstream release. (Closes: #43285) + * Changed package description to include jzip as a possible text-mode + interpreter. Also, frotz is now in main. (Closes: #53431) + * Changed version numbering to correspond to what's used in the README + file. + * Updated to standards version 3.2.1. + + -- Daniel Schepler Sun, 28 Jan 2001 18:06:24 -0800 + +xzip (1.70-3) frozen unstable; urgency=low + + * Rewritten code to form default filenames; now saves in ~/.infocom by + default (#21571) + + -- Mark Baker Thu, 23 Apr 1998 21:47:03 +0100 + +xzip (1.70-2) frozen unstable; urgency=low + + * strict Z-code checking off by default (option to turn it on should still + work) + + -- Mark Baker Fri, 17 Apr 1998 18:41:32 +0100 + +xzip (1.70-1) frozen unstable; urgency=low + + * New upstream release (bugfixes) (#21053) + + -- Mark Baker Tue, 14 Apr 1998 18:41:32 +0100 + +xzip (1.61-4.1) frozen unstable; urgency=low + + * Non-maintainer release. + * Move man page to section 6. + * Put all conflicts on a single line (they were word-wrapped). + * Make update-alternatives calls point to the right places: xzip is + in /usr/games, man page is in /usr/man/man6, zcode-interpreter is + now in /usr/games. + * Add some jiggery-pokery to the maintainer scripts to clean up the + mess the zcode-interpreter alternatives are in. + + -- Charles Briscoe-Smith Tue, 7 Apr 1998 21:58:16 +0100 + +xzip (1.61-4) unstable; urgency=low + + * Changed to use alternatives instead of zcode-support (#18672) + + -- Mark Baker Sat, 28 Feb 1998 20:16:55 +0000 + +xzip (1.61-3) unstable; urgency=low + + * Compressed manpage + * Updated to standards version 2.4.0.0 + + -- Mark Baker Tue, 10 Feb 1998 00:09:48 +0000 + +xzip (1.61-2) unstable; urgency=low + + * Compiled against xlib6g + * Install in /usr/games instead of /usr/bin + + -- Mark Baker Tue, 09 Sep 1997 21:55:00 +0100 + +xzip (1.61-1) unstable; urgency=low + + * First debian release + + -- Mark Baker Mon, 02 Jun 1997 21:07:00 +0100 --- xzip-1.8.2.orig/debian/control +++ xzip-1.8.2/debian/control @@ -0,0 +1,23 @@ +Source: xzip +Maintainer: Daniel Schepler +Section: games +Priority: optional +Build-Depends: debhelper (>> 4.1.0), cdbs, libx11-dev +Standards-Version: 3.6.1 + +Package: xzip +Architecture: any +Section: games +Priority: optional +Depends: ${shlibs:Depends} +Provides: zcode-interpreter +Suggests: zcode-game +Replaces: zcode-support +Conflicts: zcode-support, gsn-curses (= 16-1), gsn-jigsaw (= 3-1), gumshoe (=1-1), so-far (= 6-1), weather (= 6-1) +Description: Interpreter of Infocom-format story-files + Xzip interprets story-files (which are usually text adventure games) + in the format used by Infocom. This includes the games published by + Infocom, as well as any games produced by compilers to this format, + such as Inform. + . + This is an interpreter for X. For text mode, try frotz or jzip. --- xzip-1.8.2.orig/debian/copyright +++ xzip-1.8.2/debian/copyright @@ -0,0 +1,26 @@ +This is Debian GNU/Linux's prepackaged version of xzip. + +This package was put together by me, Daniel Schepler + from the original sources in +ftp.gmd.de:/if-archive/infocom/interpreters/zip/xzip182.tar.Z +based on Mark Baker's original packaging. + +The program is copyright 1996 Andrew Plotkin. +It is based on Zip 2.0.7, copyright 1996 Mark Howell. +This debian package is copyright 1997 Mark Baker, +copyright 2001 Daniel Schepler. + +The copyright notice on it, taken from the manual page, is: + +You are expressly forbidden to use this program on an Infocom game data file +if, in so doing, you violate the copyright notice supplied with the original +Infocom game. + +Parts of this program (the files xinit.c, xio.c, xkey.c, xmess.c, xstat.c, +xtext.c) are copyrighted by Andrew Plotkin. These files may be distributed, +modified, and used freely, with the exception noted above. + +I do not know the exact copyright status of the rest, except that it was +written by Mark Howell and thus is probably copyrighted by him. He released +it for free, so to the best of my knowledge, it can also be distributed, +modified, and used freely, with the exception noted above. --- xzip-1.8.2.orig/debian/postinst +++ xzip-1.8.2/debian/postinst @@ -0,0 +1,10 @@ +#! /bin/sh + +set -e + +#DEBHELPER# + +update-alternatives \ + --install /usr/games/zcode-interpreter zcode-interpreter /usr/games/xzip 0 \ + --slave /usr/share/man/man6/zcode-interpreter.6.gz zcode-interpreter-man-gz \ + /usr/share/man/man6/xzip.6.gz --- xzip-1.8.2.orig/debian/prerm +++ xzip-1.8.2/debian/prerm @@ -0,0 +1,12 @@ +#! /bin/sh + +set -e + +#DEBHELPER# + +if test "$1" = failed-upgrade; then + update-alternatives --remove zcode-interpreter /usr/bin/xzip + update-alternatives --remove zcode-interpreter /usr/X11R6/bin/xzip +fi + +update-alternatives --remove zcode-interpreter /usr/games/xzip --- xzip-1.8.2.orig/debian/rules +++ xzip-1.8.2/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(DEB_DESTDIR) --- xzip-1.8.2.orig/debian/patches/001_debian_config.diff +++ xzip-1.8.2/debian/patches/001_debian_config.diff @@ -0,0 +1,77 @@ +Index: Makefile +=================================================================== +--- Makefile (revision 2) ++++ Makefile (working copy) +@@ -51,7 +51,7 @@ + # BYTE_ORDER definitions installed. If AUTO_END_MODE doesn't + # work, use LITTLE_END_MODE on an x86, BIG_END_MODE on a + # 680x0 or PPC machine. +-#SYSTEMFLAGS = -DAUTO_END_MODE ++SYSTEMFLAGS = -DAUTO_END_MODE + + # definitions for BSDI 4 + #SYSTEMFLAGS = -DAUTO_END_MODE +@@ -67,8 +67,8 @@ + # definitions for where the X lib and include directories are. + # The following are defaults that might work. + +-XINCLUDE = /usr/include/X11 +-XLIB = /usr/lib/X11 ++#XINCLUDE = /usr/include/X11 ++#XLIB = /usr/lib/X11 + + # If your compiler can't find these things, try commenting out the + # above, and uncommenting various versions below. Also look around +@@ -79,8 +79,8 @@ + # directories could be just about anywhere. Sigh. + + # for Debian or SuSE Linux +-#XINCLUDE = /usr/X11R6/include/X11 +-#XLIB = /usr/X11R6/lib ++XINCLUDE = /usr/X11R6/include/X11 ++XLIB = /usr/X11R6/lib + + # for Red Hat Linux + #XINCLUDE = /usr/include/X11 +@@ -97,11 +97,12 @@ + # -------------------- + + # definition for where to install xzip executable and man page +-DESTDIR = /usr/local ++BINDIR = /usr/games ++MANDIR = /usr/share/man + + # -------------------- + +-CFLAGS = -O $(SYSTEMFLAGS) -I$(XINCLUDE) ++CFLAGS = -O + LDFLAGS = + LIBS = -L$(XLIB) -lX11 $(SYSTEMLIBS) + +@@ -148,19 +149,22 @@ + + $(OBJS) : $(INC) extern.c version.h + ++.c.o: ++ $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c $< ++ + pickle.o : pickle.h + + $(XOBJS) : $(INC) xio.h version.h + + xio.o: xio.c xio.h greypm.bm +- $(CC) $(CFLAGS) -c xio.c ++ $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) -c xio.c + + xinit.o: xinit.c xio.h +- $(CC) $(CFLAGS) $(FONTDEFAULTLIST) -c xinit.c ++ $(CC) $(CFLAGS) $(SYSTEMFLAGS) -I$(XINCLUDE) $(FONTDEFAULTLIST) -c xinit.c + + install: $(PROGRAM) +- install -s $(PROGRAM) $(DESTDIR)/bin +- install $(PROGRAM).1 $(DESTDIR)/man/man1 ++ install $(PROGRAM) $(DESTDIR)/$(BINDIR) ++ install $(PROGRAM).1 $(DESTDIR)/$(MANDIR)/man6/$(PROGRAM).6 + + clean : + -rm -f *~ *.o $(PROGRAM) test --- xzip-1.8.2.orig/debian/patches/002_savename.diff +++ xzip-1.8.2/debian/patches/002_savename.diff @@ -0,0 +1,80 @@ +Index: fileio.c +=================================================================== +--- fileio.c (revision 2) ++++ fileio.c (revision 3) +@@ -78,46 +78,41 @@ + const char *storyname; + #endif + { +- char *per_pos=0; ++ char *dot_pos ; ++ char *slash_pos ; ++ char *home ; ++ char basename[FILENAME_MAX+1] ; + +- /* experimental setting of save_name, added by John Holder 26 July 1995 */ +- per_pos = strrchr(storyname,'.'); /* find last '.' in storyname. */ +- if (per_pos) /* The story file looks like "Odius.dat" or "odieus.z3" */ +- { +- strcpy(save_name, storyname); +- per_pos=strrchr(save_name,'.'); +- *(per_pos) = '\0'; +- strcat(save_name,".sav"); ++ /* Find base name */ ++ if( slash_pos = strrchr( storyname, '/' ) ) ++ strcpy( basename, ++slash_pos ) ; ++ else ++ strcpy( basename, storyname ) ; + +- strcpy(script_name, storyname); +- per_pos=strrchr(script_name,'.'); +- *(per_pos) = '\0'; +- strcat(script_name,".scr"); ++ if( dot_pos = strrchr( basename, '.' ) ) ++ *dot_pos = '\0' ; + +- strcpy(savedata_name, storyname); +- per_pos=strrchr(savedata_name,'.'); +- *(per_pos) = '\0'; +- strcat(savedata_name,".dat"); ++ /* Find correct directory */ ++ if( home = getenv( "HOME" ) ) ++ { ++ strcpy( save_name, home ) ; ++ strcat( save_name, "/.infocom/" ) ; ++ mkdir( save_name, 0777 ) ; ++ } + +- strcpy(record_name, storyname); +- per_pos=strrchr(record_name,'.'); +- *(per_pos) = '\0'; +- strcat(record_name,".rec"); +- } +- else /* The story file looks like: "OdieusQuest" */ +- { +- strcpy(save_name, storyname); +- strcat(save_name,".sav"); ++ /* Home directory + basename */ ++ strcat( save_name, basename ) ; + +- strcpy(script_name, storyname); +- strcat(script_name,".scr"); ++ /* Copy to other three strings */ ++ strcpy( script_name, save_name ) ; ++ strcpy( record_name, save_name ) ; ++ strcpy( savedata_name, save_name ) ; + +- strcpy(savedata_name, storyname); +- strcat(savedata_name,".dat"); +- +- strcpy(record_name, storyname); +- strcat(record_name,".rec"); +- } ++ /* Add extensions */ ++ strcat(save_name,".sav"); ++ strcat(script_name,".scr"); ++ strcat(record_name,".rec"); ++ strcat(savedata_name,".dat"); + } /* set_names */ + + /* --- xzip-1.8.2.orig/debian/patches/003_default_disable_strict.diff +++ xzip-1.8.2/debian/patches/003_default_disable_strict.diff @@ -0,0 +1,13 @@ +Index: ztypes.h +=================================================================== +--- ztypes.h (revision 2) ++++ ztypes.h (revision 3) +@@ -434,7 +434,7 @@ + #define STRICTZ_REPORT_ONCE (1) + #define STRICTZ_REPORT_ALWAYS (2) + #define STRICTZ_REPORT_FATAL (3) +-#define STRICTZ_DEFAULT_REPORT_MODE STRICTZ_REPORT_ONCE ++#define STRICTZ_DEFAULT_REPORT_MODE STRICTZ_REPORT_NEVER + + /* Error codes */ + #define STRZERR_NO_ERROR (0) --- xzip-1.8.2.orig/debian/compat +++ xzip-1.8.2/debian/compat @@ -0,0 +1 @@ +4 --- xzip-1.8.2.orig/debian/dirs +++ xzip-1.8.2/debian/dirs @@ -0,0 +1,2 @@ +/usr/games +/usr/share/man/man6