Date: Sun, 6 Jul 1997 19:35:36 +0200 (MET DST) From: dirk@activ-consult.de (Dirk Froemberg) To: FreeBSD-gnats-submit@FreeBSD.ORG, jfitz@FreeBSD.ORG Subject: ports/4041: port swatch: wrong pathes to executables Message-ID: <199707061735.TAA20937@lion.activ-consult.de> Resent-Message-ID: <199707061740.KAA29525@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4041 >Category: ports >Synopsis: port swatch: wrong pathes to executables >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 6 10:40:01 PDT 1997 >Last-Modified: >Originator: Dirk Froemberg >Organization: ACTIV-CONSULT >Release: FreeBSD 2.2-STABLE i386 >Environment: does not matter >Description: The path to write and sendmail in security/swatch-port are wrong. /var/log/syslog does not exists on FreeBSD. >How-To-Repeat: Use swatch-action mail or write. >Fix: Replace ports/security/swatch/patches/patches/patch-ab with the appended one. And create patch-ac (see below). ports/security/swatch/patches/patches/patch-ab.new: --- swatch.pl.orig Thu Dec 14 21:01:08 1995 +++ swatch.pl Sun Jul 6 19:22:13 1997 @@ -29,7 +29,7 @@ eval 'PERL_BIN_DIR/perl -S $0 ${1+"$@"}' if 0; # -$ENV{'PATH'} = '/usr/ucb:/usr/bin:/bin:PERL_BIN_DIR'; +$ENV{'PATH'} = '/usr/bin:/bin:PERL_BIN_DIR'; $ENV{'IFS'} = '' if $ENV{'IFS'} ne ''; $0 = rindex($0, "/") > -1 ? substr($0, rindex($0, "/")+1) : $0; @@ -44,8 +44,8 @@ # Some defaults $PERL = 'PERL_BIN_DIR/perl'; -$TAIL = '/usr/ucb/tail -f'; -$DEF_INPUT = "$TAIL /var/log/syslog"; +$TAIL = '/usr/bin/tail -f'; +$DEF_INPUT = "$TAIL /var/log/messages"; $Pipe = 1; $ConfigFile = "$ENV{'HOME'}/.swatchrc"; $PatternSeparator = ','; ports/security/swatch/patches/patches/patch-ab.new: --- sw_actions.pl.orig Thu Dec 14 04:32:19 1995 +++ sw_actions.pl Sun Jul 6 19:23:20 1997 @@ -22,8 +22,8 @@ # $BELL = "\007"; -$MAILER = "/usr/lib/sendmail"; -$WRITE = "/bin/write"; +$MAILER = "/usr/sbin/sendmail"; +$WRITE = "/usr/bin/write"; # # do_bell -- send BELL(s) to the output. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707061735.TAA20937>