--- jzip-210r20001005.orig/debian/changelog +++ jzip-210r20001005/debian/changelog @@ -0,0 +1,93 @@ +jzip (210r20001005-2) unstable; urgency=low + + * Change the maintainer email address. + * Update inter-target dependencies in debian/rules for parallel builds. + * debian/patches/ckifzs-output: add a missing newline in the output. + Thanks to Drake Wilson for the patch.(Closes: #454480) + * Mention ckifzs and jzexe in the package long description. + Thanks again to Drake Wilson. (Closes: #454481) + * Upgrade to Standards-Version 3.7.3. No changes needed. + * Add the Homepage field in debian/control. + + -- Niko Tyni Sat, 08 Dec 2007 21:21:26 +0200 + +jzip (210r20001005-1) unstable; urgency=low + + * "New" upstream version. + * Acknowledge NMU. (Closes: #359433) + + debian/postinst: remove the /usr/doc/jzip symlink deletion code, + as that was already properly in the 202b19981014-3.1 prerm. + * New maintainer. (Closes: #377871) + * Repackage upstream source, as it's only available in zip format. + + Add README.Debian-source documenting the repackaging. + + Add unzip to Build-Depends. + * Use quilt for patch management. + * Rewrite debian/rules. + * Upgrade to debhelper compatibility level 5. + * Add zlib1g-dev to Build-Depends. + * Update debian/copyright. + * debian/patches: + + standalone-unsigned-char: + make standalone games work by fixing erroneous offset calculation. + + if-archive: make URLs point to the correct IF-archive location. + * Remove uninformative README.Debian. + + -- Niko Tyni Thu, 27 Jul 2006 21:23:00 +0300 + +jzip (202b19981014-3.2) unstable; urgency=low + + * Non-maintainer upload. + * Get rid of the /usr/doc link in postinst (Closes: #359433). + * Revamped packaging a bit + + -- Amaya Rodrigo Sastre Sun, 16 Jul 2006 21:51:27 +0200 + +jzip (202b19981014-3.1) unstable; urgency=low + + * Added libncurses5-dev to build-depends (Closes: #122483) + + -- Michael Stroucken (Debian Development) Wed, 5 Dec 2001 12:22:10 -0500 + +jzip (202b19981014-3) unstable; urgency=low + + * Missed reference to jzip.exe, changed to jzip (Closes: #118753) + * assorted cleanups + * went to standards 3.5.6.0 + + -- Michael Stroucken (Debian Development) Thu, 29 Nov 2001 02:32:27 -0500 + +jzip (202b19981014-2.1) frozen unstable; urgency=low + + * made available to potato again + + -- Michael Stroucken (Debian Development) Thu, 20 Apr 2000 01:45:42 -0400 + +jzip (202b19981014-2) unstable; urgency=low + + * went to standards 3.0.1 + * changed man page path from /usr/man to /usr/share/man (Thx to Jeff Licquia + Matej Vela) + + -- Michael Stroucken (Debian Development) Tue, 18 Apr 2000 02:55:00 -0400 + +jzip (202b19981014-1) unstable; urgency=low + + * New upstream version + + -- Michael Stroucken (Debian Development) Fri, 14 Jan 2000 04:03:00 -0500 + +jzip (202b19980527-2) unstable; urgency=low + + * Changed version number + * Recompiled to use libncurses5 + + -- Michael Stroucken (Debian Development) Tue, 11 Jan 2000 02:17:43 -0500 + +jzip (202b982705-1) unstable; urgency=low + + * Initial Release. + + -- Michael Stroucken Sun, 22 Aug 1999 13:17:43 -0400 + +Local variables: +mode: debian-changelog +End: --- jzip-210r20001005.orig/debian/ckifzs.6 +++ jzip-210r20001005/debian/ckifzs.6 @@ -0,0 +1,30 @@ +.TH CKIFZS 6 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +ckifzs \- Verifies a QUETZAL/IFZS file +.SH SYNOPSIS +.B ckifzs +.I "" +.br +.B ckifzs +.SH "DESCRIPTION" +This manual page documents briefly the +.BR ckifzs +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.B ckifzs +is a program that verifies a saved state file generated by a Z-Code +interpreter that it adheres to the QUETZAL/IFZS standard. +.SH OPTIONS +This program has no options. +Run +.BR ckifzs +with no arguments to view invocation syntax. +.SH "SEE ALSO" +.BR jzip (6) +.SH AUTHOR +This manual page was written by Michael Stroucken , +for the Debian GNU/Linux system (but may be used by others). --- jzip-210r20001005.orig/debian/prerm +++ jzip-210r20001005/debian/prerm @@ -0,0 +1,38 @@ +#! /bin/sh +# prerm script for jzip +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure) + update-alternatives --remove zcode-interpreter /usr/games/jzip + ;; + failed-upgrade) + update-alternatives --remove zcode-interpreter /usr/games/jzip + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- jzip-210r20001005.orig/debian/control +++ jzip-210r20001005/debian/control @@ -0,0 +1,23 @@ +Source: jzip +Section: games +Priority: optional +Maintainer: Niko Tyni +Build-Depends: debhelper (>=5), libncurses5-dev, zlib1g-dev, unzip, quilt (>= 0.40-1) +Standards-Version: 3.7.3 +Homepage: http://jzip.sourceforge.net/ + +Package: jzip +Architecture: any +Provides: zcode-interpreter +Suggests: zcode-game +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Text mode interpreter for Z-Code adventures + This package provides the jzip Z-Code interpreter required to run + Infocom or Inform-generated text adventures, although the format can + be used for more than games. It is based on the zip interpreter sources + and adapted by John D. Holder . + . + The ckifzs program, for checking the basic structure of save files + against the QUETZAL standard, is also included, as is the jzexe + program to create a standalone executable by gluing a Z-code file to + jzip. --- jzip-210r20001005.orig/debian/postinst +++ jzip-210r20001005/debian/postinst @@ -0,0 +1,47 @@ +#! /bin/sh +# postinst script for jzip +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# 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'. + +case "$1" in + configure) + update-alternatives --install /usr/games/zcode-interpreter zcode-interpreter /usr/games/jzip 50 --slave /usr/share/man/man6/zcode-interpreter.6.gz zcode-interpreter-man-gz /usr/share/man/man6/jzip.6.gz + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- jzip-210r20001005.orig/debian/docs +++ jzip-210r20001005/debian/docs @@ -0,0 +1,2 @@ +jzip/doc/Jzexe.txt +jzip/doc/Jzip.txt --- jzip-210r20001005.orig/debian/rules +++ jzip-210r20001005/debian/rules @@ -0,0 +1,85 @@ +#!/usr/bin/make -f + +# Use quilt to manage patches. +include /usr/share/quilt/quilt.make + +UPSTREAM = jzip21-10oct2000.zip +VERSION = $(shell dpkg-parsechangelog | \ + sed -ne 's/^Version: *\([0-9]\+:\)*//p') +UPSTREAM_VERSION = $(shell echo $(VERSION) | \ + sed 's/-[^-]\+$$//') + +SRCDIR = jzip + +CC=gcc + +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +$(QUILT_STAMPFN): unpack-stamp + +unpack: unpack-stamp +unpack-stamp: + dh_testdir + [ -d $(SRCDIR) ] || mkdir $(SRCDIR) + cd $(SRCDIR) && unzip ../$(UPSTREAM) + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + $(RM) -r $(SRCDIR) + dh_clean build-stamp install-stamp unpack-stamp + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + $(MAKE) -C $(SRCDIR) -f unixio.mak \ + CC=$(CC) OPTIMIZE="$(CFLAGS)" + touch $@ + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_installdirs + install -m 755 $(SRCDIR)/jzip debian/jzip/usr/games + install -m 755 $(SRCDIR)/jzexe debian/jzip/usr/games + install -m 755 $(SRCDIR)/ckifzs debian/jzip/usr/games + touch $@ + +binary: binary-arch +binary-indep: +binary-arch: install + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs jzip/doc/History.txt + dh_installman + dh_compress + dh_strip + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +ORIGDIR = jzip-$(UPSTREAM_VERSION).orig +ORIGURL = http://ifarchive.heanet.ie/if-archive/infocom/interpreters/zip/$(UPSTREAM) + +# for manual invocation only. + +get-orig-source: + mkdir $(ORIGDIR) && \ + wget -O $(ORIGDIR)/$(UPSTREAM) $(ORIGURL) && \ + touch -r $(ORIGDIR)/$(UPSTREAM) $(ORIGDIR) && \ + GZIP=-9 tar zcf `echo $(ORIGDIR)|sed s/-/_/`.tar.gz $(ORIGDIR) && \ + $(RM) -r $(ORIGDIR) + +.PHONY: get-orig-source unpack clean build install binary binary-indep binary-arch + --- jzip-210r20001005.orig/debian/patches/if-archive +++ jzip-210r20001005/debian/patches/if-archive @@ -0,0 +1,29 @@ +Fix links to the current IF-archive site. + +-- Niko Tyni Fri, 14 Jul 2006 00:36:33 +0300 +Index: jzip-210r20001005/jzip/doc/jzip.6 +=================================================================== +--- jzip-210r20001005.orig/jzip/doc/jzip.6 2006-07-13 22:36:11.000000000 +0300 ++++ jzip-210r20001005/jzip/doc/jzip.6 2006-07-13 22:41:14.000000000 +0300 +@@ -73,7 +73,7 @@ + .TP + http://www.jzip.sourceforge.net/ + .TP +-ftp://ftp.gmd.de/if-archive/infocom/interpreters/zip/ ++ftp://ifarchive.org/infocom/interpreters/zip/ + .SH FILES + .TP + .I /usr/games/jzip +Index: jzip-210r20001005/jzip/osdepend.c +=================================================================== +--- jzip-210r20001005.orig/jzip/osdepend.c 2006-07-13 22:36:11.000000000 +0300 ++++ jzip-210r20001005/jzip/osdepend.c 2006-07-13 22:40:48.000000000 +0300 +@@ -197,7 +197,7 @@ + fprintf( stdout, "---------------------------------------------------------\n" ); + fprintf( stdout, "Author : %s\n", JZIPAUTHOR ); + fprintf( stdout, "Official Webpage: %s\n", JZIPURL ); +- fprintf( stdout, "IF Archive : ftp://ftp.gmd.de/if-archive/interpreters/zip/\n" ); ++ fprintf( stdout, "IF Archive : ftp://ifarchive.org/infocom/interpreters/zip/\n" ); + fprintf( stdout, " Based on ZIP 2.0 source code by Mark Howell\n\n" ); + fprintf( stdout, + "Bugs: Please report bugs and portability bugs to the maintainer." ); --- jzip-210r20001005.orig/debian/patches/series +++ jzip-210r20001005/debian/patches/series @@ -0,0 +1,6 @@ +ckifzs-output +if-archive +manpage-typo +standalone-unsigned-char +compiler-warnings +jzexe-execute-bit --- jzip-210r20001005.orig/debian/patches/standalone-unsigned-char +++ jzip-210r20001005/debian/patches/standalone-unsigned-char @@ -0,0 +1,18 @@ +Fix erroneous offset calculation caused by char signedness. + +-- Niko Tyni Fri, 14 Jul 2006 20:40:54 +0300 +Index: jzip-210r20001005/jzip/fileio.c +=================================================================== +--- jzip-210r20001005.orig/jzip/fileio.c 2006-07-14 20:37:22.000000000 +0300 ++++ jzip-210r20001005/jzip/fileio.c 2006-07-14 20:38:27.000000000 +0300 +@@ -195,7 +195,9 @@ + /* standalone game; offset to story start is saved in low-endian */ + /* format after magic string */ + story_offset = +- magic[MAGIC_END + 1] + magic[MAGIC_END + 2] * 256L + magic[MAGIC_END + 3] * 65536L; ++ (unsigned char) magic[MAGIC_END + 1] + ++ (unsigned char) magic[MAGIC_END + 2] * 256L + ++ (unsigned char) magic[MAGIC_END + 3] * 65536L; + } + + strcpy( tmp, storyname ); --- jzip-210r20001005.orig/debian/patches/manpage-typo +++ jzip-210r20001005/debian/patches/manpage-typo @@ -0,0 +1,16 @@ +Fix a typo in the jzip manpage. + +-- Niko Tyni Fri, 14 Jul 2006 00:35:58 +0300 +Index: jzip-210r20001005/jzip/doc/jzip.6 +=================================================================== +--- jzip-210r20001005.orig/jzip/doc/jzip.6 2006-07-13 22:21:44.000000000 +0300 ++++ jzip-210r20001005/jzip/doc/jzip.6 2006-07-13 22:21:48.000000000 +0300 +@@ -69,7 +69,7 @@ + .SH AVAILABILITY + The most recent version of + .B jzip +-can be dowanloaded from one of: ++can be downloaded from one of: + .TP + http://www.jzip.sourceforge.net/ + .TP --- jzip-210r20001005.orig/debian/patches/ckifzs-output +++ jzip-210r20001005/debian/patches/ckifzs-output @@ -0,0 +1,17 @@ +Add a missing newline in the output (#454480) +Patch from Drake Wilson + +--- jzip.orig/jzip/ckifzs.c ++++ jzip/jzip/ckifzs.c +@@ -259,10 +259,10 @@ + else + coredump( ul2++, uch ); + } +- putchar( '\n' ); + filelen -= cklen; + cklen = 0; + #endif ++ putchar( '\n' ); + + if ( status & GOT_CMEM ) + { --- jzip-210r20001005.orig/debian/patches/compiler-warnings +++ jzip-210r20001005/debian/patches/compiler-warnings @@ -0,0 +1,312 @@ +Fix various compiler warnings. + +Most of these by Michael Stroucken , with +some added by Niko Tyni . + +Adapted to quilt by Niko Tyni +Index: jzip-210r20001005/jzip/unixio.c +=================================================================== +--- jzip-210r20001005.orig/jzip/unixio.c 2000-10-05 17:08:10.000000000 +0300 ++++ jzip-210r20001005/jzip/unixio.c 2006-07-14 00:28:27.000000000 +0300 +@@ -101,8 +101,10 @@ + static int wait_for_char( ); + static int read_key( int ); + static void set_cbreak_mode( int ); ++#if 0 + static void rundown( ); + static void sig_rundown( ); ++#endif + void get_prev_command( ); + void get_next_command( ); + void get_first_command( ); +@@ -126,6 +128,7 @@ + extern char *tgetstr( ); + extern char *tgoto( ); + extern void tputs( ); ++extern char *tgetflag( ); + + void outc( int c ) + { +@@ -756,9 +759,6 @@ + + int input_line( int buflen, char *buffer, int timeout, int *read_size ) + { +- struct timeval tv; +- struct timezone tz; +- + int c, col; + int init_char_pos, curr_char_pos; + int loop, tail_col; +@@ -1023,8 +1023,6 @@ + */ + int input_character( int timeout ) + { +- struct timeval tv; +- struct timezone tz; + int c; + + fflush( stdout ); +@@ -1078,7 +1076,7 @@ + + static int read_key( int mode ) + { +- int c; ++ int c = 0; + + if ( mode == PLAIN ) + { +@@ -1162,9 +1160,11 @@ + if ( mode ) + { + ++#if 0 + /* signal (SIGINT, sig_rundown); + signal (SIGTERM, sig_rundown); + */ ++#endif + } + + if ( mode ) +@@ -1230,6 +1230,7 @@ + + } /* set_cbreak_mode */ + ++#if 0 + static void rundown( ) + { + unload_cache( ); +@@ -1245,6 +1246,7 @@ + close_script( ); + sig_reset_screen( ); + } /* rundown */ ++#endif + + #if defined HARD_COLORS + +@@ -1256,7 +1258,7 @@ + */ + void set_colours( zword_t foreground, zword_t background ) + { +- int fg, bg; ++ int fg = 0, bg = 0; + static int bgset = 0; + + int fg_colour_map[] = { 30, 31, 32, 33, 34, 35, 36, 37 }; +Index: jzip-210r20001005/jzip/fileio.c +=================================================================== +--- jzip-210r20001005.orig/jzip/fileio.c 2000-10-05 17:08:10.000000000 +0300 ++++ jzip-210r20001005/jzip/fileio.c 2006-07-14 00:28:27.000000000 +0300 +@@ -51,9 +51,9 @@ + #ifndef USE_ZLIB + static char gfpbuffer[BUFSIZ]; + #endif +-#endif + static char sfpbuffer[BUFSIZ]; + static char rfpbuffer[BUFSIZ]; ++#endif + + char save_name[Z_FILENAME_MAX + Z_PATHNAME_MAX + 1] = "story.sav"; + char script_name[Z_FILENAME_MAX + Z_PATHNAME_MAX + 1] = "story.scr"; +@@ -186,6 +186,8 @@ + char *path, *p; + char tmp[Z_FILENAME_MAX + Z_PATHNAME_MAX + 1]; + ++ path = p = 0; ++ + if ( !STANDALONE_FLAG ) + { + story_offset = 0; +Index: jzip-210r20001005/jzip/input.c +=================================================================== +--- jzip-210r20001005.orig/jzip/input.c 2000-10-05 17:08:10.000000000 +0300 ++++ jzip-210r20001005/jzip/input.c 2006-07-14 00:30:14.000000000 +0300 +@@ -300,7 +300,7 @@ + int slen; + char *str_end; + char *cbuf, *tbuf, *tp; +- const char *cp, *token; ++ const char *cp, *token=NULL; + char punctuation[16]; + zword_t word; + +@@ -357,7 +357,7 @@ + /* Skip to next token */ + + cp = next_token( cp, str_end, &token, &token_length, punctuation ); +- if ( token_length ) ++ if ( token_length ) { + + /* If still space in token buffer then store word */ + +@@ -391,6 +391,7 @@ + output_string( "Too many words typed, discarding: " ); + output_line( token ); + } ++ } + } + while ( token_length ); + +Index: jzip-210r20001005/jzip/osdepend.c +=================================================================== +--- jzip-210r20001005.orig/jzip/osdepend.c 2006-07-14 00:28:27.000000000 +0300 ++++ jzip-210r20001005/jzip/osdepend.c 2006-07-14 00:28:27.000000000 +0300 +@@ -32,6 +32,10 @@ + * + */ + ++#ifdef HAVE_GETOPT ++#include ++#endif ++ + #include "ztypes.h" + #include "jzexe.h" + +@@ -85,9 +89,10 @@ + #if !defined(AMIGA) + + /* getopt linkages */ +- ++#if !defined(POSIX) + extern int optind; + extern const char *optarg; ++#endif /* !defined(POSIX) */ + extern ZINT16 default_fg, default_bg; + + #endif /* !defined(AMIGA) */ +Index: jzip-210r20001005/jzip/memory.c +=================================================================== +--- jzip-210r20001005.orig/jzip/memory.c 2000-10-05 17:08:10.000000000 +0300 ++++ jzip-210r20001005/jzip/memory.c 2006-07-14 00:28:27.000000000 +0300 +@@ -263,7 +263,7 @@ + zbyte_t read_data_byte( unsigned long *addr ) + { + unsigned int page_number, page_offset; +- zbyte_t value; ++ zbyte_t value=0; + + /* Check if byte is in non-paged cache */ + +Index: jzip-210r20001005/jzip/jzexe.c +=================================================================== +--- jzip-210r20001005.orig/jzip/jzexe.c 2000-10-05 17:08:10.000000000 +0300 ++++ jzip-210r20001005/jzip/jzexe.c 2006-07-14 00:29:04.000000000 +0300 +@@ -142,6 +142,7 @@ + } + fprintf( stderr, "Couldn't find magic string." ); + abort_program( 1 ); ++ return 0; /* should not return */ + } + + /* +@@ -266,10 +267,9 @@ + void create_executable( char *story, char *jzip ) + { + FILE *in, *out; +- long p, length, pos; ++ long length, pos; + char fn[NAME_LENGTH + 4]; + char *ext; +- int ok; + + strcpy( in_name, "" ); + strcpy( out_name, "" ); +@@ -366,7 +366,7 @@ + a story file that can be played with JZip or any other interpreter.\n\ + Note that the extension '.exe' of the game file must be given.\n" + +-void main( int argc, char **argv ) ++int main( int argc, char **argv ) + { + buf = ( unsigned char * ) malloc( BUFSIZE * sizeof ( unsigned char ) ); + +Index: jzip-210r20001005/jzip/property.c +=================================================================== +--- jzip-210r20001005.orig/jzip/property.c 2000-10-05 17:08:10.000000000 +0300 ++++ jzip-210r20001005/jzip/property.c 2006-07-14 00:28:27.000000000 +0300 +@@ -138,7 +138,7 @@ + { + prop_addr++; + /* Only load first property if it is a byte sized property */ +- if ( h_type <= V3 && !( value & 0xe0 ) || h_type >= V4 && !( value & 0xc0 ) ) ++ if ( ( h_type <= V3 && !( value & 0xe0 )) || (h_type >= V4 && !( value & 0xc0 )) ) + { + bprop_val = get_byte( prop_addr ); + wprop_val = bprop_val; +@@ -205,7 +205,7 @@ + + prop_addr++; + +- if ( h_type <= V3 && !( value & 0xe0 ) || h_type >= V4 && !( value & 0xc0 ) ) ++ if ( (h_type <= V3 && !( value & 0xe0 )) || (h_type >= V4 && !( value & 0xc0 )) ) + { + set_byte( prop_addr, ( zbyte_t ) setvalue ); + } +Index: jzip-210r20001005/jzip/ckifzs.c +=================================================================== +--- jzip-210r20001005.orig/jzip/ckifzs.c 2000-10-05 17:08:10.000000000 +0300 ++++ jzip-210r20001005/jzip/ckifzs.c 2006-07-14 00:28:27.000000000 +0300 +@@ -231,7 +231,9 @@ + } + else if ( !strncmp( id, "CMem", 4 ) ) + { ++#if defined SHORT_DUMP || defined LONG_DUMP + unsigned long ul1, ul2; ++#endif + + printf( " (compressed memory)" ); + #if defined SHORT_DUMP +@@ -459,7 +461,7 @@ + } + cklen -= 4; + filelen -= 4; +- printf( " %d bytes of data", cklen ); ++ printf( " %ld bytes of data", cklen ); + } + } + } +@@ -472,7 +474,6 @@ + if ( cklen >= 1 ) + { + unsigned long l; +- unsigned char uch1; + + fputs( " ", stdout ); + for ( l = 0; l < cklen; ++l ) +@@ -490,7 +491,6 @@ + if ( cklen >= 1 ) + { + unsigned long l; +- unsigned char uch1; + + fputs( " ", stdout ); + for ( l = 0; l < cklen; ++l ) +@@ -508,7 +508,6 @@ + if ( cklen >= 1 ) + { + unsigned long l; +- unsigned char uch1; + + fputs( " ", stdout ); + for ( l = 0; l < cklen; ++l ) +@@ -526,7 +525,6 @@ + if ( cklen >= 1 ) + { + unsigned long l; +- unsigned char uch1; + + fputs( " ", stdout ); + for ( l = 0; l < cklen; ++l ) +@@ -540,11 +538,11 @@ + } + else if ( !strncmp( id, " ", 4 ) ) + { +- printf( " (%d-byte filler)\n", cklen ); ++ printf( " (%ld-byte filler)\n", cklen ); + } + else + { +- printf( "\n*** Unknown %d-byte chunk type found.\n", cklen ); ++ printf( "\n*** Unknown %ld-byte chunk type found.\n", cklen ); + ++errors; + } + filelen -= 8; --- jzip-210r20001005.orig/debian/patches/jzexe-execute-bit +++ jzip-210r20001005/debian/patches/jzexe-execute-bit @@ -0,0 +1,62 @@ +- fix jzip binary name +- create the executable file with the proper permissions + +Originally apparently by Michael Stroucken . + +Adapted to quilt by Niko Tyni +Index: jzip-210r20001005/jzip/jzexe.c +=================================================================== +--- jzip-210r20001005.orig/jzip/jzexe.c 2006-07-13 23:07:05.000000000 +0300 ++++ jzip-210r20001005/jzip/jzexe.c 2006-07-13 23:27:21.000000000 +0300 +@@ -36,6 +36,7 @@ + #include + #include + #include ++#include + + #include "jzexe.h" + +@@ -67,7 +68,11 @@ + static char out_name[NAME_LENGTH + 1]; + + /* The name of the JZip executable */ ++#if defined(MSDOS) || defined(__MSDOS__) + #define JZIP_NAME "jzip.exe" ++#else ++#define JZIP_NAME "/usr/games/jzip" ++#endif + + void abort_program( int exit_code ) + { +@@ -81,6 +86,7 @@ + { + char *mode; + FILE *f; ++ int tempfd; + + if ( input ) + { +@@ -89,14 +95,22 @@ + * just in case */ + in_name[NAME_LENGTH] = 0; + mode = READ_MODE; ++ ++ f = fopen(name, mode); + } + else + { + strncpy( out_name, name, NAME_LENGTH ); + out_name[NAME_LENGTH] = 0; + mode = WRITE_MODE; ++ ++ tempfd = creat(name, 0755); ++ if (tempfd == -1) { ++ fprintf(stderr, "Error creating file %s\n", name); ++ abort_program(1); ++ } ++ f = fdopen(tempfd, WRITE_MODE); + } +- f = fopen( name, mode ); + if ( !f ) + { + fprintf( stderr, "Error opening file %s\n", name ); --- jzip-210r20001005.orig/debian/copyright +++ jzip-210r20001005/debian/copyright @@ -0,0 +1,47 @@ +This package was debianized by Michael Stroucken on +Sun, 22 Aug 1999 13:17:43 -0400. + +The current maintainer is Niko Tyni , since +Thu, 13 Jul 2006 22:32:25 +0300. + +It was downloaded from the Interactive Fiction archive: +http://ifarchive.heanet.ie/if-archive/infocom/interpreters/zip/jzip21-10oct2000.zip + +Upstream Author: John D. Holder + +Copyright, from doc/License.txt: + +Jzip V2.1 Infocom/Inform Zcode Format Interpreter +-------------------------------------------------------------------- +Copyright (c) 2000 John D. Holder. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The file 'dumbio.c' has the following copyright and license information: + + Copyright 1995, 1997 Al Petrofsky . + All rights granted provided this notice stays intact. + +and, further down: + + /* code below this point added by John Holder and distributed under the Jzip + license */ + --- jzip-210r20001005.orig/debian/compat +++ jzip-210r20001005/debian/compat @@ -0,0 +1 @@ +5 --- jzip-210r20001005.orig/debian/manpages +++ jzip-210r20001005/debian/manpages @@ -0,0 +1,3 @@ +debian/ckifzs.6 +debian/jzexe.6 +jzip/doc/jzip.6 --- jzip-210r20001005.orig/debian/dirs +++ jzip-210r20001005/debian/dirs @@ -0,0 +1 @@ +usr/games --- jzip-210r20001005.orig/debian/jzexe.6 +++ jzip-210r20001005/debian/jzexe.6 @@ -0,0 +1,47 @@ +.TH JZEXE 6 +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +jzexe \- Generates standalone Z-Code programs +.SH SYNOPSIS +.B jzexe +.I " [jzip program]" +.br +.B jzexe +.I "-x " +.br +.B jzexe +.SH "DESCRIPTION" +This manual page documents briefly the +.BR jzexe +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.B jzexe +is a program that generates a standalone Z-Code executable program by +gluing +.BR jzip +and the specified Z-Code program together. It assumes +.BR jzip +is located at /usr/games/jzip, which can be overridden by the command line. It calls +a standalone executable .exe, and saves its output in the +current directory. +.PP +.B jzexe +can also extract Z-Code programs from the executables it creates. +.SH OPTIONS +A summary of options are included below. +.TP +.B \-x +Extract a program from a stand alone executable, naming it +.z +.PP +Run +.BR jzexe +with no arguments to view invocation options. +.SH "SEE ALSO" +.BR jzip (6), /usr/share/doc/jzip/Jzexe.txt.gz +.SH AUTHOR +This manual page was written by Michael Stroucken , +for the Debian GNU/Linux system (but may be used by others). --- jzip-210r20001005.orig/debian/README.Debian-source +++ jzip-210r20001005/debian/README.Debian-source @@ -0,0 +1,10 @@ +The .orig.tar.gz file of this Debian source package is not the upstream +pristine tarball, since that is only available as a .zip file. It has thus +been repackaged; the .orig.tar.gz only contains the pristine .zip. You can +use the 'get-orig-source' debian/rules target to fetch the zip file and +regenerate the tarball, and the 'unpack' debian/rules target to unpack it. + +Note that modifications to the upstream source are located in the +'debian/patches' directory and managed by quilt. + +-- Niko Tyni Thu, 13 Jul 2006 21:13:39 +0300