debian/0000755000000000000000000000000012217560711007170 5ustar debian/diffmon.postrm0000644000000000000000000000050012217555713012061 0ustar #!/bin/sh set -e #DEBHELPER# case "$1" in purge) echo -n "Removing diffmon cache... " echo -n "/var/cache/diffmon" rm -rf /var/cache/diffmon echo -n ", config file directory" rmdir --ignore-fail-on-non-empty /etc/diffmon echo ". Done." esac debian/control0000644000000000000000000000140412217557224010577 0ustar Source: diffmon Section: admin Priority: optional Maintainer: Jeff Bailey Standards-Version: 3.9.4 Build-Depends: debhelper (>> 9) Package: diffmon Architecture: all Depends: sendmail | mail-transport-agent, bash (>= 2.0), ${misc:Depends} Description: Tool for reporting changes in system configuration This tool is run by a nightly cron job, and takes a `diff' of specified system configuration files and emails them to a specified email address. Options to diff can be specified. This is useful in friendly environments where there are multiple sysadmins working on configuration files/setups and everyone's changes are reported. CVS is a better answer, but most of us don't want to have the hassle of putting system files in a repository. debian/compat0000644000000000000000000000000212217556545010400 0ustar 9 debian/rules0000755000000000000000000000004112217557624010254 0ustar #! /usr/bin/make -f %: dh "$@" debian/changelog0000644000000000000000000000466412217560605011056 0ustar diffmon (20020222-2.6) unstable; urgency=low * Non-maintainer upload fo remove build-dependency on dbs (closes: #576037); upload this NMU to DELAYED/10 queue. * Switch to non-native tarball and the '3.0 (quilt)' source format. * Use debhelper v9 and its tiny rules format. * Bump Standards-Version to 3.9.4. * Remove duplicated `Section' line from debian/control (lintian). * Modify 04-manpage to fix typos in man page (closes: #246466). -- Robert Luberda Sun, 22 Sep 2013 14:24:14 +0200 diffmon (20020222-2.5) unstable; urgency=low * Non-maintainer upload. * Use >= in build-depends instead of the deprecated > * Adjust debian/patches to not write to build-tree/diffmon-20020222.new but build-tree/diffmon-20020222 (Closes: #560563) -- Filippo Giunchedi Fri, 15 Jan 2010 16:10:14 +0100 diffmon (20020222-2.4) unstable; urgency=low * Non-maintainer upload. * Include check for diffmon's executability in cron.daily (Closes: #435987) -- Filippo Giunchedi Thu, 01 May 2008 16:30:21 +0200 diffmon (20020222-2.3) unstable; urgency=low * Non-maintainer upload. * Remove the abusive debconf note as proposed by the maintainer back in 2002. Closes: #137637 * Remove the full stop at the end of the package description in the control file -- Christian Perrier Fri, 2 Feb 2007 05:51:43 +0100 diffmon (20020222-2.2) unstable; urgency=medium * Non-maintainer upload. * Fix a security hole with bad umask (Closes: #382132) * Bump standards version * Change Build-Depends-Indep to Build-Depends -- Julien Danjou Wed, 25 Oct 2006 11:15:18 +0200 diffmon (20020222-2.1) unstable; urgency=low * Non-maintainer upload. * Rebuild should take care of the dependency on cdebconf (Closes: #331803). * Get rid of the /usr/doc link (Closes: #359380). -- Amaya Rodrigo Sastre Wed, 12 Jul 2006 22:50:45 +0200 diffmon (20020222-2) unstable; urgency=low * Update debconf text. (Closes: #135400, #135401) Thanks to Lazarus Long for help with these. * Create files in the debconf cache with permissions 600. Thanks to Reid Sutherland for the patch. (Closes: #135699) -- Jeff Bailey Tue, 26 Feb 2002 08:53:52 -0500 diffmon (20020222-1) unstable; urgency=low * Initial Release (Closes: #133101). -- Jeff Bailey Fri, 22 Feb 2002 13:01:31 -0500 debian/patches/0000755000000000000000000000000012217560061010615 5ustar debian/patches/05-permissions0000644000000000000000000000100312217555713013337 0ustar diff -urN diffmon-20020222/diffmon diffmon-20020222/diffmon --- diffmon-20020222/diffmon Tue Feb 26 09:03:15 2002 +++ diffmon-20020222/diffmon Tue Feb 26 09:01:11 2002 @@ -496,7 +496,7 @@ cp "${file}" "${tmpfile}" \ && ${compress_program} "${tmpfile}" \ && mv "${tmpfile}${compressed_file_suffix}" "${ofile}${compressed_file_suffix}" \ - && chmod 666 "${ofile}${compressed_file_suffix}" + && chmod 660 "${ofile}${compressed_file_suffix}" rm -f "${tmpfile}" done } debian/patches/01-README0000644000000000000000000000500512217555713011723 0ustar diff -urN diffmon-20020222/README diffmon-20020222/README --- diffmon-20020222/README Thu Jan 31 19:08:31 2002 +++ diffmon-20020222/README Fri Feb 22 09:50:00 2002 @@ -1,20 +1,22 @@ -This README describes a set of diffmon releated files I collected for Jeff -Bailey who is packaging it (for Debian?) and releasing it. +This README describes a set of diffmon releated files I collected for +Jeff Bailey who is packaging it (for Debian?) and +releasing it. Why diffmon is useful ********************* -diffmon is a program that looks at system configuration files and reports the -differences between the saved version and the current version via e-mail. -diff-options and who gets the e-mail can be specified for each file. - -The saved version can also be used to restore a file accidently or maliciously -deleted. Without going to the backup medium. And the diffmon saved version -is often more current then one on backup. - -And it's useful for any file - particularly those shared by a group/community -of people. It lets them track changes made to a shared resource. Proofread -the changes and fix any errors quickly. +diffmon is a program that looks at system configuration files and +reports the differences between the saved version and the current +version via e-mail. diff-options and who gets the e-mail can be +specified for each file. + +The saved version can also be used to restore a file accidently or +maliciously deleted. Without going to the backup medium. And the +diffmon saved version is often more current then one on backup. + +And it's useful for any file - particularly those shared by a +group/community of people. It lets them track changes made to a +shared resource. Proofread the changes and fix any errors quickly. Files in this shar distribution ******************************* @@ -44,9 +46,9 @@ Known Difficulties ****************** -diffmon doesn't deal with file names that contain colons ":". There is a -workaround for this in file "nightly-diffmon". +diffmon doesn't deal with file names that contain colons ":". There +is a workaround for this in file "nightly-diffmon". -It might also be nice, if the time to run the diffmon on the file was in the -configuration - right now, you need a config file for each set of times that -is ran from cron at that set of time. +It might also be nice, if the time to run the diffmon on the file was +in the configuration - right now, you need a config file for each set +of times that is ran from cron at that set of time. debian/patches/series0000644000000000000000000000010312217557111012026 0ustar 01-README 02-Makefile 03-fsstnd 04-manpage 05-permissions 06-umask debian/patches/06-umask0000644000000000000000000000064212217555713012115 0ustar --- diffmon-20020222/diffmon 2002-02-26 15:06:49.000000000 +0100 +++ diffmon-20020222/diffmon 2006-08-09 08:59:21.389223825 +0200 @@ -170,7 +170,7 @@ # Make sure PATH includes location of sendmail and gzip. PATH="/usr/local/gnubin:/usr/local/bin:${PATH}:/usr/lib:/usr/sbin" - umask 000 + umask 077 TRAP_SIGNALS="EXIT SIGHUP SIGINT SIGQUIT SIGTERM" trap 'cleanup_and_exit' ${TRAP_SIGNALS} debian/patches/02-Makefile0000644000000000000000000000072112217555713012504 0ustar diff -urN diffmon-20020222/Makefile diffmon-20020222/Makefile --- diffmon-20020222/Makefile Wed Dec 31 19:00:00 1969 +++ diffmon-20020222/Makefile Fri Feb 22 11:34:51 2002 @@ -0,0 +1,12 @@ +prefix = /usr +bindir = ${prefix}/bin +sysconfdir = /etc/diffmon + +all: + +install: + -mkdir -p $(DESTDIR)$(bindir) + cp diffmon $(DESTDIR)$(bindir)/ + -mkdir -p $(DESTDIR)$(sysconfdir) + cp *.cf $(DESTDIR)$(sysconfdir) + -mkdir -p $(DESTDIR)/var/cache/diffmon/old_file_dir debian/patches/03-fsstnd0000644000000000000000000000140312217555713012267 0ustar --- diffmon-20020222/diffmon Sun Jan 27 01:48:52 2002 +++ diffmon-20020222/diffmon Fri Feb 22 11:33:37 2002 @@ -183,7 +183,7 @@ # Default location of configuration files is same place as location of # script. - default_cf_path="${0%/*}" + default_cf_path="/etc/diffmon" cf_path="${DIFFMONPATH:-${default_cf_path}}" # Assumes cf file is in same directory as this script, and is named the @@ -192,7 +192,7 @@ cf_file="${default_cf_file}" # Assumes old file dir is in same subdirectory with this script. - default_old_file_dir="${0%/*}/old_file_dir" + default_old_file_dir="/var/cache/diffmon/old_file_dir" old_file_dir="${default_old_file_dir}" # Gzip has better compression ratios than `compress' and is free of debian/patches/04-manpage0000644000000000000000000000460212217560061012373 0ustar diff -urN diffmon-20020222/diffmon.1 diffmon-20020222/diffmon.1 --- diffmon-20020222/diffmon.1 Wed Dec 31 19:00:00 1969 +++ diffmon-20020222/diffmon.1 Fri Feb 22 12:06:34 2002 @@ -0,0 +1,75 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH DIFFMON 1 "February 22nd, 2002" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +diffmon \- Monitor files on your system. +.SH SYNOPSIS +.B diffmon +.RI [ options ] +.SH DESCRIPTION +This manual page documents briefly the +.B diffmon +command. +.SH OPTIONS +This program follows the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-D, \-\-debug +Turn on shell debugging ("set \-x"). +.TP +.B \-C, \-\-compress-program CPROG +Use CPROG to compress saved file images. +.TP +.B \-c, \-\-config-file FILE +Use FILE as the config file instead of the +default, searching DIFFMONPATH if FILE not +absolute pathname. +.TP +.B \-e, \-\-errors-to MAINTAINER +Stderr is reported to maintainer via email. +If MAINTAINER is set to "maintainer", the +default maintainer is assumed (see above). +.TP +.B \-h, \-\-help +You're looking at it. +.TP +.B \-o, \-\-old DIR +Old reference files are kept and looked for in +DIR instead of the default. +.TP +.B \-p, \-\-config-path CPATH +Use CPATH to search for configuration files +instead of default path. Overrides value of +DIFFMONPATH environment variable. +.TP +.B \-S, \-\-suffix SUFFIX +Compressed file suffix. +.TP +.B \-Z, \-\-zcat-program ZPROG +Use ZPROG to read compressed file and output +uncompressed version (should not uncompress +file itself). +.TP +.B \-n, \-\-no-update +Don't update the saved file images. + +.br +.SH AUTHOR +This manual page was written by Jeff Bailey . +Copyright (C) 2002 Jeff Bailey. This document is +in the PUBLIC DOMAIN. debian/diffmon.docs0000644000000000000000000000000712217557617011474 0ustar README debian/source/0000755000000000000000000000000012217547250010473 5ustar debian/source/format0000644000000000000000000000001412217547250011701 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000002712217547250012110 0ustar diff-ignore tar-ignore debian/diffmon.cron.daily0000644000000000000000000000015312217555713012603 0ustar #!/bin/sh if [ -r /etc/diffmon/diffmon.cf ] && [ -x /usr/bin/diffmon ] ; then diffmon -c diffmon.cf fi debian/copyright0000644000000000000000000000064312217555713011134 0ustar This is the Debian prepackaged version of the GNU Mail utilities. This package was put together by Jeff Bailey , from sources obtained directly from the author, Noah Friedman . There is no upstream repository. Copyright: # diffmon --- mail interested users about changes to arbitrary files # Author: Noah Friedman # Created: 1992-10-21 # Public domain debian/diffmon.postinst0000644000000000000000000000031212217555713012421 0ustar #!/bin/sh set -e if [ "$1" = "configure" ]; then if [ -d /usr/doc -a -h /usr/doc/diffmon -a -d /usr/share/doc/diffmon ]; then rm -f /usr/doc/diffmon fi fi #DEBHELPER# debian/diffmon.manpages0000644000000000000000000000001212217557606012331 0ustar diffmon.1