Also need pkg-config
[nbd.git] / debian / nbd-server.postrm
blob9dea6d10347c57373bdc1ecedd234521c3ddc3d6
1 #! /bin/sh
2 # postrm script for nbd
4 # see: dh_installdeb(1)
6 set -e
8 if [ -f /usr/share/debconf/confmodule ]
9 then
10 . /usr/share/debconf/confmodule
13 # summary of how this script can be called:
14 # * <postrm> `remove'
15 # * <postrm> `purge'
16 # * <old-postrm> `upgrade' <new-version>
17 # * <new-postrm> `failed-upgrade' <old-version>
18 # * <new-postrm> `abort-install'
19 # * <new-postrm> `abort-install' <old-version>
20 # * <new-postrm> `abort-upgrade' <old-version>
21 # * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
22 # for details, see /usr/share/doc/packaging-manual/
24 case "$1" in
25 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
29 purge)
30 ucf --purge /etc/nbd-server/config ||:
31 rm -f /etc/nbd-server/config ||:
32 db_purge ||:
35 echo "postrm called with unknown argument \`$1'" >&2
36 exit 0
38 esac
40 # dh_installdeb will replace this with shell code automatically
41 # generated by other debhelper scripts.
43 #DEBHELPER#