Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Nov 2009 22:02:38 +0000 (GMT)
From:      Dan Langille <dan@langille.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Dan Langille <dan@langille.org>
Subject:   ports/140981: [PATCH] security/logcheck - use correct .conf file location in message
Message-ID:  <20091128220238.F338CB88F@bast.unixathome.org>
Resent-Message-ID: <200911282210.nASMA0Wh042877@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         140981
>Category:       ports
>Synopsis:       [PATCH] security/logcheck - use correct .conf file location in message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 28 22:10:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dan Langille
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
The FreeBSD Diary
>Environment:
System: FreeBSD bast.example.org 6.2-STABLE FreeBSD 6.2-STABLE #3: Wed Feb 28 22:21:12 EST 2007     dan@bast.example.org:/usr/obj/usr/src/sys/BAST  i386


	
>Description:
	
The installed logcheck script contains a hardcoded reference to the 
.conf file.  This patch fixes that to use the variable.

Umm, after creating this patch, I noticed that /etc/logcheck/footer.txt
and /etc/logcheck/header.txt should also be variables and patched
to /usr/local/etc/logcheck/ but I no longer have time.

FYI, this patch has not been tested, but I can do that later this week 
if this doesn't move forward.  Same with the above recommendation.

>How-To-Repeat:
	
>Fix:

	



begin 644 logcheck.diff
diff -ruN /usr/ports/security/logcheck/files/patch-src__logcheck logcheck/files/patch-src__logcheck
--- /usr/ports/security/logcheck/files/patch-src__logcheck	2008-09-11 00:30:09.000000000 +0000
+++ logcheck/files/patch-src__logcheck	2009-11-28 21:55:32.000000000 +0000
@@ -95,6 +95,15 @@
         fi
  	
      fi
+@@ -168,7 +168,7 @@
+ ${TMPDIR:+Check temporary directory: $TMPDIR
+ }
+ Also verify that the logcheck user can read all files referenced in
+-/etc/logcheck/logcheck.logfiles!
++${LOGFILES_LIST}!
+ 
+ $(export)
+ EOF
 @@ -212,8 +195,7 @@
  	    mkdir $cleaned \
  	        || error "Could not make dir $cleaned for cleaned rulefiles."
end

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091128220238.F338CB88F>