#1140209 libapache2-mod-security2: please do "rm -rf /var/cache/modsecurity/" on purge

Package:
libapache2-mod-security2
Source:
libapache2-mod-security2
Description:
Tighten web applications security for Apache
Submitter:
Alexandre Detiste
Date:
2026-06-17 16:01:02 UTC
Severity:
normal
Tags:
#1140209#5
Date:
2026-06-17 08:18:09 UTC
From:
To:
Dear Maintainer,

I noticed while browsing Debian Code Search that
this package creates /var/cache/modsecurity/" with debian/libapache2-mod-security2.dirs.

This makes it piuparts compliant;
because piuparts does not actualy run the packages;
but I guess that after some real world usage of
this package there would be some files in this directory.

Please ensure that this directory is cleansed on purge.

This can be handled by a full blow  .postrm script
or with a one-line debian/purge file
& a dependecy on dh-sequence-cruft.

Greetings

Alexandre