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