Update swatch to version 3.0.8
-- From Ferdinand Hoffmann <spNaNT@web.de>, with mods from me. MAINTAINER timeout.
This commit is contained in:
parent
3c0b1df346
commit
ef3e1bed80
@ -1,14 +1,13 @@
|
||||
# $OpenBSD: Makefile,v 1.17 2002/07/10 20:59:27 jsyn Exp $
|
||||
# $OpenBSD: Makefile,v 1.18 2003/12/08 04:05:28 margarida Exp $
|
||||
|
||||
COMMENT= "Simple WATCHdog log filtering program"
|
||||
COMMENT= "simple WATCHdog log filtering program"
|
||||
|
||||
DISTNAME= swatch-3.0.1
|
||||
DISTNAME= swatch-3.0.8
|
||||
CATEGORIES= security sysutils
|
||||
MASTER_SITES= ftp://ftp.cert.dfn.de/pub/tools/audit/swatch/ \
|
||||
ftp://ftp.stanford.edu/general/security-tools/swatch/ \
|
||||
ftp://ftp.cert.dfn.de/pub/tools/audit/swatch/
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=swatch/} \
|
||||
ftp://ftp.cert.dfn.de/pub/tools/audit/swatch/
|
||||
|
||||
HOMEPAGE= http://www.stanford.edu/~atkins/swatch/
|
||||
HOMEPAGE= http://swatch.sourceforge.net/
|
||||
|
||||
MAINTAINER= Jason Peel <jsyn@openbsd.org>
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (swatch-3.0.1.tar.gz) = 7426301fe6fb621dd67481ef3f2abad3
|
||||
RMD160 (swatch-3.0.1.tar.gz) = fbb9a23b639a7697fe65ee2b197314bb1fbc490c
|
||||
SHA1 (swatch-3.0.1.tar.gz) = a9e7fed5168eae997ad732bf7959d50a4ee8bc56
|
||||
MD5 (swatch-3.0.8.tar.gz) = ccf80a0bd3a1f533ecced47a745c2268
|
||||
RMD160 (swatch-3.0.8.tar.gz) = f3aace8b9d3abacd1a8a70794362923d9dada07a
|
||||
SHA1 (swatch-3.0.8.tar.gz) = 07a076d7d9775d43303f818635f20ffbf67a74f3
|
||||
|
@ -1,31 +1,6 @@
|
||||
--- swatch.orig Tue Mar 28 16:37:35 2000
|
||||
+++ swatch Fri Sep 15 00:59:09 2000
|
||||
@@ -1,7 +1,4 @@
|
||||
-# #!/bin/sh -
|
||||
-eval 'exec perl $0 ${1+"$@"}'
|
||||
-if 0;
|
||||
-
|
||||
+#!/usr/bin/perl -w
|
||||
#
|
||||
# swatch: The Simple WATCHdog
|
||||
# Copyright (C) 1993-2000 E. Todd Atkins
|
||||
@@ -316,13 +313,9 @@ my $Me = $0; $Me =~ s%.*/%%; # Str
|
||||
$SIG{'CHLD'} = 'IGNORE';
|
||||
|
||||
my $DEF_CONFIG_FILE = "$ENV{'HOME'}/.swatchrc";
|
||||
-my $PERL = 'perl';
|
||||
-my @uname = split(/\s+/,`/bin/uname -a`);
|
||||
-my $DEF_INPUT = "/var/log/syslog";
|
||||
+my $PERL = '/usr/bin/perl';
|
||||
+my $DEF_INPUT = "/var/log/messages";
|
||||
my $Config_File = '';
|
||||
-if ($uname[0] eq 'Linux') {
|
||||
- $DEF_INPUT = "/var/log/messages";
|
||||
-}
|
||||
my $Now = 0; # The current time in Unix seconds. Gets set when set_restart_time is called
|
||||
|
||||
my $USAGE = qq/
|
||||
@@ -393,7 +386,7 @@ sub parse_command_line {
|
||||
--- swatch.orig 2003-12-08 03:50:55.000000000 +0000
|
||||
+++ swatch 2003-12-08 03:57:52.000000000 +0000
|
||||
@@ -411,7 +411,7 @@ sub parse_command_line {
|
||||
sub dprint {
|
||||
my $msg_lev = shift;
|
||||
my $msg = shift;
|
||||
@ -33,8 +8,8 @@
|
||||
+ print STDERR "DEBUG($msg_lev): $msg\n" if ($msg_lev && $opt_debug_level);
|
||||
}
|
||||
|
||||
#
|
||||
@@ -718,14 +711,11 @@ sub ring_bell {
|
||||
####### dprint end #######
|
||||
@@ -804,14 +804,11 @@ sub ring_bell {
|
||||
'RINGS' => 1,
|
||||
@_
|
||||
);
|
||||
@ -49,12 +24,3 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1047,7 +1037,7 @@ LOOP: while (<SW_PIPE>) {
|
||||
$code = qq[
|
||||
use File::Tail;
|
||||
my \$Filename = '$filename';
|
||||
-my \$File = File::Tail->new(name=>\$Filename);
|
||||
+my \$File = File::Tail->new(name=>\$Filename,interval=>1,maxinterval=>5,adjustafter=>20);
|
||||
if (not defined \$File) {
|
||||
die "$0: cannot read input \\"\$Filename\\": \$!\\n";
|
||||
}
|
||||
|
@ -4,5 +4,3 @@ demonstration type "swatch --examine=FILENAME" with FILENAME
|
||||
being the file that you would like to see the contents of. All
|
||||
this example will do is demonstrate the different text modes that
|
||||
are available with to the echo action.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
||||
|
Loading…
Reference in New Issue
Block a user