summaryrefslogtreecommitdiff
path: root/www/wwwcount/patches/patch-aa
blob: b2a2903aa47d745a82bcbe7ae2e7bf6580ac9851 (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.4 2005/10/01 17:25:32 minskim Exp $

--- Count-config.orig	1999-01-03 15:07:58.000000000 -0800
+++ Count-config
@@ -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 @@ fi
 
 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="${VARBASE}/db/wwwcount"
+LogDir="${VARBASE}/log"
+LogFile="wwwcount"
+RgbFile="rgb.txt"
 
 #
 # from php/fis install script
@@ -118,7 +117,7 @@ read answer
 
 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 @@ read answer
 
 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 @@ cat<<EOX>>$ConfigH
 ** 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 "DATA_DIR=\"$DataDir\"" >> $Tmpl
 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
 ##