Package: nighthawk Version: 1.0-15.1 Followup-For: Bug #115855 I'm providing a patch to move the scores from /var/lib/games to /var/games. It updates the Makefile and postinst and deals with the previous location at the same time. Please let me know if you have any problem with the patch as I wasnt sure of the best way to provide it.
-- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages nighthawk depends on: ii libc6 2.7-10 GNU C Library: Shared libraries ii libgcc1 1:4.3.0-5 GCC support library ii libstdc++6 4.3.0-5 The GNU Standard C++ Library v3 ii libx11-6 2:1.0.3-7 X11 client-side library ii libxpm4 1:3.5.7-1 X11 pixmap library nighthawk recommends no packages. -- no debconf information
--- ../../../nighthawk-1.0/debian/postinst 2008-06-01 23:51:09.000000000 +0100 +++ postinst 2008-06-01 23:56:02.000000000 +0100 @@ -1,11 +1,23 @@ #!/bin/sh -SCORES=/var/lib/games/nighthawk.scores +# Declare old location +OLDSCORES=/var/lib/games/nighthawk.scores +SCORES=/var/games/nighthawk.scores if [ ! -e ${SCORES%/*} ]; then mkdir ${SCORES%/*} fi +# If the old file exists, move to new location +if [ -e $OLDSCORES ]; then + mv $OLDSCORES $SCORES +fi + +# If the old location exists, attempt to remove it +if [ -e ${OLDSCORES%/*} ]; then + rmdir ${OLDSCORES%/*} 2> /dev/null +fi + if [ ! -e $SCORES ]; then touch $SCORES chown root.games $SCORES --- ../../../nighthawk-1.0/Makefile 2008-06-01 23:51:09.000000000 +0100 +++ ../Makefile 2008-06-01 22:59:46.000000000 +0100 @@ -7,7 +7,7 @@ PREFIX = debian/tmp INSTALL_DIR = /usr/games INSTALL_LIB_DIR = /usr/share/games/nighthawk -SCORES = /var/lib/games/nighthawk.scores +SCORES = /var/games/nighthawk.scores ############################################################################ VERSION = 1.0