[tenmado] 02/18: Imported Debian patch 0.10-1

Markus Koschany apo-guest at moszumanska.debian.org
Sun Feb 1 15:22:01 UTC 2015


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

apo-guest pushed a commit to branch master
in repository tenmado.

commit bd16d53c1f8e33fa2f46a1d3c3dcb0aec0de0661
Author: Oohara Yuuma <oohara at debian.org>
Date:   Thu Feb 2 21:44:42 2012 +0900

    Imported Debian patch 0.10-1
---
 debian/changelog                   | 172 ++++++++++++++++++++++++++
 debian/compat                      |   1 +
 debian/control                     |  24 ++++
 debian/copyright                   | 242 +++++++++++++++++++++++++++++++++++++
 debian/patches/10pointer_to_readme |  24 ++++
 debian/patches/series              |   1 +
 debian/rules                       |  93 ++++++++++++++
 debian/source/format               |   1 +
 debian/tenmado.docs                |   5 +
 debian/tenmado.menu                |   3 +
 debian/tenmado.postinst            |  69 +++++++++++
 debian/tenmado.postrm              |  51 ++++++++
 debian/tenmado.preinst             |  54 +++++++++
 debian/watch                       |   4 +
 14 files changed, 744 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..49af970
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,172 @@
+tenmado (0.10-1) unstable; urgency=low
+
+  * New upstream release
+  * the new upstream release fixes the following bug:
+    + Add the return value of sdl-config --libs (which usually
+      contains a -l flag) to LIBS, not AM_LDFLAGS.  You can now
+      use the --as-needed option of binutils-gold ld.  (closes: #639926)
+  * debian/control, debian/rules: don't copy config.guess and config.sub
+    from autotools-dev because they are unnecessary
+  * debian/control, debian/rules: use dh-autoreconf to regenerate
+    autoconf/automake files
+  * debian/rules, debian/control: set ./configure options with
+    dpkg-buildflags --export=configure
+  * debian/control: added Build-Depends: dpkg-dev (>= 1.16.1) because
+    this package uses dpkg-buildflags
+  * debian/rules: added build-arch and build-indep targets
+  * debian/control: added Build-Conflicts: autoconf2.13, automake1.4
+    just in case
+  * debian/control, debian/compat: set debhelper compatibility level to 8
+  * debian/control: set Standards-Version: to 3.9.2
+  * debian/tenmado.preinst: the transition to a plain text high score file
+    do nothing if /usr/games/tenmado is not available
+  * debian/source/format: new file, set the source format to 3.0 (quilt)
+  * debian/patches/10pointer_to_readme: added a DEP-3 header
+  * debian/rules: removed the obsolete --without-libdb3 option of
+    ./configure
+  * debian/rules: removed useless chmod at the end of binary-arch
+
+ -- Oohara Yuuma <oohara at debian.org>  Thu, 02 Feb 2012 21:44:42 +0900
+
+tenmado (0.8-1) unstable; urgency=low
+
+  * new upstream release
+  * new maintainer (closes: #554257)
+  * debian/control, debian/rules, debian/tenmado.docs: no longer uses dbs
+  * debian/patches/*: removed
+  * debian/control: removed the versioned dependency on libraries
+    to respect symbols files if available
+  * debian/compat: set debhelper compatibility level to 7
+  * debian/control: updated the versioned dependency of debhelper
+  * debian/control: Build-Depends on autotools-dev because the package
+    uses autoconf
+  * debian/control: pass CFLAGS and LDFLAGS to configure script
+  * debian/control: replaced dh_clean -k with dh_prep
+  * debian/tenmado.gnome-menu: removed
+  * debian/control: uses Homepage: for the upstream URL
+  * debian/copyright: refers to /usr/share/common-licenses/GPL-2 rather
+    than /usr/share/common-licenses/GPL because the license is "GPL
+    version 2, no other version is allowed"
+  * debian/tenmado.prerm: removed because it does nothing
+  * debian/watch: new file, supports uscan
+  * debian/rules: set Standards-Version: to 3.8.3
+  * debian/tenmado.postrm: removes /var/games on purge if it is not in
+    the control of dpkg; assumes that a package which uses /var/games but
+    leaves it empty until necessary includes /var/games in its .deb
+    rather than creates /var/games in its maintainer script (closes: #333410)
+
+ -- Oohara Yuuma <oohara at debian.org>  Mon, 16 Nov 2009 14:39:24 +0900
+
+tenmado (0.7-3) unstable; urgency=low
+
+  * acknowledged NMU
+  * the NMU fixed the following bug:
+    + no longer uses /usr/X11R6/include/X11/pixmaps/ for the icon image
+      (closes: #403938)
+  * debian/tenmado.menu: quoted a string
+  * debian/tenmado.menu: uses the section Games/Action instead of
+    Games/Arcade
+  * debian/compat: new file, setting debhelper compatibility level to 5
+  * debian/rules: removed the DH_COMPAT setting
+  * debian/control: added ${misc:Depends} to Depends:
+  * debian/control: Build-Depends: debhelper (>= 5)
+
+ -- Oohara Yuuma <oohara at debian.org>  Mon, 29 Dec 2008 16:37:52 +0900
+
+tenmado (0.7-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Move tenmado.xpm to /usr/share/pixmaps. (Closes: #403938)
+
+ -- Carsten Hey <c.hey at web.de>  Sat, 27 Dec 2008 18:29:17 +0100
+
+tenmado (0.7-2) unstable; urgency=low
+
+  * debian/rules, debian/control: no longer uses libdb3 to save high scores
+    (closes: #289303)
+  * debian/tenmado.preinst, debian/tenmado.postinst: restore old high scores
+    when upgrading
+  * debian/control: updated Standards-Version:
+  * happy birthday, L!
+
+ -- Oohara Yuuma <oohara at debian.org>  Fri, 25 Nov 2005 00:00:52 +0900
+
+tenmado (0.7-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Oohara Yuuma <oohara at debian.org>  Thu, 25 Nov 2004 15:58:19 +0900
+
+tenmado (0.6-2) unstable; urgency=low
+
+  * debian/tenmado.postinst: chown root.games is deprecated, s/./:/
+    (closes: #229200)
+
+ -- Oohara Yuuma <oohara at debian.org>  Sun, 25 Jan 2004 10:49:12 +0900
+
+tenmado (0.6-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Oohara Yuuma <oohara at debian.org>  Mon, 24 Nov 2003 23:09:11 +0900
+
+tenmado (0.5-1) unstable; urgency=low
+
+  * new upstream release
+  * debian/tenmado.docs: installs README-ja-utf8 too
+
+ -- Oohara Yuuma <oohara at debian.org>  Thu, 16 Jan 2003 09:16:28 +0900
+
+tenmado (0.4-1) unstable; urgency=low
+
+  * new upstream release
+  * debian/tenmado.postrm: added a long comment about /var/games
+  * debian/control: set Standards-Version to 3.5.8
+  
+ -- Oohara Yuuma <oohara at debian.org>  Sun,  5 Jan 2003 01:05:06 +0900
+
+tenmado (0.3-1) unstable; urgency=low
+
+  * new upstream release
+  * debian/control: added libdb3-dev
+  * debian/tenmado.postinst, debian/tenmado.postrm: added high score lists
+    handling
+  * debian/rules: the tenmado binary is now sgid games
+  * debian/rules: added DEB_BUILD_OPTIONS "noopt" support
+  * debian/control: set Standards-Version to 3.5.7
+
+ -- Oohara Yuuma <oohara at debian.org>  Sat, 21 Dec 2002 23:57:55 +0900
+
+tenmado (0.2-1) unstable; urgency=low
+
+  * new upstream release
+  * happy birthday, L!  (well, it was November 25, but anyway)
+  * debian/control: build with newer debhelper (to remove the /usr/doc symlink)
+    and SDL libraries (for libpng3 transition)
+  * debian/rules, debian/tenmado.menu: added xpm icon
+  * debian/tenmado.gnome-menu: new file, adding GNOME1 menu
+
+ -- Oohara Yuuma <oohara at debian.org>  Tue, 26 Nov 2002 02:28:33 +0900
+
+tenmado (0.1dbs-2) unstable; urgency=low
+
+  * debian/control: build with new libsdl-image1.2-dev (which uses libpng3)
+
+ -- Oohara Yuuma <oohara at debian.org>  Mon, 22 Jul 2002 02:37:46 +0900
+
+tenmado (0.1dbs-1) unstable; urgency=low
+
+  * built with dbs
+  * This is based on version 0.1.  The upstream version number is changed
+    from 0.1 to 0.1dbs to overwrite .orig.tar.gz .
+  * debian/changelog: removed emacs variable
+  * debian/patches/10pointer_to_readme: new file, adding note about README
+    to the manpage
+
+ -- Oohara Yuuma <oohara at debian.org>  Fri, 19 Jul 2002 23:12:15 +0900
+
+tenmado (0.1-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Oohara Yuuma <oohara at debian.org>  Sun, 14 Jul 2002 04:47:11 +0900
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..879678f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: tenmado
+Section: games
+Priority: optional
+Maintainer: Oohara Yuuma <oohara at debian.org>
+Build-Depends: debhelper (>= 8), libsdl1.2-dev, libsdl-image1.2-dev, dh-autoreconf, dpkg-dev (>= 1.16.1)
+Build-Conflicts: autoconf2.13, automake1.4
+Standards-Version: 3.9.2
+Homepage: http://www.interq.or.jp/libra/oohara/tenmado/index.html
+
+Package: tenmado
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: hard-core shoot 'em up game in blue-or-red world
+ tenmado is a vertically scrolling, late 1990s style (that is, a massive
+ number of enemy shots against a smaller-than-it-looks spaceship) shoot 'em
+ up game.  A very accurate collision detection makes it a game of
+ dexterity.  If something looks like a triangle, it is a triangle, not
+ a rectangle of similar size.
+ .
+ However, surviving is only 20% of the game.  The main feature of tenmado
+ is the "color chain bonus".  You can get a very big score (about 100 times
+ bigger than a normal enemy-destruction point) by destroying enemies of
+ the same color successively.  It is easy or difficult depending on how
+ greedy you are.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f60b7fd
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,242 @@
+This package was debianized by Oohara Yuuma <oohara at debian.org> on
+Sun, 14 Jul 2002 04:21:24 +0900.
+
+It was downloaded from http://www.interq.or.jp/libra/oohara/tenmado/index.html
+
+Upstream Author: Oohara Yuuma <oohara at libra.interq.or.jp>
+
+Copyright:
+
+tenmado -- hard-core shoot 'em up game in blue-or-red world
+Copyright (C) 2002 Oohara Yuuma <oohara at libra.interq.or.jp>
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of either:
+
+a) the GNU General Public License version 2 as published by the Free Software
+   Foundation (no other version is allowed), or
+
+b) the Artistic License Version 2.0beta5.
+
+A copy of the GNU General Public License version 2 is included in the
+source code as GPL-2.  A copy of the Artistic License Version 2.0beta5 is
+included in the source code as Artistic-2.
+
+On a Debian system, a copy of the GNU General Public License version 2 is
+installed at /usr/share/common-licenses/GPL-2.  The text of the Artistic
+License Version 2.0beta5 follows:
+
+                            The Artistic License
+                         Version 2.0beta5, October 2001
+
+          Copyright (C) 2000, 2001 Larry Wall, Bradley M. Kuhn.
+       Everyone is permitted to copy and distribute verbatim copies
+        of this license document, but changing it is not allowed.
+
+                                  Preamble
+
+This copyright license states the terms under which a given free software
+Package may be copied, modified and/or redistributed, while the
+Originator(s) maintain some artistic control over the future development of
+that Package (at least as much artistic control as can be given under
+copyright law while still making the Package open source and free software).
+
+This license is bound by copyright law, and thus it legally applies only to
+works which the copyright holder has permitted copying, distribution or
+modification under the terms of the Artistic License, Version 2.0.
+
+You are reminded that You are always permitted to make arrangements wholly
+outside of a given copyright license directly with the copyright holder(s)
+of a given Package.  If the terms of this license impede your ability to
+make full use of the Package, You are encouraged to contact the copyright
+holder(s) and seek a different licensing arrangement.
+
+
+                                Definitions
+
+"Package" refers to the collection of files distributed by the
+          Originator(s), and derivatives of that collection of files created
+          through textual modification.
+
+"Standard Version" refers to the Package if it has not been modified, or has
+                   been modified only in ways suggested by the
+                   Originator(s).
+
+"Modified Version" refers to the Package, if it has been changed by You via
+                   textual modification of the source code, and such changes
+                   were not suggested by the Originator(s).
+
+"Originator"       refers to the author(s) and/or copyright holder(s) of the
+                   Standard Version of the Package.
+
+"You" and "Your" refers to any person who would like to copy, distribute, or
+                 modify the Package.
+
+"Distribution Fee" is any fee that You charge for providing a copy of this
+                   Package to another party.  It does not refer to licensing
+                   fees.
+
+"Freely Available" means that:
+
+       (a) no fee is charged for the right to use the item (though a
+           Distribution Fee may be charged).
+
+       (b) recipients of the item may redistribute it under the same
+           conditions they received it.
+
+       (c) If the item is a binary, object code, bytecode, the complete
+           corresponding machine-readable source code is included with the
+           item.
+
+
+         Permission for Use and Modification Without Redistribution
+
+  (1) You are permitted to use the Standard Version and create and use
+      Modified Versions for any purpose without restriction, provided that
+      you do not redistribute the Modified Version to others outside of your
+      company or organization.
+
+
+           Permissions for Redistribution of the Standard Version
+
+  (2) You may make available verbatim copies of the source code of the
+      Standard Version of this Package in any medium without restriction,
+      either gratis or for a Distribution Fee, provided that you duplicate
+      all of the original copyright notices and associated disclaimers.  At
+      Your discretion, such verbatim copies may or may not include compiled
+      bytecode, object code or binary versions of the corresponding source
+      code in the same medium.
+
+  (3) You may apply any bug fixes, portability changes, and other
+      modifications made available from any of the Originator(s).  The
+      resulting modified Package will still be considered the Standard
+      Version, and may be copied, modified and redistributed under the terms
+      of the original license of the Standard Version as if it were the
+      Standard Version.
+
+
+ Permissions for Redistribution of Modified Versions of the Package as Sour=
+ce
+
+  (4) You may modify your copy of the source code of this Package in any way
+      and distribute that Modified Version (either gratis or for a
+      Distribution Fee, and with or without a corresponding binary, bytecode
+      or object code version of the Modified Version) provided that You
+      clearly indicate what changes You made to the Package, and provided
+      that You do at least ONE of the following:
+
+       (a) make the Modified Version available to the Originator(s) of the
+           Standard Version, under the exact license of the Standard
+           Version, so that the Originator(s) may include your modifications
+           into the Standard Version (at their discretion).
+
+       (b) modify any installation scripts and procedures so that
+           installation of the Modified Version will never conflict with an
+           installation of the Standard Version, include for each program
+           installed by the Modified Version clear documentation describing
+           how it differs from the Standard Version, and rename your
+           Modified Version so that the name is substantially different from
+           the Standard Version.
+
+       (c) permit and encourage anyone who receives a copy of the Modified
+           Version to make your modifications Freely Available in some
+           specific way.
+
+      If Your Modified Version is in turn derived from a Modified Version
+      made by a third party, then You are still required to ensure that Your
+      Modified Version complies with the requirements of this license.
+
+
+      Permissions for Redistribution of Non-Source Versions of Package
+
+  (5) You may distribute binary, object code, bytecode or other non-source
+      versions of the Standard Version of the Package, provided that you
+      include complete instructions on where to get the source code of the
+      Standard Version.  Such instructions must be valid at the time of Your
+      distribution.  If these instructions, at any time while You are
+      carrying our such distribution, become invalid, you must provide new
+      instructions on demand or cease further distribution.  If You cease
+      distribution within thirty days after You become aware that the
+      instructions are invalid, then You do not forfeit any of Your rights
+      under this license.
+
+  (6) You may distribute binary, object code, bytecode or other non-source
+      versions of a Modified Version provided that You do at least ONE of
+      the following:
+
+       (a) include a copy of the corresponding source code for the Modified
+           Version under the terms indicated in (4).
+
+       (b) ensure that the installation of Your non-source Modified Version
+           does not conflict in any way with an installation of the Standard
+           Version, include for each program installed by the Modified
+           Version clear documentation describing how it differs from the
+           Standard Version, and rename your Modified Version so that the
+           name is substantially different from the Standard Version.
+
+       (c) ensure that the Modified Version includes notification of the
+           changes made from the Standard Version, and offer to provide
+           machine-readable source code (under a license that permits making
+           that source code Freely Available) of the Modified Version via
+           mail order.
+
+
+        Permissions for Inclusion of the Package in Aggregate Works
+ =20
+  (7) You may aggregate this Package (either the Standard Version or
+      Modified Version) with other packages and distribute the resulting
+      aggregation provided that You do not charge a licensing fee for the
+      Package.  Distribution Fees are permitted, and licensing fees for
+      other packages in the aggregation are permitted.  Your permission to
+      distribute Standard or Modified Versions of the Package is still
+      subject to the other terms set forth in other sections of this
+      license.
+
+  (8) In addition to the permissions given elsewhere by this license, You
+      are also permitted to link Modified and Standard Versions of this
+      Package with other works and distribute the result without
+      restriction, provided You have produced binary program(s) that do not
+      overtly expose the interfaces of the Package.  This includes
+      permission to embed the Package in a larger work of your own without
+      exposing a direct interface to the Package.  This also includes
+      permission to build stand-alone binary or bytecode versions of your
+      scripts that require the Package, but do not otherwise give the casual
+      user direct access to the Package itself.
+
+
+        Items That are Never Considered Part of a Modified Version Package
+
+  (9) Works (including, but not limited to, subroutines and scripts) that
+      you have linked or aggregated with the Package that merely extend or
+      make use of the Package, but are not intended to cause the Package to
+      operate differently from the Standard Version, do not, by themselves,
+      cause the Package to be a Modified Version.  In addition, such works
+      are not considered parts of the Package itself, and are not bound by
+      the terms of the Package's license.
+
+
+              Acceptance of License and Disclaimer of Warranty
+
+ (10) You are not required to accept this License, since you have not signed
+      it.  However, nothing else grants you permission to copy, modify or
+      distribute the Standard or Modified Versions of the Package.  These
+      actions are prohibited by copyright law if you do not accept this
+      License.  Therefore, by copying, modifying or distributing Standard
+      and Modified Versions of the Package, you indicate your acceptance of
+      the license of the Package.
+
+
+ (11) Disclaimer of Warranty:
+
+       THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+       "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 UNLESS REQUIRED BY
+       LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER OR CONTRIBUTOR
+       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, 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.
diff --git a/debian/patches/10pointer_to_readme b/debian/patches/10pointer_to_readme
new file mode 100644
index 0000000..3c3b8c4
--- /dev/null
+++ b/debian/patches/10pointer_to_readme
@@ -0,0 +1,24 @@
+Description: add pointer to README
+ This patch explains where README is installed in the manual page.
+Author: Oohara Yuuma <oohara at debian.org>
+Last-Update: 2012-02-01
+
+diff -ruN tenmado-0.7-old/tenmado.6 tenmado-0.7/tenmado.6
+--- tenmado-0.7-old/tenmado.6	Sat Aug  7 21:58:04 2004
++++ tenmado-0.7/tenmado.6	Thu Nov 25 15:54:25 2004
+@@ -1,5 +1,5 @@
+ .\" $Id: tenmado.6,v 1.18 2004/08/07 12:58:04 oohara Exp $
+-.TH TENMADO 6 "Wed, 15 Jan 2003" "Project Geeste" "tenmado manual"
++.TH TENMADO 6 "Thu, 16 Jan 2003" "Project Geeste" "tenmado manual"
+ .SH NAME
+ tenmado \- hard-core shoot 'em up game in blue-or-red world
+ .SH SYNOPSIS
+@@ -45,6 +45,8 @@
+ A joystick is also available for move and shoot.  Note that you must
+ plug the joystick before you invoke tenmado.  For more information,
+ see the tutorial demo by choosing it from the menu in the title.
++Also check the README file which can be found at
++/usr/share/doc/tenmado/README .
+ .SH OPTIONS
+ .TP
+ .BI "\-\-dump" " stage"
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2673364
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+10pointer_to_readme
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..20e4d11
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,93 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CONFFLAGS =
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+  CONFFLAGS += --build $(DEB_HOST_GNU_TYPE)
+else
+  CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	[ ! -e config.cache ] || rm config.cache
+# Once dh_autoreconf is called, dh_autoreconf_clean must be called
+# before dh_autoreconf is called again, or information saved in
+# debian/autoreconf.before will be lost.  Since dh_autoreconf_clean
+# can be called more than once without a problem, call it here.
+	dh_autoreconf_clean
+	dh_autoreconf
+	./configure $(shell dpkg-buildflags --export=configure) \
+  $(CONFFLAGS) \
+  --prefix=/usr --bindir=/usr/games \
+  --localstatedir=/var --mandir=/usr/share/man
+	touch configure-stamp
+
+build: build-arch build-indep
+build-arch: build-arch-stamp
+build-arch-stamp: configure-stamp
+	dh_testdir
+	$(MAKE)
+	touch build-arch-stamp
+build-indep:
+# We have nothing to do.
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp configure-stamp
+	[ ! -f Makefile ] || $(MAKE) distclean
+# dh_autoreconf_clean must be called after $(MAKE) distclean
+# because dh_autoreconf_clean removes files $(MAKE) distclean depends on
+	dh_autoreconf_clean
+	dh_clean config.cache
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tenmado/
+# the high score directory is handled by the maintainer scripts,
+# so don't put it in .deb
+	rmdir $(CURDIR)/debian/tenmado/var/games/tenmado/
+	rmdir $(CURDIR)/debian/tenmado/var/games/
+	rmdir $(CURDIR)/debian/tenmado/var/
+# debian menu icon
+	install -m 755 -d \
+  $(CURDIR)/debian/tenmado/usr/share/pixmaps/
+	install -m 644 icon.xpm \
+  $(CURDIR)/debian/tenmado/usr/share/pixmaps/tenmado.xpm
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installmenu
+	dh_installman
+	dh_installchangelogs ChangeLog
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	chown root.games $(CURDIR)/debian/tenmado/usr/games/tenmado
+	chmod 2755 $(CURDIR)/debian/tenmado/usr/games/tenmado
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build-arch build-indep build clean binary-indep binary-arch binary install configure
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/tenmado.docs b/debian/tenmado.docs
new file mode 100644
index 0000000..e498f95
--- /dev/null
+++ b/debian/tenmado.docs
@@ -0,0 +1,5 @@
+Artistic-2
+README
+README-ja-utf8
+THANKS
+TODO
diff --git a/debian/tenmado.menu b/debian/tenmado.menu
new file mode 100644
index 0000000..7932129
--- /dev/null
+++ b/debian/tenmado.menu
@@ -0,0 +1,3 @@
+?package(tenmado): needs="X11" section="Games/Action" \
+  icon="/usr/share/pixmaps/tenmado.xpm" \
+  title="tenmado" command="/usr/games/tenmado"
diff --git a/debian/tenmado.postinst b/debian/tenmado.postinst
new file mode 100644
index 0000000..d20fd1b
--- /dev/null
+++ b/debian/tenmado.postinst
@@ -0,0 +1,69 @@
+#! /bin/sh
+# postinst script for tenmado
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see /usr/share/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)
+    if test ! -d /var/games/tenmado/
+    then
+        install -d -o root -g root -m 755 /var/games/tenmado/
+    fi
+    # I call tenmado by its absolute path because /usr/games/ is usually
+    # not in root's $PATH
+    #
+    # transition to a plain text high score file
+    if dpkg --compare-versions "$2" lt-nl "0.7-2"
+    then
+      # called here is a new binary which uses plain text files
+      for N in 0 1 2 3 4 5
+      do
+        if test -s /var/games/tenmado/dump-from-db3-$N.txt
+        then
+          /usr/games/tenmado --undump $N \
+  < /var/games/tenmado/dump-from-db3-$N.txt
+        fi
+      done
+    fi
+    /usr/games/tenmado --undump-default > /dev/null
+    chown root:games /var/games/tenmado/*
+    chmod 664 /var/games/tenmado/*
+    ;;
+
+    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
+
+
diff --git a/debian/tenmado.postrm b/debian/tenmado.postrm
new file mode 100644
index 0000000..379436e
--- /dev/null
+++ b/debian/tenmado.postrm
@@ -0,0 +1,51 @@
+#! /bin/sh
+# postrm script for tenmado
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see /usr/share/doc/packaging-manual/
+
+case "$1" in
+    purge)
+        # remove the high score files
+        if test -d /var/games/tenmado/
+        then
+          rm -r /var/games/tenmado/
+          # remove /var/games if it is not in the control of dpkg
+          # it is assumed that a package which uses /var/games but leaves
+          # it empty until necessary includes /var/games in its .deb
+          # rather than creates /var/games in its maintainer script
+          if ! dpkg -S /var/games > /dev/null 2>&1
+          then
+            rmdir /var/games/ || true
+          fi
+        fi
+        ;;
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+
+        ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 0
+
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+
diff --git a/debian/tenmado.preinst b/debian/tenmado.preinst
new file mode 100644
index 0000000..e20617f
--- /dev/null
+++ b/debian/tenmado.preinst
@@ -0,0 +1,54 @@
+#! /bin/sh
+# preinst script for tenmado
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+#
+# For details see /usr/share/doc/packaging-manual/
+
+case "$1" in
+    install)
+    ;;
+
+    upgrade)
+    # transition to a plain text high score file
+    if dpkg --compare-versions "$2" lt-nl "0.7-2"
+    then
+      if test -x /usr/games/tenmado
+        then
+        # called here is the old binary which uses libdb3
+        # I call tenmado by its absolute path because /usr/games/ is usually
+        # not in root's $PATH
+        for N in 0 1 2 3 4 5
+        do
+          /usr/games/tenmado --dump $N \
+  > /var/games/tenmado/dump-from-db3-$N.txt
+        done
+      fi
+    fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst 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
+
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..94e1db0
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+http://www.interq.or.jp/libra/oohara/tenmado/tenmado-(.+)\.tar\.gz
+

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



More information about the Pkg-games-commits mailing list