- purge)
- # This package has previously been removed and is now having
- # its configuration purged from the system.
- # remove the gunzipped setup executable.
- rm -f /usr/share/doc/citadel-server/contrib/setup
- for i in '?' aide floors hours intro mail network nice policy software summary; do
- ucf --purge "/var/lib/citadel/help/$i"
- rm -f "/var/lib/citadel/help/$i"
- done
-
- for i in aideopt changepw dotopt entermsg entopt goodbye hello help mainmenu newuser readopt register roomaccess unlisted; do
- ucf --purge "/var/lib/citadel/messages/$i"
- rm -f "/var/lib/citadel/messages/$i"
- done
-
- for i in mail.aliases public_clients citadel.conf; do
- ucf --purge "/etc/citadel/$i"
- rm -f "/etc/citadel/$i"
- done
- # we mimic dpkg as closely as possible, so we remove configuration
- # files with dpkg backup extensions too:
- ### Some of the following is from Tore Anderson:
- for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do
- rm -f /etc/citadel/*$ext
- rm -f /var/lib/citadel/messages/*$ext
- rm -f /var/lib/citadel/help/*$ext
- done
- ### TODO: remove citadel from inittab!
- ;;
- disappear)
- if test "$2" != overwriter; then
- echo "$0: undocumented call to \`postrm $*'" 1>&2
- exit 0
- fi
- # This package has been completely overwritten by package $3
- # (version $4). All our files are already gone from the system.
- # This is a special case: neither "prerm remove" nor "postrm remove"
- # have been called, because dpkg didn't know that this package would
- # disappear until this stage.
- :