From dirk@lion.activ-consult.de  Sun Jul  6 10:35:40 1997
Received: from lion.activ-consult.de (lion.activ-consult.de [194.221.76.66])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA29415;
          Sun, 6 Jul 1997 10:35:38 -0700 (PDT)
Received: (from dirk@localhost)
	by lion.activ-consult.de (8.8.6/8.8.5) id TAA20937;
	Sun, 6 Jul 1997 19:35:36 +0200 (MET DST)
Message-Id: <199707061735.TAA20937@lion.activ-consult.de>
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: port swatch: wrong pathes to executables
X-Send-Pr-Version: 3.2

>Number:         4041
>Category:       ports
>Synopsis:       port swatch: wrong pathes to executables
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jfitz
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul  6 10:40:01 PDT 1997
>Closed-Date:    Sun Jul 6 11:28:39 PDT 1997
>Last-Modified:  Sun Jul  6 11:29:14 PDT 1997
>Originator:     Dirk Froemberg
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
ACTIV-CONSULT
>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.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jfitz 
State-Changed-When: Sun Jul 6 11:28:39 PDT 1997 
State-Changed-Why:  
Suggested fix committed. 


Responsible-Changed-From-To: freebsd-ports->jfitz 
Responsible-Changed-By: jfitz 
Responsible-Changed-When: Sun Jul 6 11:28:39 PDT 1997 
Responsible-Changed-Why:  
Port maintainer. 
>Unformatted:
