home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / inn / inn1.4 / inn1.4.diff
Text File  |  1995-01-14  |  36KB  |  1,052 lines

  1. --- Makefile.Linux
  2. +++ Makefile.Linux    1994/05/21 21:57:57
  3. @@ -0,0 +1,9 @@
  4. +config/config.data:  config.config.dist
  5. +    cp config/config.dist config/data
  6. +
  7. +compile: config/config.data
  8. +    make all
  9. +
  10. +install: compile
  11. +    make install
  12. +
  13. --- README.linux
  14. +++ README.linux    1994/05/21 21:57:57
  15. @@ -0,0 +1,60 @@
  16. +I am using /bin/bash as my shell. Be carefull, if you use tcsh.
  17. +
  18. +Installing your own news feed:
  19. +==============================
  20. +
  21. +- fetch the INN FAQ, inn-1.4sec.tar.gz, inn-1.4sec.dif, nov.tar.gz,
  22. +  nov.dif
  23. +
  24. +Preparing the system:
  25. +- remove any nntp entries in your /etc/inetd.conf
  26. +- create a new group "news"
  27. +- create a new user named "news" and home directory "/usr/lib/news"
  28. +  group-id is "news"
  29. +- maybe add a mail alias to /etc/aliases, if you want to have someone
  30. +  else than "news" get all mail about your news system
  31. +  (run newaliases after it)
  32. +
  33. +Compile and install inn-1.4sec and nov:
  34. +- as any user do the following:
  35. +- untar the sources: "tar xzf inn-1.4sec.tar.gz"
  36. +  "tar xzf nov.tar.gz"
  37. +- patch the sources: "cd nov; patch -s -p0 < ../nov.dif; cd .."
  38. +  "cd inn-1.4sec; patch -s -p0 < ../inn-1.4sec.dif"
  39. +- cd inn-1.4sec; make Install.ms
  40. +- nroff -ms Install.ms | less
  41. +- cp config/config.dist config/config.data
  42. +- vi config/config.data      (should be ok for you, look at sendmail entry)
  43. +- make all 2>&1 | less       (should be no errors)
  44. +- cd ../nov
  45. +- make
  46. +- su root
  47. +- (cd nov;) make install
  48. +- cd ../inn-1.4sec; make install 2>&1 | less
  49. +- maybe symlink /usr/bin/inews to /usr/lib/news/inews
  50. +- maybe symlink /usr/bin/rnews to /usr/lib/news/rnews
  51. +
  52. +Configuring your own system:
  53. +- do all administration as user "news"
  54. +- copy /usr/lib/news/active from your news provider (see also getlist(1)),
  55. +  or create your own active file
  56. +- if you like, copy /usr/lib/news/newsgroups from your news provider
  57. +- execute "makehistory -o"
  58. +- edit the following files: innd.conf, control.ctl, expire.ctl, hosts.nntp,
  59. +  newsfeeds, nnrp.access, overview.fmt
  60. +- To test your news system, execute as root "/usr/lib/news/etc/rc.news".
  61. +  If everything works ok, you can start that script from one of the /etc/rc*
  62. +  files at boot time.
  63. +
  64. +- Here is a sample crontab for the user "news":
  65. +    # news crontab
  66. +    #
  67. +    # min hour day month dayofweek (1=Mo,7=Su) command
  68. +    SHELL=/bin/sh
  69. +    PATH=/bin:/usr/bin:/usr/local/bin:/usr/lib/news/bin
  70. +
  71. +    10 23 * * * /usr/lib/news/rnews -U
  72. +    15 23 * * * /usr/lib/news/bin/news.daily expireover delayrm
  73. +
  74. +- /usr/lib/news/send-uucp uucphost
  75. +
  76. --- config/config.dist
  77. +++ config/config.dist    1994/05/21 22:05:48
  78. @@ -21,19 +21,19 @@
  79.  CC            cc
  80.  ##  Does your compiler properly do "char const *"? Pick DO DONT or DUNNO
  81.  #### =()<USE_CHAR_CONST        @<USE_CHAR_CONST>@>()=
  82. -USE_CHAR_CONST        DUNNO
  83. +USE_CHAR_CONST        DO
  84.  ##  C compiler flags
  85.  #### =()<CFLAGS            @<CFLAGS>@>()=
  86. -CFLAGS            $(DEFS) -g
  87. +CFLAGS            $(DEFS) -O2 -fomit-frame-pointer
  88.  ##  C compiler flags to use when compiling dbz
  89.  #### =()<DBZCFLAGS            @<DBZCFLAGS>@>()=
  90.  DBZCFLAGS            $(CFLAGS)
  91.  ##  What flags to use if profiling; -p or -pg, e.g.
  92.  #### =()<PROF            @<PROF>@>()=
  93. -PROF            -pg
  94. +PROF            -p
  95.  ##  Flags for the "cc -o" line; e.g., -Bstatic on SunOS4.x while debugging.
  96.  #### =()<LDFLAGS            @<LDFLAGS>@>()=
  97. -LDFLAGS            -g
  98. +LDFLAGS            -s -O2
  99.  ##  If you use the standard NNTP way of connecting, where is the library?
  100.  #### =()<NNTPLIB        @<NNTPLIB>@>()=
  101.  NNTPLIB        
  102. @@ -42,10 +42,10 @@
  103.  LIBS        
  104.  ##  How to make a lint library; pick BSD, SYSV, or NONE.
  105.  #### =()<LINTLIBSTYLE        @<LINTLIBSTYLE>@>()=
  106. -LINTLIBSTYLE        BSD
  107. +LINTLIBSTYLE        NONE
  108.  ##  Flags for lint.  AIX wants "-wkD"; it and others don't want "-z".
  109.  #### =()<LINTFLAGS        @<LINTFLAGS>@>()=
  110. -LINTFLAGS        -b -h -z $(DEFS)
  111. +LINTFLAGS        
  112.  ##  Some lints insist on putting out the filename and other crap.
  113.  ##  Possible values:
  114.  ##    LINTFILTER              | sed -n -f ../sedf.aix
  115. @@ -54,19 +54,19 @@
  116.  ##    LINTFILTER              | sed -n -f ../sedf.sysv
  117.  ##    LINTFILTER              
  118.  ####  =()<LINTFILTER        @<LINTFILTER>@>()=
  119. -LINTFILTER        | sed -n -f ../sedf.sun
  120. +LINTFILTER        
  121.  ##  How to install manpages; pick SOURCE, NROFF-PACK, NROFF-PACK-SCO, or NONE.
  122.  #### =()<MANPAGESTYLE        @<MANPAGESTYLE>@>()=
  123.  MANPAGESTYLE        SOURCE
  124.  ##  Where various manpages should go
  125.  #### =()<MAN1            @<MAN1>@>()=
  126. -MAN1            /usr/local/man/man1
  127. +MAN1            /usr/man/man1
  128.  #### =()<MAN3            @<MAN3>@>()=
  129. -MAN3            /usr/local/man/man3
  130. +MAN3            /usr/man/man3
  131.  #### =()<MAN5            @<MAN5>@>()=
  132. -MAN5            /usr/local/man/man5
  133. +MAN5            /usr/man/man5
  134.  #### =()<MAN8            @<MAN8>@>()=
  135. -MAN8            /usr/local/man/man8
  136. +MAN8            /usr/man/man8
  137.  ##  Ranlib command.  Use echo if you don't need ranlib.
  138.  #### =()<RANLIB            @<RANLIB>@>()=
  139.  RANLIB            ranlib
  140. @@ -97,13 +97,13 @@
  141.  L_ERROR            LOG_ERR
  142.  ##  Informational notice, usually not worth caring about.
  143.  #### =()<L_NOTICE        @<L_NOTICE>@>()=
  144. -L_NOTICE        LOG_WARNING
  145. +L_NOTICE        LOG_INFO
  146.  ##  A protocol trace.
  147.  #### =()<L_TRACE            @<L_TRACE>@>()=
  148.  L_TRACE            LOG_DEBUG
  149.  ##  All incoming control commands (ctlinnd, etc).
  150.  #### =()<L_CC_CMD        @<L_CC_CMD>@>()=
  151. -L_CC_CMD        LOG_INFO
  152. +L_CC_CMD        LOG_WARNING
  153.  
  154.  
  155.  ##
  156. @@ -116,7 +116,7 @@
  157.  NEWSGROUP        news
  158.  ##  Who gets email about control messages? (Usually same as NEWSUSER)
  159.  #### =()<NEWSMASTER        @<NEWSMASTER>@>()=
  160. -NEWSMASTER        usenet
  161. +NEWSMASTER        news
  162.  ##  Who gets email on the Path line?
  163.  #### =()<PATHMASTER        @<PATHMASTER>@>()=
  164.  PATHMASTER        not-for-mail
  165. @@ -139,7 +139,7 @@
  166.  ##  Use stdargs, varargs, or neither?  Pick VARARGS STDARGS or NONE.
  167.  ##  You need vfprintf and vfsprintf if not NONE.
  168.  #### =()<VAR_STYLE        @<VAR_STYLE>@>()=
  169. -VAR_STYLE        VARARGS
  170. +VAR_STYLE        STDARGS
  171.  ##  If you don't have <string.h>, set this to "mystring.h"
  172.  #### =()<STR_HEADER        @<STR_HEADER>@>()=
  173.  STR_HEADER        <string.h>
  174. @@ -151,18 +151,18 @@
  175.  OFFSET_T            long
  176.  ##  What is the type of an object size? Usually size_t or unsigned int.
  177.  #### =()<SIZE_T            @<SIZE_T>@>()=
  178. -SIZE_T            int
  179. +SIZE_T            size_t
  180.  ##  What is the type of a passwd uid and gid, for use in chown(2)?
  181.  #### =()<UID_T            @<UID_T>@>()=
  182. -UID_T            int
  183. +UID_T            uid_t
  184.  #### =()<GID_T            @<GID_T>@>()=
  185. -GID_T            int
  186. +GID_T            gid_t
  187.  ##  Type of a pid, for use in kill(2).
  188.  #### =()<PID_T            @<PID_T>@>()=
  189. -PID_T            int
  190. +PID_T            pid_t
  191.  ##  Generic pointer, used by memcpy, malloc, etc.  Usually char or void.
  192.  #### =()<POINTER            @<POINTER>@>()=
  193. -POINTER            char
  194. +POINTER            void
  195.  ##  Worst-case alignment, in order to shut lint up
  196.  #### =()<ALIGNPTR        @<ALIGNPTR>@>()=
  197.  ALIGNPTR        int
  198. @@ -171,7 +171,7 @@
  199.  SIGHANDLER        void
  200.  ##  Type of variables can be modified in a signal handler? sig_atomic_t
  201.  #### =()<SIGVAR        @<SIGVAR>@>()=
  202. -SIGVAR        int
  203. +SIGVAR        sig_atomic_t
  204.  ##  Function that returns no value, and a pointer to it.  Pick int or void
  205.  #### =()<FUNCTYPE        @<FUNCTYPE>@>()=
  206.  FUNCTYPE        void
  207. @@ -184,7 +184,7 @@
  208.  LOCK_STYLE        FLOCK
  209.  ##  Do you have <unistd.h>?  Pick DO or DONT
  210.  #### =()<HAVE_UNISTD    @<HAVE_UNISTD>@>()=
  211. -HAVE_UNISTD    DONT
  212. +HAVE_UNISTD    DO
  213.  ##  Do you have setbuffer?  Pick DO or DONT.
  214.  #### =()<HAVE_SETBUFFER        @<HAVE_SETBUFFER>@>()=
  215.  HAVE_SETBUFFER        DO
  216. @@ -196,47 +196,47 @@
  217.  HAVE_FCHMOD        DO
  218.  ##  Do you have setsid()?  Pick DO or DONT.
  219.  #### =()<HAVE_SETSID        @<HAVE_SETSID>@>()=
  220. -HAVE_SETSID        DONT
  221. +HAVE_SETSID        DO
  222.  ##  Does your (struct tm) have a tm_gmtoff field?  Pick DO or DONT.
  223.  #### =()<HAVE_TM_GMTOFF        @<HAVE_TM_GMTOFF>@>()=
  224. -HAVE_TM_GMTOFF        DO
  225. +HAVE_TM_GMTOFF        DONT
  226.  ##  Does your (struct stat) have a st_blksize field?  Pick DO or DONT.
  227.  #### =()<HAVE_ST_BLKSIZE        @<HAVE_ST_BLKSIZE>@>()=
  228.  HAVE_ST_BLKSIZE        DO
  229.  ##  Use waitpid instead of wait3?  Pick DO or DONT.
  230.  #### =()<HAVE_WAITPID        @<HAVE_WAITPID>@>()=
  231. -HAVE_WAITPID        DONT
  232. +HAVE_WAITPID        DO
  233.  ##  Use "union wait" instead of int?  Pick DO or DONT.
  234.  #### =()<USE_UNION_WAIT        @<USE_UNION_WAIT>@>()=
  235. -USE_UNION_WAIT        DO
  236. +USE_UNION_WAIT        DONT
  237.  ##  How to fork?  Pick fork or vfork.
  238.  #### =()<FORK            @<FORK>@>()=
  239. -FORK            vfork
  240. +FORK            fork
  241.  ##  Do you have <vfork.h>?  Pick DO or DONT.
  242.  #### =()<HAVE_VFORK        @<HAVE_VFORK>@>()=
  243. -HAVE_VFORK        DO
  244. +HAVE_VFORK        DONT
  245.  ##  Do you have symbolic links?  Pick DO or DONT.
  246.  #### =()<HAVE_SYMLINK        @<HAVE_SYMLINK>@>()=
  247.  HAVE_SYMLINK        DO
  248.  ##  Do you have Unix-domain sockets?  Pick DO or DONT.
  249.  #### =()<HAVE_UNIX_DOMAIN    @<HAVE_UNIX_DOMAIN>@>()=
  250. -HAVE_UNIX_DOMAIN    DO
  251. +HAVE_UNIX_DOMAIN    DONT
  252.  ##  Does your AF_UNIX bind use sizeof for the socket size?  Pick DO or DONT.
  253.  #### =()<BIND_USE_SIZEOF        @<BIND_USE_SIZEOF>@>()=
  254. -BIND_USE_SIZEOF        DO
  255. +BIND_USE_SIZEOF        DONT
  256.  ##  How should close-on-exec be done?  Pick IOCTL or FCNTL.
  257.  #### =()<CLX_STYLE        @<CLX_STYLE>@>()=
  258. -CLX_STYLE        IOCTL
  259. +CLX_STYLE        FCNTL
  260.  ##  How should non-blocking I/O be done?  Pick IOCTL or FCNTL.
  261.  #### =()<NBIO_STYLE        @<NBIO_STYLE>@>()=
  262. -NBIO_STYLE        FCNTL
  263. +NBIO_STYLE        IOCTL
  264.  ##  How should resource-totalling be done?  Pick RUSAGE or TIMES
  265.  #### =()<RES_STYLE        @<RES_STYLE>@>()=
  266.  RES_STYLE        RUSAGE
  267.  ##  How to get number of available descriptors?
  268.  ##  Pick GETDTAB, GETRLIMIT, SYSCONF, ULIMIT, or CONSTANT.
  269.  ####  =()<FDCOUNT_STYLE        @<FDCOUNT_STYLE>@>()=
  270. -FDCOUNT_STYLE        GETDTAB
  271. +FDCOUNT_STYLE        SYSCONF
  272.  ##  If greater than -1, then use [gs]etrlimit to set that many descriptors.
  273.  ##  If -1, then no [gs]etrlimit calls are done.
  274.  #### =()<NOFILE_LIMIT        @<NOFILE_LIMIT>@>()=
  275. @@ -246,37 +246,37 @@
  276.  NEED_TIME        DONT
  277.  ##  What predicate, if any, the <ctype.h> macros need
  278.  #### =()<CTYPE            @<CTYPE>@>()=
  279. -CTYPE            (isascii((c)) && isXXXXX((c)))
  280. +CTYPE            isXXXXX((c))
  281.  #CTYPE            ((c) > 0 && isXXXXX((c)))
  282.  #CTYPE            isXXXXX((c))
  283.  ##  What's the return type of abort?  Usually int or void.
  284.  #### =()<ABORTVAL        @<ABORTVAL>@>()=
  285. -ABORTVAL        int
  286. +ABORTVAL        void
  287.  ##  What's the return type of alarm?  Usually int or unsigned int.
  288.  #### =()<ALARMVAL        @<ALARMVAL>@>()=
  289. -ALARMVAL        int
  290. +ALARMVAL        unsigned int
  291.  ##  What's the return type of getpid?  Usually int or unsigned int.
  292.  #### =()<GETPIDVAL        @<GETPIDVAL>@>()=
  293. -GETPIDVAL        int
  294. +GETPIDVAL        pid_t
  295.  ##  What's the return type of sleep?  Usually int or unsigned int.
  296.  #### =()<SLEEPVAL        @<SLEEPVAL>@>()=
  297. -SLEEPVAL        int
  298. +SLEEPVAL        unsigned int
  299.  ##  What's the return type of  qsort?  Usually int or void.
  300.  #### =()<QSORTVAL        @<QSORTVAL>@>()=
  301. -QSORTVAL        int
  302. +QSORTVAL        void
  303.  ##  What's the return type of lseek?  Usually long or off_t.
  304.  #### =()<LSEEKVAL        @<LSEEKVAL>@>()=
  305.  LSEEKVAL        long
  306.  ##  What's the return type of free?  Usually int or void.
  307.  #### =()<FREEVAL            @<FREEVAL>@>()=
  308. -FREEVAL            int
  309. +FREEVAL            void
  310.  ##  What's the return type of exit?  Usually int or void.
  311.  ##  (For gcc (not pedantic ANSI) use "volatile void" in EXITVAL and _EXITVAL.)
  312.  #### =()<EXITVAL            @<EXITVAL>@>()=
  313. -EXITVAL            void
  314. +EXITVAL            volatile void
  315.  ##  What's the return type of _exit?  Usually int or void.
  316.  #### =()<_EXITVAL        @<_EXITVAL>@>()=
  317. -_EXITVAL        int
  318. +_EXITVAL        void
  319.  
  320.  
  321.  ##
  322. @@ -291,9 +291,9 @@
  323.  #### =()<MISSING_MAN        @<MISSING_MAN>@>()=
  324.  MISSING_MAN        
  325.  #### =()<MISSING_SRC        @<MISSING_SRC>@>()=
  326. -MISSING_SRC        strerror.c
  327. +MISSING_SRC        
  328.  #### =()<MISSING_OBJ        @<MISSING_OBJ>@>()=
  329. -MISSING_OBJ        strerror.o
  330. +MISSING_OBJ        
  331.  
  332.  
  333.  ##
  334. @@ -309,10 +309,10 @@
  335.  REM_STYLE        INND
  336.  ##  Should rnews save articles that the server rejects?  Pick DO or DONT.
  337.  #### =()<RNEWS_SAVE_BAD        @<RNEWS_SAVE_BAD>@>()=
  338. -RNEWS_SAVE_BAD        DONT
  339. +RNEWS_SAVE_BAD        DO
  340.  ##  Should rnews log articles innd already has?  Pick SYSLOG, FILE, OR DONT.
  341.  #### =()<RNEWS_LOG_DUPS        @<RNEWS_LOG_DUPS>@>()=
  342. -RNEWS_LOG_DUPS        DONT
  343. +RNEWS_LOG_DUPS        FILE
  344.  ##  Look in _PATH_RNEWSPROGS for rnews unpackers?  Pick DO or DONT.
  345.  #### =()<RNEWSPROGS        @<RNEWSPROGS>@>()=
  346.  RNEWSPROGS        DO
  347. @@ -321,11 +321,11 @@
  348.  RNEWSLOCALCONNECT        DO
  349.  ##  Environment variable that has remote hostname for rnews.
  350.  #### =()<_ENV_UUCPHOST        @<_ENV_UUCPHOST>@>()=
  351. -_ENV_UUCPHOST        UU_MACHINE
  352. +_ENV_UUCPHOST        HOST
  353.  ##  Require posts to have under 50% inclusion (">") lines?  Pick DO OR DONT.
  354.  ##  (This is only for inews and nnrpd.)
  355.  #### =()<CHECK_INCLUDED_TEXT        @<CHECK_INCLUDED_TEXT>@>()=
  356. -CHECK_INCLUDED_TEXT        DO
  357. +CHECK_INCLUDED_TEXT        DONT
  358.  ##  Put hosts in the inews Path header?  Pick DO or DONT.
  359.  #### =()<INEWS_PATH        @<INEWS_PATH>@>()=
  360.  INEWS_PATH        DO
  361. @@ -346,7 +346,7 @@
  362.  INND_NICE_KIDS        DONT
  363.  ##  Value for nice(2) call in innd.
  364.  #### =()<INND_NICE_VALUE    @<INND_NICE_VALUE>@>()=
  365. -INND_NICE_VALUE    10
  366. +INND_NICE_VALUE    0
  367.  ##  Null-terminated list of unknown commands to not log to syslog.
  368.  ##    INND_QUIET_BADLIST    "xstream", "xfoo", NULL
  369.  #### =()<INND_QUIET_BADLIST    @<INND_QUIET_BADLIST>@>()=
  370. @@ -359,13 +359,13 @@
  371.  VERIFY_CANCELS        DONT
  372.  ##  Log "ctlinnd cancel" commands to syslog?  Pick DO or DONT.
  373.  #### =()<LOG_CANCEL_COMMANDS    @<LOG_CANCEL_COMMANDS>@>()=
  374. -LOG_CANCEL_COMMANDS    DONT
  375. +LOG_CANCEL_COMMANDS    DO
  376.  ##  File unknown "to.*" groups into the "to" newsgroup?  Pick DO or DONT.
  377.  #### =()<MERGE_TO_GROUPS        @<MERGE_TO_GROUPS>@>()=
  378.  MERGE_TO_GROUPS        DONT
  379.  ##  File articles in unknown newsgroups into junk?  Pick DO or DONT.
  380.  #### =()<WANT_TRASH        @<WANT_TRASH>@>()=
  381. -WANT_TRASH        DONT
  382. +WANT_TRASH        DO
  383.  ##  Record rejected articles in history?  Pick DO or DONT.
  384.  #### =()<REMEMBER_TRASH        @<REMEMBER_TRASH>@>()=
  385.  REMEMBER_TRASH        DONT
  386. @@ -384,7 +384,7 @@
  387.  CTLINND_TIMEOUT        0
  388.  ##  Flush logs if we go this long with no I/O.
  389.  #### =()<DEFAULT_TIMEOUT        @<DEFAULT_TIMEOUT>@>()=
  390. -DEFAULT_TIMEOUT        300
  391. +DEFAULT_TIMEOUT        30
  392.  ##  INND closes channel if inactive this long (seconds).
  393.  #### =()<PEER_TIMEOUT        @<PEER_TIMEOUT>@>()=
  394.  PEER_TIMEOUT        (1 * 60 * 60)
  395. @@ -396,7 +396,7 @@
  396.  ALLOW_READERS        DO
  397.  ##  Refuse newsreader connections if load is higher then this; -1 disables.
  398.  #### =()<NNRP_LOADLIMIT        @<NNRP_LOADLIMIT>@>()=
  399. -NNRP_LOADLIMIT        16
  400. +NNRP_LOADLIMIT        -1
  401.  ##  Don't readdir() spool dir if same group within this many secs.
  402.  #### =()<NNRP_RESCAN_DELAY        @<NNRP_RESCAN_DELAY>@>()=
  403.  NNRP_RESCAN_DELAY        60
  404. @@ -407,7 +407,7 @@
  405.  ##  How many Message-ID retrievals until nnrpd does a dbzincore?  Set
  406.  ##  to -1 to never do incore.
  407.  #### =()<NNRP_DBZINCORE_DELAY        @<NNRP_DBZINCORE_DELAY>@>()=
  408. -NNRP_DBZINCORE_DELAY    40
  409. +NNRP_DBZINCORE_DELAY    20
  410.  ##  Strip Sender from posts that didn't authenticate?  Pick DO or DONT.
  411.  #### =()<NNRP_AUTH_SENDER    @<NNRP_AUTH_SENDER>@>()=
  412.  NNRP_AUTH_SENDER    DONT
  413. @@ -428,7 +428,7 @@
  414.  DEFAULT_CUTOFF        14
  415.  ##  Maximum number of incoming NNTP connections.
  416.  #### =()<DEFAULT_CONNECTIONS    @<DEFAULT_CONNECTIONS>@>()=
  417. -DEFAULT_CONNECTIONS    50
  418. +DEFAULT_CONNECTIONS    16
  419.  ##  Wait this many seconds before channel restarts.
  420.  #### =()<CHANNEL_RETRY_TIME    @<CHANNEL_RETRY_TIME>@>()=
  421.  CHANNEL_RETRY_TIME    (5 * 60)
  422. @@ -446,7 +446,7 @@
  423.  IPADDR_LOG    DONT
  424.  ##  Log NNTP activity after this many articles.
  425.  #### =()<NNTP_ACTIVITY_SYNC    @<NNTP_ACTIVITY_SYNC>@>()=
  426. -NNTP_ACTIVITY_SYNC    200
  427. +NNTP_ACTIVITY_SYNC    50
  428.  ##  Free buffers bigger than this when we're done with them.
  429.  #### =()<BIG_BUFFER        @<BIG_BUFFER>@>()=
  430.  BIG_BUFFER        (2 * START_BUFF_SIZE)
  431. @@ -474,29 +474,29 @@
  432.  ##  7.  PATHS TO COMMON PROGRAMS
  433.  ##  Where the raison d'etre for this distribution lives.
  434.  #### =()<_PATH_INND        @<_PATH_INND>@>()=
  435. -_PATH_INND        /usr/local/etc/innd
  436. +_PATH_INND        /usr/lib/news/etc/innd
  437.  ##  Where the optional front-end that exec's innd lives.
  438.  #### =()<_PATH_INNDSTART        @<_PATH_INNDSTART>@>()=
  439. -_PATH_INNDSTART        /usr/local/etc/inndstart
  440. +_PATH_INNDSTART        /usr/lib/news/etc/inndstart
  441.  ##  Where news boot-up script should be installed.
  442.  #### =()<_PATH_NEWSBOOT        @<_PATH_NEWSBOOT>@>()=
  443. -_PATH_NEWSBOOT        /usr/local/etc/rc.news
  444. +_PATH_NEWSBOOT        /usr/lib/news/etc/rc.news
  445.  ##  Where sendmail, or a look-alike, lives.
  446.  ##  The -t is optional and says to read message for recipients
  447.  #### =()<_PATH_SENDMAIL        @<_PATH_SENDMAIL>@>()=
  448. -_PATH_SENDMAIL        /usr/lib/sendmail -t
  449. +_PATH_SENDMAIL        /usr/sbin/sendmail -t
  450.  ##  Where the shell is.
  451.  #### =()<_PATH_SH        @<_PATH_SH>@>()=
  452.  _PATH_SH        /bin/sh
  453.  ##  Where the compress program lives.
  454.  #### =()<_PATH_COMPRESS        @<_PATH_COMPRESS>@>()=
  455. -_PATH_COMPRESS        /usr/ucb/compress
  456. +_PATH_COMPRESS        /usr/bin/gzip
  457.  ##  What extension your compress appends
  458.  #### =()<_PATH_COMPRESSEXT    @<_PATH_COMPRESSEXT>@>()=
  459. -_PATH_COMPRESSEXT    .Z
  460. +_PATH_COMPRESSEXT    .gz
  461.  ##  Where egrep lives (you might need the FSF one; see scanlogs)
  462.  #### =()<_PATH_EGREP        @<_PATH_EGREP>@>()=
  463. -_PATH_EGREP        /usr/local/bin/egnugrep
  464. +_PATH_EGREP        /usr/bin/egrep
  465.  ##  Where awk lives
  466.  #### =()<_PATH_AWK        @<_PATH_AWK>@>()=
  467.  _PATH_AWK        awk
  468. @@ -505,34 +505,34 @@
  469.  _PATH_SED        sed
  470.  ##  Where inews lives.
  471.  #### =()<_PATH_INEWS        @<_PATH_INEWS>@>()=
  472. -_PATH_INEWS        /usr/local/news/inews
  473. +_PATH_INEWS        /usr/lib/news/inews
  474.  ##  Where rnews lives.
  475.  #### =()<_PATH_RNEWS        @<_PATH_RNEWS>@>()=
  476. -_PATH_RNEWS        /bin/rnews
  477. +_PATH_RNEWS        /usr/lib/news/rnews
  478.  ##  Where the NNRP server lives.
  479.  #### =()<_PATH_NNRPD        @<_PATH_NNRPD>@>()=
  480. -_PATH_NNRPD        /usr/local/etc/in.nnrpd
  481. +_PATH_NNRPD        /usr/lib/news/etc/in.nnrpd
  482.  ##  The path of the process run when an unknown host connects to innd.
  483.  ##  Usually the same as _PATH_NNRPD, but may be, e.g., the path to
  484.  ##  nntpd from the reference implementation.
  485.  #### =()<_PATH_NNTPD        @<_PATH_NNTPD>@>()=
  486. -_PATH_NNTPD        /usr/local/etc/in.nnrpd
  487. +_PATH_NNTPD        /usr/lib/news/etc/in.nnrpd
  488.  ##  Where the NNQR server lives.  Make same as _PATH_NNRPD for now
  489.  #### =()<_PATH_NNQRD        @<_PATH_NNRPD>@>()=
  490. -_PATH_NNQRD        /usr/local/etc/in.nnrpd
  491. +_PATH_NNQRD        /usr/lib/news/etc/in.nnrpd
  492.  ##  Where most other programs live.
  493.  ##  See also _PATH_RNEWSPROGS and _PATH_CONTROLPROGS, below.
  494.  #### =()<_PATH_NEWSBIN        @<_PATH_NEWSBIN>@>()=
  495. -_PATH_NEWSBIN        /usr/local/news/bin
  496. +_PATH_NEWSBIN        /usr/lib/news/bin
  497.  ##  Where temporary files live on the server
  498.  #### =()<_PATH_TMP        @<_PATH_TMP>@>()=
  499.  _PATH_TMP        /tmp
  500.  ##  Command to send mail (with -s "subject" allowed)
  501.  #### =()<_PATH_MAILCMD        @<_PATH_MAILCMD>@>()=
  502. -_PATH_MAILCMD        /usr/ucb/Mail
  503. +_PATH_MAILCMD        /bin/mail
  504.  ##  Where scripts should have shlock create locks.
  505.  #### =()<_PATH_LOCKS        @<_PATH_LOCKS>@>()=
  506. -_PATH_LOCKS        /usr/local/news
  507. +_PATH_LOCKS        /usr/lib/news
  508.  
  509.  
  510.  ##
  511. @@ -567,10 +567,10 @@
  512.  _PATH_RNEWS_DUP_LOG        /dev/null
  513.  ##  Rnews may execute any program in this directory; see RNEWSPROGS.
  514.  #### =()<_PATH_RNEWSPROGS    @<_PATH_RNEWSPROGS>@>()=
  515. -_PATH_RNEWSPROGS    /usr/local/news/bin/rnews
  516. +_PATH_RNEWSPROGS    /usr/lib/news/bin/rnews
  517.  ##  Path to control messages scripts.
  518.  #### =()<_PATH_CONTROLPROGS    @<_PATH_CONTROLPROGS>@>()=
  519. -_PATH_CONTROLPROGS    /usr/local/news/bin/control
  520. +_PATH_CONTROLPROGS    /usr/lib/news/bin/control
  521.  ##  Default "unknown/illegal" control script, within _PATH_CONTROLPROGS.
  522.  #### =()<_PATH_BADCONTROLPROG    @<_PATH_BADCONTROLPROG>@>()=
  523.  _PATH_BADCONTROLPROG    default
  524. @@ -579,33 +579,33 @@
  525.  ##
  526.  ##  10.  SOCKETS CREATED BY INND OR CLIENTS
  527.  #### =()<_PATH_INNDDIR        @<_PATH_INNDDIR>@>()=
  528. -_PATH_INNDDIR        /usr/local/news/innd
  529. +_PATH_INNDDIR        /usr/lib/news/innd
  530.  ##  Unix-domain stream socket that rnews connects to.
  531.  #### =()<_PATH_NNTPCONNECT    @<_PATH_NNTPCONNECT>@>()=
  532. -_PATH_NNTPCONNECT    /usr/local/news/innd/nntpin
  533. +_PATH_NNTPCONNECT    /usr/lib/news/innd/nntpin
  534.  ##  Unix-domain datagram socket that ctlinnd to.
  535.  #### =()<_PATH_NEWSCONTROL    @<_PATH_NEWSCONTROL>@>()=
  536. -_PATH_NEWSCONTROL    /usr/local/news/innd/control
  537. +_PATH_NEWSCONTROL    /usr/lib/news/innd/control
  538.  ##  Temporary socket created by ctlinnd; run through mktemp
  539.  #### =()<_PATH_TEMPSOCK        @<_PATH_TEMPSOCK>@>()=
  540. -_PATH_TEMPSOCK        /usr/local/news/innd/ctlinndXXXXXX
  541. +_PATH_TEMPSOCK        /usr/lib/news/innd/ctlinndXXXXXX
  542.  
  543.  
  544.  ##
  545.  ##  11.  LOG AND CONFIG FILES
  546.  ##  Shell script that sets most of these as shell vars
  547.  #### =()<_PATH_SHELLVARS        @<_PATH_SHELLVARS>@>()=
  548. -_PATH_SHELLVARS        /usr/local/news/innshellvars
  549. +_PATH_SHELLVARS        /usr/lib/news/innshellvars
  550.  ##  Where most config and data files are usually stored; not required
  551.  ##  to the home directory of NEWSUSER.
  552.  #### =()<_PATH_NEWSLIB        @<_PATH_NEWSLIB>@>()=
  553. -_PATH_NEWSLIB        /usr/local/news
  554. +_PATH_NEWSLIB        /usr/lib/news
  555.  ##  The server's log file.
  556.  #### =()<_PATH_LOGFILE        @<_PATH_LOGFILE>@>()=
  557. -_PATH_LOGFILE        /var/log/news/news
  558. +_PATH_LOGFILE        /usr/lib/news/log
  559.  ##  The server's error log file.
  560.  #### =()<_PATH_ERRLOG        @<_PATH_ERRLOG>@>()=
  561. -_PATH_ERRLOG        /var/log/news/errlog
  562. +_PATH_ERRLOG        /usr/lib/news/errlog
  563.  ##  Where most sylog log files go; see also scanlogs, innstat, etc.
  564.  #### =()<_PATH_MOST_LOGS    @<_PATH_MOST_LOGS>@>()=
  565.  _PATH_MOST_LOGS    /var/log/news
  566. @@ -614,28 +614,28 @@
  567.  LOG_CYCLES    7
  568.  ##  Text value of the server's pid.
  569.  #### =()<_PATH_SERVERPID        @<_PATH_SERVERPID>@>()=
  570. -_PATH_SERVERPID        /usr/local/news/innd/innd.pid
  571. +_PATH_SERVERPID        /usr/lib/news/innd/innd.pid
  572.  ##  The newsfeeds file, on the server host.
  573.  #### =()<_PATH_NEWSFEEDS    @<_PATH_NEWSFEEDS>@>()=
  574. -_PATH_NEWSFEEDS    /usr/local/news/newsfeeds
  575. +_PATH_NEWSFEEDS    /usr/lib/news/newsfeeds
  576.  ##  The article history database, on the server host.
  577.  #### =()<_PATH_HISTORY    @<_PATH_HISTORY>@>()=
  578. -_PATH_HISTORY    /usr/local/news/history
  579. +_PATH_HISTORY    /usr/lib/news/history
  580.  ##  File listing the sites that feed us news.
  581.  #### =()<_PATH_INNDHOSTS        @<_PATH_INNDHOSTS>@>()=
  582. -_PATH_INNDHOSTS        /usr/local/news/hosts.nntp
  583. +_PATH_INNDHOSTS        /usr/lib/news/hosts.nntp
  584.  ##  The active file, on the server host.
  585.  #### =()<_PATH_ACTIVE    @<_PATH_ACTIVE>@>()=
  586. -_PATH_ACTIVE    /usr/local/news/active
  587. +_PATH_ACTIVE    /usr/lib/news/active
  588.  ##  A temporary active file, for writing on the server host.
  589.  #### =()<_PATH_NEWACTIVE        @<_PATH_NEWACTIVE>@>()=
  590. -_PATH_NEWACTIVE        /usr/local/news/active.tmp
  591. +_PATH_NEWACTIVE        /usr/lib/news/active.tmp
  592.  ##  An old active file on the server host.
  593.  #### =()<_PATH_OLDACTIVE        @<_PATH_OLDACTIVE>@>()=
  594. -_PATH_OLDACTIVE        /usr/local/news/active.old
  595. +_PATH_OLDACTIVE        /usr/lib/news/active.old
  596.  ##  The log of when groups are created.
  597.  #### =()<_PATH_ACTIVETIMES    @<_PATH_ACTIVETIMES>@>()=
  598. -_PATH_ACTIVETIMES    /usr/local/news/active.times
  599. +_PATH_ACTIVETIMES    /usr/lib/news/active.times
  600.  ##  Where batch files are located.
  601.  #### =()<_PATH_BATCHDIR        @<_PATH_BATCHDIR>@>()=
  602.  _PATH_BATCHDIR        /var/spool/news/out.going
  603. @@ -644,54 +644,54 @@
  604.  _PATH_ARCHIVEDIR    /var/spool/news/news.archive
  605.  ##  Where NNRP distributions file is
  606.  #### =()<_PATH_NNRPDIST        @<_PATH_NNRPDIST>@>()=
  607. -_PATH_NNRPDIST        /usr/local/news/distributions
  608. +_PATH_NNRPDIST        /usr/lib/news/distributions
  609.  ##  Where the default Distribution assignments file is
  610.  #### =()<_PATH_DISTPATS        @<_PATH_DISTPATS>@>()=
  611. -_PATH_DISTPATS        /usr/local/news/distrib.pats
  612. +_PATH_DISTPATS        /usr/lib/news/distrib.pats
  613.  #### =()<_PATH_NEWSGROUPS    @<_PATH_NEWSGROUPS>@>()=
  614. -_PATH_NEWSGROUPS    /usr/local/news/newsgroups
  615. +_PATH_NEWSGROUPS    /usr/lib/news/newsgroups
  616.  ##  File where client configuration parameters can be read.
  617.  #### =()<_PATH_CONFIG    @<_PATH_CONFIG>@>()=
  618. -_PATH_CONFIG    /usr/local/news/inn.conf
  619. +_PATH_CONFIG    /usr/lib/news/inn.conf
  620.  ##  The possible active file, on clients (NFS-mounted, e.g.).
  621.  #### =()<_PATH_CLIENTACTIVE    @<_PATH_CLIENTACTIVE>@>()=
  622. -_PATH_CLIENTACTIVE    /usr/local/news/active
  623. +_PATH_CLIENTACTIVE    /usr/lib/news/active
  624.  ##  A temporary file, for client inews to use.
  625.  #### =()<_PATH_TEMPACTIVE    @<_PATH_TEMPACTIVE>@>()=
  626.  _PATH_TEMPACTIVE    /tmp/activeXXXXXX
  627.  ##  Where to mail to the moderators.
  628.  #### =()<_PATH_MODERATORS    @<_PATH_MODERATORS>@>()=
  629. -_PATH_MODERATORS    /usr/local/news/moderators
  630. +_PATH_MODERATORS    /usr/lib/news/moderators
  631.  ##  Where NNTP puts the name of the server.
  632.  #### =()<_PATH_SERVER    @<_PATH_SERVER>@>()=
  633. -_PATH_SERVER    /usr/local/news/server
  634. +_PATH_SERVER    /usr/lib/news/server
  635.  ##  File with name/password for all remote connections.
  636.  #### =()<_PATH_NNTPPASS        @<_PATH_NNTPPASS>@>()=
  637. -_PATH_NNTPPASS        /usr/local/news/passwd.nntp
  638. +_PATH_NNTPPASS        /usr/lib/news/passwd.nntp
  639.  ##  NNRP access file.
  640.  #### =()<_PATH_NNRPACCESS        @<_PATH_NNRPACCESS>@>()=
  641. -_PATH_NNRPACCESS        /usr/local/news/nnrp.access
  642. +_PATH_NNRPACCESS        /usr/lib/news/nnrp.access
  643.  ##  Default expire control file.
  644.  #### =()<_PATH_EXPIRECTL        @<_PATH_EXPIRECTL>@>()=
  645. -_PATH_EXPIRECTL        /usr/local/news/expire.ctl
  646. +_PATH_EXPIRECTL        /usr/lib/news/expire.ctl
  647.  ##  Prolog to parse control scripts
  648.  #### =()<_PATH_PARSECTL        @<_PATH_PARSECTL>@>()=
  649. -_PATH_PARSECTL        /usr/local/news/parsecontrol
  650. +_PATH_PARSECTL        /usr/lib/news/parsecontrol
  651.  ##  Access control file for control scripts.
  652.  #### =()<_PATH_CONTROLCTL        @<_PATH_CONTROLCTL>@>()=
  653. -_PATH_CONTROLCTL        /usr/local/news/control.ctl
  654. +_PATH_CONTROLCTL        /usr/lib/news/control.ctl
  655.  ##  Innwatch control file.
  656.  #### =()<_PATH_CTLWATCH            @<_PATH_CTLWATCH>@>()=
  657. -_PATH_CTLWATCH            /usr/local/news/innwatch.ctl
  658. +_PATH_CTLWATCH            /usr/lib/news/innwatch.ctl
  659.  ##  Where innwatch writes its own pid.
  660.  #### =()<_PATH_WATCHPID        @<_PATH_WATCHPID>@>()=
  661. -_PATH_WATCHPID        /usr/local/news/innwatch.pid
  662. +_PATH_WATCHPID        /usr/lib/news/innwatch.pid
  663.  ##  Where innwatch writes status when it gets an interrupt
  664.  #### =()<_PATH_INNWSTATUS        @<_PATH_INNWSTATUS>@>()=
  665. -_PATH_INNWSTATUS        /usr/local/news/innwatch.status
  666. +_PATH_INNWSTATUS        /usr/lib/news/innwatch.status
  667.  ##  Format of news overview database
  668.  #### =()<_PATH_SCHEMA        @<_PATH_SCHEMA>@>()=
  669. -_PATH_SCHEMA    /usr/local/news/overview.fmt
  670. +_PATH_SCHEMA    /usr/lib/news/overview.fmt
  671.  
  672.  
  673.  ##
  674. --- include/clibrary.h
  675. +++ include/clibrary.h    1994/05/21 21:57:57
  676. @@ -12,6 +12,8 @@
  677.  #include <vfork.h>
  678.  #endif    /* defined(DO_HAVE_VFORK) */
  679.  
  680. +#include <sys/time.h>
  681. +
  682.      /* Generic pointer, used by memcpy, malloc, etc. */
  683.      /* =()<typedef @<POINTER>@ *POINTER;>()= */
  684.  typedef char *POINTER;
  685. --- include/inndcomm.h
  686. +++ include/inndcomm.h    1994/05/21 21:57:57
  687. @@ -4,6 +4,12 @@
  688.  **  running.
  689.  */
  690.  
  691. +#if !defined(DO_HAVE_UNIX_DOMAIN)
  692. +typedef short ICC_MSGLENTYPE;    /* Length code to prefix commands to
  693. +                ** the server.
  694. +                */
  695. +#endif
  696. +
  697.  #define SC_SEP        '\001'
  698.  #define SC_MAXFIELDS    6
  699.  
  700. --- innd/cc.c
  701. +++ innd/cc.c    1994/05/21 21:57:57
  702. @@ -1314,6 +1314,7 @@
  703.      struct sockaddr_un    client;
  704.  #else
  705.      int            written;
  706. +    ICC_MSGLENTYPE    bufflen;
  707.  #endif    /* defined(DO_HAVE_UNIX_DOMAIN) */
  708.      int            i;
  709.      char        buff[BUFSIZ + 2];
  710. @@ -1329,7 +1330,21 @@
  711.      }
  712.  
  713.      /* Get the message. */
  714. +#if !defined(DO_HAVE_UNIX_DOMAIN)
  715. +    i = RECVorREAD(CCchan->fd, (char *) &bufflen, sizeof(bufflen));
  716. +    if (i != sizeof(bufflen) 
  717. +    || bufflen < 1 || bufflen >= (sizeof buff - 1)) {
  718. +    syslog(L_ERROR, "%s cant recv CCreader length %m", LogName);
  719. +    return;
  720. +    }
  721. +    i = RECVorREAD(CCchan->fd, buff, bufflen);
  722. +    if (i > 0 && i != bufflen) {
  723. +    syslog(L_ERROR, "%s cant recv CCreader data %m", LogName);
  724. +    return;
  725. +    }
  726. +#else
  727.      i = RECVorREAD(CCchan->fd, buff, sizeof buff - 1);
  728. +#endif
  729.      if (i < 0) {
  730.      syslog(L_ERROR, "%s cant recv CCreader %m", LogName);
  731.      return;
  732. --- lib/inndcomm.c
  733. +++ lib/inndcomm.c    1994/05/21 21:57:57
  734. @@ -169,7 +169,18 @@
  735.  
  736.  /*
  737.  **  Send an arbitrary command to the server.
  738. +**  Note that for those systems without Unix Domain Sockets,
  739. +**  the command format is different. There is a two byte
  740. +**  length code on the front of the message. This is a
  741. +**  direct mapped integer. Note that sending and receiving
  742. +**  architectures *must* be the same as we are on the same
  743. +**  machine.
  744.  */
  745. +#if defined(DO_HAVE_UNIX_DOMAIN)
  746. +#define BUFF_OFFSET 0
  747. +#else
  748. +#define BUFF_OFFSET sizeof(ICC_MSGLENTYPE)
  749. +#endif
  750.  int
  751.  ICCcommand(cmd, argv, replyp)
  752.      char        cmd;
  753. @@ -203,7 +214,7 @@
  754.      bufsiz += 1 + strlen(p);
  755.      if (bufsiz < MIN_BUFFER_SIZE)
  756.      bufsiz = MIN_BUFFER_SIZE;
  757. -    buff = malloc((unsigned int)bufsiz);
  758. +    buff = malloc((unsigned int)bufsiz + BUFF_OFFSET);
  759.      if (buff == NULL) {
  760.      ICCfailure = "malloc";
  761.      return -1;
  762. @@ -211,6 +222,8 @@
  763.      if (replyp)
  764.      *replyp = NULL;
  765.  
  766. +    buff += BUFF_OFFSET;    /* Advance to leave space for length */
  767. +
  768.      /* Format the message. */
  769.      (void)sprintf(buff, "%s%c%c", ICCsockname, SC_SEP, cmd);
  770.      for (p = buff + strlen(buff), i = 0; (q = argv[i]) != NULL; i++) {
  771. @@ -221,6 +234,10 @@
  772.      /* Send message. */
  773.      ICCfailure = NULL;
  774.      len = p - buff;
  775. +
  776. +    buff -= BUFF_OFFSET;    /* Not strictly required - could be inside
  777. +                 * #else clause below */
  778. +
  779.  #if    defined(DO_HAVE_UNIX_DOMAIN)
  780.      if (sendto(ICCfd, buff, len, 0,
  781.          (struct sockaddr *)&ICCserv, AF_UNIX_SOCKSIZE(ICCserv)) < 0) {
  782. @@ -234,6 +251,8 @@
  783.      ICCfailure = "open";
  784.      return -1;
  785.      }
  786. +    *(ICC_MSGLENTYPE *) buff = len;
  787. +    len += BUFF_OFFSET;
  788.      if (write(fd, buff, len) != len) {
  789.      i = errno;
  790.      DISPOSE(buff);
  791. --- makedirs.sh
  792. +++ makedirs.sh    1994/05/21 21:57:57
  793. @@ -64,7 +64,7 @@
  794.  ${MAN1} ${MAN3} ${MAN5} ${MAN8} \
  795.  ${SPOOL} ${ARCHIVEDIR} ${BATCHDIR} ${MOST_LOGS} ${MOST_LOGS}/OLD \
  796.  ${SPOOLNEWS} ${BADNEWS} ${SPOOLTEMP} \
  797. -${NEWSLIB} ${INNDDIR} \
  798. +${NEWSLIB} /usr/lib/news/etc ${INNDDIR} \
  799.  ${NEWSBIN} ${CONTROLPROGS} ${RNEWSPROGS} ; do
  800.  
  801.      if [ ! -d ${F} ] ; then
  802. --- samples/control.ctl
  803. +++ samples/control.ctl    1994/05/21 21:57:57
  804. @@ -30,72 +30,16 @@
  805.  sendme:*:*:drop
  806.  
  807.  ##    NEWGROUP MESSAGES
  808. -##  Any newsgroups
  809. -newgroup:*:*:log=newgroup
  810. -newgroup:tale@*.uu.net:comp.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*:doit=newgroup
  811. -newgroup:fair@apple.com:comp.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*|ddn.*:mail
  812. -##  Australia newsgroups
  813. -newgroup:kre@*mu*au:aus.*|melb.*:mail
  814. -##  BITNET newsgroups
  815. -newgroup:jim@*american.edu:bit.*:mail
  816. -##  BIONET newsgroups
  817. -newgroup:shibumi@*.bio.net:bionet.*:mail
  818. -newgroup:kristoff@genbank.bio.net:bionet.*:mail
  819. -##  CLARINET newsgroups
  820. -newgroup:brad@clarinet.com:clari.*:mail
  821. -newgroup:grant@clarinet.com:clari.*:mail
  822. -##  GNU newsgroups
  823. -newgroup:usenet@*ohio-state.edu:gnu.*:mail
  824. -newgroup:tower@prep.ai.mit.edu:gnu.*:mail
  825. -newgroup:news@ai.mit.edu:gnu.*:mail
  826. -newgroup:karl.kleinpaste@osc.edu:gnu.*:mail
  827. -##  K12 newsgroups
  828. -newgroup:nerd@percival.rain.com:k12.*:mail
  829. -##  IEEE newsgroups
  830. -newgroup:burt@ieee.org:ieee.*:mail
  831. -##  VMSNET newsgroups
  832. -newgroup:tp@mccall.com:vmsnet.*:mail
  833. -##  ALT newsgroups
  834. -newgroup:*:alt.*:log=newgroup
  835. +newgroup:*:*:doit=mail
  836.  
  837.  ##    RMGROUP MESSAGES
  838. -##  Any newsgroups
  839.  rmgroup:*:*:mail
  840. -rmgroup:tale@*.uu.net:comp.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*:doit=rmgroup
  841. -rmgroup:kre@*mu*au:comp.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*:mail
  842. -rmgroup:fair@apple.com:comp.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*|ddn.*:mail
  843. -##  Australia newsgroups
  844. -rmgroup:kre@*mu*au:aus.*|melb.*:mail
  845. -##  BITNET newsgroups
  846. -rmgroup:jim@*american.edu:bit.*:mail
  847. -##  BIONET newsgroups
  848. -rmgroup:shibumi@*.bio.net:bionet.*:mail
  849. -rmgroup:kristoff@genbank.bio.net:bionet.*:mail
  850. -##  CLARINET newsgroups
  851. -rmgroup:brad@clarinet.com:clari.*:mail
  852. -rmgroup:grant@clarinet.com:clari.*:mail
  853. -##  GNU newsgroups
  854. -rmgroup:usenet@*ohio-state.edu:gnu.*:mail
  855. -rmgroup:tower@prep.ai.mit.edu:gnu.*:mail
  856. -rmgroup:news@ai.mit.edu:gnu.*:mail
  857. -rmgroup:karl.kleinpaste@osc.edu:gnu.*:mail
  858. -##  K12 newsgroups
  859. -rmgroup:nerd@percival.rain.com:k12.*:mail
  860. -##  IEEE newsgroups
  861. -rmgroup:burt@ieee.org:ieee.*:mail
  862. -##  VMSNET newsgroups
  863. -rmgroup:tp@mccall.com:vmsnet.*:mail
  864. -##  ALT newsgroups
  865. -rmgroup:*:alt.*:log=rmgroup
  866.  
  867.  ##    SENDSYS
  868. -sendsys:*@uunet.uu.net:*:doit=miscctl
  869.  sendsys:*:*:doifarg
  870.  
  871.  ##    SENDUUNAME
  872. -senduuname:*@uunet.uu.net:*:doit=miscctl
  873. -senduuname:*:*:mail
  874. +senduuname:*:*:doit=mail
  875.  
  876.  ##    VERSION
  877. -version:*@uunet.uu.net:*:doit=miscctl
  878. -version:*:*:mail
  879. +version:*:*:doit=mail
  880. --- samples/expire.ctl
  881. +++ samples/expire.ctl    1994/05/21 21:57:57
  882. @@ -21,9 +21,16 @@
  883.  ##  make this 28, 30, etc.
  884.  /remember/:14
  885.  
  886. -##  Keep for 1-10 days, allow Expires headers to work.
  887. -*:A:1:10:never
  888. +## keep for 1-20 days, allow Expires headers to work
  889. +*:A:1:20:20
  890. +
  891. +## junk stays 4 days
  892. +junk:A:1:4:4
  893. +
  894. +## comp.os.linux.* and gnu.* stay a little bit longer
  895. +comp.os.linux*,gnu.*:A:1:30:30
  896. +comp.os.linux.announce:A:1:40:40
  897. +
  898. +## allow Expires headers to work in news.answers
  899. +news.answers:M:1:90:90
  900.  
  901. -##  Some particular groups stay forever.
  902. -dc.dining*:A:never:never:never
  903. -uunet*:A:never:never:never
  904. --- samples/hosts.nntp
  905. +++ samples/hosts.nntp    1994/05/21 21:57:57
  906. @@ -5,4 +5,4 @@
  907.  ##    <host>:<password>
  908.  ##  <host> can be a name or IP address; no wildcards.  Any hosts not
  909.  ##  listed here are handed off to nnrpd.
  910. -news.foo.com:
  911. +localhost:
  912. --- samples/inn.conf
  913. +++ samples/inn.conf    1994/05/21 21:57:57
  914. @@ -15,5 +15,5 @@
  915.  ##    server        If $NNTPSERVER doesn't exist.  Local NNTP server
  916.  ##            host to connect to.
  917.  ##
  918. -organization:    A poorly-installed InterNetNews site
  919. -server:        news
  920. +organization:    A poorly-installed Linux box
  921. +server:        localhost
  922. --- samples/innwatch.ctl
  923. +++ samples/innwatch.ctl    1994/05/21 21:57:57
  924. @@ -35,4 +35,4 @@
  925.  ##  =()<!!! df @<_PATH_NEWSLIB>@ | awk 'NR == 2 { print $4 }' ! lt ! @<INNWATCH_LIBSPACE>@ ! throttle ! No space (newslib)>()=
  926.  !!! df /news/lib | awk 'NR == 2 { print $4 }' ! lt ! 3000 ! throttle ! No space (newslib)
  927.  ##  =()<!!! df -i . | awk 'NR == 2 { print $3 }' ! lt ! @<INNWATCH_SPOOLNODES>@ ! throttle ! No space (spool inodes)>()=
  928. -!!! df -i . | awk 'NR == 2 { print $3 }' ! lt ! 200 ! throttle ! No space (spool inodes)
  929. +!!! df -i . | awk 'NR == 2 { print $4 }' ! lt ! 200 ! throttle ! No space (spool inodes)
  930. --- samples/newsfeeds
  931. +++ samples/newsfeeds    1994/05/21 21:57:57
  932. @@ -34,37 +34,37 @@
  933.  ##
  934.  ##  This file is complicated -- see newsfeeds.5!
  935.  
  936. -##  This is the local site.
  937. +##  This is a special entry.
  938.  ##  The "pattern" field gives the intial subscription list for
  939. -##  all other sites.  You might want to put "!control,!junk,!<local>.*"
  940. -##  there.  The "distrib" subfield limits incoming articles.
  941. +##  all other sites.  The distrib subfield limits incoming articles.
  942.  ME\
  943. -    :*,!foo.*/world,usa,na,gnu,bionet,pubnet,u3b,eunet,vmsnet,inet,ddn,\
  944. -    k12\
  945. +    :*,!junk,!control,!foo\
  946.      ::
  947.  
  948.  # Feed all moderated source postings to an archiver
  949. -source-archive\
  950. -    :!*,comp.sources.*\
  951. -    :Tp,Nm:/news/bin/archive %s
  952. +#source-archive\
  953. +#    :!*,comp.sources.*\
  954. +#    :Tp,Nm:/news/bin/archive %s
  955.  
  956. -# Feed all local non-internal postings to nearnet; sent off-line via
  957. -# nntpsend or send-nntp.
  958. -nic.near.net\
  959. -    :!junk/!foo\
  960. -    :Tf,Wnm:nic.near.net
  961. +# UUCP example, articles are batched from cron by "send-uucp".
  962. +# The first line specifies the news-server: the first entry should be the fqdn
  963. +# for nntp feeds and the uucp hostname for uucp feeds. Further entries should
  964. +# contain the fqdn and the path your news server puts into news headers.
  965. +# The second line contains what should be given to the server: everything, but
  966. +# not 'junk' and not 'foo' and also not all articles that have as distribution
  967. +# 'local'.
  968. +# The third entry contains some flags: Uucp sites may add "B4096/1024"
  969. +#moko/moko.saar.de,linux.saar.de\
  970. +#       :/!local\
  971. +#       :Tf,Wfb,B4096/1024:
  972.  
  973. -# A real-time nntplink feed
  974. -uunet\
  975. -    :/!foo\
  976. -    :Tc,Wnm:/news/bin/nntplink -i stdin news.uu.net
  977. +# non-uucp example (nntpsend)
  978. +# sbusol.rz.uni-sb.de\
  979. +#    :/!local\
  980. +#    :Tf,Wnm:feed1.domain.name.edu
  981.  
  982. -# Capture all Foo, Incorporated, postings
  983. -capture\
  984. -    :*/foo\
  985. -    :Tp,H2:/usr/lib/news/capture %s
  986. +# Overview data base.
  987. +@overview\
  988. +    :*\
  989. +    :Tc,WO:/usr/lib/news/bin/overchan
  990.  
  991. -# A UUCP feed, where we try to keep the "batching" between 4 and 1K.
  992. -ihnp4\
  993. -    :!junk,!control/!foo\
  994. -    :Tf,Wfb,B4096/1024:
  995. --- samples/nnrp.access
  996. +++ samples/nnrp.access    1994/05/21 21:57:57
  997. @@ -14,5 +14,4 @@
  998.  ##
  999.  ## Default is no access, no way to authentication, and no groups.
  1000.  *:: -no- : -no- :!*
  1001. -##  Foo, Incorporated, hosts have no password, can read anything.
  1002. -*.foo.com:Read Post:::*
  1003. +localhost:RP:::*
  1004. --- samples/overview.fmt
  1005. +++ samples/overview.fmt    1994/05/21 21:57:57
  1006. @@ -13,4 +13,4 @@
  1007.  Bytes:
  1008.  Lines:
  1009.  ##  Some newsreaders get better performance if Xref is present
  1010. -#Xref:full
  1011. +Xref:full
  1012. --- samples/send-uucp
  1013. +++ samples/send-uucp    1994/05/21 21:57:58
  1014. @@ -10,6 +10,7 @@
  1015.  LOG=${MOST_LOGS}/${PROGNAME}.log
  1016.  
  1017.  MAXJOBS=200
  1018. +#UUXFLAGS="- -r -z -gd"
  1019.  UUXFLAGS="- -r -gd"
  1020.  
  1021.  ##  Start logging.
  1022. --- lib/Makefile.orig    Fri Jan 13 23:38:01 1995
  1023. +++ lib/Makefile    Fri Jan 13 23:38:18 1995
  1024. @@ -11,11 +11,11 @@
  1025.  ##  =()<DEFS    = @<DEFS>@>()=
  1026.  DEFS    = -I../include
  1027.  ##  =()<CFLAGS    = @<CFLAGS>@>()=
  1028. -CFLAGS    = $(DEFS) -g
  1029. +CFLAGS    = $(DEFS) -O2
  1030.  ##  =()<DBZCFLAGS    = @<DBZCFLAGS>@>()=
  1031.  DBZCFLAGS    = $(CFLAGS) -DMMAP
  1032.  ##  =()<LDFLAGS    = @<LDFLAGS>@>()=
  1033. -LDFLAGS    = -g
  1034. +LDFLAGS    = -s
  1035.  ##  =()<LINTLIBSTYLE    = @<LINTLIBSTYLE>@>()=
  1036.  LINTLIBSTYLE    = BSD
  1037.  ##  =()<LINTFLAGS    = @<LINTFLAGS>@>()=
  1038. --- frontends/Makefile.orig    Fri Jan 13 23:39:33 1995
  1039. +++ frontends/Makefile    Fri Jan 13 23:39:45 1995
  1040. @@ -9,9 +9,9 @@
  1041.  ##  =()<DEFS    = @<DEFS>@>()=
  1042.  DEFS    = -I../include
  1043.  ##  =()<CFLAGS    = @<CFLAGS>@>()=
  1044. -CFLAGS    = $(DEFS) -g
  1045. +CFLAGS    = $(DEFS) -O2
  1046.  ##  =()<LDFLAGS    = @<LDFLAGS>@>()=
  1047. -LDFLAGS    = -g
  1048. +LDFLAGS    = -s
  1049.  ##  =()<LINTFLAGS    = @<LINTFLAGS>@>()=
  1050.  LINTFLAGS    = -b -h -z $(DEFS)
  1051.  ##  =()<LINTFILTER    = @<LINTFILTER>@>()=
  1052.