####################################################
#
# system parameter definition file
#
####################################################

# system path ###################################################

$FTPLOCATEHTMLDIR="/ftplocate";	# html path in url
$FTPLOCATECGIDIR="/cgi-bin/ftplocate";	# cgi path in url
$FTPLOCATEDIR="/usr/local/www/cgi-bin/ftplocate";		# path in disk

# data path  ####################################################

# Note: $CACHEDIR $USERLOG and $TMPDIR must be writable by the 
#       effective user of the httpd process

$FILELISTDIR="$FTPLOCATEDIR/filelist";
$DESCDIR="$FTPLOCATEDIR/desc";
$CACHEDIR="$FTPLOCATEDIR/cache";

$SITECFG="$FTPLOCATEDIR/config.site";
$MAPLOG="$FTPLOCATEDIR/log.map";
$SYSTEMLOG="$FTPLOCATEDIR/log.system";
$USERLOG="$FTPLOCATEDIR/log.user";

$TMPDIR="/tmp";

$LANG="english";			# zhtw is for traditional chinese
				# english for english

# external program location #####################################

$CMD_CP="/bin/cp";
$CMD_SORT="/usr/bin/sort";
$CMD_UNIQ="/usr/bin/uniq";
$CMD_GZIP="/usr/bin/gzip";
$CMD_UNZIP="/usr/local/bin/unzip";
$CMD_BZIP2="/usr/local/bin/bzip2";
$CMD_AGREP="/usr/local/bin/agrep";
$CMD_GLIMPSEINDEX="/usr/local/bin/glimpseindex";
$CMD_GLIMPSE="/usr/local/bin/glimpse";

# icon, background and url ######################################

$HOSTICON="/icons/comp.gray.gif";
$DIRICON="/icons/dir.gif";
$FILEICON="/icons/f.gif";
$BACKGROUND="/bk_dslab.gif";
$URL_help="$FTPLOCATEHTMLDIR/help.$LANG.html";
$URL_ftplocate="http://turtle.ee.ncku.edu.tw/ftplocate/readme.$LANG.html";

# no modification needed from here ##############################

# Note:
#
# 1. A directory may have no more than 32767 entries (direcories or files)
# 2. The performance will degrade if more than 80% entries in a directory 
#    are used
# 3. So if you are indexing very large ftp site, you may choose to 
#    increase the $SETSIZE to a larger number, thus there won't be so many 
#    index set files in the $FILELISTDIR/sitename/

$SETFPATTERN="%04d";	# set file name is default to a 4 digit number 
                        # (printf format)

$SETSIZE=256;		# lines in per index set
$MAXSET=100;		# max num of index sets to be searched
$MAXREC=2000;		# max records to be returned

$MAXTOP=50;		# count for toplist

$DNSTIMEOUT=5;		# timeout for dns query
$FTPTIMEOUT=120;	# timeout for ftp server
