Package: tripwire Version: 2.4.2.2-2 Tags: patch The tripwire cron.daily configuration contains the "--email-report" option, but this does nothing as no email address is configured by default. The report is therefore emailed as the output from cron.daily, but in addition to any other cron.daily output, thereby cluttering the cron report. It would be better for the output not to be captured by cron.daily but instead emailed separately.
The attached patch sets the default email address to "root" (as it would be anyway when run from cron.daily) and turns off the output from tripwire, which stops the report cluttering up the cron.daily output.
diff -Nru tripwire-2.4.2.2/debian/changelog tripwire-2.4.2.2/debian/changelog --- tripwire-2.4.2.2/debian/changelog 2012-06-05 12:10:58.000000000 +0100 +++ tripwire-2.4.2.2/debian/changelog 2013-06-08 17:24:41.000000000 +0100 @@ -1,3 +1,10 @@ +tripwire (2.4.2.2-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix cron job to email tripwire report separately to cron.daily output + + -- Andrew Beverley <a...@andybev.com> Sat, 08 Jun 2013 17:23:54 +0100 + tripwire (2.4.2.2-2) unstable; urgency=low * Acknowledge Christian's NMU. Thank you! diff -Nru tripwire-2.4.2.2/debian/cron.daily tripwire-2.4.2.2/debian/cron.daily --- tripwire-2.4.2.2/debian/cron.daily 2010-06-24 16:58:40.000000000 +0100 +++ tripwire-2.4.2.2/debian/cron.daily 2013-06-08 17:25:10.000000000 +0100 @@ -6,4 +6,4 @@ umask 027 -$tripwire --check --quiet --email-report +$tripwire --check --quiet --email-report --no-tty-output diff -Nru tripwire-2.4.2.2/debian/twcfg.txt tripwire-2.4.2.2/debian/twcfg.txt --- tripwire-2.4.2.2/debian/twcfg.txt 2011-12-30 16:11:42.000000000 +0000 +++ tripwire-2.4.2.2/debian/twcfg.txt 2013-06-08 17:25:21.000000000 +0100 @@ -15,3 +15,4 @@ SMTPHOST =localhost SMTPPORT =25 TEMPDIRECTORY =/tmp +GLOBALEMAIL =root