ftp.nice.ch/pub/next/unix/network/news/nn.6.4.16.s.tar.gz#/nn/inews

Makefile
 
Manifest
 
README
 
README.NN
 
clientlib.c
[View clientlib.c] 
clientlib.h
[View clientlib.h] 
conf.h
[View conf.h] 
inews.c
[View inews.c] 
nntp.h
[View nntp.h] 
version.c
[View version.c] 

README

     This is a "pseudo" inews which allows remote posting using
the NNTP server.  Essentially it takes a bunch of arguments and ignores
ones starting with "-", expecting to find at least one which is
a file name.  If no files are specified, it uses standard input
as the input file.

     It then opens a connection to the NNTP server on the remote
machine and blasts the article across.  It then closes the connection.
If it doesn't find a From: or Path: line, it inserts them, in the
default format

	From: login@hostname.DOMAIN (Full_name)
	Path: hostname!login

where DOMAIN is a #define in ./conf.h, and should be changed to reflect
your system.  A good choice is "UUCP" if you are not a member of the
Internet.  "Full_name" understands the & hack in password files. If
"HIDDENNET" is defined in ./conf.h, DOMAIN is used as the complete host
name, and the format used is

	From: login@DOMAIN (Full_name)
	Path: login

     "hostname" is figured out by what you've #defined in ../config.h.
If you have defined GHNAME, it uses the gethostname() call.
If you've defined UUNAME, it figured it out from the file
/etc/uucpname.  Finally, if neither is defined it gets it from
/usr/include/whoami.h.  If you have GHNAME defined and your
gethostname() returns your fully-qualified Internet name,
undefine DOMAIN.

     The point here is that the thing looks like inews to any program
which would care to post something (e.g., Pnews, postnews, what have
you).  The difference is that the article will look like it was posted
on the remote end, not on the local end.  Please note that "postnews"
(nor any of the other standard news programs) is not required for
rrn/nntp on client machines.

     The "test*" files in this directory provide some good test
material for inews; you can just redirect inews to take input from
them or whatever.

     Thanks to Steven Grady <grady@postgres.berkeley.edu> for
writing this, and for wasting a lot of his valuable time dealing
with the can-o'-worms that is the real inews.

BUGS:

     This version of inews doesn't handle real inews options.  As
a result, some posting programs (notably the Gnumacs front end) will
fail if they use this program.  In the interests of simplicity, I
have no plans for modifying mini-inews to handle real-inews options.
However, if you'd like to send me diffs I'll be more than happy to
install them for the next release.

README.NN

From: Steve Simmons <scs%itivax@relay.EU.net>
To: storm@texas.dk (Kim F. Storm)
Date: Thu, 21 Dec 89 18:02:03 EDT
Subject: Inews Kit For NN

What Is This:

This is a mini-inews, suitable for building client-only versions of NN
that use NNTP for remote reading.  Some unknown (to me) person patched
it to be driven on NNs config.h file.  I have taken those changes, reversed
most of them and upgraded to NNTP release version 1.5.7.  This inews was
a co-operative venture when Stan released it, and it's kind of fitting
that it continues to be worked on by many hands.

If you have a full installation of news where you're installing NN,
you could care less about this.

Copyrights:

See individual files for authors.  I wrote conf.h and the
Makefile, and explicitly put them in the public domain.  Other parts
may have other copyrights, see the individual files.

Maintenance:

My less-than-humble opinion is that as Stan releases nntp patches, you will
be able to apply them to this code with no changes whatsoever.  As Stan
releases patches I will attempt to apply them and upgrade this source,
but no guarantees.

Why A Separate Release From NNTP:

NN and NNTP both use configuration files to let you fit the software
for your system.  Unfortunately, they used rather different methods.
This release specificly reconciles NNs 'config.h' and NNTPs '../common/conf.h'
by creating a local "conf.h" which maps 'config.h' to what NNTP inews needs.
Result -- once you build the config.h for NN you're 98% done with NNTP inews.

INSTALLATION:

Ideally you went to your nn source directory and created a subdir
named inews.  Then you unpacked this in that directory (I have already
done that, ++Kim).

All you should need to do is read conf.h, make any changes you feel
like, and then type 'make'.  If things work, type 'make install'.  For
more data on the inews itself, read the file README.  It's slightly
edited from the NNTP version to reflect its separation from the rest
of NNTP.

For more data on the inews itself, read the file README.  It's
slightly edited from the NNTP version to reflect its separation from
the rest of NNTP.

Steve Simmons
scs@lokkur.dexter.mi.us
December 21, 1989


--- Changes by Kim Storm, storm@texas.dk

I have edited what Steve sent me a bit further to simplify the
configuration and installation even more: It now uses nn's code to get
the hostname, so this is now got for free, and it gets the location of
the inews program from config.h as well.

Makefile:
	Added -I../conf to CFLAGS
	nn's hostname.o is used instead of uname.o to get the hostname.
	Installation uses nn's inst script (which will use the possible
	definition of INEWS or NEWS_LIB_DIRECTORY in config.h).

conf.h:
	#defines to set the proper hostname removed.
	#include "../config.h" line moved to start of file.
	Documents optional #define USG to get bcopy function.

clientlib.c, inews.c
	Added tweaks using a FOR_NN #define to include/exclude
	code to co-exist with nn's config.h file.

uname.c:
	Not used (so it is omitted from this distribution).

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.