~ubuntu-branches/ubuntu/trusty/clamav/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/clamav-freshclam.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Michael Tautschnig, Stephen Gran, Michael Tautschnig
  • Date: 2010-09-26 11:18:22 UTC
  • mfrom: (0.39.8 squeeze)
  • mto: (122.1.1 raring-security)
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: james.westby@ubuntu.com-20100926111822-403d4clfy324f9z6
Tags: 0.96.3+dfsg-2
[ Stephen Gran ]
* Add NotifyClamd only if set to nonempty value.

[ Michael Tautschnig ]
* Cherry-pick from upstream: Only enable RLIMIT_DATA warning on *BSD
  (already included in Ubuntu's 1ubuntu3) (closes: #598083).
* Do rmdir /etc/clamav, /var/log/clamav, /var/lib/clamav in all postrms as
  we cannot count on clamav-base's postrm to be the last one being called
  (thanks piuparts).
* Remove trailing / in freshclam's DatabaseDirectory default value
  (closes: #598084).

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
  [ ! -d "${workdir}/main.inc/" ] || rmdir --ignore-fail-on-non-empty ${workdir}/main.inc/
53
53
  [ ! -d "${workdir}/daily.inc/" ] || rmdir --ignore-fail-on-non-empty ${workdir}/daily.inc/
54
54
  update-rc.d clamav-freshclam remove >/dev/null
 
55
  for dir in /etc/clamav/ /var/log/clamav /var/lib/clamav/; do
 
56
    if [ -d "$dir" ]; then
 
57
      rmdir "$dir" --ignore-fail-on-non-empty || true
 
58
    fi
 
59
  done
55
60
  ;;
56
61
  remove)
57
62
  rm -f /var/lib/clamav/main.cvd /var/lib/clamav/main.cld