1/**************************** NN CONFIGURATION *************************** 2 * 3 * Configuration file for nn. 4 * 5 * You must edit this file to reflect your local configuration 6 * and environment. 7 * 8 * Before editing this file, read the licence terms in the README 9 * file and the installation guidelines in the INSTALLATION file. 10 * 11 * (c) Copyright 1990, Kim F. Storm. All rights reserved. 12 */ 13 14 15/* 16 * The Good Net-Keeping Seal of Approval folks seem to think it necessary to 17 * waste screen real estate with headers. For such people, uncomment the 18 * following to change the default headers 19 */ 20 21/* #define GNKSA */ 22 23 24/************************* NOV CONFIGURATION ****************************** 25 * 26 * Define NOV if you have access to .overview files in your news spool 27 * area and you want to use them rather than run nnmaster. 28 * If you use NNTP and your server is INN 1.4 or later with XOVER support 29 * and is generating .overview files there, you can use NOV over NNTP. In 30 * that case, make sure you define NNTP below as well. 31 * 32 * If your NOV implementation doesn't have records for digests (none 33 * that I know of do), you might want to define 'DO_NOV_DIGEST'. 34 * This will cause nn to grab a digest article and split it apart 35 * before anything has been selected to be read from that article. 36 * 'DO_NOV_DIGEST' is necessary if you want any digests (like 37 * 'comp.risks') to be automatically split. 38 * 39 * NOV_DIRECTORY and NOV_FILENAME can normally be left undefined. 40 */ 41 42#define NOV 43 44/* Optional */ 45#define DO_NOV_DIGEST 46 47/* Optional */ 48/* #define NOV_DIRECTORY "/usr/spool/news" */ 49 50/* Optional */ 51/* #define NOV_FILENAME ".overview" */ 52 53 54/********************************** NNTP ********************************* 55 * 56 * Define NNTP to enable nntp support. If you are not using NNTP, 57 * just leave the following NNTP_* definitions as they are - they 58 * will be ignored anyway. 59 */ 60 61#define NNTP 62 63/* 64 * Define NNTP_SERVER to the name of a file containing the name of the 65 * nntp server (aka the newsserver you connect to). 66 * 67 * If the file name does not start with a slash, it is relative to 68 * LIB_DIRECTORY defined below. 69 */ 70 71#define NNTP_SERVER "/usr/local/lib/nntp_server" 72 73/* 74 * Define your local domain name. If you leave this undefined, nn will 75 * attempt to discover it. 76 * See comment below on HIDDENNET. 77 */ 78 79/* #define DOMAIN "frobozz.bogus" */ 80 81/* 82 * If you define HIDDENNET, the hostname will not appear in the posting 83 * data except on the path. Items will be from user@DOMAIN (with 84 * DOMAIN as defined above). If you don't want this, comment it out. 85 */ 86 87#define HIDDENNET 88 89 90/***************** OPERATING SYSTEM DEPENDENT DEFINITIONS ******************* 91 * 92 * Include the appropriate s- file for your system below. 93 * 94 * If a file does not exist for your system, you can use 95 * conf/s-template.h as a starting point for writing you own. 96 */ 97 98#include "s-sunos5.h" 99 100/* 101 * Define DEFAULT_PAGER as the initial value of the 'pager' variable. 102 * nnadmin pipes shell command output though this command. 103 */ 104 105/* #define DEFAULT_PAGER "pg -n -s" */ /* System V */ 106#define DEFAULT_PAGER "more" /* bsd */ 107 108/* 109 * DEFAULT_PRINTER is the initial value of the 'printer' variable. 110 * nn's :print command pipes text into this command. 111 */ 112 113/* #define DEFAULT_PRINTER "lp -s" */ /* System V */ 114#define DEFAULT_PRINTER "lpr -p -JNEWS" /* bsd */ 115 116 117/********************** MACHINE DEPENDENT DEFINITIONS ********************** 118 * 119 * Include the appropriate m- file for your system below. 120 * 121 * If a file does not exist for your system, you can use 122 * conf/m-template.h as a starting point for writing you own. 123 */ 124 125#include "m-sparc.h" 126 127 128/***************************** OWNERSHIP *************************** 129 * 130 * Specify owner and group for installed files and programs. 131 * 132 * The nnmaster will run suid/sgid to this owner and group. 133 * 134 * The only requirements are that the ownership allows the 135 * nnmaster to READ the news related files and directories, and 136 * the ordinary users to read the database and execute the nn* 137 * programs. 138 * 139 * Common choices are: (news, news) and (your uid, your gid) 140 */ 141 142#define OWNER "news" 143#define GROUP "news" 144 145 146/**************************** LOCALIZATION **************************** 147 * 148 * Specify where programs and files are installed. 149 * 150 * BIN_DIRECTORY - the location of the user programs (mandatory) 151 * 152 * LIB_DIRECTORY - the location of auxiliary programs and files. 153 * (mandatory UNLESS ALL of the following are defined). 154 * 155 * MASTER_DIRECTORY - the location of the master program (on server) 156 * (= LIB_DIRECTORY if undefined) 157 * 158 * CLIENT_DIRECTORY - the location of auxiliary programs (on clients) 159 * (= LIB_DIRECTORY if undefined) 160 * 161 * HELP_DIRECTORY - the location of help files, online manual, etc. 162 * (= CLIENT_DIRECTORY/help if undefined) 163 * 164 * CACHE_DIRECTORY - if NNTP is used, nn uses this central directory 165 * to store working copies of articles on the local 166 * system. If not defined, it stores the articles 167 * in each user's ~/.nn directory. 168 * 169 * TMP_DIRECTORY - temporary file storage. Overriden by $TMPDIR. 170 * (= /var/tmp if undefined). 171 * 172 * LOG_FILE - the location of nn's log file. 173 * (= LIB_DIRECTORY/Log if undefined). 174 */ 175 176#define BIN_DIRECTORY "/usr/local/bin" 177#define LIB_DIRECTORY "/usr/local/lib/nn" 178 179 180/*************************** MAIL INTERFACE ************************* 181 * 182 * Specify a mailer that accepts a letter WITH a header IN THE TEXT. 183 * 184 * A program named 'recmail' program is normally delivered with 185 * the Bnews system, or you can use sendmail -t if you have it. 186 * 187 * The contrib/ directory contains two programs which you might 188 * be able to use with a little tweaking. 189 */ 190 191/* #define REC_MAIL "/usr/lib/news/recmail" */ /* non-sendmail */ 192#define REC_MAIL "/usr/lib/sendmail -t" /* sendmail */ 193 194/* 195 * nn needs to know the name of your host. 196 * To obtain the host name it will use either of the 'uname' or 197 * 'gethostname' system calls as specified in the s-file included 198 * above. 199 * 200 * If neither 'uname' nor 'gethostname' is available, you must 201 * define HOSTNAME to be the name of your host. Otherwise, leave 202 * it undefined (it will not be used anyway). 203 */ 204 205/* #define HOSTNAME "myhost" */ 206 207/* 208 * Define APPEND_SIGNATURE if you want nn to ask users to append 209 * ~/.signature to mail messages (reply/forward/mail). 210 * 211 * If the mailer defined in REC_MAIL automatically includes .signature 212 * you should not define this (it will fool people to include it twice). 213 * 214 * I think 'recmail' includes .signature, but 'sendmail -t' doesn't. 215 */ 216 217#define APPEND_SIGNATURE 218 219/* 220 * BUG_REPORT_ADDRESS is the initial value of the bug-report-address 221 * variable which is used by the :bug command to report bugs in 222 * the nn software. 223 */ 224 225#define BUG_REPORT_ADDRESS "mtpins@nndev.org" 226 227 228/*************************** DOCUMENTATION *************************** 229 * 230 * Specify directories for the user and system manuals 231 * 232 * Adapt this to your local standards; the manuals will be named 233 * $(MAN_DIR)/program.$(MAN_SECTION) 234 * 235 * USER_MAN - nn, nntidy, nngrep, etc. 236 * SYS_MAN - nnadmin 237 * DAEMON_MAN - nnmaster 238 */ 239 240#define USER_MAN_DIR "/usr/local/man/man1" 241#define USER_MAN_SECTION "1" 242 243#define SYS_MAN_DIR "/usr/local/man/man1" 244#define SYS_MAN_SECTION "1m" 245 246#define DAEMON_MAN_DIR "/usr/local/man/man8" 247#define DAEMON_MAN_SECTION "8" 248 249 250/************************** LOCAL POLICY ***************************** 251 * 252 * Define STATISTICS if you want to keep a record of how much 253 * time the users spend on news reading. 254 * 255 * Sessions shorter than the specified number of minutes are not 256 * recorded (don't clutter up the log file). 257 * 258 * Usage statistics is entered into the $LOG_FILE with code U 259 */ 260 261/* #define STATISTICS 5 */ /* minutes */ 262 263/* 264 * Define ACCOUNTING if you want to keep accumulated accounting 265 * based on the statistics in a separate 'acct' file. In this 266 * case, the accounting figures will be secret, and not be 267 * written to the Log file. And the users will not be able to 268 * "decrease" their own account. 269 * 270 * See account.h for optional cost calculation parameters. 271 */ 272 273/* #define ACCOUNTING */ 274 275/* 276 * Define AUTHORIZE if you want to restrict the use of nn to 277 * certain users or certain periods of the day. Define both 278 * this and ACCOUNTING if you want to impose a usage quota. 279 * 280 * See account.h for implementing various access policies. 281 */ 282 283/* #define AUTHORIZE */ 284 285/* 286 * Default folder directory 287 */ 288 289#define FOLDER_DIRECTORY "~/News" 290 291/* 292 * Default length of authors name (in "edited" format). 293 * Also size of "Name" field on the article menus. 294 * The actual value used will be the larger of this and 1/5 the width 295 * of the window. 296 */ 297 298#define NAME_LENGTH 16 299 300/* 301 * SIGN_TYPE is the program to be used to create digital signatures. 302 */ 303 304/* #define SIGN_TYPE "gpg" */ 305#define SIGN_TYPE "pgp" 306 307/* 308 * If no "Lines:" header field is present, NN can be made to 309 * count them itself. 310 */ 311 312#define DONT_COUNT_LINES 313 314/* 315 * PUT_TIMESTAMP_IN_SCRIPTS 316 * Defining this causes the "inst" script to add identifying information 317 * to the beginning of the shell scripts. 318 */ 319 320#define PUT_TIMESTAMP_IN_SCRIPTS 321 322/* 323 * CONFIG_NUM_IN_VERSION 324 * Defining this will make NN announce itself including the build number 325 * like "NN version 6.7.x #12", rather than "NN version 6.7.x". 326 */ 327 328/* #define CONFIG_NUM_IN_VERSION */ 329 330/* 331 * ART_GREP 332 * Define this if you want to enable the "experimental" subject 333 * body search code. On the "G" menu, there will be two extra 334 * choices: "b" body search unread, and "B" body search all. 335 * Choose your pattern, and you will be presented with a merged group 336 * containing the articles you chose. There may still be bugs! 337 * WARNING: 338 * THIS WOULD BE *BAD* FOR NNTP SITES! You don't want all your 339 * users downloading the entire news database... 340 */ 341 342/* #define ART_GREP */ 343 344/* 345 * CACHE_PURPOSE 346 * Defining this makes NN cache the newsgroup/purpose list, sorted 347 * in memory and use binary search to locate a group's purpose. 348 * This can be a winner on systems with *everything* in their 349 * newsgroups list. Note that this will cause nn to always download 350 * the newsgroup/purpose list. This will increase startup time for nn 351 * but is still a win for people who have show-purpose-mode=2. 352 * Currently CACHE_PURPOSE and nnmaster don't work together, 353 * so please leave this undefined unless you are using NOV. 354 */ 355 356/* #define CACHE_PURPOSE */ 357 358 359/* 360 * If you aren't running nnmaster you can stop here. 361 */ 362 363 364/************************ NNMASTER CONFIGURATION *************************/ 365 366/*********************** NETWORK DEPENDENT DEFINITIONS ********************** 367 * 368 * Define NETWORK_DATABASE if you share the database through NFS on 369 * a network with different, non-compatible machines, e.g. SUNs and 370 * VAXen, or SUN-3 and SUN-4, or if you are using different compilers 371 * on the same architecture. 372 * 373 * In a homogenous network, you can leave it undefined for higher 374 * performance (no data conversion is needed). 375 */ 376 377/* #define NETWORK_DATABASE */ 378 379 380/**************************** DATABASE LOCATION ************************** 381 * 382 * Specify where the nn database should be installed. 383 * 384 * If none of the following symbols are defined, the database will 385 * be contained in the NEWS_DIRECTORY in a separate .nn directory for 386 * master files and in files named .nnx and .nnd in each group's 387 * spool directory. To use this scheme, the OWNER specified above 388 * must have write permission on the news spool directories. 389 * 390 * If you access news via NNTP, you will probably always have to 391 * give the database directory explicitly through DB_DIRECTORY 392 * (and DB_DATA_DIRECTORY), since the normal news spool directories 393 * are probably not available on the local system. 394 * The exception may be if nnmaster runs directly on the nntp server. 395 * 396 * To change the default behavior, you can define the following 397 * symbols: 398 * 399 * DB_DIRECTORY - the directory containing the master files. 400 * 401 * DB_DATA_DIRECTORY - the directory containing the per-group files 402 * (default is DB_DIRECTORY/DATA if undefined). 403 * 404 * DB_LONG_NAMES - use group's name rather than number when 405 * building file names in DB_DATA_DIRECTORY. 406 * (The file system must support long file names!!) 407 */ 408 409/* #define DB_DIRECTORY "/usr/spool/nn" */ 410 411 412/*************************** NEWS TRANSPORT ************************** 413 * 414 * Specify the location of your news programs and files 415 * You only need to specify these if you are not 416 * satisfied with the default settings. 417 * 418 * NEWS_DIRECTORY - The news spool directory. 419 * Default: /usr/spool/news 420 * 421 * NEWS_LIB_DIRECTORY - The news lib directory. 422 * Default: /usr/lib/news 423 * 424 * RMGROUP_PATH - The location of the rmgroup program. 425 * Default: NEWS_LIB_DIR/{rm,del}group 426 */ 427 428/* #define NEWS_DIRECTORY "/usr/spool/news" */ 429/* #define NEWS_LIB_DIRECTORY "/usr/lib/news" */ 430 431/************************ CONFIGURATION COMPLETED ************************/ 432