]> git.pld-linux.org Git - packages/analog.git/blobdiff - analog-config.patch
- fix file listed twice
[packages/analog.git] / analog-config.patch
index 5a9c7371900a6a460de0c5d0ab3e7590933c7a2f..75319e23e7570a78d4d52c8aebb585858322e2b9 100644 (file)
@@ -1,96 +1,82 @@
-diff -urN analog4.03.orig/analog.cfg analog4.03/analog.cfg
---- analog4.03.orig/analog.cfg Sat Jan 29 17:00:59 2000
-+++ analog4.03/analog.cfg      Fri Feb  4 00:12:37 2000
-@@ -7,7 +7,8 @@
- # There is a much more extensive configuration file in examples/big.cfg
- #
- # If you need a LOGFORMAT command it must go here, above the LOGFILE command.
--# LOGFILE logfile.log
-+LOGFILE /var/log/httpd/access_log
-+LANGUAGE POLISH
- # HOSTNAME "[my organisation]"
- # REQINCLUDE pages
- LINKINCLUDE pages
-diff -urN analog4.03.orig/anlgform.html analog4.03/anlgform.html
---- analog4.03.orig/anlgform.html      Mon Nov  8 20:33:04 1999
-+++ analog4.03/anlgform.html   Fri Feb  4 00:12:38 2000
-@@ -3,8 +3,7 @@
+diff -urN analog-5.22/anlgform.html analog-5.22.new/anlgform.html
+--- analog-5.22/anlgform.html  Wed Mar 20 10:38:41 2002
++++ analog-5.22.new/anlgform.html      Fri Apr  5 12:38:44 2002
+@@ -3,7 +3,7 @@
  </head>
  
  <body>
 -<h1><!-- img src="/images/analogo.gif" alt="" --> Analog form interface</h1>
--
-+<h1><img src="/icons/analogo.gif" alt="Analog" --> Analog form interface</h1>
++<h1><img src="/images/analogo.gif" alt="" --> Analog form interface</h1>
  <!-- Make the edits below. You also need to edit anlgform.pl. -->
  
- <!-- First, uncomment the img tag above, edited if necessary. -->
-@@ -24,10 +23,10 @@
+@@ -15,10 +15,12 @@
  
- <!-- Many systems will want the IMAGEDIR to be different on the form... -->
- <!-- than from the commandline, because it should not be within /cgi-bin/ -->
+ <!-- Many systems will want the IMAGEDIR to be different on the form -->
+ <!-- than from the command line, because it should not be within /cgi-bin/ -->
 -<!-- input type=hidden name="IMAGEDIR" value="/images/" -->
 +<!-- input type=hidden name="IMAGEDIR" value="/icons/" -->
  
- <!-- Some users will want to set their logfile like this -->
--<!-- input type=hidden name="LOGFILE" value="/usr/local/etc/httpd/logs/access_log" -->
+ <!-- Some users will want to set their logfile like this. -->
+ <!-- input type=hidden name="LOGFILE" value="/usr/local/etc/httpd/logs/access_log" -->
 +<!-- input type=hidden name="LOGFILE" value="/usr/var/httpd/log/access_log" -->
++
  
- <hr>
- <h2>1. Report choices</h2>
-diff -urN analog4.03.orig/anlghea2.h analog4.03/anlghea2.h
---- analog4.03.orig/anlghea2.h Sat Jan 29 17:00:59 2000
-+++ analog4.03/anlghea2.h      Fri Feb  4 00:12:38 2000
-@@ -48,16 +48,16 @@
- #endif
+ <!-- After you've made these edits, you can remove the "strong" lines below -->
  
- #ifndef LANGDIR
--#define LANGDIR ANALOGDIR"lang/"
-+#define LANGDIR ANALOGDIR "/usr/share/analog/lang/"
- /* Directory where the language files live. */
+diff -urN analog-5.22/anlgform.pl analog-5.22.new/anlgform.pl
+--- analog-5.22/anlgform.pl    Wed Mar 20 10:38:41 2002
++++ analog-5.22.new/anlgform.pl        Fri Apr  5 12:39:39 2002
+@@ -19,6 +19,7 @@
+ #    of Perl (don't remove the #! though).
+ # 3) You also need to edit anlgform.html if you want to use the form.
+ # 4) Add to the forbidden commands below if you want.
++$analog='/usr/bin/analog'
+ @forbidden = qw(LOGFORMAT APACHELOGFORMAT DEFAULTLOGFORMAT
+               APACHEDEFAULTLOGFORMAT HEADERFILE FOOTERFILE UNCOMPRESS
+Binary files analog-5.22/src/alias.o and analog-5.22.new/src/alias.o differ
+Binary files analog-5.22/src/analog.o and analog-5.22.new/src/analog.o differ
+diff -urN analog-5.22/src/anlghea2.h analog-5.22.new/src/anlghea2.h
+--- analog-5.22/src/anlghea2.h Wed Mar 20 10:38:51 2002
++++ analog-5.22.new/src/anlghea2.h     Fri Apr  5 12:40:33 2002
+@@ -50,11 +50,12 @@
  #endif
  
  #ifndef NODNS
--#define DNSFILE ANALOGDIR"dnscache"
-+#define DNSFILE ANALOGDIR "/var/state/analog/dnscache"
+-#define DNSFILE "dnscache"
++#define DNSFILE "/var/lib/analog/dnscache"
  /* where to store resolved addresses so we don't have to look them up next
     time */
  
--#define DNSLOCKFILE ANALOGDIR"dnslock"
-+#define DNSLOCKFILE ANALOGDIR "/var/lock/dnslock"
+-#define DNSLOCKFILE "dnslock"
++#define DNSLOCKFILE "/var/lock/dnslock"
++
  /* A lock file to stop two processes trying to write the DNSFILE at once */ 
  
  #define DNS (DNS_NONE)
-diff -urN analog4.03.orig/anlghead.h analog4.03/anlghead.h
---- analog4.03.orig/anlghead.h Sat Jan 29 17:01:09 2000
-+++ analog4.03/anlghead.h      Fri Feb  4 00:12:39 2000
-@@ -19,19 +19,19 @@
- #define ANLGHEAD
+diff -urN analog-5.22/src/anlghead.h analog-5.22.new/src/anlghead.h
+--- analog-5.22/src/anlghead.h Wed Mar 20 10:38:52 2002
++++ analog-5.22.new/src/anlghead.h     Fri Apr  5 12:42:55 2002
+@@ -19,30 +19,31 @@
+ #define ANLGHEAD_H
  
  #ifndef HOSTNAME
 -#define HOSTNAME "[my organisation]"
 +#define HOSTNAME "[PLD Linux Server]"
- /* the name of your organisation or WWW host. This is used for printing
-    at the top of the output */
+ /* The name of your organisation or web server. This is used for printing
+    at the top of the output. */
  #endif
  
  #ifndef HOSTURL
 -#define HOSTURL "none"
 +#define HOSTURL "/"
- /* the URL of your host's home page, for linking to at the top of the
+ /* The URL of your host's home page, for linking to at the top of the
     output; use "none" for no linking. */
  #endif
  
- #ifndef ANALOGDIR
--#define ANALOGDIR "/usr/local/analog4.03/"
-+#define ANALOGDIR ""
- #endif
- /* The directory where your analog stuff lives (or will live). You need to
-    get this right otherwise analog won't be able to find any of its auxiliary
-@@ -41,18 +41,18 @@
-    which means the file analog.cfg within the ANALOGDIR. */
  #ifndef LOGFILE
--#define LOGFILE "/usr/local/apache/logs/access_log"
+-#define LOGFILE "logfile.log"
 +#define LOGFILE "/var/log/httpd/access_log"
  /* The name of the default logfile. Can be a list, separated by commas
     (but no spaces), and can include wild cards. */
@@ -98,7 +84,8 @@ diff -urN analog4.03.orig/anlghead.h analog4.03/anlghead.h
  
  #ifndef OUTFILE
 -#define OUTFILE "stdout"
-+#define OUTFILE "/home/httpd/html/usage/analog.html"
++#define OUTFILE "/home/services/httpd/html/usage/analog.html"
++
  /* The default file for output. Use "stdout" for stdout. */
  #endif
  
@@ -108,24 +95,21 @@ diff -urN analog4.03.orig/anlghead.h analog4.03/anlghead.h
  /* URL of the directory where the images for the graphical reports live.
     The URL can be absolute, or relative to the output page: e.g., just the
     empty string "" for the same directory as the output page. */
-@@ -71,7 +71,7 @@
+@@ -61,7 +62,7 @@
  #endif
  
  #ifndef DEFAULTCONFIGFILE
--#define DEFAULTCONFIGFILE ANALOGDIR"analog.cfg"
-+#define DEFAULTCONFIGFILE ANALOGDIR "/etc/analog.cfg"
- /* the name of the default configuration file; see README.html for a
-    description of this file. Use "none" (NOT ANALOGDIR"none"!) for no
-    configuration file. */
---- analog4.03.orig/anlgform.pl Sat Jan 29 17:00:59 2000
-+++ analog4.03/anlgform.pl     Sat Feb  5 02:08:38 2000
-@@ -14,6 +14,7 @@
- # 1) uncomment (remove everything before $analog) and edit one of the next
- # two
- #    lines to give the location (full pathname) of the analog executable.
- #       Unix: $analog = '/usr/local/etc/httpd/analog4.03/analog';
-+$analog = '/usr/bin/analog';
- #       Windows: $analog = 'C:\program files\analog 4.03\analog.exe';
- # 2) If you're on Unix, edit the first line in this file to give the location
- #    of Perl (don't remove the #! though).
-
+-#define DEFAULTCONFIGFILE "analog.cfg"
++#define DEFAULTCONFIGFILE "/etc/analog.cfg"
+ /* The name of the default configuration file. */
+ #endif
+@@ -82,7 +83,7 @@
+    directory. This may or may not work, so it's better to specify a location
+    explicitly here if you know where the files will be kept. */
+ #ifndef LANGDIR
+-#define LANGDIR NULL
++#define LANGDIR "/usr/share/analog/lang/"
+ #endif
+ /* Directory where the language files live. Actually, if this one is defined
+    to be NULL, they will be looked for inside the "lang" subdirectory of the
This page took 0.03689 seconds and 4 git commands to generate.