ports/140981: [PATCH] security/logcheck - use correct .conf file location in message
Dan Langille
dan at langille.org
Sat Nov 28 22:10:01 UTC 2009
>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 at 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:
More information about the freebsd-ports-bugs
mailing list