Package: crossfire-server Version: 1.75.0-9 Severity: normal Hi Kari,
Please consider this patch that let dh-cruft handle the removal of volatile files on cruft. Moreover, all of /var/games should be managed in postinst as dynamic content; but that will be in another, later, request. Greetings Alexandre diff --git a/debian/control b/debian/control index 2444a4c..9318b9c 100644 --- a/debian/control +++ b/debian/control @@ -7,6 +7,7 @@ Standards-Version: 4.7.2 Build-Depends: debhelper (>= 13), debhelper-compat (= 13), + dh-sequence-cruft, automake, libtool, flex, --- /dev/null +++ b/debian/crossfire-server.purge @@ -0,0 +1,2 @@ +/var/games/crossfire/ +/var/log/crossfire/ --- a/debian/crossfire-server.postrm +++ /dev/null @@ -1,40 +0,0 @@ -#! /bin/sh -e - -case "$1" in - failed-upgrade|abort-upgrade) - # do nothing - ;; - - abort-install) - # do nothing - ;; - - purge) - ##purge game files - if [ -d /var/games/crossfire/ ] ; then - if [ "`ls /var/games/crossfire/ | wc -l`" -gt 0 ] ; then - echo "purging /var/games/crossfire/ and its contents" - rm -rf /var/games/crossfire/ ||true - fi - fi - ##purge logfiles - if [ -d /var/log/crossfire/ ] ; then - if [ "`ls /var/log/crossfire/ | wc -l`" -gt 0 ] ; then - echo "purging /var/games/crossfire/ and its contents" - rm -rf /var/log/crossfire/ ||true - fi - fi - ;; - - remove|upgrade|disappear) - # do nothing - ;; - *) - echo "$0: incorrect arguments: $*" >&2 - exit 1 - ;; - -esac - -##DEBHELPER## -

