freebsd-ports/www/awstats/files/patch-tools-awstats_buildstaticpages.pl
Marcus Alves Grando 0c26165008 Respect PREFIX
PR:		86481
Submitted by:	Naram Qashat <cyberbotx@cyberbotx.com>
Approved by:	webmaster@lightningfire.net (maintainer timeout, 32 days)
2005-10-26 00:30:46 +00:00

13 lines
529 B
Perl

--- tools/awstats_buildstaticpages.pl.orig Sun Feb 20 11:11:06 2005
+++ tools/awstats_buildstaticpages.pl Thu Sep 22 20:33:32 2005
@@ -293,8 +293,8 @@
# Check if AWSTATS prog is found
my $AwstatsFound=0;
if (-s "$Awstats") { $AwstatsFound=1; }
-elsif (-s "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl") {
- $Awstats="/usr/local/awstats/wwwroot/cgi-bin/awstats.pl";
+elsif (-s "%%PREFIX%%/www/awstats/cgi-bin/awstats.pl") {
+ $Awstats="%%PREFIX%%/www/awstats/cgi-bin/awstats.pl";
$AwstatsFound=1;
}
if (! $AwstatsFound) {