openbsd-ports/www/sarg/patches/patch-log_c
rpe 07af9fee51 update sarg to 2.3.3
- take maintainership from Douglas Santos <dsantos@hydroxyl.org>
- add ldap flavor for loginname to username translation via ldap

feedback from and ok sthen@
2012-11-21 21:42:07 +00:00

40 lines
1.5 KiB
Plaintext

$OpenBSD: patch-log_c,v 1.4 2012/11/21 21:42:07 rpe Exp $
--- log.c.orig Wed Nov 14 21:03:33 2012
+++ log.c Wed Nov 14 21:06:25 2012
@@ -223,7 +223,7 @@ int main(int argc,char *argv[])
NRedirectorLogs=0;
for (ilf=0 ; ilf<ILF_Last ; ilf++) ilf_count[ilf]=0;
- snprintf(ExcludeCodes,sizeof(ExcludeCodes),"%s/exclude_codes",SYSCONFDIR);
+ snprintf(ExcludeCodes,sizeof(ExcludeCodes),"%s/sarg/exclude_codes",SYSCONFDIR);
strcpy(GraphDaysBytesBarColor,"orange");
strcpy(BgColor,"#ffffff");
strcpy(TxColor,"#000000");
@@ -237,7 +237,7 @@ int main(int argc,char *argv[])
strcpy(LogoTextColor,"#006699");
strcpy(FontSize,"9px");
strcpy(TempDir,"/tmp");
- strcpy(OutputDir,"/var/www/html/squid-reports");
+ strcpy(OutputDir,"/var/www/htdocs/squid-reports");
AnonymousOutputFiles=false;
Ip2Name=false;
strcpy(DateFormat,"u");
@@ -542,7 +542,7 @@ int main(int argc,char *argv[])
if(debug) debuga(_("Init\n"));
- if(ConfigFile[0] == '\0') snprintf(ConfigFile,sizeof(ConfigFile),"%s/sarg.conf",SYSCONFDIR);
+ if(ConfigFile[0] == '\0') snprintf(ConfigFile,sizeof(ConfigFile),"%s/sarg/sarg.conf",SYSCONFDIR);
if(access(ConfigFile, R_OK) != 0) {
debuga(_("Cannot open config file: %s - %s\n"),ConfigFile,strerror(errno));
exit(EXIT_FAILURE);
@@ -585,7 +585,7 @@ int main(int argc,char *argv[])
IndexTree=INDEX_TREE_FILE;
if(NAccessLog == 0) {
- strcpy(AccessLog[0],"/var/log/squid/access.log");
+ strcpy(AccessLog[0],"/var/squid/logs/access.log");
NAccessLog++;
}