home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume36 / slurp / part02 / conf.h next >
Encoding:
C/C++ Source or Header  |  1993-03-12  |  5.2 KB  |  174 lines

  1. /*
  2.  * conf.h - compilation options for slurp
  3.  *
  4.  * Copyright (C) 1992/93 Stephen Hebditch. All rights reserved.
  5.  * TQM Communications, BCM Box 225, London, WC1N 3XX.
  6.  * steveh@orbital.demon.co.uk  +44 836 825962
  7.  *
  8.  * See README for more information and disclaimers
  9.  *
  10.  * $Id: conf.h,v 1.5 1993/03/01 17:41:09 root Exp $
  11.  *
  12.  * $Log: conf.h,v $
  13.  * Revision 1.5  1993/03/01  17:41:09  root
  14.  * Changed USG definition to SYSV, now used solely in slurp.h.
  15.  * Added explanation of defines for space.c.
  16.  *
  17.  * Revision 1.4  1993/02/14  14:36:16  root
  18.  * Removed BATCHARTSMAX, MSGIDMAX.
  19.  * Added INDIR, BATCHNAME.
  20.  * Modified TIMFILE, RNEWS.
  21.  *
  22.  * Revision 1.0  1992/10/29
  23.  * Initial coding.
  24.  *
  25.  */
  26.  
  27.  
  28. /* SLURP CONFIGURATION
  29.    =================== */
  30.  
  31. /* Set these to the location of the slurp configuration files - NEWSLIB is
  32.    usually a good place for them. The hostname will be added to the end of
  33.    TIMFILE. */
  34.  
  35. #define SYSFILE            "/usr/lib/news/slurp.sys"
  36. #define TIMFILE            "/usr/lib/news/slurp."
  37.  
  38.  
  39. /* If SPEEDUP is defined then there will always be one ARTICLE request
  40.    stacked up at the NNTP server before the current article has finished
  41.    being received. Although not strictly conforming to the standard this
  42.    allows a much greater article throughput. */
  43.  
  44. #define SPEEDUP
  45.  
  46.  
  47. /* If defined then the number of characters per second transferred during
  48.    the article request phase will be logged. */
  49.  
  50. #define SPEEDSTATS
  51.  
  52.  
  53. /* MAXCACHE sets the maximum number of articles that may be requested in
  54.    any one session. If this is exceeded then this is noted to the log and
  55.    the new time for the next NEWNEWS will not be written. */
  56.  
  57. #define MAXCACHE        4096
  58.  
  59.  
  60. /* NEWS CONFIGURATION
  61.    ================== */
  62.  
  63. /* The location of the news history file. */
  64.  
  65. #define HISTORY_FILE    "/usr/lib/news/history"
  66.  
  67.  
  68. /* The database format used by the news history file. For modern C News
  69.    and INN this will almost certainly be DBZ. */
  70.  
  71. #define DBZ
  72. #undef    DBM
  73. #undef    NDBM
  74.  
  75.  
  76. /* The location of the rnews program. If defined, slurp will pipe batches
  77.    of articles to rnews rather than creating batch files in INDIR */
  78.  
  79. /* #define RNEWS           "/usr/bin/rnews" /* */
  80.  
  81.  
  82. /* The place where incoming batches will be placed if RNEWS is not
  83.    defined. This is usually /usr/spool/news/in.coming for C News and
  84.    /var/spool/rnews for INN. */
  85.  
  86. #define INDIR            "/var/spool/news/in.coming"
  87.  
  88.  
  89. /* The optimum size of a news batch. Normally this can be left at 300000L.
  90.    If you are using INN and have RNEWS defined, then set this to 0 so the
  91.    pipe to rnews (and the socket to innd) is kept open throughout the
  92.    session. */
  93.  
  94. #define BATCHSIZEMAX    300000L
  95.  
  96.  
  97. /* The location of the spool directory holding news articles. This is
  98.    needed so we can check if there is enough space before starting to
  99.    build up another batch of articles. */
  100.  
  101. #define SPOOLDIR        "/var/spool/news"
  102.  
  103.  
  104. /* If less then MINFREE blocks are available on the disk containing SPOOLDIR
  105.    or less than MINFILES inodes are available then slurp will be aborted. If
  106.    MINFREE is not defined then a space check is not carried out. */
  107.  
  108. #define MINFREE 4000
  109. /* #define MINFILES 1000 /* */
  110.                         
  111.  
  112. /* UNIX VERSION CONFIGURATION
  113.    ========================== */
  114.  
  115. /* Define SYSV if you are running a System V derivative and need
  116.    <string.h>, <time.h> & <fcntl.h> and don't have bcopy() and bzero(). 
  117.    If it is undefined, then you're BSDish and need <strings.h> &
  118.    <sys/time.h> and have bcopy() and bzero(). */
  119.  
  120. #define SYSV
  121.  
  122.  
  123. /* You may need additional defines to use the correct method of
  124.    determining how much disk space there is on the file system
  125.    containing your news spool. space.c understands defines for SVR4,
  126.    SVR3, sun, hpux, pyr, hp300, NeXT, linux, apollo, ultrix, __bsdi__
  127.    and CMU_MACH. For other systems you may need to amend space.c. */
  128.  
  129. #define SVR4
  130.  
  131.  
  132. /* Change to int if your signal() is old and returns int instead of void */
  133.  
  134. #define SIGRET            void
  135.  
  136.  
  137. /* Define if your system has extern char sys_errlist[], but no strerror() */
  138.  
  139. #undef SYS_ERRLIST
  140.  
  141.  
  142. /* The facility name which syslog reports errors and stats under. If you
  143.    don't want to use syslog for reporting then undefine and the information
  144.    will be written to stderr instead. */
  145.  
  146. #define SYSLOG            LOG_NEWS
  147.  
  148.  
  149. /* If you don't have syslog then you can use the supplied fakesyslog
  150.    instead. Define FAKESYSLOG to be the name of the file to contain the
  151.    log. If your host supports the BSD fdopen() function and the O_APPEND
  152.    flag to open(), you should define FAKEAPPEND with FAKESYSLOG so that
  153.    multiple copies of nntpd don't trash the log with buffered fprintfs. */
  154.    
  155. /* #define FAKESYSLOG      "/usr/lib/news/nntplog" /* */
  156. /* #define FAKEAPPEND /* */
  157.  
  158.  
  159. /* STUFF BELOW PROBABLY DOESN'T NEED ALTERING
  160.    ========================================== */
  161.  
  162. #define COPYSIZE        16384    /* Articles bigger than this size will
  163.                                    be written to a temporary file while
  164.                                    they are being retrieved, rather than
  165.                                    stored in memory */
  166.  
  167. #define TIMEOUT            60 * 10    /* Max time to wait for a line from the
  168.                                    server. */
  169.  
  170. #define BATCHNAME        "nntp.XXXXXX"    /* Temporary filename for NNTP
  171.                                            batch */
  172.  
  173. /* END-OF-FILE */
  174.