1 diff -urN analog-5.0.org/analog.cfg analog-5.0/analog.cfg
2 --- analog-5.0.org/analog.cfg Tue May 1 12:38:24 2001
3 +++ analog-5.0/analog.cfg Mon May 14 00:56:08 2001
5 # There is a much more extensive configuration file in examples/big.cfg
7 # If you need a LOGFORMAT command it must go here, above the LOGFILE commands.
9 +LOGFILE /var/log/httpd/access_log
11 # LOGFILE /old/logs/access_log.*
13 -# HOSTNAME "[my organisation]"
14 +HOSTNAME "[PLD Linux Server]"
18 diff -urN analog-5.0.org/anlgform.html analog-5.0/anlgform.html
19 --- analog-5.0.org/anlgform.html Tue May 1 12:38:24 2001
20 +++ analog-5.0/anlgform.html Mon May 14 00:57:26 2001
25 -<h1><!-- img src="/images/analogo.gif" alt="" --> Analog form interface</h1>
26 +<h1><img src="/icons/analogo.gif" alt="Analog" --> Analog form interface</h1>
28 <!-- Make the edits below. You also need to edit anlgform.pl. -->
32 <!-- Many systems will want the IMAGEDIR to be different on the form -->
33 <!-- than from the command line, because it should not be within /cgi-bin/ -->
34 -<!-- input type=hidden name="IMAGEDIR" value="/images/" -->
35 +<!-- input type=hidden name="IMAGEDIR" value="/icons/" -->
37 <!-- Some users will want to set their logfile like this. -->
38 -<!-- input type=hidden name="LOGFILE" value="/usr/local/etc/httpd/logs/access_log" -->
39 +<!-- input type=hidden name="LOGFILE" value="/usr/var/httpd/log/access_log" -->
41 <!-- After you've made these edits, you can remove the "strong" lines below -->
43 diff -urN analog-5.0.org/anlgform.pl analog-5.0/anlgform.pl
44 --- analog-5.0.org/anlgform.pl Tue May 1 12:38:24 2001
45 +++ analog-5.0/anlgform.pl Mon May 14 00:58:03 2001
47 # of Perl (don't remove the #! though).
48 # 3) You also need to edit anlgform.html if you want to use the form.
49 # 4) Add to the forbidden commands below if you want.
50 +$analog = '/usr/bin/analog';
52 @forbidden = qw(LOGFORMAT APACHELOGFORMAT DEFAULTLOGFORMAT
53 APACHEDEFAULTLOGFORMAT HEADERFILE FOOTERFILE UNCOMPRESS
54 diff -urN analog-5.0.org/src/anlghea2.h analog-5.0/src/anlghea2.h
55 --- analog-5.0.org/src/anlghea2.h Tue May 1 12:38:33 2001
56 +++ analog-5.0/src/anlghea2.h Mon May 14 01:05:03 2001
61 -#define DNSFILE "dnscache"
62 +#define DNSFILE "/var/lib/analog/dnscache"
63 /* where to store resolved addresses so we don't have to look them up next
66 -#define DNSLOCKFILE "dnslock"
67 +#define DNSLOCKFILE "/var/lock/dnslock"
68 /* A lock file to stop two processes trying to write the DNSFILE at once */
70 #define DNS (DNS_NONE)
71 diff -urN analog-5.0.org/src/anlghead.h analog-5.0/src/anlghead.h
72 --- analog-5.0.org/src/anlghead.h Tue May 1 12:38:33 2001
73 +++ analog-5.0/src/anlghead.h Mon May 14 01:06:40 2001
78 -#define HOSTNAME "[my organisation]"
79 +#define HOSTNAME "[PLD Linux Server]"
80 /* The name of your organisation or web server. This is used for printing
81 at the top of the output. */
85 -#define HOSTURL "none"
87 /* The URL of your host's home page, for linking to at the top of the
88 output; use "none" for no linking. */
92 -#define LOGFILE "logfile.log"
93 +#define LOGFILE "/var/log/httpd/access_log"
94 /* The name of the default logfile. Can be a list, separated by commas
95 (but no spaces), and can include wild cards. */
99 -#define OUTFILE "stdout"
100 +#define OUTFILE "/home/httpd/html/usage/analog.html"
101 /* The default file for output. Use "stdout" for stdout. */
105 -#define IMAGEDIR "images/"
106 +#define IMAGEDIR "/icons/"
107 /* URL of the directory where the images for the graphical reports live.
108 The URL can be absolute, or relative to the output page: e.g., just the
109 empty string "" for the same directory as the output page. */
113 #ifndef DEFAULTCONFIGFILE
114 -#define DEFAULTCONFIGFILE "analog.cfg"
115 +#define DEFAULTCONFIGFILE "/etc/analog.cfg"
116 /* The name of the default configuration file. */
120 directory. This may or may not work, so it's better to specify a location
121 explicitly here if you know where the files will be kept. */
123 -#define LANGDIR NULL
124 +#define LANGDIR "/usr/share/analog/lang/"
126 /* Directory where the language files live. Actually, if this one is defined
127 to be NULL, they will be looked for inside the "lang" subdirectory of the