~ubuntu-branches/ubuntu/trusty/aide/trusty

« back to all changes in this revision

Viewing changes to debian/aide-config-zg2.postrm

  • Committer: Package Import Robot
  • Author(s): Hannes von Haugwitz
  • Date: 2012-06-20 14:46:28 UTC
  • mfrom: (5.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20120620144628-robctdtcvwv5xr1u
Tags: 0.15.1-6
* lowered dependency on aide-common (closes: #545852):
  - aide, aide-xen, aide-dynamic:
    - moved aide-common from Depends to Recommends
    - added Breaks/Replaces: aide-common (<< 0.15.1-6)
  - moved aide.1 and aide.conf.5 from aide-common to binary packages
  - aide-common: replaced dependency on aide | aide-binary with
    versionised dependency on aide | aide-xen | aide-dynamic
* debian/patches/06-conf_yacc.y_conftext_declaration_fix.dpatch: new
  - fixed broken 'Error in expression' message (closes: #631398)
* 31_aide_lighttpd:
  - adjusted log file rules
* 31_aide_postgresql:
  - handle moved pgstat.stat file
* 31_aide_resolvconf:
  - extended rule for files in /@@{LIBINITRW}/resolvconf/interface/
* 31_aide_cron-apt:
  - adjusted rule for files in mailchanges/
* 31_aide_initramfs-tools: new
  - handle /@@{DEVDOT}initramfs
* 31_aide_util-linux: new
  - handle utab file and mount dir
* 31_aide_xdm: new
  - handle auth files
  - handle pid file
* 31_aide_libvirt-bin:
  - handle .monitor files
  - handle /var/lib/libvirt
  - handle /@@{RUNLOCK}/libvirt-guests
  - handle /@@{RUN}/libvirt/uml-guest
* 31_aide_laptop-mode-tools:
  - handle lock files
  - handle state-brightness-command and nolm-mountopts state file
* 31_aide_munin,31_aide_munin-nodes:
  - /var/www/munin has been moved to /var/cache/munin/www
* 70_aide_run:
  - handle /@@{RUNLOCK}/.ramfs
* removed optional aide-config-zg2 package
* debian/aide-common.prerm: removed (/usr/doc/ handling is obsolete)
* Migrated to dpkg-source 3.0 (quilt) format:
  - converted dpatch patches to quilt
  - use dh7 syntax
  - use dh-autoreconf
  - removed debian/aide_fixperms (not needed anymore)
  - removed build-dep on dpatch
  - set debian/compat to 7
  - build depend on debhelper >= 7.0.50~ and dh-autoreconf
* debian/patches/07-db_file.c_missing_format_string_fix.patch: new
  - added missing format string in dofprintf calls
* Switched to debhelper 9
  - set debian/compat to 9
  - build depend on debhelper >= 9
* aide.conf.in:
  - added X group and use it instead of 'acl+xattrs+e2fsattrs_SELINUX_'
  - fixed typo in comment
  - removed I from HiSerMemberLog
* Moved aide.conf.in back to aide.conf and adjusted debian/rules
* debian/control:
  - removed build-dep on libgcrypt11-dev (not needed anymore)
  - adjusted URLs of Vcs-* fields
  - removed pointer to configuration from description of binary packages
  - bumped to Standards-Version 3.9.3 (no changes necessary)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
# post-removal script for AIDE
4
 
# A whole lot of this is "borrowed" from tripwire's postinst
5
 
#
6
 
 
7
 
set -e
8
 
 
9
 
if [ -n "$AIDEDEBUG" ]; then
10
 
  echo "now debugging $0 $@"
11
 
  set -x
12
 
fi
13
 
 
14
 
PKGNAME="aide-config-zg2"
15
 
 
16
 
# Make sure we should be running...
17
 
[ "$1" = "purge" ] || exit 0
18
 
 
19
 
CONFDIR="/etc/aide/aide.conf.zg2.d"
20
 
UCF="ucf"
21
 
UCFR="ucfr"
22
 
 
23
 
if command -v ucfq >/dev/null; then
24
 
  for file in $(ucfq --with-colons "$PKGNAME" | cut --delimiter=: --fields=1); do
25
 
    for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
26
 
      rm -f ${file}$ext
27
 
    done
28
 
    rm -f ${file}
29
 
  
30
 
    if command -v $UCF >/dev/null; then
31
 
      $UCF --purge ${file}
32
 
    fi
33
 
    if command -v $UCFR >/dev/null; then
34
 
      $UCFR --purge $PKGNAME ${file}
35
 
    fi
36
 
  done
37
 
fi
38
 
 
39
 
#DEBHELPER#