home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / misc / test / 15021 < prev    next >
Encoding:
Text File  |  1993-01-09  |  11.2 KB  |  379 lines

  1. Newsgroups: misc.test
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!asuvax!ennews!mrg1!mrw
  3. From: mrw@mrg1 (Matthew Whitehead)
  4. Subject: test 2
  5. Message-ID: <1993Jan10.022423.25483@ennews.eas.asu.edu>
  6. Sender: news@ennews.eas.asu.edu (USENET News System)
  7. Organization: Arizona State University
  8. Date: Sun, 10 Jan 1993 02:24:23 GMT
  9. Lines: 368
  10.  
  11. /* $Header: conf.h.dist,v 1.9 91/02/08 18:31:01 sob Exp $
  12.  * Configuration information for use by NNTP server and support
  13.  * programs.  Change these as appropriate for your system.
  14.  */
  15.  
  16. /*
  17.  * Compile time options.
  18.  */
  19.   
  20.  
  21. #undef    ALONE        /* True if we're running without inetd */
  22.  
  23. #ifdef ALONE
  24. #undef    FASTFORK        /* True if we don't want to read active file on start*/
  25. #endif
  26.  
  27. #define LOAD 5            /* Loadav above which server refuses connections */
  28. /*
  29.  * If you want to experiment with the dynamic allocation of the article
  30.  * array, define DYNAMIC_ART_ARRAY.
  31.  * This code came to beta too late for through testing, but it is a problem
  32.  * at some sites, so it is an option. Please report problems to "nntp@tmc.edu"
  33.  */
  34. #undef DYNAMIC_ART_ARRAY
  35.  
  36. #undef    BSD_42        /* 4.2 compatability code -- if this is defined, */
  37.             /* DBM probably wants to be defined as well. */
  38.  
  39. #define BSD_43        /* Define if you are running on BSD 4.3 */
  40.  
  41. #undef CMU_MACH        /* Use CMU's MACH ioctl(FIOCFSPARAM) for dfree(). */
  42.  
  43. #define    USG        /* System V support */
  44.  
  45. #undef TLI        /* Define this if you want to use TLI instead of */
  46.             /* sockets */
  47.  
  48. #define NDBM        /* Use new-style (4.3) ndbm(3x) libraries */
  49.  
  50. #undef    DBM        /* True if we want to use the old dbm(3x) libraries */
  51.             /* IF YOU DEFINE THIS, change CFLAGS in makefile to */
  52.             /* be -ldbm */
  53.  
  54. #undef    DBZ        /* True if we want to use dbz libraries */
  55.             /* IF YOU DEFINE THIS, change CFLAGS in makefile to */
  56.             /* be /usr/lib/dbz.o and install dbz.h */
  57.  
  58. #undef    USGHIST        /* Use USG style history file (no DBM) */
  59.             /* IF YOU DO NOT DEFINE NDBM or DBM, this is DEFAULT!*/
  60.  
  61. #undef CNEWS        /* define this if you are running C-NEWS */
  62. #undef BATCHED_INPUT    /* define if you want to support C-NEWS style 
  63.                 batched input (not supported by B-NEWS,yet)  */
  64.  
  65. /* Vendor specific implementations */
  66. #undef LAI_TCP        /* Lachman Streams TCP/IP support (Xenix) */
  67. #undef EXCELAN        /* Excelan EXOS 205 support */
  68. #undef WIN_TCP        /* WIN/TCP support [does not work yet] */
  69.  
  70. /* Things that vary in Unix variations */
  71. #undef U_LONG        /* Define this if your <sys/types.h> is missing */
  72.             /* typedefs for u_long */
  73. #define SIGRET void    /* Newfangled signal() returns void, old returns int */
  74.  
  75. #define    GHNAME        /* Define if you have gethostname() */
  76. #undef    UUNAME        /* Define to use /etc/uucpname */
  77.             /* If neither of these are defined, */
  78.             /* inews will use the contents of */
  79.             /* /usr/include/whoami.h */
  80.  
  81. #undef MMAP        /* if your OS supports mmap() */
  82.  
  83. /*
  84.  * If you DON'T have vfork, make this "#define vfork fork"
  85.  * vfork will speed up article transfer nntpds by about 2.5 times.
  86.  */
  87.  
  88. #define    vfork fork
  89.  
  90. /* Controlling disk and inode consumption */
  91. #define MINFREE 4000    /* NNTP will not allow an XFER if there is less */
  92.             /* than this much diskspace (in blocks or kbytes) */
  93. #define POSTBUFFER 1000 /* NNTP will allow local posting until */
  94.             /* MINFREE-POSTBUFFER blocks or kbytes are left */
  95. #undef MINFILES  MINFREE/4
  96.             /* NNTP will not allow an XFER if there is less */
  97.             /* than this many inodes on the SPOOLDIR filesystem */
  98. #undef SETPROCTITLE    /* if you want status visable via ps */
  99.  
  100. #define    IHAVE_DEBUG    /* Copious debugging output from ihave */
  101.  
  102. #define    XHDR        /* Optional XHDR command.  Defining this will */
  103.             /* speed up '=' command in rn, but will load */
  104.             /* the server more.  If your server is heavily */
  105.             /* loaded already, defining this may be a bad idea */
  106.  
  107. /* Things that vary in network implementations */
  108. #define    SUBNET        /* If you have 4.3 subnetting */
  109. #define    DAMAGED_NETMASK    /* If your subnet mask is not a multiple of */
  110.             /* four bits (e.g., UCSD) */
  111.  
  112. #undef    NETMASK        /* If you don't have subnet ioctls, define */
  113.             /* this to be a hex constant of your subnet */
  114.             /* mask, e.g., #define NETMASK 0xffffff00 */
  115.             /* Of course, you must define SUBNET above, too. */
  116. #undef    DECNET        /* If you want decnet support */
  117.  
  118. /*
  119.  * If you want CNEWS batch files created that are not world writable,
  120.  * remove the comments from the UMASK line below. This does not apply
  121.  * if you are running BNEWS. At least, not yet. :-)
  122.  */
  123.  
  124. /* #define UMASK 022 */
  125.  
  126. /*
  127.  * If you have the syslog library routine, define SYSLOG to
  128.  * be the syslog facility name under which stats should be
  129.  * logged.  Newer 4.3 systems might choose LOG_NEWS;
  130.  * LOG_LOCAL7 is an acceptable substitute.
  131.  *
  132.  * If you don't have support for syslog, but want a facsimile,
  133.  * define FAKESYSLOG to be the name of a file to which to log stuff,
  134.  * then define SYSLOG and LOG, too.  e.g.,
  135.  *
  136.  *    #define    FAKESYSLOG    "/usr/lib/news/nntplog"
  137.  *
  138.  * If your host supports the BSD fdopen() function and the O_APPEND flag
  139.  * to open(), you should define FAKEAPPEND with FAKESYSLOG so that
  140.  * multiple copies of nntpd don't trash the log with buffered fprintf's.
  141.  *
  142.  * If you don't want any syslog-type activity, #undef SYSLOG.
  143.  * Obviously, this means that you can't define LOG, either.
  144.  */
  145.  
  146. #undef    FAKESYSLOG    "/usr/lib/news/nntplog"
  147. #undef    FAKEAPPEND
  148.  
  149. #define    SYSLOG    LOG_NEWS
  150.  
  151. #ifdef SYSLOG        /* Define LOG if you want copious logging info */
  152. #undef     LOG        /* undef it if you don't */
  153. #endif            /* but you can only have LOG if you have SYSLOG */
  154.  
  155. /*
  156.  * How long you want nntp servers to hang out without receiving
  157.  * commands before they close the connection with an error message.
  158.  *
  159.  * If you don't want any timeout, #undef it, i.e.,
  160.  *
  161.  *    #undef    TIMEOUT
  162.  *
  163.  * TIMEOUT should be at least two hours, which allows users some time
  164.  * away from their terminal (e.g., at lunch) while reading news.
  165.  */
  166.  
  167. #define    TIMEOUT    (2 * 3600)
  168.  
  169.  
  170. /*
  171.  * How long you want nntp servers to wait without receiving data
  172.  * during article transfers.  You CANNOT have XFER_TIMEOUT while
  173.  * running in standalone (ALONE) mode.
  174.  *
  175.  * If you don't want any transfer timeouts, #undef it, as above.
  176.  */
  177.  
  178. #ifndef ALONE
  179. #   define    XFER_TIMEOUT    (30 * 60)
  180. #endif ALONE
  181.  
  182. /*
  183.  * Your domain.  This is for the inews generated From: line,
  184.  * assuming that it doesn't find one in the article's head.
  185.  * Suggestions are .UUCP if you don't belong to the Internet.
  186.  * If your hostname returns the fully-qualified domain name
  187.  * as some 4.3 BSD systems do, simply undefine DOMAIN.
  188.  * If you want your network to appear to be one host, define
  189.  * HIDDENNET.
  190.  *
  191.  * e.g.  #define    DOMAIN        "berkeley.edu"
  192.  */
  193.  
  194. #undef    DOMAIN
  195. #undef HIDDENNET
  196.  
  197. /*
  198.  * Means do a gethostbyname() to get the canonical host name. 
  199.  * Define this and HIDDENNET will have no effect.
  200.  */
  201.  
  202. #define REALDOMAIN
  203.  
  204. /*
  205.  * Define DO_DOTDIR if you want the mini-inews to look for 
  206.  * this directory if defined in the environment.  This is like rn.
  207.  * Undefine it and it will only look in the user's home directory. 
  208.  */
  209. #define DO_DOTDIR
  210.  
  211. /* Things that relate to authentication and access */
  212. /* Define AUTH to use the proposed NNTP Version 2 authentication protocol. */
  213. #define    AUTH    
  214. /*
  215.  * A file containing the name of the host which is running
  216.  * the news server.  This will have to match what rrn thinks,
  217.  * too.
  218.  */
  219.  
  220. #define    SERVER_FILE    "/usr/lib/news/server"
  221.  
  222. /*
  223.  * Person (user name) to post news as.
  224.  */
  225.  
  226. #define    POSTER        "usenet"
  227.  
  228. /*
  229.  * Define DOMAINMATCH if you want to use domain specifications in the 
  230.  * access list instead of just hostnames. See README for more information 
  231.  */
  232. #define DOMAINMATCH
  233.  
  234. #ifdef AUTH
  235. /* 
  236.  * the file where the nntpxmit site/userid/passwords are kept
  237.  * think (and PROTECT!) this file like L.sys, i.e., mode 600
  238.  */
  239. # define    PASSFILE    "/etc/nntp.sys"
  240. #endif
  241. /*
  242.  * This file is where access information is stored
  243.  */
  244. #define ACCESS_FILE    "/usr/lib/news/nntp_access"
  245. /*
  246.  * These files are generated by the support programs, and are needed
  247.  * by the NNTP server.  Make sure that whatever directory you
  248.  * decide these files should go is writable by whatever uid you
  249.  * have the sypport programs run under.
  250.  */
  251. # define STAT_FILE    "/usr/lib/news/mgdstats"
  252. # define NGDATE_FILE    "/usr/lib/news/groupdates"
  253. /*
  254.  * But if you have C News, you can define ACTIVE_TIMES_FILE instead of
  255.  * STAT_FILE and NGDATE_FILE, and you won't have to run "mkgrdates".
  256.  */
  257.  
  258. # define ACTIVE_TIMES_FILE    "/usr/lib/news/active.times"
  259.  
  260. /*
  261.  * Some commonly used programs and files.
  262.  */
  263.  
  264. #define    ACTIVE_FILE    "/usr/lib/news/active"
  265. #define DISTRIBUTIONS_FILE    "/usr/lib/news/distributions"
  266. #define NEWSGROUPS_FILE    "/usr/lib/news/newsgroups"
  267. #define HISTORY_FILE    "/usr/lib/news/history"
  268. #define    SPOOLDIR    "/usr/spool/news"
  269. #define INEWS        "/usr/lib/news/inews"
  270. #define RNEWS        "/usr/bin/rnews"        /* Link to inews? */
  271.  
  272. /*
  273.  * Support for C-News style batching 
  274.  */
  275. #undef  NONEWSRUN        /* define this if you are using the daemon */
  276.                 /* version of relaynews */
  277. #ifdef NONEWSRUN
  278. #define TOOBIG 1L        
  279. #define TOOMANY 1
  280. #else
  281. #define TOOBIG 300000L        /* batch > TOOBIG bytes, kick rnews */
  282. #define TOOMANY 1024        /* batch > TOOMANY articles, kick rnews */
  283. #define NEWSRUN            "/usr/lib/newsbin/input/newsrun"
  284. #endif
  285. #define TOOOLD (5*60)        /* batch > TOOOLD seconds old, kick rnews */
  286. #define COPYSIZE 8192        /* bytes to copy at one time */
  287. #define MAXDIGITS 25        /* lg(maxlongint) + epsilon */
  288. #define MAXSTR 1024
  289. #define INDIR            "/usr/spool/news/in.coming"
  290. /* You may wish to delete the pathname from the front of BATCH_FILE */
  291. #define BATCH_FILE        "/usr/spool/news/in.coming/nntp.XXXXXX"
  292.  
  293. /************************************************************************/
  294. /* We don't recommend that you make changes in anything after this line */
  295. /************************************************************************/
  296.  
  297. #ifdef DBZ        /* If you use DBZ, then you need DBM as well. */
  298. #ifndef DBM
  299. #define DBM
  300. #endif /* DBM */
  301. #endif /* DBZ */
  302.  
  303. #ifdef BSD_42        /* This is a logical, warranted assumption */
  304. #   ifndef DBM        /* which will probably get me in trouble. */
  305. #    define DBM    /* Kill it if you have 4.2 *and* ndbm.  */
  306. #   endif not DBM
  307. #   ifndef sun        /* not a sun */
  308. #       ifndef ultrix   /* not ultrix */
  309. #           ifndef CMU_MACH /* not CMU's Mach */
  310. #        ifndef NeXT /* not a NeXT */
  311. #                  ifndef READ_SUPER
  312. #                    define READ_SUPER /* read super block for space() */
  313. #            endif
  314. #               endif
  315. #           endif
  316. #       endif
  317. #   endif
  318. #endif BSD_42
  319.  
  320. #ifndef USG
  321. #    ifndef BSD_42
  322. #        ifndef CMU_MACH
  323. #            ifndef BSD_43
  324. #                define BSD_43
  325. #            endif
  326. #        endif
  327. #    endif
  328. #endif
  329.  
  330. #ifdef BSD_43        /* And now more assumptions! */
  331. #   ifndef sun
  332. #    ifndef ultrix    /* Ultrix 4.0 or greater */
  333. #        ifndef READ_SUPER
  334. #            define READ_SUPER
  335. #        endif
  336. #    endif
  337. #   endif
  338. #    ifndef DBZ
  339. #        ifndef DBM
  340. #            ifndef NDBM
  341. #                define NDBM
  342. #            endif
  343. #        endif
  344. #    endif
  345. #endif
  346.  
  347. /*
  348.  * System V compatability
  349.  */
  350.  
  351. #ifdef USG
  352. # define    FCNTL            /* If O_etc is defined in <fcntl.h> */
  353. #ifdef dgux
  354. #define        FTRUNCATE
  355. #else
  356. # define    NDIR            /* If you  need ndir library support */
  357. #ifdef hpux
  358. #define        DIRSIZ_MACRO
  359. #endif
  360. #endif
  361. # define    index    strchr
  362. # define    rindex    strrchr
  363. # ifdef U_LONG
  364.    typedef    unsigned long    u_long;
  365.    typedef    unsigned short    u_short;
  366. # endif U_LONG
  367. # define    IPPORT_NNTP    119
  368. #endif USG
  369.  
  370.  
  371. /*
  372.  * Some miscellaneous stuff you probably don't want to change.
  373.  */
  374.  
  375. #define    MAX_ARTICLES    4096        /* Maximum number of articles/group */
  376. #define READINTVL    60 * 10        /* 10 minutes b/n chking active file */
  377.  
  378.  
  379.