head	1.4;
access;
symbols
	RELEASE_8_3_0:1.4
	RELEASE_9_0_0:1.4
	RELEASE_7_4_0:1.4
	RELEASE_8_2_0:1.4
	RELEASE_6_EOL:1.4
	RELEASE_8_1_0:1.4
	RELEASE_7_3_0:1.4
	RELEASE_8_0_0:1.4
	RELEASE_7_2_0:1.4
	RELEASE_7_1_0:1.4
	RELEASE_6_4_0:1.4
	RELEASE_5_EOL:1.4
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.4
	RELEASE_6_2_0:1.4
	RELEASE_6_1_0:1.4
	RELEASE_5_5_0:1.4
	RELEASE_6_0_0:1.4
	RELEASE_5_4_0:1.4
	RELEASE_4_11_0:1.4
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.4
	RELEASE_5_2_1:1.4
	RELEASE_5_2_0:1.4
	RELEASE_4_9_0:1.4
	RELEASE_5_1_0:1.4
	RELEASE_4_8_0:1.4
	RELEASE_5_0_0:1.4
	RELEASE_4_7_0:1.4
	RELEASE_4_6_2:1.4
	RELEASE_4_6_1:1.4
	RELEASE_4_6_0:1.4
	RELEASE_5_0_DP1:1.4
	RELEASE_4_5_0:1.4
	RELEASE_4_4_0:1.4
	RELEASE_4_3_0:1.4
	RELEASE_4_2_0:1.4
	RELEASE_4_1_1:1.4
	RELEASE_4_1_0:1.4
	RELEASE_3_5_0:1.4
	RELEASE_4_0_0:1.4
	RELEASE_3_4_0:1.4
	RELEASE_3_3_0:1.3
	RELEASE_3_2_0:1.3
	RELEASE_3_1_0:1.3
	RELEASE_2_2_8:1.3
	RELEASE_3_0_0:1.3
	RELEASE_2_2_7:1.3
	RELEASE_2_2_6:1.3
	RELEASE_2_2_5:1.2
	RELEASE_2_2_1:1.2
	RELEASE_2_2_2:1.2
	ache:1.1.1.1;
locks; strict;
comment	@# @;


1.4
date	99.10.05.04.52.22;	author flathill;	state Exp;
branches;
next	1.3;

1.3
date	97.11.29.16.10.46;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	96.09.06.14.18.23;	author ache;	state Exp;
branches;
next	1.1;

1.1
date	96.05.16.20.43.58;	author ache;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.05.16.20.43.58;	author ache;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Update to 2.5
PR: ports/13689
Submitted by: dervish@@ikhala.tcimet.net
@
text
@*** Count-config.orig	Fri Sep 10 13:26:09 1999
--- Count-config	Fri Sep 10 13:40:21 1999
***************
*** 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,50 ****
  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"
  
  #
--- 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="./data/rgb.txt"
  
  #
***************
*** 118,124 ****
  
  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
***************
*** 186,194 ****
  then
      BaseDir=$newpath
      ConfigDir=$BaseDir/conf
-     DigitDir=$BaseDir/digits
      DataDir=$BaseDir/data
-     LogDir=$BaseDir/logs
  fi
  
  #
--- 186,192 ----
***************
*** 377,383 ****
  
  if [ .$answer = . ]
  then
!     answer=x
  fi
      until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
      do
--- 375,381 ----
  
  if [ .$answer = . ]
  then
!     answer=y
  fi
      until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
      do
***************
*** 519,525 ****
  ** 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
--- 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            "$LibDir/rgb.txt"
  EOX
  
  cat<<EOXXX>>$ConfigH
***************
*** 540,545 ****
--- 538,544 ----
  echo "CGIBIN_DIR=\"$CgiBinDir\"" > $Tmpl
  
  echo "BASE_DIR=\"$BaseDir\"" >> $Tmpl
+ echo "LIB_DIR=\"$LibDir\"" >> $Tmpl
  echo "CONFIG_FILE=\"$ConfFile\"" >> $Tmpl
  echo "CONFIG_DIR=\"$ConfigDir\"" >> $Tmpl
  echo "DIGIT_DIR=\"$DigitDir\"" >> $Tmpl
***************
*** 547,553 ****
  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
  ##
--- 546,552 ----
  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
  ##
@


1.3
log
@Distfile changed without version number bumping
@
text
@d1 2
a2 2
*** Count-config.orig	Mon Nov 24 04:49:51 1997
--- Count-config	Sat Nov 29 18:50:53 1997
d5 1
a5 1
  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
d13 1
a13 1
  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
d21 1
a21 1
*** 37,49 ****
d31 3
a33 2
! LogFile="Count$Version.log"
  RgbFile="./wcount/rgb.txt"
d48 1
a48 1
  RgbFile="./wcount/rgb.txt"
d52 1
a52 1
*** 117,123 ****
d69 1
a69 1
*** 183,191 ****
d79 1
a79 1
--- 184,190 ----
d81 1
a81 1
*** 374,380 ****
d89 1
a89 1
--- 373,379 ----
d98 1
a98 1
*** 517,523 ****
d106 1
a106 1
--- 516,522 ----
d115 5
a119 5
*** 535,540 ****
--- 534,540 ----
  ##
  echo "creating variables template file $Tmpl for the install program.."
  echo "BASE_DIR=\"$BaseDir\"" > $Tmpl
a120 1
  echo "CGIBIN_DIR=\"$CgiBinDir\"" >> $Tmpl
d123 1
d125 1
a125 1
*** 543,549 ****
d133 1
a133 1
--- 543,549 ----
@


1.2
log
@Location changed
Better fit to FreeBSD directory structure
NO_PACKAGE removed, hostname is in config files, not compiled in
@
text
@d1 2
a2 2
*** Count-config.orig	Fri May  3 06:20:27 1996
--- Count-config	Fri Sep  6 18:05:28 1996
d21 1
a21 1
*** 36,48 ****
d24 1
a24 1
  ConfigH="config.h"
d26 1
a26 1
  ConfigDir="conf"
d28 3
a30 3
  DigitDir="digits"
  DataDir="data"
! LogDir="Log"
d33 3
a35 3
  #allow_f_cr=0
  #strict_mode=0
--- 36,49 ----
d38 1
a38 1
  ConfigH="config.h"
d41 1
a41 1
  ConfigDir="conf"
d43 2
a44 2
  DigitDir="digits"
  DataDir="data"
d48 2
a49 2
  #allow_f_cr=0
  #strict_mode=0
d51 1
a51 1
*** 114,120 ****
d59 1
a59 1
--- 115,121 ----
d68 8
a75 40
*** 245,251 ****
      You need to enter the directory of the Log file.
  
  EOB
! echo $n "*Log directory [$BaseDir/$LogDir]:$c "
  read newpath
  if [ .$newpath != . ]
  then
--- 246,252 ----
      You need to enter the directory of the Log file.
  
  EOB
! echo $n "*Log directory [$LogDir]:$c "
  read newpath
  if [ .$newpath != . ]
  then
***************
*** 289,299 ****
  echo "++++++++++++++++++++++++++++++"
      echo "CgiBinDir=$CgiBinDir"
      echo "BaseDir= $BaseDir"
!     echo "DigitDir= $BaseDir/$DigitDir"
      echo "ConfDir = $BaseDir/$ConfigDir"
      echo "ConfFile= $ConfFile"
      echo "DataDir= $BaseDir/$DataDir"
!     echo "LogDir= $BaseDir/$LogDir"
      echo "LogFile= $LogFile"
  echo "++++++++++++++++++++++++++++++"
  
--- 290,300 ----
  echo "++++++++++++++++++++++++++++++"
      echo "CgiBinDir=$CgiBinDir"
      echo "BaseDir= $BaseDir"
!     echo "DigitDir= $LibDir/$DigitDir"
      echo "ConfDir = $BaseDir/$ConfigDir"
      echo "ConfFile= $ConfFile"
      echo "DataDir= $BaseDir/$DataDir"
!     echo "LogDir= $LogDir"
      echo "LogFile= $LogFile"
  echo "++++++++++++++++++++++++++++++"
d77 2
d80 1
a80 1
*** 302,308 ****
d88 1
a88 1
--- 303,309 ----
d97 5
a101 24
*** 338,345 ****
  echo "#define ConfigDir \"$BaseDir/$ConfigDir\"" >> $ConfigH
  echo "#define ConfigFile \"$ConfFile\"" >> $ConfigH
  echo "#define DataDir \"$BaseDir/$DataDir\"" >> $ConfigH
! echo "#define DigitDir \"$BaseDir/$DigitDir\"" >> $ConfigH
! echo "#define LogDir \"$BaseDir/$LogDir\"" >> $ConfigH
  echo "#define LogFile \"$LogFile\"" >> $ConfigH
  
  cat<<EOX>>$ConfigH
--- 339,346 ----
  echo "#define ConfigDir \"$BaseDir/$ConfigDir\"" >> $ConfigH
  echo "#define ConfigFile \"$ConfFile\"" >> $ConfigH
  echo "#define DataDir \"$BaseDir/$DataDir\"" >> $ConfigH
! echo "#define DigitDir \"$LibDir/$DigitDir\"" >> $ConfigH
! echo "#define LogDir \"$LogDir\"" >> $ConfigH
  echo "#define LogFile \"$LogFile\"" >> $ConfigH
  
  cat<<EOX>>$ConfigH
***************
*** 381,387 ****
  * so RGB names can be looked up, but yet not allow users to make constant
  * use of this very ineffiecient lookup.
  *****************************************************************************/
! #define RgbMappingDict        "$BaseDir/rgb.txt"
d104 6
a109 6
  #if [ $allow_f_cr -eq 1 ]
--- 382,388 ----
  * so RGB names can be looked up, but yet not allow users to make constant
  * use of this very ineffiecient lookup.
  *****************************************************************************/
! #define RgbMappingDict        "$LibDir/rgb.txt"
d112 1
a112 1
  #if [ $allow_f_cr -eq 1 ]
d114 2
a115 1
*** 413,427 ****
d119 1
d122 4
a125 4
  echo "CONFIG_DIR=\"$BaseDir/$ConfigDir\"" >> $Tmpl
! echo "DIGIT_DIR=\"$BaseDir/$DigitDir\"" >> $Tmpl
  echo "DATA_DIR=\"$BaseDir/$DataDir\"" >> $Tmpl
! echo "LOG_DIR=\"$BaseDir/$LogDir\"" >> $Tmpl
d132 2
a133 11
--- 414,429 ----
  ##
  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=\"$BaseDir/$ConfigDir\"" >> $Tmpl
! echo "DIGIT_DIR=\"$LibDir/$DigitDir\"" >> $Tmpl
  echo "DATA_DIR=\"$BaseDir/$DataDir\"" >> $Tmpl
! echo "LOG_DIR=\"$LogDir\"" >> $Tmpl
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
--- Count-config	Thu May 16 22:18:17 1996
d21 1
a21 1
*** 36,42 ****
d29 7
a35 1
--- 36,42 ----
d40 1
d44 6
d59 1
a59 1
--- 114,120 ----
d68 42
d118 1
a118 1
--- 302,308 ----
d126 70
@


1.1.1.1
log
@Most sophisticated Access Counter I found
@
text
@@
