Package: integrit
Version: 4.0-1
Severity: wishlist
Tags: patch

I collect and read integrit reports from several dozen machines every
morning.  It would be helpful if the cronjob sent reports with affected
files listed in alphabetical order.  When the reports are ordered one
can rapidly scan each message (in Mutt, for example) since common
changes (due to a cron-apt update, for example) appear always in the
same relative locations in the reports.

The following "ed" script inserted near the end of
/etc/cron.daily/integrit rewrites "$REPORT" just before it is sent:

LC_COLLATE=c ed -s "$REPORT" 1>/dev/null <<EOF
1
/do update/+1
.,/^integrit:/-1 w ! sort -t: -k2 > "%.changes"
.,/^integrit:/-1 d
-1
. r ! cat "%.changes"
! rm -f "%.changes"
w
/integrit: checking for missing files/+1
.,/^integrit:/-1 w ! sort -t: -k2 > "%.missing"
.,/^integrit:/-1 d
-1
. r ! cat "%.missing"
! rm -f "%.missing"
wq
EOF


-- System Information:
Debian Release: 4.0
  APT prefers oldstable
  APT policy: (991, 'oldstable'), (991, 'stable'), (66, 'oldstable'), (33, 
'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-6-vserver-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

integrit depends on no packages.

Versions of packages integrit recommends:
ii  cron             3.0pl1-100              management of regular background p
ii  mailx            1:8.1.2-0.20050715cvs-1 A simple mail user agent

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to