home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / nn / nn-6.001 / nn-6.4.18.nntp.diff
Text File  |  1995-01-13  |  20KB  |  675 lines

  1. diff -u --new-file --recursive nn.orig/Makefile nn/Makefile
  2. --- nn.orig/Makefile    Tue Apr 23 05:00:35 1991
  3. +++ nn/Makefile    Fri Jan 13 21:49:23 1995
  4. @@ -7,10 +7,10 @@
  5.  # Common values for CFLAGS are '-O -s' or '-g'
  6.  #
  7.  
  8. -CC =        cc
  9. +CC =        gcc
  10.  CPP =        $(CC) -E
  11. -CFLAGS =    -g
  12. -LDFLAGS =
  13. +CFLAGS =    -O2 
  14. +LDFLAGS =    -s
  15.  MAKE =        make
  16.  
  17.  #
  18. diff -u --new-file --recursive nn.orig/conf/s-linux.h nn/conf/s-linux.h
  19. --- nn.orig/conf/s-linux.h    Wed Dec 31 19:00:00 1969
  20. +++ nn/conf/s-linux.h    Fri Jan 13 21:49:23 1995
  21. @@ -0,0 +1,259 @@
  22. +/*
  23. + *    Use this file as a template for new s- files
  24. + */
  25. +
  26. +
  27. +/*
  28. + *    Include header files containing the following definitions:
  29. + *
  30. + *         off_t, time_t, struct stat
  31. + */
  32. +
  33. +#include <sys/types.h>
  34. +#include <sys/stat.h>
  35. +
  36. +
  37. +/*
  38. + *    Define if your system has system V like ioctls
  39. + */
  40. +
  41. +#define    HAVE_TERMIO            /* */
  42. +
  43. +/*
  44. + *    Define to use terminfo database.
  45. + *    Otherwise, termcap is used
  46. + */
  47. +
  48. +/* #define    USE_TERMINFO            /* */
  49. +
  50. +/*
  51. + *    Specify the library (or libraries) containing the termcap/terminfo
  52. + *    routines.
  53. + *
  54. + *    Notice:  nn only uses the low-level terminal access routines
  55. + *    (i.e. it does not use curses).
  56. + */
  57. +
  58. +#define TERMLIB    -ltermcap
  59. +
  60. +/*
  61. + *    Define HAVE_STRCHR if strchr() and strrchr() are available
  62. + */
  63. +
  64. +#define HAVE_STRCHR            /* */
  65. +
  66. +/*
  67. + *    Availability of varargs/vprintf/vsprintf is normally assumed
  68. + *    on most systems, *unless* NO_VARARGS is defined either here or
  69. + *    in the m- file.
  70. + *
  71. + *    To overrule a NO_VARARGS in the m- file, define HAVE_VARARGS
  72. + *    below if the varargs feature is available, *including* the
  73. + *    vprintf/vsprintf routines.
  74. + *
  75. + *    You may also define NO_VARARGS here, if varargs or the v*printf
  76. + *    are not available on this OS, but the m- file doesn't say so.
  77. + */
  78. +
  79. +/* #define HAVE_VARARGS /* Ignore NO_VARARGS -- else default */
  80. +/* #define NO_VARARGS /* */
  81. +
  82. +/*
  83. + *    Define if a signal handler has type void (see signal.h)
  84. + */
  85. +
  86. +#define    SIGNAL_HANDLERS_ARE_VOID    /* */
  87. +
  88. +/*
  89. + *    Define if signals must be set again after they are caught
  90. + */
  91. +
  92. +#define    RESET_SIGNAL_WHEN_CAUGHT    /* */
  93. +
  94. +/*
  95. + *    Define FAKE_INTERRUPT if a keyboard interrupt (^C) cannot interrupt
  96. + *    a read() system call.  This happens on a few BSD based systems
  97. + *    which don't have SV_INTERRUPT defined in <signal.h> and no
  98. + *    siginterrupt() call to make systems call interruptable.  
  99. + *    However, if siginterrupt() is available, but SV_INTERRUPT isn't
  100. + *    defined, then simply define that instead of FAKE_INTERRUPT!
  101. + */
  102. +
  103. +/* #define FAKE_INTERRUPT    /* */
  104. +
  105. +/*
  106. + *    Define HAVE_HARD_SLEEP if sending a SIGALRM isn't enough to
  107. + *    interrupt a sleep() call - typical symptom is that nnadmin W
  108. + *    doesn't wakeup the nnmaster.
  109. + */
  110. +
  111. +/* #define HAVE_HARD_SLEEP        /* BSD ? */
  112. +
  113. +/*
  114. + *    Define HAVE_UALARM if your system has a 4.3 BSD like ualarm() call.
  115. + *    Else define MICRO_ALARM(n) to timeout in n/10 seconds if possible.
  116. + *    Don't define either if system only has the standard alarm() call.
  117. + */
  118. +
  119. +/* #define HAVE_UALARM            /* BSD 4.3 */
  120. +/* #define MICRO_ALARM(n)    xxxx(n)    /* */
  121. +
  122. +/*
  123. + *    Define if your system has BSD like job control (SIGTSTP works)
  124. + */
  125. +
  126. +#define HAVE_JOBCONTROL                /* */
  127. +
  128. +
  129. +/*
  130. + *    Define if your system has a 4.3BSD like syslog library.
  131. + */
  132. +
  133. +#undef HAVE_SYSLOG
  134. +
  135. +/*
  136. + *    Define if your system provides the "directory(3X)" access routines
  137. + *
  138. + *    If true, include the header file(s) required by the package below
  139. + *    (remember that <sys/types.h> or equivalent is included above)
  140. + *    Also typedef Direntry to the proper struct type.
  141. + */
  142. +
  143. +#define    HAVE_DIRECTORY            /* */
  144. +
  145. +#include <dirent.h>            /* System V */
  146. +/* #include <sys/dir.h>                /* BSD */
  147. +
  148. +typedef struct dirent Direntry;        /* System V */
  149. +/* typedef struct direct Direntry;        /* BSD */
  150. +
  151. +/*
  152. + *    Define if your system has a mkdir() library routine
  153. + */
  154. +
  155. +#define    HAVE_MKDIR            /* */
  156. +
  157. +/*
  158. + *    Pick one:
  159. + *    Define HAVE_GETHOSTNAME if you have a BSD like gethostname routine.
  160. + *    Define HAVE_UNAME if a system V compatible uname() is available.
  161. + *    Define HOSTNAME_FILE "...." to a file containing the hostname.
  162. + *    Define HOSTNAME_WHOAMI if sysname is defined in <whoami.h>.
  163. + *
  164. + *    As a final resort, define HOSTNAME to the name of your system
  165. + *    (in config.h).
  166. + */
  167. +
  168. +/* #define HAVE_GETHOSTNAME            /* BSD systems */
  169. +#define HAVE_UNAME                /* System V */
  170. +/* #define HOSTNAME_FILE "/etc/uucpname"    /* or another file */
  171. +/* #define HOSTNAME_WHOAMI            /* in <whoami.h> */
  172. +
  173. +/*
  174. + *    Define HAVE_MULTIGROUP if system has simultaneous multiple group
  175. + *    membership capability (BSD style).
  176. + *    Also define NGROUPS or include the proper .h file if NGROUPS is
  177. + *    not defined in <sys/param.h>.
  178. + *    Also define GIDSET_TYPE to the type of the elements in the array
  179. + *    initialized by getgroups() if different from "int" (many systems
  180. + *    have a gid_t, but very few use it for getgroups()).
  181. + */
  182. +
  183. +/* #define HAVE_MULTIGROUP    /* BSD */
  184. +
  185. +/*
  186. + *    Define DETATCH_TERMINAL to be a command sequence which
  187. + *    will detatch a process from the control terminal
  188. + *    Also include system files needed to perform this HERE.
  189. + *    If not possible, just define it (empty)
  190. + */
  191. +
  192. +/* #include "...." */
  193. +
  194. +#define    DETATCH_TERMINAL /* setpgrp(); */
  195. +
  196. +
  197. +/*
  198. + *    Specify where the Bourne Shell is.
  199. + */
  200. +
  201. +#define SHELL        "/bin/sh"
  202. +
  203. +/*
  204. + *    Define OLD_AWK to the name of the "old awk" program if your
  205. + *    standard 'awk' is 'nawk' (new awk).  Use full path if necessary.
  206. + *    (This is a temporary hack until I get time to fix the scripts
  207. + *    which breaks nawk).
  208. + */
  209. +
  210. +/* #define OLD_AWK    "oawk"        /* */
  211. +
  212. +/*
  213. + *    Define AVOID_SHELL_EXEC if the system gets confused by
  214. + *        #!/bin/sh
  215. + *    lines in shell scripts, e.g. only reads #! and thinks it
  216. + *    is a csh script.
  217. + */
  218. +
  219. +/* #define AVOID_SHELL_EXEC        /* */
  220. +
  221. +/*
  222. + *    Specify the default mailer to be invoked by nnmail
  223. + */
  224. +
  225. +/* #define    MAILX        "/usr/bin/mailx"    /* SV */
  226. +/* #define    MAILX    "/usr/ucb/Mail"        /* BSD */
  227. +#define        MAILX    "/usr/bin/elm"
  228. +
  229. +/*
  230. + *    Define the maximum length of any pathname that may occur
  231. + */
  232. +
  233. +#define    FILENAME     256
  234. +
  235. +/*
  236. + *    Define USE_MALLOC_H if the faster malloc() in -lmalloc should be used.
  237. + *    This requires that -lmalloc is added to EXTRA_LIB below.
  238. + *
  239. + *    You can tune the malloc package through the following definitions
  240. + *    according to the descriptions in malloc(3X):
  241. + */
  242. +
  243. +/* #define USE_MALLOC_H        /* */
  244. +
  245. +/* #define MALLOC_GRAIN        sizeof(double)        /* M_GRAIN */
  246. +/* #define MALLOC_MAXFAST    (MALLOC_GRAIN*4)    /* M_MXFAST */
  247. +/* #define MALLOC_FASTBLOCKS    100            /* M_NLBLKS */
  248. +
  249. +/*
  250. + *    NNTP support requires tcp/ip with socket interface.
  251. + *
  252. + *    Define NO_RENAME if the rename() system call is not available.
  253. + *    Define NO_BZERO if the bzero() function is not available.
  254. + *    Define EXCELAN if the tcp/ip package is EXCELAN based.
  255. + *    Define NNTP_EXTRA_LIB to any libraries required only for nntp.
  256. + */
  257. +
  258. +/* #define NO_RENAME            /* */
  259. +/* #define NO_BZERO            /* */
  260. +/* #define EXCELAN            /* */
  261. +/* #define NNTP_EXTRA_LIB -lsocket    /* */
  262. +
  263. +/*
  264. + *    Define standard compiler flags here:
  265. + */
  266. +
  267. +#define COMPILER_FLAGS    
  268. +
  269. +/*
  270. + *    Define standard loader flags here:
  271. + */
  272. +
  273. +#define LOADER_FLAGS -s
  274. +
  275. +/*
  276. + *    If your system requires other libraries when linking nn
  277. + *    specify them here:
  278. + */
  279. +
  280. +#define EXTRA_LIB
  281. diff -u --new-file --recursive nn.orig/config.h nn/config.h
  282. --- nn.orig/config.h    Wed Dec 31 19:00:00 1969
  283. +++ nn/config.h    Fri Jan 13 21:49:23 1995
  284. @@ -0,0 +1,390 @@
  285. +/**************************** NN CONFIGURATION ***************************
  286. + *
  287. + *    Configuration file for nn.
  288. + *
  289. + *    You must edit this file to reflect your local configuration
  290. + *    and environment.
  291. + *
  292. + *    Before editing this file, read the licence terms in the README
  293. + *    file and the installation guidelines in the INSTALLATION file.
  294. + *
  295. + *    (c) Copyright 1990, Kim F. Storm.  All rights reserved.
  296. + */
  297. +
  298. +#define    RELEASE     "6.4"
  299. +
  300. +#include <stdio.h>
  301. +#include <ctype.h>
  302. +
  303. +
  304. +/*********************** NETWORK DEPENDENT DEFINITIONS **********************
  305. + *
  306. + *    Define NETWORK_DATABASE if you share the database through NFS on
  307. + *    a network with different, non-compatible machines, e.g. SUNs and
  308. + *    VAXen, or SUN-3 and SUN-4, or if you are using different compilers
  309. + *    on the same architecture.
  310. + *
  311. + *    In a homogenous network, you can leave it undefined for higher
  312. + *    performance (no data conversion is needed).
  313. + */
  314. +
  315. +/* #define NETWORK_DATABASE    /* */
  316. +
  317. +
  318. +/********************************** NNTP *********************************
  319. + *
  320. + *     Define NNTP to enable nntp support.  If you are not using NNTP,
  321. + *    just leave the following NNTP_* definitions as they are - they
  322. + *    will be ignored anyway.
  323. + *
  324. + *    With NNTP, the nnmaster still maintains a local database of
  325. + *    all article headers for fast access (and because NNTP does not
  326. + *    support nn - yet), while the articles are fetched from the
  327. + *    nntp server when they are read or saved.
  328. + *
  329. + *    You may still share this database through NFS locally (see the
  330. + *    description of NETWORK_DATABASE above) if you don't want to
  331. + *    have separate nn databases on all your local systems.
  332. + *
  333. + *    Consult the file NNTP for further information on the use of NNTP.
  334. + */
  335. +
  336. +#define NNTP            /* */
  337. +
  338. +/*
  339. + *    Define NNTP_SERVER to the name of a file containing the name of the
  340. + *    nntp server.
  341. + *
  342. + *    It is vital that both the nnmaster and all nn users on a machine
  343. + *    uses the same nntp server, because the nn database is synchronized
  344. + *    with a specific news active file.
  345. + *
  346. + *    If the file name does not start with a slash, it is relative to
  347. + *    LIB_DIRECTORY defined below.
  348. + *    NOTE: If you plan to use the included inews, it MUST be a full pathname
  349. + */
  350. +
  351. +#define NNTP_SERVER    "/etc/nntpserver"  /* */
  352. +
  353. +/*
  354. + *    Define NNTP_POST if you want nn to reject attempts to post via
  355. + *    NNTP to a server, that disallows postings.
  356. + *
  357. + *    You should define this, if you use the NNTP based mini-inews for
  358. + *    postings from NNTP clients.  If you use another mechanism, that
  359. + *    does not involve NNTP, you should leave it undefined.
  360. + */
  361. +
  362. +#define NNTP_POST             /* */
  363. +
  364. +/*
  365. + *    NNTP's mini-inews seems to require that messages contain a complete
  366. + *    header with Message-ID, Path, and Date fields which the normal inews
  367. + *    generates itself.  If your mini-inews requires these headers to
  368. + *    be present, define NNTP_MINI_INEWS_HEADER below.
  369. + */
  370. +
  371. +#define NNTP_MINI_INEWS_HEADER    /* uses "broken" mini-inews */
  372. +
  373. +/*
  374. + *    Define NNTP_PATH_HOSTNAME to force a specific hostname into the
  375. + *    Path: header generated when NNTP_MINI_INEWS_HEADER is defined.
  376. + *    This is useful for multi-machine sites with one mail/news gateway.
  377. + *
  378. + *    If the string starts with a '/' it is taken as the name of a file
  379. + *    from which the outgoing hostname should be read (at runtime).
  380. + */
  381. +
  382. +/* #define NNTP_PATH_HOSTNAME    "puthostnamehere"    /* */
  383. +
  384. +
  385. +/***************** OPERATING SYSTEM DEPENDENT DEFINITIONS *******************
  386. + *
  387. + *      Include the appropriate s- file for your system below.
  388. + *
  389. + *    If a file does not exist for your system, you can use
  390. + *    conf/s-template.h as a starting point for writing you own.
  391. + */
  392. +
  393. +#include "s-linux.h"
  394. +
  395. +/*
  396. + *    Define DEFAULT_PAGER as the initial value of the 'pager' variable.
  397. + *    nnadmin pipes shell command output though this command.
  398. + */
  399. +
  400. +/* #define DEFAULT_PAGER        "pg -n -s"    /* system V */
  401. +/* #define DEFAULT_PAGER    "more"            /* bsd */
  402. +#define DEFAULT_PAGER           "less" 
  403. +
  404. +/*
  405. + *    DEFAULT_PRINTER is the initial value of the 'printer' variable.
  406. + *    nn's :print command pipes text into this command.
  407. + */
  408. +
  409. +/* #define DEFAULT_PRINTER        "lp -s"        /* System V */
  410. +#define DEFAULT_PRINTER    "lpr -p -JNEWS"    /* bsd */
  411. +
  412. +/*
  413. + *     Define RESIZING to make nn understand dynamic window-resizing.
  414. + *     (It uses the TIOCGWINSZ ioctl found on most 4.3BSD systems)
  415. + */
  416. +
  417. +#define RESIZING        /* */
  418. +
  419. +
  420. +/********************** MACHINE DEPENDENT DEFINITIONS **********************
  421. + *
  422. + *    Include the appropriate m- file for your system below.
  423. + *
  424. + *    If a file does not exist for your system, you can use
  425. + *    conf/m-template.h as a starting point for writing you own.
  426. + */
  427. +
  428. +
  429. +#include "m-sun386i.h"
  430. +
  431. +/***************************** OWNERSHIP ***************************
  432. + *
  433. + *    Specify owner and group for installed files and programs.
  434. + *
  435. + *    The nnmaster will run suid/sgid to this owner and group.
  436. + *
  437. + *    The only requirements are that the ownership allows the
  438. + *    nnmaster to READ the news related files and directories, and
  439. + *    the ordinary users to read the database and execute the nn*
  440. + *    programs.
  441. + *
  442. + *    Common choices are:  (news, news)  and   (your uid, your gid)
  443. + */
  444. +
  445. +#define OWNER    "news"
  446. +#define    GROUP    "news"
  447. +
  448. +
  449. +/**************************** LOCALIZATION ****************************
  450. + *
  451. + *    Specify where programs and files are installed.
  452. + *
  453. + *    BIN_DIRECTORY    - the location of the user programs (mandatory)
  454. + *
  455. + *    LIB_DIRECTORY     - the location of auxiliary programs and files.
  456. + *               (mandatory UNLESS ALL of the following are defined).
  457. + *
  458. + *    MASTER_DIRECTORY - the location of the master program (on server)
  459. + *               (= LIB_DIRECTORY if undefined)
  460. + *
  461. + *    CLIENT_DIRECTORY - the location of auxiliary programs (on clients)
  462. + *               (= LIB_DIRECTORY if undefined)
  463. + *
  464. + *    HELP_DIRECTORY   - the location of help files, online manual, etc.
  465. + *               (= CLIENT_DIRECTORY/help if undefined)
  466. + *
  467. + *    CACHE_DIRECTORY     - if NNTP is used, nn uses this central directory
  468. + *               to store working copies of articles on the local
  469. + *               system.  If not defined, it stores the articles
  470. + *               in each user's ~/.nn directory.
  471. + *
  472. + *    TMP_DIRECTORY    - temporary file storage.  Overriden by $TMPDIR.
  473. + *               (= /usr/tmp if undefined).
  474. + *
  475. + *    LOG_FILE         - the location of nn's log file.
  476. + *               (= LIB_DIRECTORY/Log if undefined).
  477. + */
  478. +
  479. +#define BIN_DIRECTORY    "/usr/bin"
  480. +#define LIB_DIRECTORY    "/usr/lib/nn"
  481. +
  482. +
  483. +/**************************** DATABASE LOCATION **************************
  484. + *
  485. + *    Specify where the nn database should be installed.
  486. + *
  487. + *    If none of the following symbols are defined, the database will
  488. + *    be contained in the NEWS_DIRECTORY in a separate .nn directory for
  489. + *    master files and in files named .nnx and .nnd in each group's
  490. + *    spool directory.  To use this scheme, the OWNER specified above
  491. + *    must have write permission on the news spool directories.
  492. + *
  493. + *    If you access news via NNTP, you will probably always have to
  494. + *    give the database directory explicitly through DB_DIRECTORY
  495. + *    (and DB_DATA_DIRECTORY), since the normal news spool directories 
  496. + *    are probably not available on the local system.
  497. + *    The exception may be if nnmaster runs directly on the nntp server.
  498. + *
  499. + *    To change the default behaviour, you can define the following
  500. + *    symbols:
  501. + *
  502. + *    DB_DIRECTORY       - the directory containing the master files.
  503. + *
  504. + *    DB_DATA_DIRECTORY  - the directory containing the per-group files
  505. + *                 (default is DB_DIRECTORY/DATA if undefined).
  506. + *
  507. + *    DB_LONG_NAMES       - use group's name rather than number when
  508. + *                 building file names in DB_DATA_DIRECTORY.
  509. + *         (The file system must support long file names!!)
  510. + */
  511. +
  512. +#define DB_DIRECTORY    "/var/spool/nn"
  513. +
  514. +
  515. +/*************************** NEWS TRANSPORT **************************
  516. + *
  517. + *    Specify the location of your news programs and files
  518. + *    You only need to specify these if you are not
  519. + *    satisfied with the default settings.
  520. + *
  521. + *    NEWS_DIRECTORY         - The news spool directory.
  522. + *                  Default: /usr/spool/news
  523. + *
  524. + *    NEWS_LIB_DIRECTORY    - The news lib directory.
  525. + *                  Default: /usr/lib/news
  526. + *
  527. + *    INEWS_PATH        - The location of the inews program.
  528. + *                  Default: NEWS_LIB_DIR/inews
  529. + *
  530. + *    RMGROUP_PATH        - The location of the rmgroup program.
  531. + *                  Default: NEWS_LIB_DIR/{rm,del}group
  532. + */
  533. +
  534. +#define NEWS_DIRECTORY        "/var/spool/news"    /* */
  535. +#define NEWS_LIB_DIRECTORY    "/var/lib/news"        /* */
  536. +#define INEWS_PATH        "/usr/bin/inews"    /* */
  537. +
  538. +
  539. +/*************************** MAIL INTERFACE *************************
  540. + *
  541. + *    Specify a mailer that accepts a letter WITH a header IN THE TEXT.
  542. + *
  543. + *     A program named 'recmail' program is normally delivered with
  544. + *    the Bnews system, or you can use sendmail -t if you have it.
  545. + *
  546. + *    The contrib/ directory contains two programs which you might
  547. + *    be able to use with a little tweaking.
  548. + */
  549. +
  550. +/* #define REC_MAIL    "/usr/lib/news/recmail"    /* non-sendmail */
  551. +#define REC_MAIL    "/usr/lib/sendmail -t"    /* sendmail */
  552. +
  553. +
  554. +/*
  555. + *    Define HAVE_ROUTING if your mailer understands domain based
  556. + *    adresses (...@...) and performs the necessary rerouting (e.g.
  557. + *    Sendmail or Smail).
  558. + *
  559. + *    Otherwise, nn will provide a simple routing facility using
  560. + *      routing information specified in the file LIB_DIRECTORY/routes.
  561. + */
  562. +
  563. +#define HAVE_ROUTING            /* */
  564. +
  565. +/*
  566. + *    If HAVE_ROUTING is NOT defined, nn needs to know the name of
  567. + *     your host.  To obtain the host name it will use either of the
  568. + *    'uname' or 'gethostname' system calls as specified in the s-
  569. + *    file included above.
  570. + *
  571. + *    If neither 'uname' nor 'gethostname' is available, you must
  572. + *    define HOSTNAME to be the name of your host.  Otherwise, leave
  573. + *    it undefined (it will not be used anyway).
  574. + */
  575. +
  576. +/* #define HOSTNAME    "myhost"    /* Not used if HAVE_ROUTING */
  577. +
  578. +/*
  579. + *    Define APPEND_SIGNATURE if you want nn to ask users to append
  580. + *    ~/.signature to mail messages (reply/forward/mail).
  581. + *
  582. + *    If the mailer defined in REC_MAIL automatically includes .signature
  583. + *    you should not define this (it will fool people to include it twice).
  584. + *
  585. + *    I think 'recmail' includes .signature, but 'sendmail -t' doesn't.
  586. + */
  587. +
  588. +/* #define APPEND_SIGNATURE        /* */
  589. +
  590. +/*
  591. + *    BUG_REPORT_ADDRESS is the initial value of the bug-report-address
  592. + *    variable which is used by the :bug command to report bugs in
  593. + *    the nn software.
  594. + */
  595. +
  596. +#define BUG_REPORT_ADDRESS    "nn-bugs@dkuug.dk"
  597. +
  598. +
  599. +/*************************** DOCUMENTATION ***************************
  600. + *
  601. + *     Specify directories for the user and system manuals
  602. + *
  603. + *     Adapt this to your local standards; the manuals will be named
  604. + *         $(MAN_DIR)/program.$(MAN_SECTION)
  605. + *
  606. + *    USER_MAN    - nn, nntidy, nngrep, etc.
  607. + *    SYS_MAN        - nnadmin
  608. + *    DAEMON_MAN    - nnmaster
  609. + */
  610. +
  611. +#define USER_MAN_DIR     "/usr/man/man1"
  612. +#define USER_MAN_SECTION     "1"
  613. +
  614. +#define SYS_MAN_DIR     "/usr/man/man1"
  615. +#define SYS_MAN_SECTION     "1m"
  616. +
  617. +#define DAEMON_MAN_DIR     "/usr/man/man8"
  618. +#define DAEMON_MAN_SECTION     "8"
  619. +
  620. +
  621. +/************************** LOCAL POLICY *****************************
  622. + *
  623. + *    Define STATISTICS if you want to keep a record of how much
  624. + *    time the users spend on news reading.
  625. + *
  626. + *    Sessions shorter than the specified number of minutes are not
  627. + *    recorded (don't clutter up the log file).
  628. + *
  629. + *    Usage statistics is entered into the $LOG_FILE with code U
  630. + */
  631. +
  632. +/* #define STATISTICS    5 /* minutes */
  633. +
  634. +/*
  635. + *    Define ACCOUNTING if you want to keep accumulated accounting
  636. + *    based on the statistics in a separate 'acct' file.  In this
  637. + *    case, the accounting figures will be secret, and not be
  638. + *    written to the Log file.  And the users will not be able to
  639. + *    "decrease" their own account.
  640. + *
  641. + *    See account.c for optional cost calculation parameters.
  642. + */
  643. +
  644. +/* #define ACCOUNTING        /* */
  645. +
  646. +/*
  647. + *    Define AUTHORIZE if you want to restrict the use of nn to
  648. + *    certain users or certain periods of the day.  Define both
  649. + *    this and ACCOUNTING if you want to impose a usage quota
  650. + *
  651. + *    See account.c for implementing various access policies.
  652. + */
  653. +
  654. +/* #define AUTHORIZE    /* */
  655. +
  656. +/*
  657. + *    Default folder directory
  658. + */
  659. +
  660. +#define FOLDER_DIRECTORY    "~/News"
  661. +
  662. +/*
  663. + *    Max length of authors name (in "edited" format).
  664. + *    Also size of "Name" field on the article menus.
  665. + *    You may want to increase this if your terminals are wider than
  666. + *    80 columns.
  667. + */
  668. +
  669. +#define NAME_LENGTH         16
  670. +
  671. +
  672. +/************************ CONFIGURATION COMPLETED ************************/
  673. +
  674. +#include "global.h"
  675.