🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #570

Config files for running nn on SCO XENIX 286

#570
From: Michael Brady
Date: Wed, 13 Jun 1990 02:12
623 lines
19767 bytes
Here is a shar file of config.h and conf/s-xenix286.h.  I've been using
them on my system now for 2 weeks, so I feel pretty comfortable with
offering to the nn community.


#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  config.h conf/s-xenix286.h
# Wrapped by michael@jewell on Tue Jun 12 22:07:16 1990
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'config.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'config.h'\"
else
echo shar: Extracting \"'config.h'\" \(11501 characters\)
sed "s/^X//" >'config.h' <<'END_OF_FILE'
X/**************************** NN CONFIGURATION ***************************
X *
X *	Configuration file for nn.
X *
X *	You must edit this file to reflect your local configuration
X *	and environment.
X *
X *	Before editing this file, read the licence terms in the README
X *	file and the installation guidelines in the INSTALLATION file.
X *
X *	(c) Copyright 1990, Kim F. Storm.  All rights reserved.
X */
X
X#define	RELEASE 	"6.4"
X
X#include <stdio.h>
X#include <ctype.h>
X
X
X/*********************** NETWORK DEPENDENT DEFINITIONS **********************
X *
X *	Define NETWORK_DATABASE if you share the database through NFS on
X *	a network with different, non-compatible machines, e.g. SUNs and
X *	VAXen, or SUN-3 and SUN-4, or if you are using different compilers
X *	on the same architecture.
X *
X *	In a homogenous network, you can leave it undefined for higher
X *	performance (no data conversion is needed).
X */
X
X/* #define NETWORK_DATABASE	/* */
X
X
X/********************************** NNTP *********************************
X *
X * 	Define NNTP to enable nntp support.  If you are not using NNTP,
X *	just leave the following NNTP_* definitions as they are - they
X *	will be ignored anyway.
X *
X *	With NNTP, the nnmaster still maintains a local database of
X *	all article headers for fast access (and because NNTP does not
X *	support nn - yet), while the articles are fetched from the
X *	nntp server when they are read or saved.
X *
X *	You may still share this database through NFS locally (see the
X *	description of NETWORK_DATABASE above) if you don't want to
X *	have separate nn databases on all your local systems.
X *
X *	Consult the file NNTP for further information on the use of NNTP.
X */
X
X/* #define NNTP			/* */
X
X/*
X *	Define NNTP_SERVER to the name of a file containing the name of the
X *	nntp server.
X *
X *	It is vital that both the nnmaster and all nn users on a machine
X *	uses the same nntp server, because the nn database is synchronized
X *	with a specific news active file.
X *
X *	If the file name does not start with a slash, it is relative to
X *	LIB_DIRECTORY defined below.
X *	NOTE: If you plan to use the included inews, it MUST be a full pathname
X */
X
X#undef NNTP_SERVER	"/usr/lib/nntp_server"
X
X/*
X *	Define NNTP_POST if you want nn to reject attempts to post via
X *	NNTP to a server, that disallows postings.
X *
X *	You should define this, if you use the NNTP based mini-inews for
X *	postings from NNTP clients.  If you use another mechanism, that
X *	does not involve NNTP, you should leave it undefined.
X */
X
X#undef NNTP_POST             /* */
X
X/*
X *	NNTP's mini-inews seems to require that messages contain a complete
X *	header with Message-ID, Path, and Date fields which the normal inews
X *	generates itself.  If your mini-inews requires these headers to
X *	be present, define NNTP_MINI_INEWS_HEADER below.
X */
X
X#define NNTP_MINI_INEWS_HEADER	/* uses "broken" mini-inews */
X
X
X/***************** OPERATING SYSTEM DEPENDENT DEFINITIONS *******************
X *
X *  	Include the appropriate s- file for your system below.
X *
X *	If a file does not exist for your system, you can use
X *	conf/s-template.h as a starting point for writing you own.
X */
X
X#include "s-xenix286.h"
X
X/*
X *	Define DEFAULT_PAGER as the initial value of the 'pager' variable.
X *	nnadmin pipes shell command output though this command.
X */
X
X#define DEFAULT_PAGER		"pg -n -s"	/* system V */
X/* #define DEFAULT_PAGER	"more"			/* bsd */
X
X/*
X *	DEFAULT_PRINTER is the initial value of the 'printer' variable.
X *	nn's :print command pipes text into this command.
X */
X
X#define DEFAULT_PRINTER		"lp -s"		/* System V */
X/* #define DEFAULT_PRINTER	"lpr -p -JNEWS"	/* bsd */
X
X/*
X * 	Define RESIZING to make nn understand dynamic window-resizing.
X * 	(It uses the TIOCGWINSZ ioctl found on most 4.3BSD systems)
X */
X
X/* #define RESIZING		/* */
X
X
X/********************** MACHINE DEPENDENT DEFINITIONS **********************
X *
X *	Include the appropriate m- file for your system below.
X *
X *	If a file does not exist for your system, you can use
X *	conf/m-template.h as a starting point for writing you own.
X */
X
X#include "m-i80286.h"
X
X
X/***************************** OWNERSHIP ***************************
X *
X *	Specify owner and group for installed files and programs.
X *
X *	The nnmaster will run suid/sgid to this owner and group.
X *
X *	The only requirements are that the ownership allows the
X *	nnmaster to READ the news related files and directories, and
X *	the ordinary users to read the database and execute the nn*
X *	programs.
X *
X *	Common choices are:  (news, news)  and   (your uid, your gid)
X */
X
X#define OWNER	"news"
X#define	GROUP	"news"
X
X
X/**************************** LOCALIZATION ****************************
X *
X *	Specify where programs and files are installed.
X *
X *	BIN_DIRECTORY    - the location of the user programs (mandatory)
X *
X *	LIB_DIRECTORY	 - the location of auxiliary programs and files.
X *			   (mandatory UNLESS ALL of the following are defined).
X *
X *	MASTER_DIRECTORY - the location of the master program (on server)
X *			   (= LIB_DIRECTORY if undefined)
X *
X *	CLIENT_DIRECTORY - the location of auxiliary programs (on clients)
X *			   (= LIB_DIRECTORY if undefined)
X *
X *	HELP_DIRECTORY   - the location of help files, online manual, etc.
X *			   (= CLIENT_DIRECTORY/help if undefined)
X *
X *	CACHE_DIRECTORY	 - if NNTP is used, nn uses this central directory
X *			   to store working copies of articles on the local
X *			   system.  If not defined, it stores the articles
X *			   in each user's ~/.nn directory.
X *
X *	TMP_DIRECTORY    - temporary file storage.  Overriden by $TMPDIR.
X *			   (= /usr/tmp if undefined).
X *
X *	LOG_FILE         - the location of nn's log file.
X *			   (= LIB_DIRECTORY/Log if undefined).
X */
X
X#define BIN_DIRECTORY	"/usr/local/bin"
X#define LIB_DIRECTORY	"/usr/local/lib/nn"
X
X
X/**************************** DATABASE LOCATION **************************
X *
X *	Specify where the nn database should be installed.
X *
X *	If none of the following symbols are defined, the database will
X *	be contained in the NEWS_DIRECTORY in a separate .nn directory for
X *	master files and in files named .nnx and .nnd in each group's
X *	spool directory.  To use this scheme, the OWNER specified above
X *	must have write permission on the news spool directories.
X *
X *	You should also be careful not to specify a database directory
X *	if you access news via NNTP - you may not have the proper directories
X *	on your local system.  However, it is probably ok anyway if nnmaster
X *	runs on the nntp server.
X *
X *	To change the default behaviour, you can define the following
X *	symbols:
X *
X *	DB_DIRECTORY	   - the directory containing the master files.
X *
X *	DB_DATA_DIRECTORY  - the directory containing the per-group files
X *			     (default is DB_DIRECTORY/DATA if undefined).
X *
X *	DB_LONG_NAMES	   - use group's name rather than number when
X *			     building file names in DB_DATA_DIRECTORY.
X *	     (The file system must support long file names!!)
X */
X
X#define DB_DIRECTORY	"/usr/spool/nn"
X
X
X/*************************** NEWS TRANSPORT **************************
X *
X *	Specify the location of your news programs and files
X *	You only need to specify these if you are not
X *	satisfied with the default settings.
X *
X *	NEWS_DIRECTORY	 	- The news spool directory.
X *				  Default: /usr/spool/news
X *
X *	NEWS_LIB_DIRECTORY	- The news lib directory.
X *				  Default: /usr/lib/news
X *
X *	INEWS_PATH		- The location of the inews program.
X *				  Default: NEWS_LIB_DIR/inews
X */
X
X#define NEWS_DIRECTORY		"/usr/spool/news"	/* */
X#define NEWS_LIB_DIRECTORY	"/usr/lib/news"		/* */
X
X#define INEWS_PATH		"/usr/local/bin/inews"	/* */
X
X
X/*************************** MAIL INTERFACE *************************
X *
X *	Specify a mailer that accepts a letter WITH a header IN THE TEXT.
X *
X * 	A program named 'recmail' program is normally delivered with
X *	the Bnews system, or you can use sendmail -t if you have it.
X *
X *	The contrib/ directory contains two programs which you might
X *	be able to use with a little tweaking.
X */
X
X#define REC_MAIL	"/usr/local/bin/recmail"	/* non-sendmail */
X/* #define REC_MAIL	"/usr/lib/sendmail -t"	/* sendmail */
X
X
X/*
X *	Define HAVE_ROUTING if your mailer understands domain based
X *	adresses (...@...) and performs the necessary rerouting (e.g.
X *	Sendmail or Smail).
X *
X *	Otherwise, nn will provide a simple routing facility using
X *      routing information specified in the file LIB_DIRECTORY/routes.
X */
X
X#define HAVE_ROUTING			/* */
X
X/*
X *	If HAVE_ROUTING is NOT defined, nn needs to know the name of
X * 	your host.  To obtain the host name it will use either of the
X *	'uname' or 'gethostname' system calls as specified in the s-
X *	file included above.
X *
X *	If neither 'uname' nor 'gethostname' is available, you must
X *	define HOSTNAME to be the name of your host.  Otherwise, leave
X *	it undefined (it will not be used anyway).
X */
X
X/* #define HOSTNAME	"myhost"	/* Not used if HAVE_ROUTING */
X
X/*
X *	Define APPEND_SIGNATURE if you want nn to ask users to append
X *	~/.signature to mail messages (reply/forward/mail).
X *
X *	If the mailer defined in REC_MAIL automatically includes .signature
X *	you should not define this (it will fool people to include it twice).
X *
X *	I think 'recmail' includes .signature, but 'sendmail -t' doesn't.
X */
X
X#define APPEND_SIGNATURE		/* */
X
X/*
X *	BUG_REPORT_ADDRESS is the initial value of the bug-report-address
X *	variable which is used by the :bug command to report bugs in
X *	the nn software.
X */
X
X#define BUG_REPORT_ADDRESS	"nn-bugs@dkuug.dk"
X
X
X/*************************** DOCUMENTATION ***************************
X *
X * 	Specify directories for the user and system manuals
X *
X * 	Adapt this to your local standards; the manuals will be named
X * 		$(MAN_DIR)/program.$(MAN_SECTION)
X *
X *	USER_MAN	- nn, nntidy, nngrep, etc.
X *	SYS_MAN		- nnadmin
X *	DAEMON_MAN	- nnmaster
X */
X
X#define USER_MAN_DIR 	"/usr/man/man1"
X#define USER_MAN_SECTION 	"1"
X
X#define SYS_MAN_DIR 	"/usr/man/man1"
X#define SYS_MAN_SECTION 	"1m"
X
X#define DAEMON_MAN_DIR 	"/usr/man/man8"
X#define DAEMON_MAN_SECTION 	"8"
X
X
X/************************** LOCAL POLICY *****************************
X *
X *	Define STATISTICS if you want to keep a record of how much
X *	time the users spend on news reading.
X *
X *	Sessions shorter than the specified number of minutes are not
X *	recorded (don't clutter up the log file).
X *
X *	Usage statistics is entered into the $LOG_FILE with code U
X */
X
X#define STATISTICS	5 /* minutes */
X
X/*
X *	Define ACCOUNTING if you want to keep accumulated accounting
X *	based on the statistics in a separate 'acct' file.  In this
X *	case, the accounting figures will be secret, and not be
X *	written to the Log file.  And the users will not be able to
X *	"decrease" their own account.
X *
X *	See account.c for optional cost calculation parameters.
X */
X
X#define ACCOUNTING		/* */
X
X/*
X *	Define AUTHORIZE if you want to restrict the use of nn to
X *	certain users or certain periods of the day.  Define both
X *	this and ACCOUNTING if you want to impose a usage quota
X *
X *	See account.c for implementing various access policies.
X */
X
X/* #define AUTHORIZE	/* */
X
X/*
X *	Default folder directory
X */
X
X#define FOLDER_DIRECTORY	"~/News"
X
X/*
X *	Max length of authors name (in "edited" format).
X *	Also size of "Name" field on the article menus.
X *	You may want to increase this if your terminals are wider than
X *	80 columns.
X */
X
X#define NAME_LENGTH 		16
X
X
X/************************ CONFIGURATION COMPLETED ************************/
X
X#include "global.h"
END_OF_FILE
if test 11501 -ne `wc -c <'config.h'`; then
    echo shar: \"'config.h'\" unpacked with wrong size!
fi
# end of 'config.h'
fi
if test -f 'conf/s-xenix286.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'conf/s-xenix286.h'\"
else
echo shar: Extracting \"'conf/s-xenix286.h'\" \(4690 characters\)
sed "s/^X//" >'conf/s-xenix286.h' <<'END_OF_FILE'
X/*
X *	Use this file as a template for new s- files
X */
X
X
X/*
X *	Include header files containing the following definitions:
X *
X * 		off_t, time_t, struct stat
X */
X
X#include <sys/types.h>
X#include <sys/stat.h>
X
X
X/*
X *	Define if your system has system V like ioctls
X */
X
X#define	HAVE_TERMIO			/* */
X
X/*
X *	Define to use terminfo database.
X *	Otherwise, termcap is used
X */
X
X#undef	USE_TERMINFO			/* */
X
X/*
X *	Specify the library (or libraries) containing the termcap/terminfo
X *	routines.
X *
X *	Notice:  nn only uses the low-level terminal access routines
X *	(i.e. it does not use curses).
X */
X
X#define TERMLIB	-ltermlib
X
X/*
X *	Define HAVE_STRCHR if strchr() and strrchr() are available
X */
X
X#define HAVE_STRCHR			/* */
X
X/*
X *	Availability of varargs/vprintf/vsprintf is normally assumed
X *	on most systems, *unless* NO_VARARGS is defined either here or
X *	in the m- file.
X *
X *	To overrule a NO_VARARGS in the m- file, define HAVE_VARARGS
X *	below if the varargs feature is available, *including* the
X *	vprintf/vsprintf routines.
X *
X *	You may also define NO_VARARGS here, if varargs or the v*printf
X *	are not available on this OS, but the m- file doesn't say so.
X */
X
X/* #define HAVE_VARARGS /* Ignore NO_VARARGS -- else default */
X/* #define NO_VARARGS /* */
X
X/*
X *	Define if a signal handler has type void (see signal.h)
X */
X
X#undef	SIGNAL_HANDLERS_ARE_VOID	/* */
X
X/*
X *	Define if signals must be set again after they are caught
X */
X
X#define	RESET_SIGNAL_WHEN_CAUGHT	/* */
X
X/*
X *	Define MICRO_ALARM to timeout in 0.1 seconds if possible
X */
X
X#define MICRO_ALARM()	alarm(1)	/* System V */
X/*#define MICRO_ALARM()	ualarm(100000,0)	/* BSD 4.3 */
X
X/*
X *	Define if your system has BSD like job control (SIGTSTP works)
X */
X
X/* #define HAVE_JOBCONTROL			/* */
X
X
X/*
X *	Define if your system has a 4.3BSD like syslog library.
X */
X
X#undef HAVE_SYSLOG
X
X/*
X *	Define if your system provides the "directory(3X)" access routines
X *
X *	If true, include the header file(s) required by the package below
X *	(remember that <sys/types.h> or equivalent is included above)
X *	Also typedef Direntry to the proper struct type.
X */
X
X#define	HAVE_DIRECTORY			/* */
X
X/* #include <dirent.h>			/* System V */
X#include <sys/ndir.h>				/* BSD */
X
X/* typedef struct dirent Direntry;		/* System V */
Xtypedef struct direct Direntry;		/* BSD */
X
X/*
X *	Define if your system has a mkdir() library routine
X */
X
X#undef	HAVE_MKDIR			/* */
X
X
X/*
X *	Pick one:
X *	Define HAVE_GETHOSTNAME if you have a BSD like gethostname routine.
X *	Define HAVE_UNAME if a system V compatible uname() is available.
X *	Define HOSTNAME_FILE "...." to a file containing the hostname.
X *	Define HOSTNAME_WHOAMI if sysname is defined in <whoami.h>.
X *
X *	As a final resort, define HOSTNAME to the name of your system
X *	(in config.h).
X */
X
X/* #define HAVE_GETHOSTNAME			/* BSD systems */
X#define HAVE_UNAME				/* System V */
X/* #define HOSTNAME_FILE "/etc/uucpname"	/* or another file */
X/* #define HOSTNAME_WHOAMI			/* in <whoami.h> */
X
X/*
X *	Define HAVE_MULTIGROUP if system has simultaneous multiple group
X *	membership capability (BSD style).
X *	Also define NGROUPS or include the proper .h file if NGROUPS is
X *	not defined in <sys/param.h>.
X *	Also define GIDSET_TYPE to the type of the elements in the array
X *	initialized by getgroups() if different from "int" (many systems
X *	have a gid_t, but very few use it for getgroups()).
X */
X
X/* #define HAVE_MULTIGROUP	/* BSD */
X
X/*
X *	Define DETATCH_TERMINAL to be a command sequence which
X *	will detatch a process from the control terminal
X *	Also include system files needed to perform this HERE.
X *	If not possible, just define it (empty)
X */
X
X/* #include "...." */
X
X#define	DETATCH_TERMINAL setpgrp();
X
X
X/*
X *	Specify where the Bourne Shell is.
X */
X
X#define SHELL		"/bin/sh"
X
X/*
X *	Define OLD_AWK to the name of the "old awk" program if your
X *	standard 'awk' is 'nawk' (new awk).  Use full path if necessary.
X *	(This is a temporary hack until I get time to fix the scripts
X *	which breaks nawk).
X */
X
X/* #define OLD_AWK	"oawk"		/* */
X
X/*
X *	Define AVOID_SHELL_EXEC if the system gets confused by
X *		#!/bin/sh
X *	lines in shell scripts, e.g. only reads #! and thinks it
X *	is a csh script.
X */
X
X/* #define AVOID_SHELL_EXEC		/* */
X
X/*
X *	Specify the default mailer to be invoked by nnmail
X */
X
X#define	MAILX		"/usr/bin/smail"	/* SV */
X/* #define	MAILX	"/usr/ucb/Mail"		/* BSD */
X
X/*
X *	Define the maximum length of any pathname that may occur
X */
X
X#define	FILENAME 	256
X
X
X/*
X *	Define standard compiler flags here:
X */
X
X#define COMPILER_FLAGS -LARGE -Ox -Ml2t32 -F 8000 -SEG 1000
X
X/*
X *	If your system requires other libraries when linking nn
X *	specify them here:
X */
X
X#define EXTRA_LIB -lx
END_OF_FILE
if test 4690 -ne `wc -c <'conf/s-xenix286.h'`; then
    echo shar: \"'conf/s-xenix286.h'\" unpacked with wrong size!
fi
# end of 'conf/s-xenix286.h'
fi
echo shar: End of shell archive.
exit 0
-- 
Michael K. Brady, 400-P Park Ridge Lane, Winston-Salem, NC  27104
Home (919) 768-7822  Work (919) 744-5694
michael@jewell.UUCP   Alternate address: mbrady@rbdc.UUCP
Technical Details
Message-ID: <1990Jun13.021218.12576@jewell.uucp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!seismo!ukma!tut.cis.ohio-state.edu!rutgers!cs.utexas.edu!swrinde!emory!kd4nc!rbdc!jewell!michael

Show Full Headers
Complete Article Headers
Message-ID: <1990Jun13.021218.12576@jewell.uucp>
Subject: Config files for running nn on SCO XENIX 286
Date: Wed, 13 Jun 1990 02:12:18 +0000
From: michael@jewell.uucp (Michael Brady)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!seismo!ukma!tut.cis.ohio-state.edu!rutgers!cs.utexas.edu!swrinde!emory!kd4nc!rbdc!jewell!michael
Newsgroups: news.software.nn
Summary: How to do it
Keywords: nn sco xenix 286
Organization: Jewell Interiors, Inc. Winston-Salem, NC
Lines: 623
Posted: Wed Jun 13 03:12:18 1990