--- sarg-1.4.1/log.c 2003-04-25 19:20:55.000000000 +0200 +++ mysarg/log.c 2004-02-28 18:17:50.000000000 +0100 @@ -133,7 +133,7 @@ ReportType[0]='\0'; UserTabFile[0]='\0'; - strcpy(AccessLog,"/usr/local/squid/var/logs/access.log"); + strcpy(AccessLog,"/var/log/squid/access.log"); sprintf(ExcludeCodes,"%s/exclude_codes",SYSCONFDIR); strcpy(BgColor,"white"); strcpy(TxColor,"black"); @@ -146,7 +146,7 @@ strcpy(HeaderBgColor,"blanchedalmond"); strcpy(FontSize,"-1"); strcpy(TempDir,"/tmp"); - strcpy(OutputDir,"/usr/local/etc/httpd/htdocs/squid-reports"); + strcpy(OutputDir,"/var/www/localhost/htdocs/squid-reports"); strcpy(Ip2Name,"no"); strcpy(DateFormat,"u"); strcpy(OverwriteReport,"no"); Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: with this you don't have to use sarg with the -l and the -o flags
a better way would be to sed /usr/local/squid/var/logs to /var/log/squid, and so on.
Created attachment 61399 [details, diff] patch for sarg-1.4.1-r2.ebuild. This is patch for a current sarg ebuild that fixes the issue with the use of sed.
fixed in 2.0.8