[zoom-player] 02/02: Initial packaging.

Stephen Kitt skitt at moszumanska.debian.org
Sun Jan 17 15:37:42 UTC 2016


This is an automated email from the git hooks/post-receive script.

skitt pushed a commit to branch master
in repository zoom-player.

commit 391a306a40faa9ee1e6fba052cdf3cfc9f15b785
Author: Stephen Kitt <steve at sk2.org>
Date:   Sun Jan 17 16:37:15 2016 +0100

    Initial packaging.
---
 debian/changelog                    |   5 +
 debian/clean                        |   3 +
 debian/compat                       |   1 +
 debian/control                      |  38 +++++++
 debian/copyright                    | 213 ++++++++++++++++++++++++++++++++++++
 debian/doc-base                     |   9 ++
 debian/docs                         |   1 +
 debian/manpages                     |   1 +
 debian/patches/acinclude.patch      |   9 ++
 debian/patches/restore-return.patch |  33 ++++++
 debian/patches/series               |   2 +
 debian/postinst                     |  27 +++++
 debian/prerm                        |  24 ++++
 debian/rules                        |   7 ++
 debian/source/format                |   1 +
 debian/watch                        |   4 +
 debian/zoom.6                       |  47 ++++++++
 17 files changed, 425 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d82e1df
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+zoom-player (1.1.5~dfsg-1) UNRELEASED; urgency=low
+
+  * Initial release. Closes: #811026.
+
+ -- Stephen Kitt <skitt at debian.org>  Sat, 16 Jan 2016 14:57:08 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..eae625b
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,3 @@
+config.log
+src/interp_*.h
+src/varop.h
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..72721ee
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,38 @@
+Source: zoom-player
+Section: games
+Priority: optional
+Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
+Uploaders:
+ Stephen Kitt <skitt at debian.org>
+Build-Depends:
+ debhelper (>=9),
+ dh-autoreconf,
+ libfontconfig-dev,
+ libice-dev,
+ libpng-dev,
+ libsm-dev,
+ libx11-dev,
+ libxext-dev,
+# To use libxft-dev, zoom needs adapted to use pkg-config instead of xft-config
+# libxft-dev,
+ libxrender-dev,
+ zlib1g-dev
+Standards-Version: 3.9.6
+Homepage: http://www.logicalshift.co.uk/unix/zoom/
+
+Package: zoom-player
+Architecture: any
+Multi-Arch: foreign
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends}
+Provides:
+ zcode-interpreter
+Description: player for Z-Code stories or games
+ Zoom is a player for Z-Code stories or games. These are usually text
+ adventures (also known as interactive fiction), made popular in the
+ eighties by Infocom with its Zork series of games, and others.
+ .
+ Zoom emulates versions 3 through 8 of the Z-Machine; in particular it
+ supports version 6 games properly (including Arthur, Journey, Shōgun
+ and Zork Zero).
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9bf049a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,213 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: zoom
+Source: http://www.logicalshift.co.uk/unix/zoom/
+Files-Excluded:
+ ProjectBuilder
+ src/ifmetabase*
+ src/ifmetaxml.*
+ src/infocom.iFiction
+ src/macos
+ src/zoomCocoa
+ ZoomCocoa.xcodeproj
+ *.plist
+
+Files: *
+Copyright: 2000-2004 Andrew Hunter
+License: GPL-2.0+
+
+Files: debian/*
+Copyright: 2016 Stephen Kitt
+License: GPl-2.0+
+
+Files:
+ INSTALL
+ Makefile.in
+ aclocal.m4
+ bonus/Makefile.in
+ builder/Makefile.in
+ config.guess
+ config.sub
+ configure
+ depcomp
+ install-sh
+ m4/Makefile.in
+ manual/Makefile.in
+ missing
+ src/Makefile.in
+Copyright: 1992-2013 Free Software Foundation, Inc.
+           1994 X Consortium
+License: permissive
+ Auto-generated file under the permissive license.
+
+Files:
+ builder/main.c
+ builder/operation.h
+ src/blorb.c
+ src/blorb.h
+ src/debug.c
+ src/debug.h
+ src/display.c
+ src/display.h
+ src/eval.y
+ src/file.c
+ src/file.h
+ src/font3.c
+ src/font3.h
+ src/hash.c
+ src/hash.h
+ src/iff.c
+ src/ifmetadata.c
+ src/ifmetadata.h
+ src/image.h
+ src/interp.c
+ src/interp.h
+ src/main.c
+ src/menu.c
+ src/menu.h
+ src/options.c
+ src/options.h
+ src/random.c
+ src/random.h
+ src/rc.c
+ src/rc.h
+ src/rcp.h
+ src/state.c
+ src/state.h
+ src/stream.c
+ src/stream.h
+ src/tokenise.c
+ src/tokenise.h
+ src/v6display.c
+ src/v6display.h
+ src/zmachine.c
+ src/zmachine.h
+ src/zscii.c
+ src/zscii.h
+Copyright: 2000 Andrew Hunter
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License Version 2.1 can be found in
+ `/usr/share/common-licenses/LGPL-2.1'.
+
+Files:
+ builder/gram.c
+ builder/gram.h
+ src/eval.c
+ src/eval.h
+ src/rc_parse.c
+ src/rc_parse.h
+Copyright: 1984-2006 Free Software Foundation, Inc.
+License: GPL-2.0+ with Bison exception
+ 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, 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 Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+ .
+ As a special exception, you may create a larger work that contains
+ part or all of the Bison parser skeleton and distribute that work
+ under terms of your choice, so long as that work isn't itself a
+ parser generator using the skeleton or a modified version thereof as
+ a parser skeleton.  Alternatively, if you modify or redistribute the
+ parser skeleton itself, you may (at your option) remove this special
+ exception, which will cause the skeleton and the resulting Bison
+ output files to be licensed under the GNU General Public License
+ without this special exception.
+ .
+ This special exception was added by the Free Software Foundation in
+ version 2.2 of Bison.
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+Files:
+ src/md5.c
+ src/md5.h
+Copyright: 1999-2002 Aladdin Enterprises.
+License: Zlib
+ This software is provided 'as-is', without any express or implied
+ warranty.  In no event will the authors be held liable for any
+ damages arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute
+ it freely, subject to the following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented; you must
+ not claim that you wrote the original software. If you use this
+ software in a product, an acknowledgment in the product documentation
+ would be appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must
+ not be misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source
+ distribution.
+
+Files: ylwrap
+Copyright: 1996-2009 Free Software Foundation, Inc.
+License: GPL-2.0+ with Autoconf exception
+ 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, 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, see
+ <http://www.gnu.org/licenses/>.
+ .
+ As a special exception to the GNU General Public License, if you
+ distribute this file as part of a program that contains a
+ configuration script generated by Autoconf, you may include it under
+ the same distribution terms that you use for the rest of that
+ program.
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+
+License: GPL-2.0+
+ 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.
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License Version 2 can be found in `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/doc-base b/debian/doc-base
new file mode 100644
index 0000000..c10c0e0
--- /dev/null
+++ b/debian/doc-base
@@ -0,0 +1,9 @@
+Document: zoom-player
+Title: Zoom manual
+Author: Andrew Hunter
+Abstract: Documentation for the Zoom Z-Code interpreter.
+Section: Games/Adventure
+
+Format: HTML
+Index: /usr/share/doc/zoom-player/index.html
+Files: /usr/share/doc/zoom-player/*.html
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..8d45084
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+manual/*
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..2ed30d1
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/zoom.6
diff --git a/debian/patches/acinclude.patch b/debian/patches/acinclude.patch
new file mode 100644
index 0000000..f605e40
--- /dev/null
+++ b/debian/patches/acinclude.patch
@@ -0,0 +1,9 @@
+Description: add the included m4 files
+Author: Stephen Kitt <skitt at debian.org>
+
+--- /dev/null
++++ b/acinclude.m4
+@@ -0,0 +1,3 @@
++m4_include([m4/carbon.m4])
++m4_include([m4/display.m4])
++m4_include([m4/util.m4])
diff --git a/debian/patches/restore-return.patch b/debian/patches/restore-return.patch
new file mode 100644
index 0000000..9412980
--- /dev/null
+++ b/debian/patches/restore-return.patch
@@ -0,0 +1,33 @@
+commit 5ef19e08bbeff74096a1944ec8ba591cdab8cc55
+Author: Andrew Hunter <andrew at logicalshift.co.uk>
+Date:   Sun Nov 13 21:20:23 2011 +0000
+
+    Restored a return statement that got deleted way back in changeset 1cd73ed without anybody (well, me) noticing.
+    
+    The effect of this missing return statement was to make aread callbacks that return true continue as if they had returned false and randomly crash after they try to write to the (now freed) buffer.
+    
+    Amazingly, this hasn't been reported up until now. I suspect that there are few or no cases where aread callbacks return a value other than zero.
+    
+    Also added a paranoid buffer check, which is probably unnecessary but looks like good practice in any case.
+
+diff --git a/src/interp.c b/src/interp.c
+index 60b3e13..a5fa8fe 100644
+--- a/src/interp.c
++++ b/src/interp.c
+@@ -1057,6 +1057,7 @@ static void zcode_op_aread_5678(ZDWord* pc,
+ 	{
+ 	  mem[1] = 0;
+ 	  free(buf);
++	  return;
+ 	}
+     }
+   
+@@ -1151,7 +1152,7 @@ static void zcode_op_aread_5678(ZDWord* pc,
+ 	  int x;
+ 
+ 	  mem[1] = 0;
+-	  for (x=0; buf[x] != 0; x++)
++	  for (x=0; buf[x] != 0 && x < bufLen; x++)
+ 	    {
+ 	      mem[1]++;
+ 	      buf[x] = unicode_to_lower(buf[x]);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ec00dad
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+acinclude.patch
+restore-return.patch
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..79326e5
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,27 @@
+#! /bin/sh
+# postinst script for zoom-player
+#
+# see: dh_installdeb(1)
+
+set -e
+
+case "$1" in
+    configure)
+	update-alternatives --install /usr/games/zcode-interpreter zcode-interpreter /usr/games/zoom 60 --slave /usr/share/man/man6/zcode-interpreter.6.gz zcode-interpreter-man-gz /usr/share/man/man6/zoom.6.gz
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 0000000..7635e70
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,24 @@
+#! /bin/sh
+# prerm script for zoom-player
+#
+# see: dh_installdeb(1)
+
+set -e
+
+case "$1" in
+    remove|deconfigure|failed-upgrade)
+	update-alternatives --remove zcode-interpreter /usr/games/zoom
+        ;;
+    upgrade)
+	;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c20abd5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with autoreconf 
+
+override_dh_auto_configure:
+	dh_auto_configure -- --bindir=/usr/games
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..901c1f8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts="dversionmangle=s/.dfsg\d*$//,repacksuffix=~dfsg" \
+http://www.logicalshift.co.uk/unix/zoom \
+ zoom-([\d\.]+)\.tar\.gz debian uupdate
diff --git a/debian/zoom.6 b/debian/zoom.6
new file mode 100644
index 0000000..ddf827d
--- /dev/null
+++ b/debian/zoom.6
@@ -0,0 +1,47 @@
+.TH zoom 6 "January 16, 2016" zoom
+.SH NAME
+zoom \- Z-Code interpreter
+.SH SYNOPSIS
+.B zoom
+[\fIoptions\fP] <\fIgame file\fP> [<\fIsave file\fP>]
+.SH DESCRIPTION
+.B zoom
+is a player for Z-Code stories or games. It supports all version of
+the Z-Machine, including version 6 with graphical resources (converted
+to Blorb format).
+.PP
+.SH OPTIONS
+.B zoom
+accepts the following options:
+.TP
+.BR \-D ", " \-\-debugmode
+Enable source-level debugger (requires \fIgameinfo.dbg\fP).
+.TP
+.BR \-w ", " \-\-warnings
+Display interpreter warnings.
+.TP
+.BR \-W ", " \-\-fatal
+Make warnings fatal.
+.TP
+.BR \-? ", " \-\-help
+Briefly describe the command-line options.
+.TP
+.BR \-\-usage
+Print the synopsis.
+.TP
+.BR \-V ", " \-\-version
+Print the program version.
+
+.SH FILES
+.IP "/usr/share/zoom/zoomrc, ~/.zoomrc"
+Default options (fonts, default size, colours...).
+
+.SH SEE ALSO
+\fB/usr/share/doc/zoom-player/index.html\fP.
+
+.SH AUTHORS
+\fBzoom\fP was written by Andrew Hunter.
+
+This manual page was written by Stephen Kitt <skitt at debian.org>, for
+the Debian GNU/Linux system (but may be used by others). It was last
+modified for \fBzoom\fP version 1.1.5.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/zoom-player.git



More information about the Pkg-games-commits mailing list