Package: postfix-policyd-spf-perl Version: 2.007-2 Severity: normal The package creates a user to run the daemon. That is good. (And I see the reference to Bug#492420.) But upon a purge it is currently leaving that user behind on the system. Upon a purge it should remove the user that it added. How about something like the following suggested postrm script?
Thanks! Bob #! /bin/sh # postrm script # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' # * <old-postrm> `upgrade' <new-version> # * <new-postrm> `failed-upgrade' <old-version> # * <new-postrm> `abort-install' # * <new-postrm> `abort-install' <old-version> # * <new-postrm> `abort-upgrade' <old-version> # * <disappearer's-postrm> `disappear' <overwriter> # <overwriter-version> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case $1 in purge|remove) case $1 in purge) if id -u policyd-spf >/dev/null 2>&1; then if [ -x /usr/sbin/userdel ]; then userdel policyd-spf || true fi fi if id -g policyd-spf >/dev/null 2>&1; then if [ -x /usr/sbin/groupdel ]; then groupdel policyd-spf || true fi fi ;; esac ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org