--- src/logtail2.orig 2010-01-18 17:24:26.000000000 -0500 +++ src/logtail2 2010-01-18 17:24:40.000000000 -0500 @@ -108,7 +108,7 @@ # function with dateext magic added. #print "determine_rotated_logfile $filename $inode\n"; - for my $codefile (glob("/usr/share/logtail/detectrotate/*.dtr")) { + for my $codefile (glob("%%DATADIR%%/detectrotate/*.dtr")) { my $func = do $codefile; if (!$func) { print STDERR "cannot compile $codefile: $!";