postrm is in gnats 4.1.0-3+deb9u1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #!/bin/sh
#
# Gnats installation script -- written by Brian White <bcwhite@pobox.com>
# (This was my very first attempt at learning perl... please forgive me!)
#
# Forgiving -- rewritten to bash :-) by Milan Zamazal <pdm@debian.org>.
# ...and streamlined with SED by Chad Walstrom <chewie@debian.org>
set -e
###############################################################################
#
# Utility functions
#
# Call arguments and never return error
protect () { "$@" || true; }
###############################################################################
#
# Common initialization for install scripts
#
if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
###############################################################################
#
# Purging actions
#
if [ "$1" = purge ]; then
# Purge gnats database
protect rm -rf /var/lib/gnats/gnats-db /var/lib/gnats/gnats-db.old
# Remove the inetd setting when purging this package.
if [ -e "/usr/sbin/update-inetd" ] ; then
update-inetd --remove "#?support.*"
fi
# Remove debconf templates and data
db_purge || true
fi
###############################################################################
#
# Automatically added debhelper stuff
#
|