This file is indexed.

postrm is in afterstep-data 2.2.12-6.

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
#!/bin/sh
set -e
# Automatically added by debian/scripts/fix_conffiles

cfgdir="/etc/X11/afterstep"
ucfdir="/usr/share/afterstep/ucf"
cfgfiles="animate asmount autoexec banner base database gtkrc-2.0_template gtkrc_template kcsrc_template pager sound standard_categories wharf winlist wintabs"
package="afterstep-data"

if [ "$1" = "purge" ] ; then
   # check is ucf is still installed  (see Bug#325905)
   which ucf >/dev/null && HAS_UCF=yes || HAS_UCF=no
   which ucfr >/dev/null && HAS_UCFR=yes || HAS_UCFR=no

   for f in $cfgfiles; do
      cf="$cfgdir/${f%.menu-method}"
      # we mimic dpkg as closely as possible, so we remove configuration
      # files with dpkg backup extensions too:
      for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist '';  do
         rm -f "${cf}${ext}"
      done
      if [ "$HAS_UCF" = "yes"  ]; then ucf  --purge "$cf"; fi
      if [ "$HAS_UCFR" = "yes" ]; then ucfr --purge "$package" "$cf"; fi
   done

   [ ! -d "$cfgdir" ] || rmdir --parents --ignore-fail-on-non-empty "$cfgdir"
fi

# End automatically added section