Date: Wed, 17 Nov 1999 23:23:20 -0500 (EST) From: ajk@waterspout.com To: FreeBSD-gnats-submit@freebsd.org Subject: ports/14970: conserver-7.4 port submission Message-ID: <199911180423.XAA09406@tempest.waterspout.com>
next in thread | raw e-mail | index | archive | help
>Number: 14970 >Category: ports >Synopsis: conserver-7.4 port submission >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Nov 17 20:30:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Andrew J. Korty >Release: FreeBSD 4.0-CURRENT i386 >Organization: WaterSpout Communications, Inc. >Environment: FreeBSD tempest.waterspout.com 4.0-CURRENT FreeBSD 4.0-CURRENT #21: Sat Nov 13 12:46:32 EST 1999 root@tempest.waterspout.com:/usr/src/sys/compile/TEMPEST i386 >Description: Update of the conserver port. It has two build dependencies, msrc0 and mkcmd. >How-To-Repeat: N/A >Fix: # 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: # # conserver # conserver/Makefile # conserver/files # conserver/files/md5 # conserver/patches # conserver/patches/patch-aa # conserver/patches/patch-ab # conserver/patches/patch-ac # conserver/patches/patch-ad # conserver/patches/patch-ae # conserver/patches/patch-af # conserver/patches/patch-ag # conserver/patches/patch-ah # conserver/patches/patch-ai # conserver/pkg # conserver/pkg/PLIST # conserver/pkg/DESCR # conserver/pkg/COMMENT # conserver/pkg/MESSAGE # echo c - conserver mkdir -p conserver > /dev/null 2>&1 echo x - conserver/Makefile sed 's/^X//' >conserver/Makefile << 'END-of-conserver/Makefile' X# New ports collection makefile for: conserver X# Version required: 7.4 X# Date created: 17 November 1999 X# Whom: ajk@waterspout.com X# X# $FreeBSD$ X# X XDISTNAME= conserver-7.4 XCATEGORIES= comms XMASTER_SITES= ftp://ftp.physics.purdue.edu/pub/pundits/ XEXTRACT_SUFX= .tgz X XMAINTAINER= ajk@waterspout.com X XBUILD_DEPENDS= makeme:${PORTSDIR}/devel/msrc0 \ X mkcmd:${PORTSDIR}/devel/mkcmd X XMAKE_FLAGS= XMAKEFILE= XMAN5= conserver.cf.5 XMAN8= conserver.8 console.8 X X# Set this to where you want console(8) to connect to by default X# or use something like ``make DEFAULTHOST=myserver.mydomain.net'' XDEFAULTHOST?= localhost XMAKE_ENV+= DEFAULTHOST="${DEFAULTHOST}" X Xdo-build: X.for d in etc/conserver etc/console X (cd ${WRKSRC}/$d && ${SETENV} ${MAKE_ENV} makeme \ X ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}) X.endfor X Xdo-install: X.for d in etc/conserver etc/console X @(cd ${WRKSRC}/$d && ${SETENV} ${MAKE_ENV} makeme \ X ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) X.endfor X ${INSTALL_DATA} ${WRKSRC}/lib/conserver.cf/conserver.cf \ X ${PREFIX}/etc/conserver.cf.eg X ${INSTALL_MAN} ${WRKSRC}/etc/console/console.man \ X ${PREFIX}/man/man8/console.8 X ${INSTALL_MAN} ${WRKSRC}/lib/conserver.cf/conserver.cf.man \ X ${PREFIX}/man/man5/conserver.cf.5 X ${INSTALL_MAN} ${WRKSRC}/etc/conserver/conserver.man \ X ${PREFIX}/man/man8/conserver.8 X @if [ ! -f ${PREFIX}/etc/rc.d/conserver.sh ]; then \ X ${ECHO} "Installing ${PREFIX}/etc/rc.d/conserver.sh startup file."; \ X ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/conserver.sh; \ X ${ECHO} "if [ -x ${PREFIX}/sbin/conserver -a -f ${PREFIX}/etc/conserver.cf ]; then" >> ${PREFIX}/etc/rc.d/conserver.sh; \ X ${ECHO} " ${PREFIX}/sbin/conserver -d -n & ${ECHO} -n ' conserver'" >> ${PREFIX}/etc/rc.d/conserver.sh; \ X ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/conserver.sh; \ X ${CHMOD} 751 ${PREFIX}/etc/rc.d/conserver.sh; \ X fi X @${CAT} ${.CURDIR}/pkg/MESSAGE X X.include <bsd.port.mk> END-of-conserver/Makefile echo c - conserver/files mkdir -p conserver/files > /dev/null 2>&1 echo x - conserver/files/md5 sed 's/^X//' >conserver/files/md5 << 'END-of-conserver/files/md5' XMD5 (conserver-7.4.tgz) = 3e66a882b3f1ea938d774f015fce42fe END-of-conserver/files/md5 echo c - conserver/patches mkdir -p conserver/patches > /dev/null 2>&1 echo x - conserver/patches/patch-aa sed 's/^X//' >conserver/patches/patch-aa << 'END-of-conserver/patches/patch-aa' X--- etc/conserver/Make.host.orig Wed Nov 17 15:59:57 1999 X+++ etc/conserver/Make.host Wed Nov 17 18:20:05 1999 X@@ -7,7 +7,7 @@ X # (1) change ETC below to where you would like the console server installed X # I would not change the name, you have to much with the docs then... X PROG= conserver X-ETC= ${DESTDIR}/usr/'ifdef(`NEW',`new',`local')`/etc X+ETC= ${DESTDIR}/usr/'ifdef(`NEW',`new',`local')`/sbin X DOC= ${DESTDIR}/usr/local/man X X 'define(HAVEPTYD,ifelse(HOSTTYPE,`S81',`yes',`no'))dnl X@@ -33,7 +33,7 @@ X HOSTTYPE,`PTX4',` -DDO_VIRTUAL=0', X HOSTTYPE,`LINUX',` -DDO_VIRTUAL=1', X HOSTTYPE,`SUN5',` -DDO_VIRTUAL=1', X-HOSTTYPE,`EPIX',` -systype bsd43')` X+HOSTTYPE,`EPIX',` -systype bsd43')` -DPORT=782 X CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} X X GENh= main.h END-of-conserver/patches/patch-aa echo x - conserver/patches/patch-ab sed 's/^X//' >conserver/patches/patch-ab << 'END-of-conserver/patches/patch-ab' X--- etc/conserver/cons.h.orig Wed Nov 17 15:58:28 1999 X+++ etc/conserver/cons.h Wed Nov 17 15:58:30 1999 X@@ -60,7 +60,7 @@ X /* Location of the configuration file X */ X #if !defined(CONFIG) X-#define CONFIG "/usr/local/lib/conserver.cf" X+#define CONFIG "/usr/local/etc/conserver.cf" X #endif X X END-of-conserver/patches/patch-ab echo x - conserver/patches/patch-ac sed 's/^X//' >conserver/patches/patch-ac << 'END-of-conserver/patches/patch-ac' X--- etc/conserver/consent.c.orig Wed Nov 17 18:10:14 1999 X+++ etc/conserver/consent.c Wed Nov 17 18:12:57 1999 X@@ -295,7 +295,7 @@ X */ X termp.c_iflag = IXON|IXOFF|BRKINT; X termp.c_oflag = 0; X- termp.c_cflag = CREAD; X+ termp.c_cflag = CREAD | (termp.c_cflag & (CLOCAL|CRTSCTS)); X termp.c_cflag |= pCE->pparity->iset; X termp.c_lflag = 0; X /* X@@ -303,7 +303,7 @@ X * Set the VTIME == 1 (0.1 sec) X * Don't bother with the control characters as they are not used X */ X- termp.c_cc[VMIN] = 128; X+ termp.c_cc[VMIN] = 1; X termp.c_cc[VTIME] = 1; X X if (-1 == cfsetospeed(&termp,pCE->pbaud->irate)) { X@@ -563,11 +563,10 @@ X exit(1); X } X #endif X- n_tios.c_iflag &= ~(IGNCR|IUCLC); X+ n_tios.c_iflag &= ~(IGNCR); X n_tios.c_iflag |= ICRNL|IXON|IXANY; X- n_tios.c_oflag &= ~(OLCUC|ONOCR|ONLRET|OFILL|NLDLY|CRDLY|TABDLY|BSDLY); X n_tios.c_oflag |= OPOST|ONLCR; X- n_tios.c_lflag &= ~(XCASE|NOFLSH|ECHOK|ECHONL); X+ n_tios.c_lflag &= ~(NOFLSH|ECHOK|ECHONL); X n_tios.c_lflag |= ISIG|ICANON|ECHO; X n_tios.c_cc[VEOF] = '\004'; X n_tios.c_cc[VEOL] = '\000'; END-of-conserver/patches/patch-ac echo x - conserver/patches/patch-ad sed 's/^X//' >conserver/patches/patch-ad << 'END-of-conserver/patches/patch-ad' X--- etc/conserver/conserver.man.orig Wed Nov 17 15:58:35 1999 X+++ etc/conserver/conserver.man Wed Nov 17 15:58:41 1999 X@@ -47,7 +47,7 @@ X .TP X .BI \-C config X With this option the invoker may specify an alternate confguration. X-The default \fIconfig\fP is /usr/local/lib/conserver.cf. X+The default \fIconfig\fP is /usr/local/etc/conserver.cf. X .TP X .B \-d X Variaous debug messages may (or may not) be enabled. Depends on X@@ -85,7 +85,7 @@ X .SH FILES X .TS X l l. X-/usr/local/lib/conserver.cf description of console terminal lines X+/usr/local/etc/conserver.cf description of console terminal lines X /var/log/consoles/\fIhost\fP log files for \fIhost\fP's console X /dev/tty?? terminal line device files X \fIstdout\fP summary of unloved console errors END-of-conserver/patches/patch-ad echo x - conserver/patches/patch-ae sed 's/^X//' >conserver/patches/patch-ae << 'END-of-conserver/patches/patch-ae' X--- etc/conserver/group.c.orig Wed Nov 17 18:07:38 1999 X+++ etc/conserver/group.c Wed Nov 17 18:09:43 1999 X@@ -902,7 +902,7 @@ X #endif X #if USE_TERMIO X if (-1 == ioctl(pCEServing->fdtty, TCSBRK, (char *)0)) { X- CSTROUT(pCLServing->fd, "failed]\r\n"); X+ CSTROUT(pCLServing->fd, "tcsendbreak failed]\r\n"); X continue; X } X #else X@@ -1274,15 +1274,12 @@ X continue; X } X #if !defined(XTABS) /* XXX hack */ X-#define XTABS TAB3 X+#define XTABS OXTABS X #endif X- if (XTABS == (TABDLY&sbuf.c_oflag)) { X- sbuf.c_oflag &= ~TABDLY; X- sbuf.c_oflag |= TAB0; X- } else { X- sbuf.c_oflag &= ~TABDLY; X+ if (XTABS & sbuf.c_oflag) X+ sbuf.c_oflag &= ~XTABS; X+ else X sbuf.c_oflag |= XTABS; X- } X if (-1 == tcsetattr(pCEServing->fdtty, TCSANOW, & sbuf)) { X CSTROUT(pCLServing->fd, "failed]\r\n"); X continue; END-of-conserver/patches/patch-ae echo x - conserver/patches/patch-af sed 's/^X//' >conserver/patches/patch-af << 'END-of-conserver/patches/patch-af' X--- etc/conserver/machine.h.orig Wed Nov 17 18:04:13 1999 X+++ etc/conserver/machine.h Wed Nov 17 18:06:09 1999 X@@ -77,7 +77,7 @@ X #endif X X #if !defined(HAVE_UWAIT) X-#define HAVE_UWAIT !(defined(IBMR2)||defined(SUN5)||defined(HPUX8)||defined(HPUX9)||defined(HPUX10)||defined(PTX)||defined(IRIX5)||defined(IRIX6)||defined(LINUX)) X+#define HAVE_UWAIT !(defined(IBMR2)||defined(SUN5)||defined(HPUX8)||defined(HPUX9)||defined(HPUX10)||defined(PTX)||defined(IRIX5)||defined(IRIX6)||defined(LINUX)||defined(FREEBSD)) X #endif X X #if !defined(HAVE_WAIT3) X@@ -129,7 +129,7 @@ X #endif X X #if !defined(HAVE_SETSID) X-#define HAVE_SETSID (defined(IBMR2)||defined(SUN5)||defined(HPUX)||defined(PTX)||defined(IRIX5)||defined(IRIX6)||defined(LINUX)) X+#define HAVE_SETSID (defined(IBMR2)||defined(SUN5)||defined(HPUX)||defined(PTX)||defined(IRIX5)||defined(IRIX6)||defined(LINUX)||defined(FREEBSD)) X #endif X X /* should we use flock to keep multiple conservers from hurting each other? X@@ -151,7 +151,7 @@ X #define USE_TERMIO (defined(ETA10)||defined(V386)) X #endif X #if !defined(USE_TERMIOS) X-#define USE_TERMIOS (defined(HPUX)||defined(SUN5)||defined(PTX)||defined(IRIX5)||defined(IRIX6)||defined(LINUX)) X+#define USE_TERMIOS (defined(HPUX)||defined(SUN5)||defined(PTX)||defined(IRIX5)||defined(IRIX6)||defined(LINUX)||defined(FREEBSD)) X #endif X #if !defined(USE_TCBREAK) X #define USE_TCBREAK (defined(SUN4)||defined(PTX)) END-of-conserver/patches/patch-af echo x - conserver/patches/patch-ag sed 's/^X//' >conserver/patches/patch-ag << 'END-of-conserver/patches/patch-ag' X--- etc/console/Make.host.orig Sat Nov 22 23:19:33 1997 X+++ etc/console/Make.host Wed Nov 17 18:31:11 1999 X@@ -15,7 +15,7 @@ X # edit the ETC directory below to change where the console client X # is installed. X PROG= console X-ETC= ${DESTDIR}/usr/'ifdef(`NEW',`new',`local')`/etc X+ETC= ${DESTDIR}/usr/'ifdef(`NEW',`new',`local')`/bin X DOC= ${DESTDIR}/usr/local/man X X I=/usr/include X@@ -31,7 +31,7 @@ X DEBUG='ifelse(HOSTTYPE,`V386',`',`-O')` X CDEFS= -D'HOSTTYPE`'ifelse( X HOSTTYPE,`IBMR2',` -DUSE_TERMIO', X-HOSTTYPE,`EPIX',` -systype bsd43')` -DHOST=\"${SERVER}\" X+HOSTTYPE,`EPIX',` -systype bsd43')` -DHOST=\"${DEFAULTHOST}\" -DPORT=782 X CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} X X GENh= main.h END-of-conserver/patches/patch-ag echo x - conserver/patches/patch-ah sed 's/^X//' >conserver/patches/patch-ah << 'END-of-conserver/patches/patch-ah' X--- etc/console/console.m.orig Sat Nov 22 23:19:33 1997 X+++ etc/console/console.m Wed Nov 17 18:29:04 1999 X@@ -566,17 +566,17 @@ X return; X X #if USE_TERMIOS X- if (0 != ioctl(0, TCGETS, & o_tios)) { X+ if (0 != tcgetattr(0, & o_tios)) { X fprintf(stderr, "%s: iotcl: getsw: %s\n", progname, strerror(errno)); X exit(10); X } X n_tios = o_tios; X- n_tios.c_iflag &= ~(INLCR|IGNCR|ICRNL|IUCLC|IXON); X+ n_tios.c_iflag &= ~(INLCR|IGNCR|ICRNL|IXON); X n_tios.c_oflag &= ~OPOST; X n_tios.c_lflag &= ~(ICANON|ISIG|ECHO); X n_tios.c_cc[VMIN] = 1; X n_tios.c_cc[VTIME] = 0; X- if (0 != ioctl(0, TCSETS, & n_tios)) { X+ if (0 != tcsetattr(0, TCSANOW, & n_tios)) { X fprintf(stderr, "%s: getarrt: %s\n", progname, strerror(errno)); X exit(10); X } X@@ -652,7 +652,7 @@ X if (!screwy) X return; X #if USE_TERMIOS X- (void)ioctl(0, TCSETS, (char *)&o_tios); X+ (void)tcsetattr(0, TCSANOW, &o_tios); X #else X #if USE_TERMIO X (void)ioctl(0, TCSETA, (char *)&o_tio); X@@ -677,7 +677,7 @@ X register int nr; X X while (0 != iLen) { X- if (-1 == (nr = write(fd, pcBuf, iLen))) { X+ if (0 >= (nr = write(fd, pcBuf, iLen))) { X c2cooked(); X fprintf(stderr, "%s: lost connection\n", progname); X exit(3); END-of-conserver/patches/patch-ah echo x - conserver/patches/patch-ai sed 's/^X//' >conserver/patches/patch-ai << 'END-of-conserver/patches/patch-ai' X--- lib/conserver.cf/conserver.cf.man.orig Wed Nov 17 16:01:07 1999 X+++ lib/conserver.cf/conserver.cf.man Wed Nov 17 16:01:12 1999 X@@ -4,7 +4,7 @@ X .SH NAME X conserver.cf \- table of server console terminals used by conserver(8L) X .SH SYNOPSIS X-.B /usr/local/lib/conserver.cf X+.B /usr/local/etc/conserver.cf X .sp X .br X \fIserver\fP:\fIpassword\fP:\fIdevice\fP:\fIbaud\fP:\fIlogfile\fP:\fIgroup\fP END-of-conserver/patches/patch-ai echo c - conserver/pkg mkdir -p conserver/pkg > /dev/null 2>&1 echo x - conserver/pkg/PLIST sed 's/^X//' >conserver/pkg/PLIST << 'END-of-conserver/pkg/PLIST' Xbin/console Xetc/conserver.cf.eg Xetc/rc.d/conserver.sh Xsbin/conserver END-of-conserver/pkg/PLIST echo x - conserver/pkg/DESCR sed 's/^X//' >conserver/pkg/DESCR << 'END-of-conserver/pkg/DESCR' XThis program provides a convenient way to manage many remote serial Xconsoles for machines. A server (conserver(8)) runs on each server Xmachine and it connects to the specified serial port. It can log, Xprovide shared access to remote consoles, etc. If there are multiple Xmachines running conserver(8), a master conserver(8) can be run to Xconnect to all the slave servers, providing a single point of access Xto the entire cluster. X XThis is very handy for remote unattended FreeBSD servers. It can Xsend serial break signals (if the driver supports it, cy does not!) Xwhich is useful for breaking into DDB on hung machines. END-of-conserver/pkg/DESCR echo x - conserver/pkg/COMMENT sed 's/^X//' >conserver/pkg/COMMENT << 'END-of-conserver/pkg/COMMENT' XManage remote serial consoles via TCP/IP. END-of-conserver/pkg/COMMENT echo x - conserver/pkg/MESSAGE sed 's/^X//' >conserver/pkg/MESSAGE << 'END-of-conserver/pkg/MESSAGE' X XYou must create /usr/local/etc/conserver.cf before using this Xpackage. See the sample /usr/local/etc/conserver.cf.eg or the Xconserver.cf(5) manual page if you need assistance. X END-of-conserver/pkg/MESSAGE exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911180423.XAA09406>