- remove)
- # This package is being removed, but its configuration has not yet
- # been purged.
-
-
- # Remove diversion
- #: dpkg-divert --package foo --remove --rename \
- #: --divert /usr/bin/other.real /usr/bin/other
-
- # ldconfig is NOT needed during removal of a library, only during
- # installation
-
- ;;
- 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
- rmdir "/var/lib/citadel/help"
-
- 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
- rmdir "/var/lib/citadel/messages"
-
- 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
- echo "/var/lib/citadel/data not removed, as it may contain your personal data."
- db_purge
- db_go
- ### TODO: remove citadel from inittab!