postrm is in mythbuntu-bare-client 2.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 | #!/bin/sh
set -e
case "$1" in
        remove)
        # Check mythbuntu-common version, only revert divert if less than version 0.60
        MYTHBUNTU_COMMON_VER=`dpkg-query -W -f='${VERSION}' mythbuntu-common | sed 's,-.*,,'`
        if [ "$(echo $MYTHBUNTU_COMMON_VER '<' 0.60 | bc -l)" -eq 1 ];then 
            dpkg-divert --package mythbuntu-bare-client --remove \
                    --rename --divert /usr/share/mythbuntu/plugins/python/mythbuntu-bare.py.diverted /usr/share/mythbuntu/plugins/python/mythbuntu-bare.py
            dpkg-divert --package mythbuntu-bare-client --remove \
                    --rename --divert /usr/share/mythbuntu/plugins/ui/tab_mythbuntu-bare.ui.diverted /usr/share/mythbuntu/plugins/ui/tab_mythbuntu-bare.ui
        fi
        ;;
        purge)
        rm /var/log/mythbuntu-bare-client.log
        rm -rf /var/lib/mythtv/bare-client
        rm -rf /etc/cron.d/mythbuntu-bare
        ;;
esac
 |