Annotation of 43BSDTahoe/new/nntp/common/conf.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Configuration information for use by NNTP server and support
        !             3:  * programs.  Change these as appropriate for your system.
        !             4:  */
        !             5: 
        !             6: /*
        !             7:  * Compile time options.
        !             8:  */
        !             9: 
        !            10: #undef ALONE           /* True if we're running without inetd */
        !            11: #undef FASTFORK        /* True if we don't want to read active file on start */
        !            12: #undef BSD_42          /* 4.2 compatability code -- if this is defined, */
        !            13:                        /* DBM probably wants to be defined as well. */
        !            14: #undef DBM             /* True if we want to use the old dbm(3x) libraries */
        !            15:                        /* IF YOU DEFINE THIS, change CFLAGS in makefile to */
        !            16:                        /* be -ldbm */
        !            17: 
        !            18: /*
        !            19:  * If you DON'T have vfork, make this "#define vfork fork"
        !            20:  * vfork will speed up article transfer nntpds by about 2.5 times.
        !            21:  */
        !            22: 
        !            23: #undef vfork
        !            24: 
        !            25: 
        !            26: /*
        !            27:  * If you have the syslog library routine, define SYSLOG to
        !            28:  * be thef syslog facility name under which stats should be
        !            29:  * logged.  Newer 4.3 systems might choose LOG_NEWS;
        !            30:  * LOG_LOCAL7 is an acceptable substitute.
        !            31:  *
        !            32:  * If you don't have support for syslog, #undef it.
        !            33:  * Obviously, this means that you can't define LOG, either.
        !            34:  */
        !            35: 
        !            36: #define        SYSLOG  LOG_NEWS
        !            37: 
        !            38: #ifdef SYSLOG          /* Define LOG if you want copious logging info */
        !            39: #      define LOG      /* undef it if you don't */
        !            40: #endif                 /* but you can only have LOG if you have SYSLOG */
        !            41: 
        !            42: #ifdef BSD_42          /* This is a logical, warranted assumption */
        !            43: #   ifndef DBM         /* which will probably get me in trouble. */
        !            44: #      define DBM      /* Kill it if you have 4.2 *and* ndbm.  */
        !            45: #   endif
        !            46: #endif
        !            47: 
        !            48: #undef IHAVE_DEBUG     /* Copious debugging output from ihave */
        !            49: 
        !            50: #define        XHDR            /* Optional XHDR command.  Defining this will */
        !            51:                        /* speed up '=' command in rn, but will load */
        !            52:                        /* the server more.  If your server is heavily */
        !            53:                        /* loaded already, defining this may be a bad idea */
        !            54: 
        !            55: #define        SUBNET          /* If you have 4.3 subnetting */
        !            56: #undef DAMAGED_NETMASK /* If your subnet mask is not a multiple of */
        !            57:                        /* four bits (e.g., UCSD) */
        !            58: #undef DECNET          /* If you want decnet support */
        !            59: 
        !            60: #define        GHNAME          /* Define if you have gethostname() */
        !            61: #undef UUNAME          /* Define to use /etc/uucpname */
        !            62:                        /* If neither of these are defined, */
        !            63:                        /* inews will use the contents of */
        !            64:                        /* /usr/include/whoami.h */
        !            65: 
        !            66: /*
        !            67:  * How long you want nntp servers to hang out without receiving
        !            68:  * commands before they close the connection with an error message.
        !            69:  *
        !            70:  * You CANNOT have TIMEOUT while running in standalone (ALONE) mode,
        !            71:  * as SIGALRM is used for different things.
        !            72:  *
        !            73:  * If you don't want any timeout, #undef it, i.e.,
        !            74:  *
        !            75:  *     #undef  TIMEOUT
        !            76:  *
        !            77:  * TIMEOUT should be at least two hours, which allows users some time
        !            78:  * away from their terminal (e.g., at lunch) while reading news.
        !            79:  */
        !            80: 
        !            81: #ifndef ALONE
        !            82: #    define    TIMEOUT (2 * 3600)
        !            83: #endif ALONE
        !            84: 
        !            85: /*
        !            86:  * How long you want nntp servers to wait without receiving data
        !            87:  * during article transfers.  You CANNOT have XFER_TIMEOUT while
        !            88:  * running in standalond (ALONE) mode.
        !            89:  *
        !            90:  * If you don't want any transfer timeouts, #undef it, as above.
        !            91:  */
        !            92: 
        !            93: #ifndef ALONE
        !            94: #   define     XFER_TIMEOUT    (30 * 60)
        !            95: #endif ALONE
        !            96: 
        !            97: /*
        !            98:  * Your domain.  This is for the inews generated From: line,
        !            99:  * assuming that it doesn't find one in the article's head.
        !           100:  * Suggestions are .UUCP if you don't belong to the Internet.
        !           101:  * If your hostname returns the fully-qualified domain name
        !           102:  * as some 4.3 BSD systems do, simply undefine DOMAIN.
        !           103:  *
        !           104:  * e.g.  #define       DOMAIN          "berkeley.edu"
        !           105:  */
        !           106: 
        !           107: #define        DOMAIN  "uucp"
        !           108: 
        !           109: /*
        !           110:  * A file containing the name of the host which is running
        !           111:  * the news server.  This will have to match what rrn thinks,
        !           112:  * too.
        !           113:  */
        !           114: 
        !           115: #define        SERVER_FILE     "/usr/local/lib/rn/server"
        !           116: 
        !           117: /*
        !           118:  * Person (user name) to post news as.
        !           119:  */
        !           120: 
        !           121: #define        POSTER          "news"
        !           122: 
        !           123: /*
        !           124:  * These files are generated by the support programs, and are needed
        !           125:  * by the NNTP server.  Make sure that whatever directory you
        !           126:  * decide these files should go is writable by whatever uid you
        !           127:  * have the sypport programs run under.
        !           128:  */
        !           129: 
        !           130: #define STAT_FILE      "/usr/lib/news/mgdstats"
        !           131: #define NGDATE_FILE    "/usr/lib/news/groupdates"
        !           132: 
        !           133: /*
        !           134:  * Some commonly used programs and files.
        !           135:  */
        !           136: 
        !           137: #define        ACTIVE_FILE     "/usr/lib/news/active"
        !           138: #define ACCESS_FILE    "/usr/lib/news/nntp_access"
        !           139: #define HISTORY_FILE   "/usr/lib/news/history"
        !           140: #define        SPOOLDIR        "/usr/spool/news"
        !           141: #define INEWS          "/usr/lib/news/inews"
        !           142: #define RNEWS          "/usr/bin/rnews"                /* Link to inews? */
        !           143: 
        !           144: /*
        !           145:  * Some miscellaneous stuff
        !           146:  */
        !           147: 
        !           148: #define        MAX_ARTICLES    4096            /* Maximum number of articles/group */
        !           149: #define READINTVL      60 * 10         /* 10 minutes b/n chking active file */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.