config.h 13 KB

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