Return to BSD News archive
Path: sserve!manuel!munnari.oz.au!uunet!ogicse!psgrain!hippo!csir.co.za!paul From: paul@csir.co.za (Paul Nash) Newsgroups: comp.unix.bsd Subject: [386bsd] patches for nn 4.16 Keywords: patches NN Message-ID: <paul.717153957@tantrum.csir.co.za> Date: 22 Sep 92 09:25:57 GMT Article-I.D.: tantrum.paul.717153957 Sender: usenet@nuustak.csir.co.za (Jim the Netnews Poster) Organization: Infotek, CSIR Lines: 246 I have had lots of requests for this, so I am posting it. NN basically build out of the box, so the changes are minor. Sorry about the waste of bandwidth, but, as I said, I have had lots of requests for this. paul *** ./Makefile Sat Jun 15 14:39:38 1991 --- ../nn/./Makefile Mon Sep 7 11:13:40 1992 *************** *** 9,15 **** CC = cc CPP = $(CC) -E ! CFLAGS = -O #CFLAGS = -g MAKE = make --- 9,15 ---- CC = cc CPP = $(CC) -E ! CFLAGS = -O -traditional #CFLAGS = -g MAKE = make *** ./config.h Thu Jun 20 17:04:24 1991 --- ../nn/./config.h Mon Sep 7 12:08:15 1992 *************** *** 49,55 **** * Consult the file NNTP for further information on the use of NNTP. */ ! /* #define NNTP /* */ /* * Define NNTP_SERVER to the name of a file containing the name of the --- 49,55 ---- * Consult the file NNTP for further information on the use of NNTP. */ ! #define NNTP /* */ /* * Define NNTP_SERVER to the name of a file containing the name of the *************** *** 95,101 **** * conf/s-template.h as a starting point for writing you own. */ ! #include "s-xenix386ds.h" /* * Define DEFAULT_PAGER as the initial value of the 'pager' variable. --- 95,101 ---- * conf/s-template.h as a starting point for writing you own. */ ! #include "s-bsd4-3.h" /* * Define DEFAULT_PAGER as the initial value of the 'pager' variable. *************** *** 102,109 **** * nnadmin pipes shell command output though this command. */ ! #define DEFAULT_PAGER "pg -n -s" /* system V */ ! /* #define DEFAULT_PAGER "more" /* bsd */ /* * DEFAULT_PRINTER is the initial value of the 'printer' variable. --- 102,109 ---- * nnadmin pipes shell command output though this command. */ ! /* #define DEFAULT_PAGER "pg -n -s" /* system V */ ! #define DEFAULT_PAGER "more" /* bsd */ /* * DEFAULT_PRINTER is the initial value of the 'printer' variable. *************** *** 110,117 **** * nn's :print command pipes text into this command. */ ! #define DEFAULT_PRINTER "lp -s" /* System V */ ! /* #define DEFAULT_PRINTER "lpr -p -JNEWS" /* bsd */ /* * Define RESIZING to make nn understand dynamic window-resizing. --- 110,117 ---- * nn's :print command pipes text into this command. */ ! /* #define DEFAULT_PRINTER "lp -s" /* System V */ ! #define DEFAULT_PRINTER "lpr -p -JNEWS" /* bsd */ /* * Define RESIZING to make nn understand dynamic window-resizing. *************** *** 213,219 **** * (The file system must support long file names!!) */ ! #define DB_DIRECTORY "/u/spool/nn" /*************************** NEWS TRANSPORT ************************** --- 213,219 ---- * (The file system must support long file names!!) */ ! #define DB_DIRECTORY "/var/spool/nn" /*************************** NEWS TRANSPORT ************************** *************** *** 235,241 **** * Default: NEWS_LIB_DIR/{rm,del}group */ ! #define NEWS_DIRECTORY "/u/spool/news" /* */ #define NEWS_LIB_DIRECTORY "/usr/local/lib/news" /* */ /* #define INEWS_PATH "/usr/lib/news/inews" /* */ --- 235,241 ---- * Default: NEWS_LIB_DIR/{rm,del}group */ ! #define NEWS_DIRECTORY "/var/spool/news" /* */ #define NEWS_LIB_DIRECTORY "/usr/local/lib/news" /* */ /* #define INEWS_PATH "/usr/lib/news/inews" /* */ *************** *** 252,259 **** * be able to use with a little tweaking. */ ! #define REC_MAIL "/usr/local/lib/news/recmail" /* non-sendmail */ ! /* #define REC_MAIL "/usr/lib/sendmail -t" /* sendmail */ /* --- 252,259 ---- * be able to use with a little tweaking. */ ! /* #define REC_MAIL "/usr/local/lib/news/recmail" /* non-sendmail */ ! #define REC_MAIL "/usr/sbin/sendmail -t" /* sendmail */ /* *************** *** 290,296 **** * I think 'recmail' includes .signature, but 'sendmail -t' doesn't. */ ! /* #define APPEND_SIGNATURE /* */ /* * BUG_REPORT_ADDRESS is the initial value of the bug-report-address --- 290,296 ---- * I think 'recmail' includes .signature, but 'sendmail -t' doesn't. */ ! #define APPEND_SIGNATURE /* */ /* * BUG_REPORT_ADDRESS is the initial value of the bug-report-address *** ./inews/inews.c Sat Jun 15 14:39:14 1991 --- ../nn/./inews/inews.c Wed Sep 16 14:42:21 1992 *************** *** 211,216 **** --- 211,217 ---- while (fgets(line, sizeof (line), fp)) { count++; if (count > MAX_SIGNATURE) { + #if defined (LIMIT_SIG_SIZE_AFTER_ALL) fprintf(stderr, "Warning: .signature files should be no longer than %d lines.\n", MAX_SIGNATURE); *************** *** 218,223 **** --- 219,225 ---- "(Only %d lines of your .signature were posted.)\n", MAX_SIGNATURE); break; + #endif /* defined (LIMIT_SIG_SIZE_AFTER_ALL) */ } if (cp = index(line, '\n')) *cp = '\0'; *** ./conf/m-i80386.h Sat Jun 15 14:39:06 1991 --- ../nn/./conf/m-i80386.h Mon Sep 7 11:10:30 1992 *************** *** 16,22 **** #undef NETWORK_BYTE_ORDER /* THEY ARE NOT */ ! YOU LOSE -- I DON'T KNOW HOW TO DO THIS ON 80386 BASED SYSTEMS! #define htonl(l) ... /* host long to network long */ #define ntohl(l) ... /* network long to host long */ --- 16,22 ---- #undef NETWORK_BYTE_ORDER /* THEY ARE NOT */ ! /* YOU LOSE -- I DON'T KNOW HOW TO DO THIS ON 80386 BASED SYSTEMS! */ #define htonl(l) ... /* host long to network long */ #define ntohl(l) ... /* network long to host long */ *** ./conf/s-bsd4-3.h Sat Jun 15 14:39:06 1991 --- ../nn/./conf/s-bsd4-3.h Mon Sep 7 12:07:57 1992 *************** *** 8,15 **** * Define MICRO_ALARM to timeout in 0.1 seconds if possible */ #undef MICRO_ALARM ! #define MICRO_ALARM() ualarm(100000,0) /* BSD 4.3 */ /* * Define if your system has a 4.3BSD like syslog library. --- 8,17 ---- * Define MICRO_ALARM to timeout in 0.1 seconds if possible */ + #define HAVE_UALARM + #define MAILX "/usr/bin/Mail" #undef MICRO_ALARM ! #define MICRO_ALARM(x) ualarm(100000,0) /* BSD 4.3 */ /* * Define if your system has a 4.3BSD like syslog library. *** ./update.h Thu Jun 20 17:08:06 1991 --- ../nn/./update.h Mon Sep 7 12:09:02 1992 *************** *** 1 **** ! 16 --- 1 ---- ! 20 -- ---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=--- Paul Nash (voice) +27-12-8413050 Network Services, CSIR Infotek (fax) +27-12-8414109 "OS/2 will remain the operating system of the future"