home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / nn.tar / nn-6.5.1 / inews / conf.h < prev    next >
C/C++ Source or Header  |  1995-04-29  |  3KB  |  122 lines

  1. /*
  2.  * Configuration file for nn version of nntp inews.  Written by
  3.  * Steve Simmons (scs@lokkur.dexter.mi.us), Dec 19, 1989.  Placed
  4.  * in the public domain by the author.  This file rationalizes
  5.  * the stock NNTP release of inews with the definitions for NN.
  6.  * The rationalization was done as of NN version 6.3.10 and NNTP
  7.  * version 1.5.7.
  8.  *
  9.  * You must edit this file to reflect your local configuration
  10.  * and environment.
  11.  *
  12.  * Follow the instructions given in the comments.  See the file
  13.  * README for more comments.
  14.  *
  15.  * $RCSfile: conf.h,v $    $Revision: 1.1 $
  16.  *
  17.  * $Author: news $    $Date: 89/12/20 17:43:03 $
  18.  *
  19.  * $State: Exp $    $Locker:  $
  20.  *
  21.  * $Log:    conf.h,v $
  22.  * Revision 1.1  89/12/20  17:43:03  news
  23.  * Initial revision
  24.  *
  25.  * May 1st, 1990, Kim Storm
  26.  * Modifications to get hostname for free (see README.NN)
  27.  */
  28.  
  29. #ifndef    NNINEWSCONF_H
  30. #define    NNINEWSCONF_H
  31.  
  32. #include    "config.h"
  33.  
  34. #ifndef NNTP
  35. /* WHY DO YOU WANT TO MAKE MINI-INEWS WHEN YOU DONT USE NNTP */
  36. #endif
  37.  
  38. /*
  39.  *  Define your local domain name.  You *must* define something, either
  40.  *  here, in config.h, or elsewhere according to your local standards.
  41.  *  See comment below on HIDDENNET.
  42.  *
  43.  *  You are not strictly *required* to have a domain name; nonetheless
  44.  *  it's a good idea.  If you are on the Internet or otherwise have a
  45.  *  valid domain name, use it (except see HIDDENNET below).  If you're
  46.  *  a uucp-only site, use ".uucp" for now and go get a real name.
  47.  *
  48.  *  Note that if you imbed your domain name in the hostname and you don't
  49.  *  use HIDDENNET, you may get a period on the end of your fully qualified
  50.  *  domian name (FQDN) in postings.  In that case, use HIDDENNET and
  51.  *  define DOMAIN to be your FQDN.
  52.  */
  53.  
  54. /* #define    DOMAIN    "frobozz.com.bogus" */
  55.  
  56. /*
  57.  *  If you define this, the hostname will not appear in the posting
  58.  *  data except on the path.  Items will be from user@DOMAIN (with
  59.  *  DOMAIN as defined above).  If you don't want this, comment it out.
  60.  */
  61.  
  62. #define    HIDDENNET
  63.  
  64. /*
  65.  *  There are a number of ways that inews will try to figure out the
  66.  *  host name.  When used with nn, the definitions in ../config.h
  67.  *  will specify this, so you don't have to do anything special here.
  68.  */
  69.  
  70. /*
  71.  *  If you don't have bcopy, the following define will make one...
  72.  */
  73.  
  74. /* #define USG            /* */
  75.  
  76. /*
  77.  *  You shouldn't need to touch anything below this line.
  78.  */
  79.  
  80. /*
  81.  *  This is the code needed to get the proper hostname.
  82.  *
  83.  *    nn provides a gethostname function for generic use.
  84.  *    we fake uname() for inews.c using this:
  85.  */
  86.  
  87. #define    uname(str) nn_gethostname(str, sizeof(str))
  88.  
  89. /*
  90.  *  Stock nntp inews and nn use some different #define names for the
  91.  *  same general functions.  This synchronises them.
  92.  */
  93.  
  94. #define    SERVER_FILE    NNTP_SERVER
  95.  
  96. /*
  97.  *    Reverse engineering (nn got this the other way around)....
  98.  */
  99.  
  100. #ifdef HAVE_STRCHR
  101. #define    rindex strrchr
  102. #define index strchr
  103. #endif
  104.  
  105. #ifdef NO_BZERO
  106. #ifndef USG
  107. #define USG
  108. #endif
  109. #endif
  110.  
  111. /*
  112.  *  Sanity checks (You know.  Checks you get from Sanity Claus)
  113.  */
  114.  
  115. #ifdef    HIDDENNET
  116. #ifndef    DOMAIN
  117. YOU_BLEW_IT READ_THE_INSTRUCTIONS_AGAIN
  118. #endif
  119. #endif
  120.  
  121. #endif    /* of ifdef NNINEWSCONF_H */
  122.