From: Tobias Oetiker <oetiker@dmu.ac.uk>
Message-Id: <199504040857.JAA15290@macondo.dmu.ac.uk>
Subject: New Inn - Solaris 2.4 Patch
To: eggert@twinsun.com, tal@plts.org
Date: Tue, 4 Apr 1995 09:57:12 +0100 (BST)
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text
Content-Length: 3866      

Hi,

After having had some email exchange with Paul Eggert, I would like to
submit this new patch and config.data for INN.

The material applies to people who want to run Inn 1.4 on a
Solaris 2.4 Machine. 

The patch is now in the right format an can be applied with the 
patch command.

the diffs to config.data are slightly altered to reflect suggestions by 
Paul.

------------sol24-23.patch-----------------------------------------------
*** innd/nc.c.original	Thu Mar 18 21:04:28 1993
--- innd/nc.c	Mon Apr  3 11:48:58 1995
***************
*** 1022,1033 ****
      cp = CHANcreate(fd, CTnntp, MustAuthorize ? CSgetauth : CSgetcmd,
  	    NCreader, NCwritedone);
      NCclearwip(&NCwip[cp->fd]);
! #if	defined(SOL_SOCKET) && defined(SO_SNDBUF) && defined(SO_RCVBUF)
      i = 24 * 1024;
      if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, (char *)&i, sizeof i) < 0)
  	syslog(L_ERROR, "%s cant setsockopt(SNDBUF) %m", CHANname(cp));
      if (setsockopt(fd, SOL_SOCKET, SO_RCVBUF, (char *)&i, sizeof i) < 0)
  	syslog(L_ERROR, "%s cant setsockopt(RCVBUF) %m", CHANname(cp));
  #endif	/* defined(SOL_SOCKET) && defined(SO_SNDBUF) && defined(SO_RCVBUF) */
  
      /* Now check our operating mode. */
--- 1028,1041 ----
      cp = CHANcreate(fd, CTnntp, MustAuthorize ? CSgetauth : CSgetcmd,
  	    NCreader, NCwritedone);
      NCclearwip(&NCwip[cp->fd]);
! #if	defined(SOL_SOCKET) && defined(SO_SNDBUF) && defined(SO_RCVBUF) 
! #ifndef SUNOS5
      i = 24 * 1024;
      if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, (char *)&i, sizeof i) < 0)
  	syslog(L_ERROR, "%s cant setsockopt(SNDBUF) %m", CHANname(cp));
      if (setsockopt(fd, SOL_SOCKET, SO_RCVBUF, (char *)&i, sizeof i) < 0)
  	syslog(L_ERROR, "%s cant setsockopt(RCVBUF) %m", CHANname(cp));
+ #endif
  #endif	/* defined(SOL_SOCKET) && defined(SO_SNDBUF) && defined(SO_RCVBUF) */
  
      /* Now check our operating mode. */

----------------------------------------------------------------------

------config.sol24.gcc263----------------------------------------------
config.data for solaris 2.4 with all recommended patches applied:

* most importantly: the kernel jubo patch 101945-23
* and the inn patch to fix the setsockopt problems. (sol24-23.patch)
  eg cat sol24-23.patch | patch

this config file assumes that the following GNU tools are available on the 
system:

GCC,RANLIB,SED,GREP,GAWK 

The overview data base is kept in a seperate directory tree below 
over.view

#########################################################################
# You will only be able to install and run INN properly if you FIRST read
# its documentation and the FAQ.
#########################################################################

These are the lines which are diffrent from the standard config.dist

DEFS			-I../include -DSUNOS5
CC			gcc
USE_CHAR_CONST		DO
CFLAGS			-O $(DEFS)
LDFLAGS			
LIBS			-lsocket -lnsl -lelf -lresolv
LINTLIBSTYLE		NONE
LINTFLAGS		
LINTFILTER		
PATHMASTER		usenet
VAR_STYLE		STDARGS
SIZE_T			size_t
UID_T			uid_t
GID_T			gid_t
PID_T			pid_t
POINTER			void
ALIGNPTR		long
LOCK_STYLE		FCNTL
HAVE_UNISTD	DO
HAVE_SETSID		DO
HAVE_TM_GMTOFF		DONT
HAVE_WAITPID		DO
USE_UNION_WAIT		DONT
HAVE_VFORK		DONT
BIND_USE_SIZEOF		DONT
CLX_STYLE		FCNTL
RES_STYLE		TIMES
FDCOUNT_STYLE		SYSCONF
CTYPE			isXXXXX((c))
ABORTVAL		void
ALARMVAL		unsigned
GETPIDVAL		pid_t
SLEEPVAL		unsigned
QSORTVAL		void
LSEEKVAL		off_t
FREEVAL			void
_EXITVAL		void
MISSING_SRC		
MISSING_OBJ		
ACT_STYLE		MMAP
CHECK_INCLUDED_TEXT		DONT
INND_NICE_KIDS		DO
VERIFY_CANCELS		DO
LOG_CANCEL_COMMANDS	DO
DEFAULT_TIMEOUT		900
_PATH_COMPRESS		/usr/bin/compress
_PATH_EGREP		/usr/local/bin/egrep
_PATH_AWK		/usr/local/bin/gawk
_PATH_SED		/usr/local/bin/sed
_PATH_RNEWS		/usr/local/bin/rnews
_PATH_MAILCMD		/usr/bin/mailx
_PATH_OVERVIEWDIR		/var/spool/news/over.view
