Package: rockdodger
Version: 1.1.4-4
Severity: normal
Dear Maintainer,
Please consider using dh-cruft to register & purge /var/games/rockdodger.scores.
This has several benefits:
*) On the technical side, this keep your game in sync
with the one maintained by Games Team
without any supplemental later work needed on your side.
The "rmdir --ignore-fail-on-non-empty /var/games/" for example.
https://lists.debian.org/debian-devel-games/2025/12/msg00016.html
*) This relieves the cruft-ng maintainers from having to write
~1000 shadow rules for the cruft-ng forensic tool;
that will slowly bitrot over the years:
https://salsa.debian.org/pkg-security-team/cruft-ng/-/blob/master/rules/rockdodger?ref_type=heads
Please have a look a the newly generated postrm script & the patch itself.
Greetings
Alexandre
========== new postrm =====================
$ cat /var/lib/dpkg/info/rockdodger.postrm
#!/bin/sh -e
if [ "$1" = purge ]
then
if [ -x /usr/bin/update-desktop-database ]
then
update-desktop-database -q
fi
fi
# Automatically added by dh_cruft/0.9.85
if [ "$1" = "purge" ]
then
# we need to glob, so no quotes
rm -rf ${DPKG_ROOT:-}/var/games/rockdodger.scores
if test -d ${DPKG_ROOT:-}/var/games/
then
rmdir --ignore-fail-on-non-empty ${DPKG_ROOT:-}/var/games/
fi
fi
# End automatically added section
================ PATCH ====================
/tmp/rockdodger$ git diff HEAD~
diff --git a/debian/control b/debian/control
index 36b4f82..e5631ad 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,11 @@ Source: rockdodger
Section: games
Priority: optional
Maintainer: Martin A. Godisch <[email protected]>
-Build-Depends: debhelper-compat (= 13), libsdl-image1.2-dev,
libsdl-mixer1.2-dev
+Build-Depends:
+ debhelper-compat (= 13),
+ dh-sequence-cruft,
+ libsdl-image1.2-dev,
+ libsdl-mixer1.2-dev,
Rules-Requires-Root: no
Standards-Version: 4.7.4
Homepage: https://bitbucket.org/rpkrawczyk/rockdodger
diff --git a/debian/rockdodger.postrm b/debian/rockdodger.postrm
index 6b7de3a..4549297 100644
--- a/debian/rockdodger.postrm
+++ b/debian/rockdodger.postrm
@@ -2,8 +2,6 @@
if [ "$1" = purge ]
then
- rm -f /var/games/rockdodger.scores
-
if [ -x /usr/bin/update-desktop-database ]
then
update-desktop-database -q
diff --git a/debian/rockdodger.purge b/debian/rockdodger.purge
new file mode 100644
index 0000000..ee4e50a
--- /dev/null
+++ b/debian/rockdodger.purge
@@ -0,0 +1 @@
+/var/games/rockdodger.scores
=====================================
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (501, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 7.0.10+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8),
LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages rockdodger depends on:
ii libc6 2.42-16
ii libsdl-image1.2 1.2.12-14+b2
ii libsdl-mixer1.2 1.2.12-19+b2
ii libsdl1.2debian 1.2.76-1
rockdodger recommends no packages.
rockdodger suggests no packages.
-- no debconf information