aboutsummaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
Diffstat (limited to 'comms')
-rw-r--r--comms/conserver/Makefile30
-rw-r--r--comms/conserver/distinfo1
-rw-r--r--comms/conserver/files/Makefile3
-rw-r--r--comms/conserver/files/patch-aa33
-rw-r--r--comms/conserver/files/patch-ab44
-rw-r--r--comms/conserver/files/patch-ac24
-rw-r--r--comms/conserver/files/patch-ad34
-rw-r--r--comms/conserver/files/patch-ae41
-rw-r--r--comms/conserver/files/patch-af28
-rw-r--r--comms/conserver/files/patch-ag36
-rw-r--r--comms/conserver/pkg-comment1
-rw-r--r--comms/conserver/pkg-descr11
-rw-r--r--comms/conserver/pkg-plist6
13 files changed, 292 insertions, 0 deletions
diff --git a/comms/conserver/Makefile b/comms/conserver/Makefile
new file mode 100644
index 000000000000..4161086bb697
--- /dev/null
+++ b/comms/conserver/Makefile
@@ -0,0 +1,30 @@
+# Ports collection makefile for: conserver
+# Version required: 5.21-Beta
+# Date created: 22 November 1997
+# Whom: Peter Wemm <peter@netplex.com.au>
+#
+# $Id$
+#
+
+DISTNAME= conserver-5.21-Beta
+PKGNAME= conserver-5.21
+CATEGORIES= comms
+MASTER_SITES= ftp://ftp.uu.net/vendor/bitsko/config-mgmt/ \
+ ftp://unix.hensa.ac.uk/mirrors/uunet/vendor/bitsko/config-mgmt/
+EXTRACT_SUFX= .shar.gz
+
+MAINTAINER= peter@FreeBSD.org
+
+EXTRACT_CMD= zcat
+EXTRACT_BEFORE_ARGS=
+EXTRACT_AFTER_ARGS= |sh
+NO_WRKSUBDIR= yes
+NO_CONFIGURE= yes
+
+# Set this to where you want console(8) to connect to by default
+MAKE_ENV+= DEFAULTHOST="localhost"
+
+post-extract:
+ cp ${FILESDIR}/Makefile ${WRKSRC}
+
+.include <bsd.port.mk>
diff --git a/comms/conserver/distinfo b/comms/conserver/distinfo
new file mode 100644
index 000000000000..17f296d341fd
--- /dev/null
+++ b/comms/conserver/distinfo
@@ -0,0 +1 @@
+MD5 (conserver-5.21-Beta.shar.gz) = f19d56fba0c85d8b2c680c4b630f1a1b
diff --git a/comms/conserver/files/Makefile b/comms/conserver/files/Makefile
new file mode 100644
index 000000000000..fddd381bcf0b
--- /dev/null
+++ b/comms/conserver/files/Makefile
@@ -0,0 +1,3 @@
+SUBDIR= conserver.cf conserver console
+
+.include <bsd.subdir.mk>
diff --git a/comms/conserver/files/patch-aa b/comms/conserver/files/patch-aa
new file mode 100644
index 000000000000..a45e3923c74b
--- /dev/null
+++ b/comms/conserver/files/patch-aa
@@ -0,0 +1,33 @@
+--- conserver/Makefile.orig Sat Nov 22 20:42:18 1997
++++ conserver/Makefile Sat Nov 22 20:43:24 1997
+@@ -8,6 +8,6 @@
+ # I would not change the name, you have to much with the docs then...
+ PROG= conserver
+-ETC= ${DESTDIR}/usr/local/etc
+-DOC= ${DESTDIR}/usr/local/man
++ETC= ${DESTDIR}/usr/local/sbin
++DOC= ${DESTDIR}/usr/local/man/man8
+
+ # if we have to PUCC ptyd daemon we can use it to get ptys, else use fallback.o
+@@ -25,5 +25,5 @@
+ INCLUDE=
+ DEBUG=-O
+-CDEFS= -DSUN5 -DHAVE_PTYD=0 -DDO_VIRTUAL=1
++CDEFS= -DFREEBSD -DHAVE_PTYD=0 -DDO_VIRTUAL=1
+ CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE}
+
+@@ -42,5 +42,5 @@
+
+ ${PROG}:$P ${OBJ}
+- ${CC} -o $@ ${CFLAGS} ${OBJ} ${PUCCLIB} -lsocket -lnsl
++ ${CC} -o $@ ${CFLAGS} ${OBJ} ${PUCCLIB} -lcrypt
+
+ clean: FRC
+@@ -60,5 +60,6 @@
+
+ install: all dirs FRC
+- install -c -s ${PROG} ${ETC}/${PROG}
++ install -c -s -o bin -g bin -m 555 ${PROG} ${ETC}/${PROG}
++ install -c -o bin -g bin -m 444 ${MAN} ${DOC}/conserver.8
+
+ lint: ${HDR} ${SRC} FRC
diff --git a/comms/conserver/files/patch-ab b/comms/conserver/files/patch-ab
new file mode 100644
index 000000000000..e42cfb4bddb0
--- /dev/null
+++ b/comms/conserver/files/patch-ab
@@ -0,0 +1,44 @@
+--- ./conserver/cons.h Sat Nov 22 20:11:48 1997
++++ ./conserver/cons.h Sat Aug 23 17:40:11 1997
+@@ -54,5 +54,5 @@
+ #endif
+ #if !defined(HAVE_UWAIT)
+-#define HAVE_UWAIT !(defined(IBMR2)||defined(SUN5)||defined(HPUX8)||defined(HPUX9)||defined(PTX)||defined(IRIX5))
++#define HAVE_UWAIT !(defined(IBMR2)||defined(SUN5)||defined(HPUX8)||defined(HPUX9)||defined(PTX)||defined(IRIX5)||defined(FREEBSD))
+ #endif
+
+@@ -86,5 +86,5 @@
+ */
+ #if !defined(CONFIG)
+-#define CONFIG "/usr/local/lib/conserver.cf"
++#define CONFIG "/usr/local/etc/conserver.cf"
+ #endif
+
+@@ -171,5 +171,5 @@
+
+ #if !defined(HAVE_SETSID)
+-#define HAVE_SETSID (defined(IBMR2)||defined(SUN5)||defined(HPUX7)||defined(HPUX8)||defined(HPUX9)||defined(PTX)||defined(IRIX5))
++#define HAVE_SETSID (defined(IBMR2)||defined(SUN5)||defined(HPUX7)||defined(HPUX8)||defined(HPUX9)||defined(PTX)||defined(IRIX5)||defined(FREEBSD))
+ #endif
+
+@@ -193,5 +193,5 @@
+ #endif
+ #if !defined(USE_TERMIOS)
+-#define USE_TERMIOS (defined(HPUX7)||defined(HPUX8)||defined(HPUX9)||defined(SUN5)||defined(PTX)||defined(IRIX5))
++#define USE_TERMIOS (defined(HPUX7)||defined(HPUX8)||defined(HPUX9)||defined(SUN5)||defined(PTX)||defined(IRIX5)||defined(FREEBSD))
+ #endif
+ #if !defined(USE_TCBREAK)
+@@ -258,5 +258,5 @@
+ /* which type signal handlers return on this machine
+ */
+-#if defined(sun) || defined(NEXT2) || defined(SUN5) || defined(PTX) || defined(IRIX5)
++#if defined(sun) || defined(NEXT2) || defined(SUN5) || defined(PTX) || defined(IRIX5) || defined(FREEBSD)
+ #define SIGRETS void
+ #else
+@@ -273,5 +273,5 @@
+ */
+ #if !defined(HAVE_STRERROR)
+-#define HAVE_STRERROR (defined(IBMR2)||defined(ETA10)||defined(V386)||defined(SUN5)||defined(NEXT2)||defined(HPUX8)||defined(HPUX9)||defined(PTX)||defined(IRIX5))
++#define HAVE_STRERROR (defined(IBMR2)||defined(ETA10)||defined(V386)||defined(SUN5)||defined(NEXT2)||defined(HPUX8)||defined(HPUX9)||defined(PTX)||defined(IRIX5)||defined(FREEBSD))
+ #endif
+ #if ! HAVE_STRERROR
diff --git a/comms/conserver/files/patch-ac b/comms/conserver/files/patch-ac
new file mode 100644
index 000000000000..138896bbd677
--- /dev/null
+++ b/comms/conserver/files/patch-ac
@@ -0,0 +1,24 @@
+--- ./conserver/group.c Sat Nov 22 20:11:49 1997
++++ ./conserver/group.c Sat Aug 23 17:19:13 1997
+@@ -750,5 +750,5 @@
+ CSTROUT(pCLServing->fd, "- ");
+ if (-1 == tcsendbreak(pCEServing->fdtty, 9)) {
+- CSTROUT(pCLServing->fd, "failed]\r\n");
++ CSTROUT(pCLServing->fd, "tcsendbreak failed]\r\n");
+ continue;
+ }
+@@ -1119,11 +1119,9 @@
+ }
+ #if !defined(XTABS) /* XXX hack */
+-#define XTABS TAB3
++#define XTABS OXTABS
+ #endif
+- if (XTABS == (TABDLY&sbuf.c_oflag)) {
+- sbuf.c_oflag &= ~TABDLY;
+- sbuf.c_oflag |= TAB0;
++ if (XTABS & sbuf.c_oflag) {
++ sbuf.c_oflag &= ~XTABS;
+ } else {
+- sbuf.c_oflag &= ~TABDLY;
+ sbuf.c_oflag |= XTABS;
+ }
diff --git a/comms/conserver/files/patch-ad b/comms/conserver/files/patch-ad
new file mode 100644
index 000000000000..c109b6c2b12d
--- /dev/null
+++ b/comms/conserver/files/patch-ad
@@ -0,0 +1,34 @@
+--- ./conserver/consent.c Sat Nov 22 20:21:46 1997
++++ ./conserver/consent.c Sat Aug 23 18:05:11 1997
+@@ -206,5 +206,5 @@
+ * Don't bother with the control characters as they are not used
+ */
+- termp.c_cc[VMIN] = 128;
++ termp.c_cc[VMIN] = 1;
+ termp.c_cc[VTIME] = 1;
+
+@@ -425,13 +425,13 @@
+
+ #if USE_TERMIOS
+- if (0 != ioctl(0, TCGETS, & n_tio)) {
++ if (0 != tcgetattr(0, & n_tio)) {
+ fprintf(stderr, "%s: iotcl: getsw: %s\n", progname, strerror(errno));
+ exit(1);
+ }
+- n_tio.c_iflag &= ~(IGNCR|IUCLC);
++
++ n_tio.c_iflag &= ~(IGNCR);
+ n_tio.c_iflag |= ICRNL|IXON|IXANY;
+- n_tio.c_oflag &= ~(OLCUC|ONOCR|ONLRET|OFILL|NLDLY|CRDLY|TABDLY|BSDLY);
+ n_tio.c_oflag |= OPOST|ONLCR;
+- n_tio.c_lflag &= ~(XCASE|NOFLSH|ECHOK|ECHONL);
++ n_tio.c_lflag &= ~(NOFLSH|ECHOK|ECHONL);
+ n_tio.c_lflag |= ISIG|ICANON|ECHO;
+ n_tio.c_cc[VEOF] = '\004';
+@@ -445,5 +445,5 @@
+ n_tio.c_cc[VSTOP] = '\023';
+ n_tio.c_cc[VSUSP] = '\032';
+- if (0 != ioctl(0, TCSETS, & n_tio)) {
++ if (0 != tcsetattr(0, TCSANOW, & n_tio)) {
+ fprintf(stderr, "%s: getarrt: %s\n", progname, strerror(errno));
+ exit(1);
diff --git a/comms/conserver/files/patch-ae b/comms/conserver/files/patch-ae
new file mode 100644
index 000000000000..1d676c4b7570
--- /dev/null
+++ b/comms/conserver/files/patch-ae
@@ -0,0 +1,41 @@
+--- console/Makefile.orig Sat Nov 22 20:42:18 1997
++++ console/Makefile Sat Nov 22 20:43:43 1997
+@@ -6,8 +6,8 @@
+ # edit the ETC directory below to change where the console client
+ # is installed.
+ PROG= console
+-ETC= ${DESTDIR}/usr/local/etc
+-DOC= ${DESTDIR}/usr/local/man
++ETC= ${DESTDIR}/usr/local/sbin
++DOC= ${DESTDIR}/usr/local/man/man8
+
+ I=/usr/include
+ S=/usr/include/sys
+@@ -17,7 +17,7 @@
+
+ INCLUDE= -I$C
+ DEBUG=-O
+-CDEFS= -DSUN5
++CDEFS= -DFREEBSD
+ CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE}
+
+ HDR=
+@@ -29,7 +29,7 @@
+ all: ${PROG}
+
+ ${PROG}:
+- ${CC} -o $@ ${CFLAGS} ${ONEC} -lsocket -lnsl
++ ${CC} -o $@ ${CFLAGS} ${ONEC}
+
+ clean: FRC
+ rm -f Makefile.bak ${PROG} a.out *.o core errs lint.out tags
+@@ -47,7 +47,8 @@
+ distrib -c ${ETC}/${PROG}
+
+ install: all dirs FRC
+- install -cs ${PROG} ${ETC}/${PROG}
++ install -c -s -o bin -g bin -m 555 ${PROG} ${ETC}/${PROG}
++ install -c -o bin -g bin -m 444 ${MAN} ${DOC}/console.8
+
+ lint: ${HDR} ${ONEC} FRC
+ lint -h ${CDEFS} ${INCLUDE} ${ONEC}
diff --git a/comms/conserver/files/patch-af b/comms/conserver/files/patch-af
new file mode 100644
index 000000000000..5a51b2b6ff42
--- /dev/null
+++ b/comms/conserver/files/patch-af
@@ -0,0 +1,28 @@
+--- ./console/console.c Sat Nov 22 20:11:48 1997
++++ ./console/console.c Sat Aug 23 17:40:44 1997
+@@ -367,15 +367,15 @@
+
+ #if USE_TERMIOS
+- if (0 != ioctl(0, TCGETS, & o_tios)) {
++ if (0 != tcgetattr(0, & o_tios)) {
+ fprintf(stderr, "%s: iotcl: getsw: %s\n", progname, strerror(errno));
+ exit(10);
+ }
+ n_tios = o_tios;
+- n_tios.c_iflag &= ~(INLCR|IGNCR|ICRNL|IUCLC|IXON);
++ n_tios.c_iflag &= ~(INLCR|IGNCR|ICRNL|IXON);
+ n_tios.c_oflag &= ~OPOST;
+ n_tios.c_lflag &= ~(ICANON|ISIG|ECHO);
+ n_tios.c_cc[VMIN] = 1;
+ n_tios.c_cc[VTIME] = 0;
+- if (0 != ioctl(0, TCSETS, & n_tios)) {
++ if (0 != tcsetattr(0, TCSANOW, & n_tios)) {
+ fprintf(stderr, "%s: getarrt: %s\n", progname, strerror(errno));
+ exit(10);
+@@ -453,5 +453,5 @@
+ return;
+ #if USE_TERMIOS
+- (void)ioctl(0, TCSETS, (char *)&o_tios);
++ (void)tcsetattr(0, TCSANOW, &o_tios);
+ #else
+ #if USE_TERMIO
diff --git a/comms/conserver/files/patch-ag b/comms/conserver/files/patch-ag
new file mode 100644
index 000000000000..0c42c41f3c1b
--- /dev/null
+++ b/comms/conserver/files/patch-ag
@@ -0,0 +1,36 @@
+--- conserver.cf/Makefile.orig Sat Nov 22 22:25:19 1997
++++ conserver.cf/Makefile Sat Nov 22 22:29:15 1997
+@@ -4,18 +4,19 @@
+ #
+
+ # if you edit LIB below you have to change cons.hs default config define.
+-PROG= conserver.cf
+-LIB= ${DESTDIR}/usr/local/lib
+-DOC= ${DESTDIR}/usr/man
++PROG= conserver.cf.eg
++LIB= ${DESTDIR}/usr/local/etc
++DOC= ${DESTDIR}/usr/local/man/man5
+
+ SRCs= conserver.cf
+ MAN= conserver.cf.5l
+ OTHER= README
+ SOURCE= Makefile ${OTHER} ${MAN} ${SRCl} ${SRCs}
+
+-all: ${SRCl} ${PROG}
++all: ${PROG}
+
+ ${PROG}: ${SRCs}
++ sed -e '/^[^#]/s/^/#/' < ${SRCs} > ${PROG}
+
+ clean: FRC
+ rm -f Makefile.bak a.out core errs lint.out tags
+@@ -29,7 +30,8 @@
+ dirs: ${LIB} ${DOC}
+
+ install: all dirs FRC
+- install -c ${PROG} ${LIB}/${PROG}
++ install -c -o bin -g bin -m 444 ${PROG} ${LIB}
++ install -c -o bin -g bin -m 444 ${MAN} ${DOC}/conserver.cf.5
+
+ lint: FRC
+
diff --git a/comms/conserver/pkg-comment b/comms/conserver/pkg-comment
new file mode 100644
index 000000000000..32176afed413
--- /dev/null
+++ b/comms/conserver/pkg-comment
@@ -0,0 +1 @@
+Manage remote serial consoles via TCP/IP
diff --git a/comms/conserver/pkg-descr b/comms/conserver/pkg-descr
new file mode 100644
index 000000000000..d700b9963442
--- /dev/null
+++ b/comms/conserver/pkg-descr
@@ -0,0 +1,11 @@
+This program provides a convenient way to manage many remote serial
+consoles for machines. A server (conserver(8)) runs on each server
+machine and it connects to the specified serial port. It can log,
+provide shared access to remote consoles, etc. If there are multiple
+machines running conserver(8), a master conserver(8) can be run to
+connect to all the slave servers, providing a single point of access
+to the entire cluster.
+
+This is very handy for remote unattended FreeBSD servers. It can
+send serial break signals (if the driver supports it, cy does not!)
+which is useful for breaking into DDB on hung machines.
diff --git a/comms/conserver/pkg-plist b/comms/conserver/pkg-plist
new file mode 100644
index 000000000000..54ddc3910dec
--- /dev/null
+++ b/comms/conserver/pkg-plist
@@ -0,0 +1,6 @@
+etc/conserver.cf.eg
+man/man5/conserver.cf.5.gz
+man/man8/conserver.8.gz
+man/man8/console.8.gz
+sbin/conserver
+sbin/console