LOCALBASE->TRUEPREFIX, pointed out by aja@

This commit is contained in:
sthen 2012-05-08 19:05:06 +00:00
parent 9e066f8bd8
commit f4acc97ae6
2 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/05/08 02:54:10 william Exp $
# $OpenBSD: Makefile,v 1.2 2012/05/08 19:05:06 sthen Exp $
COMMENT= mail anomalies in the system logfiles to the administrator
V= 1.3.14
DISTNAME= logcheck_${V}
REVISION= 0
PKGNAME= logtail-${V}
CATEGORIES= sysutils

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-src_logtail2,v 1.1.1.1 2012/05/08 02:54:10 william Exp $
$OpenBSD: patch-src_logtail2,v 1.2 2012/05/08 19:05:06 sthen Exp $
--- src/logtail2.orig Sat Mar 3 23:02:29 2012
+++ src/logtail2 Sat Mar 3 23:02:10 2012
@@ -109,7 +109,7 @@ sub determine_rotated_logfile {
@ -6,7 +6,7 @@ $OpenBSD: patch-src_logtail2,v 1.1.1.1 2012/05/08 02:54:10 william Exp $
#print "determine_rotated_logfile $filename $inode\n";
- for my $codefile (glob("/usr/share/logtail/detectrotate/*.dtr")) {
+ for my $codefile (glob("${LOCALBASE}/share/logtail/detectrotate/*.dtr")) {
+ for my $codefile (glob("${TRUEPREFIX}/share/logtail/detectrotate/*.dtr")) {
my $func = do $codefile;
if (!$func) {
print STDERR "cannot compile $codefile: $!";