*BSD News Article 7301


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!destroyer!cs.ubc.ca!unixg.ubc.ca!sitka.triumf.ca!felawka
From: felawka@sitka.triumf.ca (Larry Felawka)
Newsgroups: comp.unix.bsd
Subject: Port of rn 4.4.pl3 to 386BSD
Date: 2 Nov 1992 16:31:22 GMT
Organization: TRIUMF, Vancouver BC
Lines: 233
Distribution: world
Message-ID: <1d3l4qINNmqd@iskut.ucs.ubc.ca>
NNTP-Posting-Host: sitka.triumf.ca
Keywords: Port rn 386BSD

Fellow 386BSD enthusiasts,

I am enclosing patches to rn 4.4.pl3 (a USENET News reader running as an NNTP
client) for 386BSD.  As a prerequisite the nntp package (version 1.5 or
greater) must be installed.  The patches and sources are available in directory
"/pub/incoming" of node "agate.berkeley.edu" in the files

	rn-4.4.pl3.patch.386BSD
	rn-4.4.pl3.tar.Z

The usual caveats, disclaimers and disavowals of responsibilty apply.  Enjoy!


					Larry Felawka


*** Configure.orig	Tue Mar  3 05:08:43 1992
--- Configure	Sat Oct 31 15:23:19 1992
***************
*** 427,433 ****
  EOT
  echo 'Maybe "cc -E" will work...'
  cc -E testcpp.c >testcpp.out 2>&1
! if $contains 'abc+xyz' testcpp.out >/dev/null 2>&1 ; then
      echo "Yup, it does."
      cpp='cc -E'
  else
--- 427,433 ----
  EOT
  echo 'Maybe "cc -E" will work...'
  cc -E testcpp.c >testcpp.out 2>&1
! if $contains 'abc.*+xyz' testcpp.out >/dev/null 2>&1 ; then
      echo "Yup, it does."
      cpp='cc -E'
  else
***************
*** 502,507 ****
--- 502,523 ----
  if ultrix; then
      echo "Running ultrix, eh?"
  fi
+ : check for 386bsd
+ cat <<'EOT' >386bsd.c
+ #ifdef __386BSD__
+ exit 0
+ #else
+ exit 1
+ #endif
+ EOT
+ $cpp 386bsd.c | grep exit >386bsd
+ chmod +x 386bsd
+ $eunicefix 386bsd
+ rm 386bsd.c
+ if 386bsd; then
+     echo "Running 386BSD, eh?"
+     addcflags='-traditional'
+ fi
  
  : check for uts
  cat <<'EOT' >uts.c
***************
*** 955,961 ****
      else
  	name=\`$expr x\$1 : '..\([^/]*\)'\`
  	if $test "$ypmatch" != ""; then
!  		dir=\`$ypmatch \$name passwd 2>/dev/null | $sed "s/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\).*"'\$'"/\1/"'\`
  	elif $test "$nidump" != ""; then
  	    dir=\`$nidump passwd / | $sed -n -e "/^\${name}:/{s/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\).*"'\$'"/\1/" -e p -e q -e '}'\`
  	fi
--- 971,977 ----
      else
  	name=\`$expr x\$1 : '..\([^/]*\)'\`
  	if $test "$ypmatch" != ""; then
!  		dir=\`$ypmatch \$name passwd 2>/dev/null | $sed "s/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\).*"'\$'"/\1/"\`
  	elif $test "$nidump" != ""; then
  	    dir=\`$nidump passwd / | $sed -n -e "/^\${name}:/{s/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\).*"'\$'"/\1/" -e p -e q -e '}'\`
  	fi
***************
*** 1124,1131 ****
  : get organization name
  longshots='/usr/src/new /usr/src/local /usr/local/src'
  case "$orgname" in
! '') if xxx=`loc news/src/defs.h x $longshots`; then
! 	dflt=`$sed -n 's/^.*MYORG[ 	]*"\(.*\)".*$/\1/p' $xxx`
      else
  	dflt='no default'
      fi
--- 1140,1147 ----
  : get organization name
  longshots='/usr/src/new /usr/src/local /usr/local/src'
  case "$orgname" in
! '') if xxx=`loc news/src/defs.h "" $longshots`; then
! 	dflt=/usr/local/lib/news/organization
      else
  	dflt='no default'
      fi
***************
*** 1221,1227 ****
  : figure out news library
  case "$lib" in
  '')
!     dflt=/usr/lib/news
      ;;
  *)  dflt=$lib ;;
  esac
--- 1237,1243 ----
  : figure out news library
  case "$lib" in
  '')
!     dflt=/usr/local/lib/news
      ;;
  *)  dflt=$lib ;;
  esac
***************
*** 1282,1288 ****
  : determine where manual pages go
  case "$mansrc" in
  '')
!     dflt=`loc . /usr/man/man1 /usr/man/mann /usr/man/local/man1 /usr/man/u_man/man1 /usr/man/man1`
      ;;
  *)  dflt="$mansrc"
      ;;
--- 1298,1304 ----
  : determine where manual pages go
  case "$mansrc" in
  '')
!     dflt=`loc . /usr/man/mann /usr/man/local/man1 /usr/man/u_man/man1 /usr/local/man/man1 /usr/man/man1`
      ;;
  *)  dflt="$mansrc"
      ;;
***************
*** 1316,1322 ****
  : determine where mail is spooled
  case "$maildir" in
  '')
!     dflt=`loc . /usr/spool/mail /usr/spool/mail /usr/mail`
      ;;
  *)  dflt="$maildir"
      ;;
--- 1332,1338 ----
  : determine where mail is spooled
  case "$maildir" in
  '')
!     dflt=`loc . /usr/spool/mail /usr/spool/mail /usr/mail /var/mail`
      ;;
  *)  dflt="$maildir"
      ;;
***************
*** 1666,1672 ****
      termios=undef
      $echo "termio.h found."
  else
! if test -d /usr/convex ; then
      termio=undef
      termios=define
      $echo "termios.h found."
--- 1682,1688 ----
      termios=undef
      $echo "termio.h found."
  else
! if 386bsd || test -d /usr/convex ; then
      termio=undef
      termios=define
      $echo "termios.h found."
***************
*** 2008,2016 ****
  : locate spool directory and check if rrn
  case "$isrrn" in
  define)
-     dflt="y";;
- *)
      dflt="n";;
  esac
  isrrn=''
  while $test -z "$isrrn" ; do
--- 2024,2032 ----
  : locate spool directory and check if rrn
  case "$isrrn" in
  define)
      dflt="n";;
+ *)
+     dflt="y";;
  esac
  isrrn=''
  while $test -z "$isrrn" ; do
***************
*** 2029,2035 ****
  	$echo "net.foobar 00001 00001 y" > .falseactive
  
  	case "$serverfile" in
! 	'')  dflt="no default" ;;
  	*)   dflt="$serverfile";;
  	esac
  
--- 2045,2051 ----
  	$echo "net.foobar 00001 00001 y" > .falseactive
  
  	case "$serverfile" in
! 	'')  dflt="/usr/local/lib/rn/server" ;;
  	*)   dflt="$serverfile";;
  	esac
  
***************
*** 2387,2396 ****
  if $test -f /usr/lib/sendmail; then
      dflt=/usr/lib/sendmail
  else
!     if usg && $test -f $libexp/recmail; then
!         dflt=$libexp/recmail
      else
!         dflt=/bin/mail
      fi
  fi
  $echo " "
--- 2403,2416 ----
  if $test -f /usr/lib/sendmail; then
      dflt=/usr/lib/sendmail
  else
!     if 386bsd; then
!         dflt=/usr/sbin/sendmail
      else
!         if usg && $test -f $libexp/recmail; then
!             dflt=$libexp/recmail
!         else
!             dflt=/usr/sbin/sendmail
!         fi
      fi
  fi
  $echo " "
-- 
-------------------------------------------------------------------------
Larry Felawka				Internet: felawka@sitka.triumf.ca
					Telephone: (604) 222 1047 X483