]> git.pld-linux.org Git - packages/squidview.git/blob - squidview-pld.patch
554cdc5e25dff40a75dc9bcf186626a867134133
[packages/squidview.git] / squidview-pld.patch
1 diff -Nur old/squidview.cpp new/squidview.cpp
2 --- old/squidview.cpp   2003-11-21 03:25:58.000000000 +0000
3 +++ new/squidview.cpp   2003-11-28 20:58:27.000000000 +0000
4 @@ -41,7 +41,7 @@
5  #ifdef HAVE_CONFIG_H
6  #include <config.h>
7  #else
8 -#  define SHAREDIR "/usr/local/share/squidview"
9 +#  define SHAREDIR "/usr/share/doc/squidview-0.60/"
10  #  define PACKAGE "squidview"
11  #  define VERSION "0.6"
12  #endif
13 @@ -3910,6 +3910,7 @@
14    IOstring ("sRepFocus", sRepFocus);
15    IOstring ("sRepBDTuser", sRepBDTuser);
16    IOstring ("sViewer", sViewer);
17 +  IOstring ("sZipViewer", sZipViewer);
18    IOstring ("sCurrentReport", sCurrentReport);
19    IOstring ("sCurrentEmail", sCurrentEmail);
20    IOint ("iSizeHitGrade", iSizeHitGrade);
21 @@ -3950,7 +3951,7 @@
22      }
23    }
24    else
25 -    RunProgram (sViewer + " " + sHowToLink, 1);
26 +    RunProgram (sZipViewer + " " + sHowToLink, 1);
27  }
28  
29  
30 diff -Nur old/squidview.h new/squidview.h
31 --- old/squidview.h     2003-11-21 03:25:58.000000000 +0000
32 +++ new/squidview.h     2003-11-28 20:55:09.000000000 +0000
33 @@ -63,7 +63,7 @@
34  string sHomeDir;
35  const char szSquidHome[] = ".squidview";
36  string sPathToFiles;
37 -const char szMainLog[] = "/usr/local/squid/var/logs/access.log";
38 +const char szMainLog[] = "/var/log/squid/access.log";
39  
40  const char szLog1[] = "log1";
41  const char szLog2[] = "log2";
42 @@ -76,12 +76,13 @@
43  const char szWordFile[] = "words";         // search words 
44  const char szUsersFile[] = "users";        // list of real names 
45  const char szAliasesFile[] = "aliases";    // map IPs to user names
46 -const char szHowToFile[] = "HOWTO";      // link name 
47 +const char szHowToFile[] = "HOWTO.gz";      // link name 
48  
49  string sLogFile1, sLogFile2, sLogFile3;
50  string sWordFile, sUsersFile, sAliasesFile, sSetFileName, sHowToLink;
51  
52  string sViewer = "less";
53 +string sZipViewer = "zless";
54  string sCurrentReport = "";
55  string sCurrentEmail = "";
56  const string sReportExt = ".txt";
This page took 0.055214 seconds and 2 git commands to generate.