r5618 - in packages/trunk/ketm/debian: . patches
Ansgar Burchardt
ansgar-guest at alioth.debian.org
Sun Feb 3 01:46:48 UTC 2008
Author: ansgar-guest
Date: 2008-02-03 01:46:48 +0000 (Sun, 03 Feb 2008)
New Revision: 5618
Added:
packages/trunk/ketm/debian/ketm.postrm
packages/trunk/ketm/debian/ketm.preinst
Modified:
packages/trunk/ketm/debian/changelog
packages/trunk/ketm/debian/control
packages/trunk/ketm/debian/ketm.install
packages/trunk/ketm/debian/ketm.postinst
packages/trunk/ketm/debian/patches/000_build_system.diff
packages/trunk/ketm/debian/patches/010_rebootstrap.diff
packages/trunk/ketm/debian/rules
Log:
* Don't distribute score file, create in postinst instead (Closes: 424738)
* Rename XS-Vcs-* to Vcs-*
Modified: packages/trunk/ketm/debian/changelog
===================================================================
--- packages/trunk/ketm/debian/changelog 2008-02-02 23:25:23 UTC (rev 5617)
+++ packages/trunk/ketm/debian/changelog 2008-02-03 01:46:48 UTC (rev 5618)
@@ -3,7 +3,6 @@
[ Barry deFreese ]
* Make binNMU safe (Closes: #432985)
* Thanks to Lior Kaplan for the patch
- * Exclude var/games/ketm.scores from md5sums (Closes: #424738)
* Bump debhelper build-dep to 5 to match compat
* Don't ignore make clean errors
* Add watch file
@@ -15,8 +14,11 @@
* ketm.install, ketm-data.install new files
* debian/menu: use new icon
- -- Barry deFreese <bddebian at comcast.net> Fri, 26 Oct 2007 16:00:10 -0400
+ [ Ansgar Burchardt ]
+ * Don't distribute score file, create in postinst instead (Closes: 424738)
+ -- Ansgar Burchardt <ansgar at 43-1.org> Sun, 03 Feb 2008 02:04:06 +0100
+
ketm (0.0.6-19) unstable; urgency=low
[ Sam Hocevar (Debian packages) ]
Modified: packages/trunk/ketm/debian/control
===================================================================
--- packages/trunk/ketm/debian/control 2008-02-02 23:25:23 UTC (rev 5617)
+++ packages/trunk/ketm/debian/control 2008-02-03 01:46:48 UTC (rev 5618)
@@ -6,8 +6,8 @@
Build-Depends: debhelper (>= 5.0), quilt, libsdl1.2-dev, imagemagick
Standards-Version: 3.7.2
Homepage: http://www.landshut.org/bnla01/members/wh/ketm/
-XS-Vcs-Svn: ssh://svn.debian.org/svn/pkg-games/packages/trunk/ketm/
-XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/ketm/?op=log
+Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/ketm/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/ketm/?op=log
Package: ketm
Architecture: any
@@ -24,8 +24,7 @@
Package: ketm-data
Architecture: all
Depends: ${misc:Depends}
-Conflicts: ketm (<< 0.0.6-13)
-Replaces: ketm (<< 0.0.6-13)
+Replaces: ketm (<< 0.0.6-20)
Description: graphics and audio data for ketm
Ketm is a hicolor/hiresolution classical game that has similarities with
Raptor, Tyrian and Galaga. You are a spacepilot controlling your secret
Modified: packages/trunk/ketm/debian/ketm.install
===================================================================
--- packages/trunk/ketm/debian/ketm.install 2008-02-02 23:25:23 UTC (rev 5617)
+++ packages/trunk/ketm/debian/ketm.install 2008-02-03 01:46:48 UTC (rev 5618)
@@ -1,5 +1,4 @@
usr/games/*
-var/games/*
usr/share/man/*
../../debian/ketm.desktop usr/share/applications
../../debian/ketm.xpm usr/share/pixmaps
Modified: packages/trunk/ketm/debian/ketm.postinst
===================================================================
--- packages/trunk/ketm/debian/ketm.postinst 2008-02-02 23:25:23 UTC (rev 5617)
+++ packages/trunk/ketm/debian/ketm.postinst 2008-02-03 01:46:48 UTC (rev 5618)
@@ -4,8 +4,21 @@
DOCDIR="/usr/share/doc/ketm"
-chown games:games /var/games/ketm.scores
-chmod 664 /var/games/ketm.scores
+scores=/var/games/ketm.scores
+
+# old versions of ketm (< 0.0.6-20) will remove high score file
+# on upgrade, so rescue it
+if $(dpkg --compare-versions "$2" lt-nl 0.0.6-20) ; then
+ [ -e $scores.tmp ] && mv $scores.tmp $scores
+fi
+
+# create high score file if not already there
+if [ ! -e $scores ] ; then
+ touch $scores
+ chown games:games $scores
+ chmod 664 $scores
+fi
+
chown root:games /usr/games/ketm
chmod 2755 /usr/games/ketm
@@ -18,3 +31,5 @@
#DEBHELPER#
+exit 0
+
Added: packages/trunk/ketm/debian/ketm.postrm
===================================================================
--- packages/trunk/ketm/debian/ketm.postrm (rev 0)
+++ packages/trunk/ketm/debian/ketm.postrm 2008-02-03 01:46:48 UTC (rev 5618)
@@ -0,0 +1,13 @@
+#! /bin/sh
+# postrm script for ketm
+
+set -e
+
+if [ "$1" = purge ] ; then
+ rm -f /var/games/ketm.scores
+fi
+
+#DEBHELPER#
+
+exit 0
+
Added: packages/trunk/ketm/debian/ketm.preinst
===================================================================
--- packages/trunk/ketm/debian/ketm.preinst (rev 0)
+++ packages/trunk/ketm/debian/ketm.preinst 2008-02-03 01:46:48 UTC (rev 5618)
@@ -0,0 +1,21 @@
+#! /bin/sh
+# preinst script for ketm
+
+set -e
+
+scores=/var/games/ketm.scores
+
+case "$1" in
+ install|upgrade)
+ # old versions of ketm (< 0.0.6-20) will remove high score file
+ # on upgrade, so rescue it
+ if $(dpkg --compare-versions "$2" lt-nl 0.0.6-20) && [ -e $scores ] ; then
+ cp -p $scores $scores.tmp
+ fi
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
Modified: packages/trunk/ketm/debian/patches/000_build_system.diff
===================================================================
--- packages/trunk/ketm/debian/patches/000_build_system.diff 2008-02-02 23:25:23 UTC (rev 5617)
+++ packages/trunk/ketm/debian/patches/000_build_system.diff 2008-02-03 01:46:48 UTC (rev 5618)
@@ -1,7 +1,7 @@
Index: ketm-0.0.6/Makefile.am
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/Makefile.am 2006-05-15 20:02:51.000000000 +0200
++++ ketm-0.0.6/Makefile.am 2008-02-03 01:50:21.000000000 +0100
@@ -0,0 +1,56 @@
+scoredir=$(localstatedir)/games
+
@@ -53,16 +53,16 @@
+INCLUDES = -DDATA=\"$(datadir)/ketm\" -DHISCORE_FILE=\"$(scoredir)/ketm.scores\"
+install-data-local:
+ -$(mkinstalldirs) $(DESTDIR)$(scoredir)
-+ touch $(DESTDIR)$(scoredir)/ketm.scores
-+ -chown games.games $(DESTDIR)$(scoredir)/ketm.scores
-+ -chmod 664 $(DESTDIR)$(scoredir)/ketm.scores
++ #touch $(DESTDIR)$(scoredir)/ketm.scores
++ #-chown games.games $(DESTDIR)$(scoredir)/ketm.scores
++ #-chmod 664 $(DESTDIR)$(scoredir)/ketm.scores
+ -chgrp games $(DESTDIR)$(bindir)/ketm
+ -chmod 2111 $(DESTDIR)$(bindir)/ketm
+
Index: ketm-0.0.6/configure.in
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/configure.in 2006-05-15 20:02:51.000000000 +0200
++++ ketm-0.0.6/configure.in 2008-02-03 01:50:01.000000000 +0100
@@ -0,0 +1,89 @@
+# Process this file with autoconf to produce a configure script.
+FULL-PACKAGE-NAME=ketm
@@ -156,7 +156,7 @@
Index: ketm-0.0.6/configure.scan
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/configure.scan 2006-05-15 20:02:51.000000000 +0200
++++ ketm-0.0.6/configure.scan 2008-02-03 01:50:01.000000000 +0100
@@ -0,0 +1,40 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(bonus.c)
@@ -201,7 +201,7 @@
Index: ketm-0.0.6/data/Makefile.am
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/data/Makefile.am 2006-05-15 20:02:51.000000000 +0200
++++ ketm-0.0.6/data/Makefile.am 2008-02-03 01:50:01.000000000 +0100
@@ -0,0 +1,70 @@
+pkgdata_DATA= 12side.bmp\
+ back02.bmp\
Modified: packages/trunk/ketm/debian/patches/010_rebootstrap.diff
===================================================================
--- packages/trunk/ketm/debian/patches/010_rebootstrap.diff 2008-02-02 23:25:23 UTC (rev 5617)
+++ packages/trunk/ketm/debian/patches/010_rebootstrap.diff 2008-02-03 01:46:48 UTC (rev 5618)
@@ -1,7 +1,7 @@
Index: ketm-0.0.6/config.guess
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/config.guess 2006-05-15 20:14:22.000000000 +0200
++++ ketm-0.0.6/config.guess 2008-02-03 01:50:26.000000000 +0100
@@ -0,0 +1,1497 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
@@ -1503,7 +1503,7 @@
Index: ketm-0.0.6/config.sub
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/config.sub 2006-05-15 20:14:22.000000000 +0200
++++ ketm-0.0.6/config.sub 2008-02-03 01:50:26.000000000 +0100
@@ -0,0 +1,1608 @@
+#! /bin/sh
+# Configuration validation subroutine script.
@@ -3116,7 +3116,7 @@
Index: ketm-0.0.6/depcomp
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/depcomp 2006-05-15 20:14:22.000000000 +0200
++++ ketm-0.0.6/depcomp 2008-02-03 01:50:26.000000000 +0100
@@ -0,0 +1,530 @@
+#! /bin/sh
+# depcomp - compile a program generating dependencies as side-effects
@@ -3651,7 +3651,7 @@
Index: ketm-0.0.6/install-sh
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/install-sh 2006-05-15 20:14:22.000000000 +0200
++++ ketm-0.0.6/install-sh 2008-02-03 01:50:26.000000000 +0100
@@ -0,0 +1,323 @@
+#!/bin/sh
+# install - install a program, script, or datafile
@@ -3979,7 +3979,7 @@
Index: ketm-0.0.6/missing
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/missing 2006-05-15 20:14:22.000000000 +0200
++++ ketm-0.0.6/missing 2008-02-03 01:50:26.000000000 +0100
@@ -0,0 +1,360 @@
+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
@@ -4344,7 +4344,7 @@
Index: ketm-0.0.6/configure
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/configure 2006-05-15 20:14:21.000000000 +0200
++++ ketm-0.0.6/configure 2008-02-03 01:50:26.000000000 +0100
@@ -0,0 +1,7730 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
@@ -12079,7 +12079,7 @@
Index: ketm-0.0.6/Makefile.in
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/Makefile.in 2006-05-15 20:14:23.000000000 +0200
++++ ketm-0.0.6/Makefile.in 2008-02-03 01:50:58.000000000 +0100
@@ -0,0 +1,818 @@
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# @configure_input@
@@ -12891,9 +12891,9 @@
+
+install-data-local:
+ -$(mkinstalldirs) $(DESTDIR)$(scoredir)
-+ touch $(DESTDIR)$(scoredir)/ketm.scores
-+ -chown games.games $(DESTDIR)$(scoredir)/ketm.scores
-+ -chmod 664 $(DESTDIR)$(scoredir)/ketm.scores
++ #touch $(DESTDIR)$(scoredir)/ketm.scores
++ #-chown games.games $(DESTDIR)$(scoredir)/ketm.scores
++ #-chmod 664 $(DESTDIR)$(scoredir)/ketm.scores
+ -chgrp games $(DESTDIR)$(bindir)/ketm
+ -chmod 2111 $(DESTDIR)$(bindir)/ketm
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
@@ -12902,7 +12902,7 @@
Index: ketm-0.0.6/data/Makefile.in
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ ketm-0.0.6/data/Makefile.in 2006-05-15 20:14:22.000000000 +0200
++++ ketm-0.0.6/data/Makefile.in 2008-02-03 01:50:26.000000000 +0100
@@ -0,0 +1,392 @@
+# Makefile.in generated by automake 1.9.6 from Makefile.am.
+# @configure_input@
Modified: packages/trunk/ketm/debian/rules
===================================================================
--- packages/trunk/ketm/debian/rules 2008-02-02 23:25:23 UTC (rev 5617)
+++ packages/trunk/ketm/debian/rules 2008-02-03 01:46:48 UTC (rev 5618)
@@ -77,7 +77,7 @@
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
- dh_md5sums -a -X var/games/ketm.scores
+ dh_md5sums -a
dh_builddeb -a
binary: binary-indep binary-arch
More information about the Pkg-games-commits
mailing list