~ubuntu-branches/ubuntu/raring/clamav/raring

« back to all changes in this revision

Viewing changes to debian/clamav-daemon.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2008-09-05 17:25:34 UTC
  • mto: (0.35.3 sid)
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: james.westby@ubuntu.com-20080905172534-2lxrdzafr26tqfkx
Tags: 0.94.dfsg-1
* New upstream version (closes: #497662, #497773)
  - lots of new options for clamd.conf
  - fixes CVEs CVE-2008-3912, CVE-2008-3913, CVE-2008-3914, and
    CVE-2008-1389
* No longer supports --unzip option, so typo is gone (closes: #496276)
* Translations:
  - sv (thanks Martin Bagge <brother@bsnet.se>) (closes: #491760)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
23
case "$1" in
 
24
  purge)
 
25
  if [ -x "/usr/bin/ucf" ]; then
 
26
    LOGROTATE_FILE='/etc/logrotate.d/clamav-daemon'
 
27
    ucf -p $LOGROTATE_FILE || true
 
28
    if [ -e "$LOGROTATE_FILE" ]; then
 
29
      rm -f $LOGROTATE_FILE
 
30
    fi
 
31
  fi
 
32
  ;;
 
33
  remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
34
  ;;
 
35
  *)
 
36
  echo "postrm called with unknown argument \`$1'" >&2
 
37
  exit 0
 
38
esac
 
39
 
 
40
exit 0
 
41