freebsd-ports/www/wwwcount/files/patch-aa
1997-11-29 16:10:50 +00:00

140 lines
3.4 KiB
Plaintext

*** Count-config.orig Mon Nov 24 04:49:51 1997
--- Count-config Sat Nov 29 18:50:53 1997
***************
*** 20,26 ****
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"
if [ ! -f "./VERSION" ]
then
--- 20,26 ----
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="${PREFIX}/www/cgi-bin"
if [ ! -f "./VERSION" ]
then
***************
*** 37,49 ****
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"
! LogFile="Count$Version.log"
RgbFile="./wcount/rgb.txt"
#
--- 37,50 ----
Version=`cat ./VERSION`
Basedir="wwwcount$Version"
ConfigH="src/config.h"
! BaseDir="${PREFIX}/etc/Counter"
! LibDir="${PREFIX}/lib/Counter"
ConfigDir="$BaseDir/conf"
ConfFile="count.cfg"
! DigitDir="$LibDir/digits"
DataDir="$BaseDir/data"
! LogDir="/var/log"
! LogFile="Counter.log"
RgbFile="./wcount/rgb.txt"
#
***************
*** 117,123 ****
if [ .$answer = . ]
then
! answer=x
fi
until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
do
--- 118,124 ----
if [ .$answer = . ]
then
! answer=y
fi
until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
do
***************
*** 183,191 ****
then
BaseDir=$newpath
ConfigDir=$BaseDir/conf
- DigitDir=$BaseDir/digits
DataDir=$BaseDir/data
- LogDir=$BaseDir/logs
fi
#
--- 184,190 ----
***************
*** 374,380 ****
if [ .$answer = . ]
then
! answer=x
fi
until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
do
--- 373,379 ----
if [ .$answer = . ]
then
! answer=y
fi
until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
do
***************
*** 517,523 ****
** 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"
EOX
cat<<EOXXX>>$ConfigH
--- 516,522 ----
** 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 "$LibDir/rgb.txt"
EOX
cat<<EOXXX>>$ConfigH
***************
*** 535,540 ****
--- 534,540 ----
##
echo "creating variables template file $Tmpl for the install program.."
echo "BASE_DIR=\"$BaseDir\"" > $Tmpl
+ echo "LIB_DIR=\"$LibDir\"" >> $Tmpl
echo "CGIBIN_DIR=\"$CgiBinDir\"" >> $Tmpl
echo "CONFIG_FILE=\"$ConfFile\"" >> $Tmpl
echo "CONFIG_DIR=\"$ConfigDir\"" >> $Tmpl
***************
*** 543,549 ****
echo "LOG_DIR=\"$LogDir\"" >> $Tmpl
echo "LOG_FILE=\"$LogFile\"" >> $Tmpl
echo "RGB_FILE=\"$RgbFile\"" >> $Tmpl
! echo "RGB_DIR=\"$BaseDir\"" >> $Tmpl
##
# create template for install program --ends
##
--- 543,549 ----
echo "LOG_DIR=\"$LogDir\"" >> $Tmpl
echo "LOG_FILE=\"$LogFile\"" >> $Tmpl
echo "RGB_FILE=\"$RgbFile\"" >> $Tmpl
! echo "RGB_DIR=\"$LibDir\"" >> $Tmpl
##
# create template for install program --ends
##