[comp.mail.mh] mh running on Interactive 386/ix

kjd@icxn.UUCP (Kevin J. Dunlap) (04/08/91)

I have been trying to get MH to work on Interative 386/ix.
Could somone who has been able to get MH to run under this
flavor of System V R3 send me there configuration file
and any useful pointer.

Here is what I have been using and it doesn't built a working version
of MH.

# @(#)$Id: MH,v 1.7 90/04/06 09:44:31 sources Exp $
# a 386/ix system V running SendMail
bin	/usr/public/bin
bboards	on
curses -lcurses -ltermcap
etc	/usr/public/lib/mh
mail	mailbox
manuals	gen
mts	sendmail
ranlib off
options	SYS5 SYS5DIR TYPESIG=void

Thanks,

-Kevin

-- 
------------------------------------------------------------------------
Kevin J. Dunlap                                      kjd@icxn.icxn.com
InterConnections, Inc.                               uunet!icxn!kjd
15711 NE 29th Place, Bellevue, WA  98007             206/881-5773

jos@bull.nl (04/12/91)

> I have been trying to get MH to work on Interative 386/ix.
> Could somone who has been able to get MH to run under this
> flavor of System V R3 send me there configuration file
> and any useful pointer.

This is an example SVr3.2 configuration file for MH 6.7.1:

#
#   conf/MH configuration file for MH-6.7 to be used on:
#	AT&T Unix System V.3.2 with BSD4.3-compatible sockets
#
#   the items are listed in the order they appear in mh-gen(8)
#

bin		/usr/local/bin
debug		off
etc		/usr/local/lib/mh
mail		/usr/mail
mailgroup	mail
mandir		/usr/man
manuals		gen
chown		/bin/chown
editor		prompter
remove		/bin/mv -f
# if no TCP/IP sendmail is available: change mts entry to sendmail
mts		sendmail/smtp
bboards		off
bbdelivery	off
bbhome		/usr/spool/bboards
mf		off
pop		off
# options	SEE BELOW
cc		cc
ccoptions	-O
curses		-lcurses
ldoptions	-s
ldoptlibs
lex		lex
sprintf		int
sharedlib	off
slibdir		/usr/local/lib
oldload		off
ranlib		off
tma		off

#
#   complete list of possible macros for use with 'options':
#	ALTOS ATHENA ATZ BANG BERK BIND BSD41A BSD42 BSD43 COMPAT
#	DBM DPOP DUMB FOLDPROT='"0711"' ISI LINK='"@"' locname
#	MHE MHRC MORE='"/usr/ucb/more"' MSGPROT='"0644"' NDIR NFS
#	NOIOCTLH NOMHSEQ NTOHLSWAP OVERHEAD POPSERVICE='"pop"'
#	RPATHS RPOP SBACKUP='","' SENDMAILBUG SHADOW SOCKETS
#	SUN40 SYS5 SYS5DIR TTYD TYPESIG='int' TZNAME UCI UK V7 WP
#	WHATNOW ZONEINFO
#

# define BIND only of the BSD4.3 named (TCP/IP) is used
# define SOCKETS only if the system has BSD4.3 sockets (TCP/IP)
options		ATZ BIND DUMB MHE MHRC MORE='"/usr/bin/pg"'
options		OVERHEAD SHADOW SOCKETS SYS5 SYS5DIR
options		TYPESIG='void' TZNAME WHATNOW

#
#   end of conf/MH configuration file
#

I have also few small patches that you might need:

#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create:
#	B-01.dirent
#	B-02.sys5dir
#	B-03.makefile
#	B-04.mailgrp
#	B-05.config
# This archive created: Fri Apr 12 16:33:04 1991
# By:	Jos Vos ()
export PATH; PATH=/bin:/usr/bin:$PATH
if test -f 'B-01.dirent'
then
	echo shar: "will not over-write existing file 'B-01.dirent'"
else
cat << \SHAR_EOF > 'B-01.dirent'
#
#	Include <dirent.h> when SYS5DIR is defined.
#	Although on some System 5 systems <dir.h> still seems
#	to be present, the official include file is <dirent.h>
#	(see for example the X/Open Portability Guide 3 and
#	the official AT&T System V.3.x manuals).
#

*** h/local.h-	Thu Mar 14 16:10:06 1991
--- h/local.h	Thu Mar 14 16:11:48 1991
***************
*** 8,14 ****
--- 8,18 ----
  
  #ifndef	BSD42
  #ifndef NDIR
+ #ifndef	SYS5DIR
  #include <dir.h>
+ #else	SYS5DIR
+ #include <dirent.h>
+ #endif	SYS5DIR
  #else	NDIR
  #include <ndir.h>
  #endif  NDIR
SHAR_EOF
fi
if test -f 'B-02.sys5dir'
then
	echo shar: "will not over-write existing file 'B-02.sys5dir'"
else
cat << \SHAR_EOF > 'B-02.sys5dir'
#
#	Adapt list of include files and declarations for SYS5DIR:
#	Let the 3 BSD42/hpux files also be included when
#	SYS5DIR is defined, and move the #include's for SYS5DIR
#	so that they will be included before those 3 files.
#	

*** sbr/makedir.c-	Thu Mar 14 16:12:31 1991
--- sbr/makedir.c	Thu Mar 14 16:53:31 1991
***************
*** 11,26 ****
  #include "../h/mh.h"
  #include <stdio.h>
  
- #if defined (BSD42)  || defined (hpux)
- #include <errno.h>
- #include <sys/param.h>
- #include <sys/file.h>
- #endif BDS42
  #ifdef	SYS5DIR
  #include <sys/types.h>
  #include <sys/stat.h>
  #endif	SYS5DIR
  
  extern int  errno;
  	
  makedir (dir)
--- 11,27 ----
  #include "../h/mh.h"
  #include <stdio.h>
  
  #ifdef	SYS5DIR
  #include <sys/types.h>
  #include <sys/stat.h>
  #endif	SYS5DIR
  
+ #if defined (BSD42) || defined (hpux) || defined (SYS5DIR)
+ #include <errno.h>
+ #include <sys/param.h>
+ #include <sys/file.h>
+ #endif BDS42 or hpux or SYS5DIR
+ 
  extern int  errno;
  	
  makedir (dir)
***************
*** 28,37 ****
  {
      int     pid;
      register char  *cp;
! #if defined (BSD42)  || defined (hpux)
      register char  *c;
      char path[MAXPATHLEN];
! #endif BSD42
  
      m_update ();
      (void) fflush (stdout);
--- 29,38 ----
  {
      int     pid;
      register char  *cp;
! #if defined (BSD42) || defined (hpux) || defined (SYS5DIR)
      register char  *c;
      char path[MAXPATHLEN];
! #endif BSD42 or hpux or SYS5DIR
  
      m_update ();
      (void) fflush (stdout);
SHAR_EOF
fi
if test -f 'B-03.makefile'
then
	echo shar: "will not over-write existing file 'B-03.makefile'"
else
cat << \SHAR_EOF > 'B-03.makefile'
#
#	Remove $(REMOVE) statements which will certainly fail
#	and break the then-part.
#	Is this error never detected because everybody has
#	installed MH 6.7 on systems where MH already was installed?
#

*** conf/makefiles/support/bboards-	Fri Mar 15 10:18:37 1991
--- conf/makefiles/support/bboards	Fri Mar 15 10:27:47 1991
***************
*** 92,98 ****
  
  $(BBDIR)/BBoards: BBoards
  		-@if [ ! -f $@ ]; then \
- 		    $(REMOVE) $@ zBBoards; \
  		    cp BBoards $@; \
  		else \
  		    echo "Will not overwrite existing $@"; \
--- 92,97 ----
*** conf/makefiles/support/general-	Fri Mar 15 10:19:38 1991
--- conf/makefiles/support/general	Fri Mar 15 10:27:41 1991
***************
*** 61,67 ****
  
  $(ETCDIR)/MailAliases:	MailAliases
  		-@if [ ! -f $@ ]; then \
- 		    $(REMOVE) $@ zMailAliases; \
  		    cp MailAliases $@; \
  		else \
  		    echo "Will not overwrite existing $@"; \
--- 61,66 ----
***************
*** 215,221 ****
  
  $(ETCDIR)/BBoardAliases:	BBoardAliases
  		-@if [ ! -f $@ ]; then \
- 		    $(REMOVE) $@ zBBoardAliases; \
  		    cp BBoardAliases $@; \
  		else \
  		    echo "Will not overwrite existing $@"; \
--- 214,219 ----
*** conf/makefiles/zotnet/mts-	Fri Mar 15 10:17:31 1991
--- conf/makefiles/zotnet/mts	Fri Mar 15 10:18:03 1991
***************
*** 88,94 ****
  
  $(ETCDIR)/mtstailor:	mtstailor
  		-if [ ! -f $@ ]; then \
- 		    $(REMOVE) $@ zmtstailor; \
  		    cp mtstailor $@; \
  		else \
  		    echo "Will not overwrite existing $@"; \
--- 88,93 ----
SHAR_EOF
fi
if test -f 'B-04.mailgrp'
then
	echo shar: "will not over-write existing file 'B-04.mailgrp'"
else
cat << \SHAR_EOF > 'B-04.mailgrp'
#
#	Let slocal also be setgid mail (just as inc).
#

*** conf/makefiles/uip-	Thu Mar 21 13:03:01 1991
--- conf/makefiles/uip	Thu Mar 21 13:05:45 1991
***************
*** 993,998 ****
--- 993,1002 ----
  		-$(REMOVE) $@ zslocal
  		cp xslocal $@
  		-chmod $(PGMPROT) $@
+ @BEGIN: MAILGROUP
+ 		-@chgrp @(MAILGROUP) $@
+ 		-@chmod g+s $@
+ @END: MAILGROUP
  		-@ls -l $@
  		-@echo ""
  
SHAR_EOF
fi
if test -f 'B-05.config'
then
	echo shar: "will not over-write existing file 'B-05.config'"
else
cat << \SHAR_EOF > 'B-05.config'
#
#	Implement "manuals: none" as is described in mh-gen(8).
#

*** conf/mhconfig.c-	Fri Mar 22 10:47:16 1991
--- conf/mhconfig.c	Fri Mar 22 11:10:36 1991
***************
*** 305,311 ****
  		    : strcmp (manuals, "old") == 0 ? 'o'
  		    : 'l');
  	}
!     if (strcmp (manuals, "gen") == 0)
  	fprintf (fp, "s%%@(MHMANGEN)%%%s%%g\n", "#"); /* comment char */
      else
  	fprintf (fp, "s%%@(MHMANGEN)%%%s%%g\n", "");
--- 305,311 ----
  		    : strcmp (manuals, "old") == 0 ? 'o'
  		    : 'l');
  	}
!     if (strcmp (manuals, "gen") == 0 || strcmp (manuals, "none") == 0)
  	fprintf (fp, "s%%@(MHMANGEN)%%%s%%g\n", "#"); /* comment char */
      else
  	fprintf (fp, "s%%@(MHMANGEN)%%%s%%g\n", "");
SHAR_EOF
fi
exit 0
#	End of shell archive

-- 
--    Jos Vos <jos@bull.nl>    (UUCP: ...!{uunet,mcsun,hp4nl}!nlbull!jos)
--    Bull Nederland NV, Product Support Unix, Amsterdam, The Netherlands