From owner-freebsd-ports Mon Jan 25 16:10:06 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA08823 for freebsd-ports-outgoing; Mon, 25 Jan 1999 16:10:06 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA08812 for ; Mon, 25 Jan 1999 16:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id QAA22312; Mon, 25 Jan 1999 16:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Mon, 25 Jan 1999 16:10:02 -0800 (PST) Message-Id: <199901260010.QAA22312@freefall.freebsd.org> To: freebsd-ports@FreeBSD.ORG From: "Jasper O'Malley" Subject: Re: ports/9686: Update of the nn-6.5.3 port Reply-To: "Jasper O'Malley" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/9686; it has been noted by GNATS. From: "Jasper O'Malley" To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: ports/9686: Update of the nn-6.5.3 port Date: Mon, 25 Jan 1999 19:06:29 -0500 (EST) Argh. Disregard the earlier port in this PR. The good one is below: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # nn # nn/files # nn/files/md5 # nn/files/s-freebsd.h # nn/patches # nn/patches/patch-aa # nn/patches/patch-ab # nn/patches/patch-ac # nn/Makefile # nn/pkg # nn/pkg/COMMENT # nn/pkg/DESCR # nn/pkg/PLIST # nn/scripts # nn/scripts/configure # echo c - nn mkdir -p nn > /dev/null 2>&1 echo c - nn/files mkdir -p nn/files > /dev/null 2>&1 echo x - nn/files/md5 sed 's/^X//' >nn/files/md5 << 'END-of-nn/files/md5' XMD5 (nn-6.5.3.tar.Z) = 20d983d62b2f89deda855485405099ed END-of-nn/files/md5 echo x - nn/files/s-freebsd.h sed 's/^X//' >nn/files/s-freebsd.h << 'END-of-nn/files/s-freebsd.h' X/* X * This version is for FreeBSD 2.1 X * Done by "Andrey A. Chernov" X */ X X X/* X * Include header files containing the following definitions: X * X * off_t, time_t, struct stat X */ X X#include X#include /* for S_IFREG */ X#include /* for O_RDONLY */ X X#define HAVE_STDLIB_H X#define HAVE_STRING_H X#define HAVE_UNISTD_H X#define HAVE_FCNTL_H X X#define HAVE_TERMIOS X X/* X * Define if your system has system V like ioctls X */ X X#undef HAVE_TERMIO /* */ X X/* X * Define to use terminfo database. X * Otherwise, termcap is used X */ X X#undef USE_TERMINFO /* */ X X/* X * Specify the library (or libraries) containing the termcap/terminfo X * routines. X * X * Notice: nn only uses the low-level terminal access routines X * (i.e. it does not use curses). X */ X X#define TERMLIB -ltermcap X X/* X * Define HAVE_STRCHR if strchr() and strrchr() are available X */ X X#define HAVE_STRCHR /* */ X X/* X * Define if a signal handler has type void (see signal.h) X */ X X#define SIGNAL_HANDLERS_ARE_VOID /* */ X X/* X * Define HAVE_UALARM if your system has a 4.3 BSD like ualarm() call. X * Else define MICRO_ALARM(n) to timeout in n/10 seconds if possible. X * Don't define either if system only has the standard alarm() call. X */ X X#define HAVE_UALARM /* */ X X X/* X * Define if your system has BSD like job control (SIGTSTP works) X */ X X#define HAVE_JOBCONTROL /* */ X X X/* X * Define if your system has a 4.3BSD like syslog library. X */ X X#define HAVE_SYSLOG X X/* X * Define if your system provides the "directory(3X)" access routines X * X * If true, include the header file(s) required by the package below X * (remember that or equivalent is included above) X * Also typedef Direntry to the proper struct type. X */ X X#define HAVE_DIRECTORY /* */ X X#include /* POSIX */ X Xtypedef struct dirent Direntry; /* POSIX */ X X/* X * Define if your system has a mkdir() library routine X */ X X#define HAVE_MKDIR /* */ X X/* X * Pick one: X * Define HAVE_GETHOSTNAME if you have a BSD like gethostname routine. X * Define HAVE_UNAME if a system V compatible uname() is available. X * Define HOSTNAME_FILE "...." to a file containing the hostname. X * Define HOSTNAME_WHOAMI if sysname is defined in . X * X * As a final resort, define HOSTNAME to the name of your system X * (in config.h). X */ X X#define HAVE_GETHOSTNAME /* BSD systems */ X X/* X * Define HAVE_MULTIGROUP if system has simultaneous multiple group X * membership capability (BSD style). X * Also define NGROUPS or include the proper .h file if NGROUPS is X * not defined in . X * Also define GIDSET_TYPE to the type of the elements in the array X * initialized by getgroups() if different from "int" (many systems X * have a gid_t, but very few use it for getgroups()). X */ X X#define HAVE_MULTIGROUP /* BSD */ X#define GIDSET_TYPE gid_t X X/* X * Define DETATCH_TERMINAL to be a command sequence which X * will detatch a process from the control terminal X * Also include system files needed to perform this HERE. X * If not possible, just define it (empty) X */ X X#define DETATCH_TERMINAL setsid(); X X/* X * Specify where the Bourne Shell is. X */ X X#define SHELL "/bin/sh" X X/* X * Specify the default mailer to be invoked by nnmail X */ X X#define MAILX "/usr/bin/mail" /* */ X X/* X * Define the maximum length of any pathname that may occur X */ X X#define FILENAME 256 X X#define RESIZING X X#define HAVE_8BIT_CTYPE X X#define HAVE_WORKING_COLLATE X END-of-nn/files/s-freebsd.h echo c - nn/patches mkdir -p nn/patches > /dev/null 2>&1 echo x - nn/patches/patch-aa sed 's/^X//' >nn/patches/patch-aa << 'END-of-nn/patches/patch-aa' X*** Makefile Mon Aug 19 17:28:12 1996 X--- Makefile.new Mon Jul 20 11:20:01 1998 X*************** X*** 19,33 **** X # Use /lib/cpp or /usr/ccs/lib/cpp for CPP on Solaris or SVR4 machines. X X CC = cc X! #CPP = $(CC) -E X! CPP = /lib/cpp X! #CFLAGS = -O2 # -g # -I/usr/local/lib/malloc-debug -DMALLOC_FUNC_CHECK X! CFLAGS = -O X #-Wall -Wcomment \ X #-Wtraditional -Wshadow \ X #-Wpointer-arith -Wcast-qual -Wcast-align -Wconversion \ X #-Waggregate-return -Wmissing-prototypes -Wnested-externs X! #LDFLAGS = -s # -lmalloc # /usr/local/lib/malloc-debug/libmalloc.a X MAKE = make X X X--- 19,33 ---- X # Use /lib/cpp or /usr/ccs/lib/cpp for CPP on Solaris or SVR4 machines. X X CC = cc X! CPP = $(CC) -E X! #CPP = /lib/cpp X! CFLAGS = -O2 # -g # -I/usr/local/lib/malloc-debug -DMALLOC_FUNC_CHECK X! #CFLAGS = -O X #-Wall -Wcomment \ X #-Wtraditional -Wshadow \ X #-Wpointer-arith -Wcast-qual -Wcast-align -Wconversion \ X #-Waggregate-return -Wmissing-prototypes -Wnested-externs X! LDFLAGS = -s # -lmalloc # /usr/local/lib/malloc-debug/libmalloc.a X MAKE = make X X X*************** X*** 97,99 **** X--- 97,101 ---- X man/nn.1.D: man/nn.1 X sh SPLITNN1 X X+ install: X+ ./inst n X*** nntp.c Tue Jul 14 07:21:36 1998 X--- nntp.c.new Mon Jul 20 11:16:11 1998 X*************** X*** 88,96 **** X--- 88,98 ---- X X import int sys_nerr; X #ifndef __NetBSD__ X+ #ifndef __FreeBSD__ X #ifndef __linux__ X import char *sys_errlist[]; X #endif /* __linux__ */ X+ #endif /* __FreeBSD__ */ X #endif /* __NetBSD__ */ X extern void nn_exitmsg(); X extern void sys_error(); X*** chset.c.orig Fri Mar 12 08:35:13 1993 X--- chset.c Sat Apr 15 04:57:48 1995 X*************** X*** 18,23 **** X--- 18,24 ---- X "iso-8859-7", 8, X "iso-8859-8", 8, X "iso-8859-9", 8, X+ "koi8-r", 8, X "unknown", 0, X NULL, 0, X }; X*** inst.sh Mon Sep 13 21:42:25 1993 X--- inst.sh.new Sat Apr 15 04:57:51 1995 X*************** X*** 1,8 **** X X # (Large) prefix inserted above by Make X X! # BSD systems keep chown in /etc X! PATH="$PATH:/etc" X X case "$1" in X mkdir) X--- 1,8 ---- X X # (Large) prefix inserted above by Make X X! # BSD systems keep chown in /usr/sbin X! PATH="$PATH:/usr/sbin" X X case "$1" in X mkdir) X*************** X*** 55,61 **** X ;; X esac X X! set -u X X ( X if $NNTP X--- 55,61 ---- X ;; X esac X X! #set -u X X ( X if $NNTP X*** sort.c.orig Wed Sep 1 01:06:25 1993 X--- sort.c Sat Apr 15 04:57:54 1995 X*************** X*** 43,48 **** X--- 43,71 ---- X * before MATCH_?? (t, a, b) is used. X */ X X+ #ifdef HAVE_WORKING_COLLATE X+ X+ #ifdef HAVE_8BIT_CTYPE X+ #define MATCH_DROP(table, c) !isprint(c) X+ #else X+ #define MATCH_DROP(table, c) ( c & 0200 || !isprint(c) ) X+ #endif X+ #define MATCH_EQ(table, a, b) ( a == b || table(a, b) == 0 ) X+ #define MATCH_LS_EQ(table, a, b) ( a == b || table(a, b) <= 0 ) X+ #define MATCH_LS(table, a, b) ( table(a, b) < 0 ) X+ #define MATCH_CMP(table, a, b) table(a, b) X+ X+ static int match_subject(a, b) X+ char a, b; X+ { X+ static char aa[2], bb[2]; X+ X+ aa[0] = a; bb[0] = b; X+ return strcoll(aa, bb); X+ } X+ X+ #else X+ X #define MATCH_DROP(table, c) ( c & 0200 || table[c] == 0 ) X #define MATCH_EQ(table, a, b) ( a == b || table[a] == table[b] ) X #define MATCH_LS_EQ(table, a, b) ( a <= b || table[a] <= table[b] ) X*************** X*** 77,82 **** X--- 100,106 ---- X 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 00, 00 X }; X X+ #endif /* HAVE_WORKING_COLLATE */ X X static int X order_subj_date(ah1, ah2) END-of-nn/patches/patch-aa echo x - nn/patches/patch-ab sed 's/^X//' >nn/patches/patch-ab << 'END-of-nn/patches/patch-ab' X*** config.h Mon Jul 20 10:27:15 1998 X--- config.h.new Mon Jul 20 10:55:32 1998 X*************** X*** 51,60 **** X #define DO_NOV_DIGEST /* */ X X /* Optional */ X! /* #define NOV_DIRECTORY "/usr/spool/news" /* */ X X /* Optional */ X! /* #define NOV_FILENAME ".overview" /* */ X X X /*********************** NETWORK DEPENDENT DEFINITIONS ********************** X--- 51,60 ---- X #define DO_NOV_DIGEST /* */ X X /* Optional */ X! #define NOV_DIRECTORY "/var/news/over.view" /* */ X X /* Optional */ X! #define NOV_FILENAME ".overview" /* */ X X X /*********************** NETWORK DEPENDENT DEFINITIONS ********************** X*************** X*** 107,113 **** X * NOTE: If you plan to use the included inews, it MUST be a full pathname X */ X X! #define NNTP_SERVER "/usr/lib/nntp_server" /* */ X X /* X * Define NNTP_POST if you want nn to reject attempts to post via X--- 107,113 ---- X * NOTE: If you plan to use the included inews, it MUST be a full pathname X */ X X! #define NNTP_SERVER "/usr/local/etc/nntp_server" /* */ X X /* X * Define NNTP_POST if you want nn to reject attempts to post via X*************** X*** 149,155 **** X * conf/s-template.h as a starting point for writing you own. X */ X X! #include "s-hpux9-0.h" X X /* X * Define DEFAULT_PAGER as the initial value of the 'pager' variable. X--- 149,155 ---- X * conf/s-template.h as a starting point for writing you own. X */ X X! #include "s-freebsd.h" X X /* X * Define DEFAULT_PAGER as the initial value of the 'pager' variable. X*************** X*** 210,216 **** X * conf/m-template.h as a starting point for writing you own. X */ X X! #include "m-hp9000.h" X X X /***************************** OWNERSHIP *************************** X--- 210,216 ---- X * conf/m-template.h as a starting point for writing you own. X */ X X! #include "m-i80386.h" X X X /***************************** OWNERSHIP *************************** X*************** X*** 263,269 **** X X #define BIN_DIRECTORY "/usr/local/bin" X #define LIB_DIRECTORY "/usr/local/lib/nn" X! X X /**************************** DATABASE LOCATION ************************** X * X--- 263,269 ---- X X #define BIN_DIRECTORY "/usr/local/bin" X #define LIB_DIRECTORY "/usr/local/lib/nn" X! #define TMP_DIRECTORY "/var/tmp" X X /**************************** DATABASE LOCATION ************************** X * X*************** X*** 294,300 **** X * (The file system must support long file names!!) X */ X X! /* #define DB_DIRECTORY "/usr/spool/nn" /* */ X X X /*************************** NEWS TRANSPORT ************************** X--- 294,300 ---- X * (The file system must support long file names!!) X */ X X! #define DB_DIRECTORY "/var/spool/nn" /* */ X X X /*************************** NEWS TRANSPORT ************************** X*************** X*** 316,323 **** X * Default: NEWS_LIB_DIR/{rm,del}group X */ X X! /* #define NEWS_DIRECTORY "/usr/spool/news" /* */ X! /* #define NEWS_LIB_DIRECTORY "/usr/lib/news" /* */ X /* #define INEWS_PATH "/usr/lib/news/inews" /* */ X X X--- 316,323 ---- X * Default: NEWS_LIB_DIR/{rm,del}group X */ X X! #define NEWS_DIRECTORY "/var/news" /* */ X! #define NEWS_LIB_DIRECTORY "/usr/local/news/lib" /* */ X /* #define INEWS_PATH "/usr/lib/news/inews" /* */ X X X*************** X*** 341,347 **** X */ X X /* #define REC_MAIL "/usr/lib/news/recmail" /* non-sendmail */ X! #define REC_MAIL "/usr/lib/sendmail -t" /* sendmail */ X X X /* X--- 341,347 ---- X */ X X /* #define REC_MAIL "/usr/lib/news/recmail" /* non-sendmail */ X! #define REC_MAIL "/usr/sbin/sendmail -t" /* sendmail */ X X X /* X*************** X*** 403,415 **** X * DAEMON_MAN - nnmaster X */ X X! #define USER_MAN_DIR "/usr/man/man1" X #define USER_MAN_SECTION "1" X X! #define SYS_MAN_DIR "/usr/man/man1" X #define SYS_MAN_SECTION "1m" X X! #define DAEMON_MAN_DIR "/usr/man/man8" X #define DAEMON_MAN_SECTION "8" X X X--- 403,415 ---- X * DAEMON_MAN - nnmaster X */ X X! #define USER_MAN_DIR "/usr/local/man/man1" X #define USER_MAN_SECTION "1" X X! #define SYS_MAN_DIR "/usr/local/man/man1" X #define SYS_MAN_SECTION "1m" X X! #define DAEMON_MAN_DIR "/usr/local/man/man8" X #define DAEMON_MAN_SECTION "8" X X X*************** X*** 469,475 **** X * was accepted, whereas with INN, it only takes seconds. X */ X X! #define INEWS_IS_FAST /* comment out for C-News */ X X /* X * Synchronous posting: If set this will cause NN to wait until a X--- 469,475 ---- X * was accepted, whereas with INN, it only takes seconds. X */ X X! /*#define INEWS_IS_FAST*/ /* comment out for C-News */ X X /* X * Synchronous posting: If set this will cause NN to wait until a X*************** X*** 481,487 **** X * via some sort of NNTP. X */ X X! #define SYNCHRONOUS_POSTING /* comment out for C-News */ X X /* X * PUT_TIMESTAMP_IN_SCRIPTS X--- 481,487 ---- X * via some sort of NNTP. X */ X X! /*#define SYNCHRONOUS_POSTING /* comment out for C-News */ X X /* X * PUT_TIMESTAMP_IN_SCRIPTS END-of-nn/patches/patch-ab echo x - nn/patches/patch-ac sed 's/^X//' >nn/patches/patch-ac << 'END-of-nn/patches/patch-ac' X*** inews/version.c Sun Jan 24 23:44:03 1999 X--- inews/version.c.new Sun Jan 24 23:44:36 1999 X*************** X*** 2,5 **** X * Provide the version number of this release. X */ X X! char nntp_version[] = "1.5.8 (11 March 90)"; X--- 2,5 ---- X * Provide the version number of this release. X */ X X! char nntp_version[] = "1.5.8.MINI (MINI-INEWS)"; END-of-nn/patches/patch-ac echo x - nn/Makefile sed 's/^X//' >nn/Makefile << 'END-of-nn/Makefile' X# New ports collection makefile for: nn X# Version required: 6.5.3 X# Date created: 24 September 1994 X# Whom: adam X# X# $Id$ X# X XDISTNAME= nn-6.5.3 XCATEGORIES= news XMASTER_SITES= ftp://ftp.visi.com/users/mtpins/ \ X ftp://maroon.webmaster.com/pub/nn/ XEXTRACT_SUFX= .tar.Z X XMAINTAINER= jooji@webnology.com X XIS_INTERACTIVE= yes X XNO_PACKAGE= posting depends on inews utility, which has poster's domain compiled in X XMAN1= nn.1 nncheck.1 nngoback.1 nngrab.1 nngrep.1 nnpost.1 \ X nntidy.1 nnview.1 nnacct.1m nnadmin.1m nnstats.1m nnusage.1m XMAN8= nnmaster.8 nnspew.8 X Xpre-patch: X @${CP} ${WRKSRC}/config.h-dist ${WRKSRC}/config.h X Xpre-build: X @${CP} ${FILESDIR}/s-freebsd.h ${WRKSRC}/conf X Xpre-install: X @${MKDIR} ${PREFIX}/news X [ ! -f ${WRKDIR}/.install_inews ] || (cd ${WRKSRC}/inews; ${MAKE} all) X [ ! -f ${WRKDIR}/.install_inews ] || (cd ${WRKSRC}/inews; ${MAKE} install) X Xpost-install: X @${CP} ${WRKDIR}/nntp_server ${PREFIX}/etc/nntp_server X X.include END-of-nn/Makefile echo c - nn/pkg mkdir -p nn/pkg > /dev/null 2>&1 echo x - nn/pkg/COMMENT sed 's/^X//' >nn/pkg/COMMENT << 'END-of-nn/pkg/COMMENT' XNN newsreader. END-of-nn/pkg/COMMENT echo x - nn/pkg/DESCR sed 's/^X//' >nn/pkg/DESCR << 'END-of-nn/pkg/DESCR' XNo News is good news. This version of nn has NOV support. X X- Jasper O'Malley X jooji@webnology.com END-of-nn/pkg/DESCR echo x - nn/pkg/PLIST sed 's/^X//' >nn/pkg/PLIST << 'END-of-nn/pkg/PLIST' Xlib/nn/aux Xlib/nn/upgrade_rc Xlib/nn/conf Xlib/nn/help/adm.upgrade1 Xlib/nn/help/adm.upgrade2 Xlib/nn/help/adm.upgrade3 Xlib/nn/help/adm.upgrade4 Xlib/nn/help/adm.welcome Xlib/nn/help/help.attr Xlib/nn/help/help.commands Xlib/nn/help/help.extended Xlib/nn/help/help.help Xlib/nn/help/help.map Xlib/nn/help/help.menu Xlib/nn/help/help.more Xlib/nn/help/help.read Xlib/nn/help/help.set Xlib/nn/help/help.show Xlib/nn/help/help.sort Xlib/nn/help/help.variables Xlib/nn/help/Manual Xbin/nn Xbin/nnusage Xbin/nngrab Xbin/nnstats Xbin/nncheck Xbin/nnadmin Xbin/nntidy Xbin/nngoback Xbin/nngrep Xbin/nnpost Xbin/nnbatch Xbin/nnview X@dirrm lib/nn/help X@dirrm lib/nn X@unexec echo "Be sure to remove %D/news/lib/inews if you no longer need it." END-of-nn/pkg/PLIST echo c - nn/scripts mkdir -p nn/scripts > /dev/null 2>&1 echo x - nn/scripts/configure sed 's/^X//' >nn/scripts/configure << 'END-of-nn/scripts/configure' X#!/bin/sh X# X# Configure script for FreeBSD port of NN-6.5.3 X# X# Comments to Jasper O'Malley X# X Xcd ${WRKSRC}/inews X Xif [ ! -f conf.h.dist ]; then X if [ ! -f conf.h ]; then X echo "Can't find the file ${WRKSRC}/inews/conf.h" X echo "Do a \"make clean\" and try making the NN port again." X exit 1 X else X mv -f conf.h conf.h.dist X fi Xfi X Xwhile : Xdo X read -p"Enter hostname or IP address of your news server: " news_server X if [ -z $news_server ]; then X echo "You must supply a hostname or IP address. Try again." X echo "" X break X else X while : X do X echo "" X echo "You entered: ${news_server}" X echo "" X read -p"Is this what you wanted? [y/N] " yesno X if [ -z $yesno ]; then X yesno="N" X break X elif [ "$yesno" = "Y" -o "$yesno" = "y" -o "$yesno" = "n" -o "$yesno" = "N" ]; then X break X else X echo "Please enter Y or N." X echo "" X fi X done X echo "" X if [ "$yesno" = "y" -o "$yesno" = "Y" ]; then X echo "\"${news_server}\" it is." X echo "" X break X fi X fi Xdone X Xecho "${news_server}" > ${WRKDIR}/nntp_server X Xcat << xxENDxx XNN requires a utility called INEWS to post news to an NNTP server. XINEWS is distributed with a variety of software packages, including the XINN news server. X XA minimal version of INEWS--dubbed Mini-INEWS--is included with this Xdistribution of NN. Mini-INEWS has the poster's e-mail "From:" domain X(the bit that appears after the @ symbol) hardcoded into the utility. XThe configuration program running now is used to set that domain. X XxxENDxx X Xif [ -r ${PREFIX}/news/lib/inews ]; then X strings ${PREFIX}/news/lib/inews | grep -q MINI-INEWS X if [ $? -eq 1 ]; then X cat << xxENDxx XHowever, a version of INEWS that may or may not be Mini-INEWS has been detected Xon your system, in location "${PREFIX}/news/lib/inews". X XBecause you already have a version of INEWS, you probably do not need to Xinstall Mini-INEWS at this time. However, if you want to make changes to a Xprevious Mini-INEWS installation, you will need to overwrite the existing Xversion. In addition, installing Mini-INEWS now will allow future installations Xof NN to detect that the Mini-INEWS client is installed. X XxxENDxx X while : X do X read -p"Do you wish to install Mini-INEWS and overwrite ${PREFIX}/news/lib/inews? " yesno X if [ "$yesno" = "y" -o "$yesno" = "Y" -o "$yesno" = "n" -o "$yesno" = "N" ]; then X break X else X echo "Please enter Y or N." X echo "" X fi X done X if [ "$yesno" = "N" -o "$yesno" = "n" ]; then X echo "Mini-INEWS will not be installed. If you wish to install Mini-INEWS" X echo "at a later time, reinstall the NN port." X rm -f ${WRKDIR}/.install_inews X exit 0 X else X echo "" X fi X else X echo "You have what appears to be a version of Mini-INEWS installed on" X echo "your system, in location \"${PREFIX}/news/lib/inews\"." X echo "" X while : X do X read -p"Do you wish to reinstall Mini-INEWS with new settings? " yesno X if [ "$yesno" = "y" -o "$yesno" = "Y" -o "$yesno" = "n" -o "$yesno" = "N" ]; then X break X else X echo "Please enter Y or N." X echo "" X fi X done X if [ "$yesno" = "Y" -o "$yesno" = "y" ]; then X echo "" X else X echo "Mini-INEWS will not be installed." X rm -f ${WRKDIR}/.install_inews X echo "" X exit 0 X fi X fi Xfi X Xdefdomain=`hostname | sed -e 's/^[^.]*\.//' | sed -e 's/^[^.]*$//` X Xwhile : Xdo X echo "What do you want to appear after the @ symbol in the From:" X echo "header in Usenet articles posted by your users with NN?" X echo "" X read -p"[default: ${defdomain:-(none)}]: " domain X if [ -z ${domain:=${defdomain}} ]; then X echo "" X echo "You must supply a value. Try again." X echo "" X elif [ `echo ${domain} | grep -c '\.'` -eq 0 ]; then X echo "" X echo "You cannot supply a local hostname (i.e. the hostname must contain a . character)" X echo "" X else X while : X do X echo "" X echo "You entered: ${domain}" X echo "Example header: From: user@${domain}" X echo "" X read -p"Is this what you wanted? [y/N] " yesno X if [ -z $yesno ]; then X yesno="N" X break X elif [ "$yesno" = "y" -o "$yesno" = "Y" -o "$yesno" = "n" -o "$yesno" = "N" ]; then X break X else X echo "Please enter Y or N." X echo "" X fi X done X echo "" X if [ "$yesno" = "y" -o "$yesno" = "Y" ]; then X echo "\"${domain}\" it is." X break X fi X fi Xdone X Xcat conf.h.dist | sed -e '/\/\* #define.*DOMAIN/c\' -e"#define DOMAIN \"${domain}\"" > conf.h Xtouch ${WRKDIR}/.install_inews Xecho "" END-of-nn/scripts/configure exit To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message