[comp.sys.next] Notes system

carlson@mrcnext.cso.uiuc.edu (10/18/89)

This note provides a recipe for installing UIUC Notes 1.7
on a NeXT system.  The only changes are:
	1. Change the directories where binaries & man pages are stored.
	2. Change the default editor and notesfiles.
	3. Fix a "bug" where a program writes to a string "constant"

The source code may be obtained from uxc.cso.uiuc.edu via
anonymous FTP.
To install: 
	0. Get the patch program, if you don't have it.
	1. Obtain notes 1.7 source from uxc.cso.uiuc.edu
	2. put this patch file in notes/mrcnext.patch
	3. cd to the notes directory
	4. say "patch -p6 < mrcnext.patch"
	5. Read the documentation!
	5a. You will need these two lines in the /etc/passwd file:
		anon:*:-2:-2:anon:/:
		notes::12:6:Notes:/usr/spool/notes/.utilities:/bin/csh
		(Be sure to give notes a password.)
	5b. Set up your notesfiles.  I suggest at least
		"news" (system news) and "policy".
	6. You may want to use an alternate transport agent to
		get Usenet newsgroups; I can provide a patch for
		NNTP 1.5 to interface with notes.1.7 on a NeXT.

Steps 1-5a should take about 20 minutes max.

Tell me how it works out.
	Brad Carlson carlson@mrcnext.cso.uiuc.edu
====================


diff -cr /usr/local/src/notes/notes.1.7/man/Makefile /usr/local/src/notes/notes.mrcnext/man/Makefile
*** /usr/local/src/notes/notes.1.7/man/Makefile	Fri Oct 13 15:23:47 1989
--- /usr/local/src/notes/notes.mrcnext/man/Makefile	Mon Oct 16 09:48:00 1989
***************
*** 10,17 ****
  DISTDIR= p:/usr/src/uiuc/notesfiles
  DCP=	rcp
  
! SEC1	=  notes.1 nfpipe.1 checknotes.1 nfstats.1 nfprint.1 \
! 	   autoseq.1 readnotes.1
  SEC3	=  nfabort.3 nfcomment.3
  SEC8	=  mknf.8 rmnf.8 nfxmit.8 nfrcv.8 newsinput.8 newsoutput.8 \
  	   nfaccess.8 nfarchive.8 nfmail.8 nftimestamp.8 \
--- 10,17 ----
  DISTDIR= p:/usr/src/uiuc/notesfiles
  DCP=	rcp
  
! SEC1	=  notes.l nfpipe.l checknotes.l nfstats.l nfprint.l \
! 	   autoseq.l readnotes.l
  SEC3	=  nfabort.3 nfcomment.3
  SEC8	=  mknf.8 rmnf.8 nfxmit.8 nfrcv.8 newsinput.8 newsoutput.8 \
  	   nfaccess.8 nfarchive.8 nfmail.8 nftimestamp.8 \
***************
*** 19,25 ****
  FILES	= $(SEC1) $(SEC3) $(SEC8)
  OTHERS	= Makefile getdate.3 rscript
  MAN	= /usr/man
! TROFF=	rditroff3
  
  all:
  
--- 19,25 ----
  FILES	= $(SEC1) $(SEC3) $(SEC8)
  OTHERS	= Makefile getdate.3 rscript
  MAN	= /usr/man
! TROFF=	psroff
  
  all:
  
***************
*** 33,47 ****
  	touch install
  
  isec1:	$(SEC1)
! 	cp $? $(MAN)/man1/.
  	touch isec1
  
  isec3:	$(SEC3)
! 	cp $? $(MAN)/man3/.
  	touch isec3
  
  isec8:	$(SEC8)
! 	cp $? $(MAN)/man8/.
  	touch isec8
  
  ar:	$(FILES)
--- 33,47 ----
  	touch install
  
  isec1:	$(SEC1)
! 	cp $? $(MAN)/manl/.
  	touch isec1
  
  isec3:	$(SEC3)
! 	cp $? $(MAN)/manl/.
  	touch isec3
  
  isec8:	$(SEC8)
! 	cp $? $(MAN)/manl/.
  	touch isec8
  
  ar:	$(FILES)
diff -cr /usr/local/src/notes/notes.1.7/src/Makefile /usr/local/src/notes/notes.mrcnext/src/Makefile
*** /usr/local/src/notes/notes.1.7/src/Makefile	Fri Oct 13 15:23:51 1989
--- /usr/local/src/notes/notes.mrcnext/src/Makefile	Mon Oct 16 09:32:01 1989
***************
*** 1,6 ****
  #	Makefile for University of Illinois Notesfiles
  #
! # $Header: /usr/local/src/usenet/notes/src/RCS/Makefile,v 1.11 89/09/07 17:23:01 paul Exp $
  #
  #	Ray Essick
  #	214 DCL
--- 1,6 ----
  #	Makefile for University of Illinois Notesfiles
  #
! # $Header: /usr/local/src/usenet/notes/src/RCS/Makefile,v 1.10 88/11/30 11:02:46 paul Exp $
  #
  #	Ray Essick
  #	214 DCL
***************
*** 10,32 ****
  #	217-333-7937
  #
  
  BIN = /usr/local/bin
  MSTDIR = /usr/spool/notes
  ARCHDIR = /usr/spool/oldnotes
! NET = /usr/bin
  AUTOSEQ = autoseq
  NOTES = notes
! NOTESUID = 24
! NOTESGRP = notes
  ANON = anon
! ANONUID = 4
  LIBDIR = /usr/local/lib
  CC = cc
  CFLAGS = -DMSTDIR=\"$(MSTDIR)\" -DARCHDIR=\"$(ARCHDIR)\" \
  	-DNOTES=\"$(NOTES)\" -DNOTESUID=$(NOTESUID) -DNOTESGRP=\"$(NOTESGRP)\" \
  	-DANON=\"$(ANON)\" -DANONUID=$(ANONUID) \
! 	-DBIN=\"$(BIN)\" -DRCSIDENT -O
! LFLAGS = -n
  #	-n is shared, read-only text segment
  TERMCAP = -ltermcap
  # Evidently on System V (and other USG systems?) the termcap routines
--- 10,36 ----
  #	217-333-7937
  #
  
+ # set up for Gnu gdb
+ GDB=
  BIN = /usr/local/bin
  MSTDIR = /usr/spool/notes
  ARCHDIR = /usr/spool/oldnotes
! # NET = /usr/bin
! NET = $(BIN)
  AUTOSEQ = autoseq
  NOTES = notes
! NOTESUID = 12
! NOTESGRP = news
  ANON = anon
! ANONUID = -2
  LIBDIR = /usr/local/lib
  CC = cc
  CFLAGS = -DMSTDIR=\"$(MSTDIR)\" -DARCHDIR=\"$(ARCHDIR)\" \
  	-DNOTES=\"$(NOTES)\" -DNOTESUID=$(NOTESUID) -DNOTESGRP=\"$(NOTESGRP)\" \
  	-DANON=\"$(ANON)\" -DANONUID=$(ANONUID) \
! 	-DBIN=\"$(BIN)\" -DRCSIDENT -O $(GDB)
! LFLAGS =
! #LFLAGS = -n
  #	-n is shared, read-only text segment
  TERMCAP = -ltermcap
  # Evidently on System V (and other USG systems?) the termcap routines
***************
*** 293,302 ****
  	install -s -c -o $(NOTES) -g $(NOTESGRP) -m 2755 \
  		checknotes $(BIN)/checknotes
  $(NET)/nfxmit:	nfxmit
! 	install -s -c -o $(NOTES) -g $(NOTESGRP) -m 6755 \
  		nfxmit $(NET)/nfxmit
  $(NET)/nfrcv:	nfrcv
! 	install -s -c -o $(NOTES) -g $(NOTESGRP) -m 6755 \
  		nfrcv $(NET)/nfrcv
  $(UTILITY)/newsinput:	newsinput
  	install -s -c -o $(NOTES) -g $(NOTESGRP) -m 6755 \
--- 297,306 ----
  	install -s -c -o $(NOTES) -g $(NOTESGRP) -m 2755 \
  		checknotes $(BIN)/checknotes
  $(NET)/nfxmit:	nfxmit
! 	install -s -c -o $(NOTES) -g $(NOTESGRP) -m 6750 \
  		nfxmit $(NET)/nfxmit
  $(NET)/nfrcv:	nfrcv
! 	install -s -c -o $(NOTES) -g $(NOTESGRP) -m 6750 \
  		nfrcv $(NET)/nfrcv
  $(UTILITY)/newsinput:	newsinput
  	install -s -c -o $(NOTES) -g $(NOTESGRP) -m 6755 \
diff -cr /usr/local/src/notes/notes.1.7/src/checknotes.c /usr/local/src/notes/notes.mrcnext/src/checknotes.c
*** /usr/local/src/notes/notes.1.7/src/checknotes.c	Fri Oct 13 15:24:17 1989
--- /usr/local/src/notes/notes.mrcnext/src/checknotes.c	Mon Oct 16 10:30:40 1989
***************
*** 104,115 ****
  char  **argv;
  {
      char   *p;
      int     i;
  
      startup (argc, argv);				/* common initialization */
  
      if ((p = getenv ("NFSEQ")) == NULL)
! 	p = DFLTSEQ;					/* use default */
  
      expand (p);						/* put it in */
  
--- 104,116 ----
  char  **argv;
  {
      char   *p;
+ 	char dfltseq[] = DFLTSEQ;	/* can't write to const */
      int     i;
  
      startup (argc, argv);				/* common initialization */
  
      if ((p = getenv ("NFSEQ")) == NULL)
! 	p = dfltseq;					/* use default */
  
      expand (p);						/* put it in */
  
diff -cr /usr/local/src/notes/notes.1.7/src/parms.h /usr/local/src/notes/notes.mrcnext/src/parms.h
*** /usr/local/src/notes/notes.1.7/src/parms.h	Fri Oct 13 15:24:13 1989
--- /usr/local/src/notes/notes.mrcnext/src/parms.h	Mon Oct 16 09:26:41 1989
***************
*** 12,20 ****
  #define		WORKSETSIZE	5			/* working set size */
  
  #define		DFLTSH "/bin/sh"			/* default shell */
! #define		DFLTED "/bin/ed"			/* default editor */
  #define		SEQFILE "Dflt-Seq"			/* file in MSTDIR */
! #define		DFLTSEQ "general,news.announce.newusers"	/* unspecified NFSEQ */
  
  /*
   *	These define defaults for various Unix functions that can
--- 12,20 ----
  #define		WORKSETSIZE	5			/* working set size */
  
  #define		DFLTSH "/bin/sh"			/* default shell */
! #define		DFLTED "/usr/ucb/vi"			/* default editor */
  #define		SEQFILE "Dflt-Seq"			/* file in MSTDIR */
! #define		DFLTSEQ "news,policy"	/* unspecified NFSEQ */
  
  /*
   *	These define defaults for various Unix functions that can