~yolanda.robla/ubuntu/saucy/clamav/dep-8-tests

13 by Kees Cook
* Merge from debian unstable.
1
#! /bin/sh
2
# postrm script for #PACKAGE#
3
#
4
# see: dh_installdeb(1)
5
# summary of how this script can be called:
6
#        * <postrm> `remove'
7
#        * <postrm> `purge'
8
#        * <old-postrm> `upgrade' <new-version>
9
#        * <new-postrm> `failed-upgrade' <old-version>
10
#        * <new-postrm> `abort-install'
11
#        * <new-postrm> `abort-install' <old-version>
12
#        * <new-postrm> `abort-upgrade' <old-version>
13
#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
14
# for details, see /usr/share/doc/packaging-manual/
15
16
set -e
17
18
# dh_installdeb will replace this with shell code automatically
19
# generated by other debhelper scripts.
20
21
#DEBHELPER#
22
89 by Jamie Strandboge
debian/rules, debian/clamav-daemon.post{inst.in,rm},
23
# remove AppArmor files
24
if [ "$1" = "purge" ]; then
25
    rm -f "/etc/apparmor.d/disable/usr.sbin.clamd" || true
26
    rm -f "/etc/apparmor.d/force-complain/usr.sbin.clamd" || true
27
    rm -f "/etc/apparmor.d/local/usr.sbin.clamd" || true
28
    rmdir /etc/apparmor.d/local 2>/dev/null || true
29
fi
30
13 by Kees Cook
* Merge from debian unstable.
31
case "$1" in
32
  purge)
0.39.10 by Michael Tautschnig, Alberto WU, Michael Tautschnig
33
  LOGROTATE_FILE='/etc/logrotate.d/clamav-daemon'
13 by Kees Cook
* Merge from debian unstable.
34
  if [ -x "/usr/bin/ucf" ]; then
35
    ucf -p $LOGROTATE_FILE || true
0.39.10 by Michael Tautschnig, Alberto WU, Michael Tautschnig
36
  fi
37
  if [ -e "$LOGROTATE_FILE" ]; then
38
    rm -f $LOGROTATE_FILE
13 by Kees Cook
* Merge from debian unstable.
39
  fi
40
  ;;
41
  remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
42
  ;;
43
  *)
44
  echo "postrm called with unknown argument \`$1'" >&2
45
  exit 0
46
esac
47
48
exit 0
49