This file is indexed.

postrm is in smartlist 3.15-22.

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
#!/bin/sh
set -e
if [ "$1" = "purge" ]; then
  echo "Directory /var/list not removed, as it may contain user data."
  echo "Trying to remove list aliases from /etc/aliases..."
  if ! grep -q "^# ---SmartList End" /etc/aliases; then
    echo "Warning: \`# ---SmartList End' line not found in /etc/aliases."
    echo "You will have to remove list alias by hand."
    echo "Sorry."
    echo ""
    exit 0
  else
    OLDALIASES=/etc/aliases.`date +%Y-%m-%d.%H:%M:%S`
    cp -p /etc/aliases $OLDALIASES
    cat $OLDALIASES | sed -e '/^# ---SmartList Begin/,/^# ---SmartList End/d' > /etc/aliases
    echo "Done. Backup copy of your old /etc/aliases in $OLDALIASES"
    echo ""
    set +e
    newaliases
    set -e
  fi
fi