summaryrefslogtreecommitdiff
path: root/www/wwwcount/patches/patch-aa
blob: 01077bca453e13d1080bacfff446ab826d3351d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
$NetBSD: patch-aa,v 1.3 1999/05/14 23:23:58 tron Exp $

--- Count-config.orig	Mon Jan  4 00:07:56 1999
+++ Count-config	Sat May 15 01:12:06 1999
@@ -20,7 +20,7 @@
 trap 'echo '';echo "Interrupt detected..exiting";rm -f "./Config.tmpl" 2>/dev/null;rm -f "./.alfcf" ;rm -f "./strict" 2>/dev/null;echo '';exit 1' 1 2 3 15
 
 Tmpl="./Config.tmpl"
-CgiBinDir="/usr/local/etc/httpd/cgi-bin"
+CgiBinDir="${PREFIX}/libexec/cgi-bin"
 
 if [ ! -f "./VERSION" ] 
 then
@@ -35,17 +35,16 @@
 
 AUTHOR="ma_muquit@fccc.edu"
 Version=`cat ./VERSION`
-Basedir="wwwcount$Version"
 ConfigH="src/config.h"
-BaseDir="/usr/local/etc/Counter"
-ConfigDir="$BaseDir/conf"
-ConfFile="count.cfg"
-DigitDir="$BaseDir/digits"
-DataDir="$BaseDir/data"
-LogDir="$BaseDir/logs"
-ext=`echo $Version | sed 's/\./_/g'`
-LogFile="Count$ext.log"
-RgbFile="./data/rgb.txt"
+BaseDir="${PREFIX}/etc"
+LibDir="${PREFIX}/libdata/wwwcount"
+ConfigDir="${PREFIX}/etc"
+ConfFile="wwwcount.conf"
+DigitDir="$LibDir/digits"
+DataDir="/var/db/wwwcount"
+LogDir="/var/log"
+LogFile="wwwcount"
+RgbFile="rgb.txt"
 
 #
 # from php/fis install script
@@ -118,7 +117,7 @@
 
 if [ .$answer = . ]
 then
-    answer=x
+    answer=y
 fi
     until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
     do
@@ -377,7 +376,7 @@
 
 if [ .$answer = . ]
 then
-    answer=x
+    answer=y
 fi
     until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
     do
@@ -519,7 +518,7 @@
 ** so RGB names can be looked up, but yet not allow users to make constant
 ** use of this very ineffiecient lookup.
 */
-#define RGB_MAPPING_DICT            "$BaseDir/rgb.txt"
+#define RGB_MAPPING_DICT            "$LibDir/rgb.txt"
 EOX
 
 cat<<EOXXX>>$ConfigH
@@ -547,7 +546,7 @@
 echo "LOG_DIR=\"$LogDir\"" >> $Tmpl
 echo "LOG_FILE=\"$LogFile\"" >> $Tmpl
 echo "RGB_FILE=\"$RgbFile\"" >> $Tmpl
-echo "RGB_DIR=\"$BaseDir\"" >> $Tmpl
+echo "RGB_DIR=\"$LibDir\"" >> $Tmpl
 ##
 # create template for install program --ends
 ##