Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43132 - a patch for sarg to use gentoo's dirs
Summary: a patch for sarg to use gentoo's dirs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Jonathan Smith (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-27 14:32 UTC by Disaster
Modified: 2005-06-22 07:41 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for sarg-1.4.1-r2.ebuild. (sarg.ebuild.patch,534 bytes, patch)
2005-06-17 09:04 UTC, Peter Volkov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Disaster 2004-02-27 14:32:19 UTC
--- 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
Comment 1 Eldad Zack (RETIRED) gentoo-dev 2005-05-02 04:43:47 UTC
a better way would be to sed /usr/local/squid/var/logs to /var/log/squid, and so on.
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2005-06-17 09:04:02 UTC
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.
Comment 3 Jonathan Smith (RETIRED) gentoo-dev 2005-06-22 07:41:15 UTC
fixed in 2.0.8