Annotation of 43BSD/contrib/nntp/common/conf.h, revision 1.1.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: #define        LOG             /* True if we want copious logging info */
                     18: 
                     19: #ifdef BSD_42          /* This is a logical, warranted assumption */
                     20: #   ifndef DBM         /* which will probably get me in trouble. */
                     21: #      define DBM      /* Kill it if you have 4.2 *and* ndbm.  */
                     22: #   endif
                     23: #endif
                     24: 
                     25: /*
                     26:  * Your domain.  This is for the inews generated From: line,
                     27:  * assuming that it doesn't find one in the article's head.
                     28:  * Suggestions are .UUCP if you don't belong to the Internet.
                     29:  * If your hostname returns the fully-qualified domain name
                     30:  * as some 4.3 BSD systems do, simply undefine DOMAIN.
                     31:  *
                     32:  * e.g.  #define       DOMAIN          "berkeley.edu"
                     33:  */
                     34: 
                     35: #undef DOMAIN
                     36: 
                     37: /*
                     38:  * The host which is actually running the server; this is for
                     39:  * inews, so it knows where to send the articles.
                     40:  */
                     41: 
                     42: #define        SERVER_HOST     "ucbvax"
                     43: 
                     44: /*
                     45:  * Person (user name) to post news as.
                     46:  */
                     47: 
                     48: #define        POSTER          "nobody"
                     49: 
                     50: /*
                     51:  * Logging facility; normally this will be LOG_DAEMON, but
                     52:  * if you have LOG defined, you can get a large amount of
                     53:  * output, and it's nice to have it wind up in a special
                     54:  * file.
                     55:  *
                     56:  * This is only of concern if you have 4.3 BSD.
                     57:  */
                     58: 
                     59: #ifndef BSD_42
                     60: #define LOG_FACILITY   LOG_LOCAL7
                     61: #endif
                     62: 
                     63: /*
                     64:  * The person to send bugs to; this is printed in response
                     65:  * to the "help" command.  Unless you've modified the
                     66:  * server to some degree, I suggest leaving this as it is,
                     67:  * so I hear about problems.
                     68:  */
                     69: 
                     70: #define        BUGS_TO         "Phil Lapsley ([email protected], ...!ucbvax!phil)"
                     71: 
                     72: /*
                     73:  * These files are generated by the support programs, and are needed
                     74:  * by the NNTP server.  Make sure that whatever directory you
                     75:  * decide these files should go is writable by whatever uid you
                     76:  * have the sypport programs run under.
                     77:  */
                     78: 
                     79: #define STAT_FILE      "/usr/spool/news/lib/mgdstats"
                     80: #define NGDATE_FILE    "/usr/spool/news/lib/groupdates"
                     81: 
                     82: /*
                     83:  * Some commonly used programs and files.
                     84:  */
                     85: 
                     86: #define        ACTIVE_FILE     "/usr/spool/news/lib/active"
                     87: #define ACCESS_FILE    "/usr/spool/news/lib/nntp_access"
                     88: #define HISTORY_FILE   "/usr/spool/news/lib/history"
                     89: #define        SPOOLDIR        "/usr/spool/news/"              /* Need trailing / */
                     90: #define INEWS          "/usr/spool/news/lib/inews"
                     91: #define RNEWS          "/usr/bin/rnews"                /* Link to inews? */
                     92: 
                     93: /*
                     94:  * Some miscellaneous stuff
                     95:  */
                     96: 
                     97: #define MAX_GROUPS     450             /* Maximum groups in active file */
                     98: #define        MAX_ARTICLES    4096            /* Maximum number of articles/group */
                     99: #define READINTVL      60 * 10         /* 10 minutes b/n chking active file */
                    100: 
                    101: /*
                    102:  * This is defined in RFC 977; don't change.
                    103:  */
                    104: 
                    105: #define MAX_STRLEN     512             /* Maximum message line length */

unix.superglobalmegacorp.com

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