%n getty_ps %v 2.0.7i %c * %l * %b * %d * %f * %t getty_ps-2.0.7i.tgz %w Misc %% %setup patch -u -p1 <<'ENDPATCH' diff -ru2N getty_ps-2.0.7i/Makefile getty_ps-MCC/Makefile --- getty_ps-2.0.7i/Makefile Tue Jan 23 16:07:04 1996 +++ getty_ps-MCC/Makefile Sat Aug 31 01:43:22 1996 @@ -9,5 +9,5 @@ # will be created in /var/lock, and binaries will go in /sbin. # -# FSSTND=-DFSSTND +FSSTND=-DFSSTND SHELL= /bin/sh @@ -16,8 +16,8 @@ #CFLAGS= -g -fpcc-struct-return ${FSSTND} #LFLAGS= -g -CFLAGS= -O3 -fomit-frame-pointer -fpcc-struct-return ${FSSTND} -LFLAGS= -s +CFLAGS= -O6 -fomit-frame-pointer ${FSSTND} -Dclear=getty_clear +LFLAGS= -LIBS= -ltermcap +LIBS= -lncurses LLIBS= @@ -47,9 +47,10 @@ install: - -mv $(BIN)/getty $(BIN)/getty- - -mv $(UUBIN)/uugetty $(UUBIN)/uugetty- - -cp getty $(BIN) - -cp uugetty $(UUBIN) - chmod 700 $(BIN)/getty $(UUBIN)/uugetty + for i in getty uugetty;do \ + (cd /usr/libexec;if [ -f $$i ];then ln -f $$i $$i.old;rm -f $$i;fi);\ + install -s -m 544 $$i /usr/libexec;done + install -m 444 man/getty.1 /usr/man/man1 + install -m 444 man/gettydefs.5 /usr/man/man5 + gzip -9f /usr/man/man1/getty.1 /usr/man/man5/gettydefs.5 clean: diff -ru2N getty_ps-2.0.7i/funcs.c getty_ps-MCC/funcs.c --- getty_ps-2.0.7i/funcs.c Tue May 17 08:33:36 1994 +++ getty_ps-MCC/funcs.c Sat Aug 31 08:55:31 1996 @@ -185,15 +185,19 @@ (void) ioctl(STDIN, TCGETS, &setterm); + setterm.c_iflag = termio->c_iflag; + setterm.c_oflag = termio->c_oflag; + setterm.c_cflag = termio->c_cflag; + setterm.c_lflag = termio->c_lflag; + setterm.c_line = termio->c_line; + /* sanity check */ + if ((setterm.c_cflag & CBAUD) == 0) + setterm.c_cflag |= B9600; + if ((setterm.c_cflag & CSIZE) == 0) + setterm.c_cflag |= DEF_CFL; + switch (state) { case INITIAL: - setterm.c_iflag = termio->c_iflag; - setterm.c_oflag = termio->c_oflag; - setterm.c_cflag = termio->c_cflag; - setterm.c_lflag = termio->c_lflag; - setterm.c_line = termio->c_line; - /* single character processing */ - setterm.c_lflag &= ~(ICANON); setterm.c_cc[VMIN] = 1; setterm.c_cc[VTIME] = 0; @@ -201,8 +205,4 @@ /* sanity check */ - if ((setterm.c_cflag & CBAUD) == 0) - setterm.c_cflag |= B9600; - if ((setterm.c_cflag & CSIZE) == 0) - setterm.c_cflag |= DEF_CFL; setterm.c_cflag |= (CREAD | HUPCL); @@ -211,16 +211,4 @@ case FINAL: - setterm.c_iflag = termio->c_iflag; - setterm.c_oflag = termio->c_oflag; - setterm.c_cflag = termio->c_cflag; - setterm.c_lflag = termio->c_lflag; - setterm.c_line = termio->c_line; - - /* sanity check - */ - if ((setterm.c_cflag & CBAUD) == 0) - setterm.c_cflag |= B9600; - if ((setterm.c_cflag & CSIZE) == 0) - setterm.c_cflag |= DEF_CFL; setterm.c_cflag |= CREAD; diff -ru2N getty_ps-2.0.7i/man/getty.1 getty_ps-MCC/man/getty.1 --- getty_ps-2.0.7i/man/getty.1 Thu Nov 2 05:04:38 1995 +++ getty_ps-MCC/man/getty.1 Sat Aug 31 00:34:59 1996 @@ -22,5 +22,5 @@ getty \- sets terminal mode, speed, and line discipline .SH SYNOPSIS -.B /etc/getty +.B /usr/libexec/getty [\-d .I defaults_file] @@ -34,5 +34,5 @@ .I [speed [type [lined]]] .br -.B /etc/getty \-c +.B /usr/libexec/getty \-c .I gettydefs_file .SH DESCRIPTION @@ -67,7 +67,7 @@ .I getty scans the defaults file, normally -.BR /etc/default/getty, -to determine certain runtime values (/etc/conf.getty if compiled with -FSSTND option). The values in the defaults file +.BR /etc/getty_ps/getty, +to determine certain runtime values. +The values in the defaults file (whose compiled\-in name can be altered with the optional .B \-d @@ -231,7 +231,7 @@ .I getty looks for the file -.BI /etc/default/getty .line, +.BI /etc/getty_ps/getty .line, (or, if it cannot find that file, then -.BR /etc/default/getty ), +.BR /etc/getty_ps/getty ), and if found, reads the contents for lines of the form @@ -508,8 +508,5 @@ .I getty to use the pathname -.BI /etc/default/defaults_file. -or -.BI /etc/conf.defaults_file -if compiled with FSSTND compliance. +.BI /etc/getty_ps/defaults_file. .SH "PROMPT SUBSTITUTIONS" When @@ -594,5 +591,5 @@ The number of currently signed\-on users. This is a count of the number of entries in the -.I /etc/utmp +.I /var/run/utmp file that have a non\-null ut_name field. @@ -784,8 +781,8 @@ .SH FILES .TP 16 -/etc/default/getty[\fI.line\fR] +/etc/getty_ps/getty[\fI.line\fR] Contains the runtime configuration. Note that .I uugetty -uses /etc/default/uugetty[\fI.line\fR]. +uses /etc/getty_ps/uugetty[\fI.line\fR]. .TP /etc/gettydefs diff -ru2N getty_ps-2.0.7i/table.c getty_ps-MCC/table.c --- getty_ps-2.0.7i/table.c Tue May 17 04:39:31 1994 +++ getty_ps-MCC/table.c Sat Aug 31 01:44:00 1996 @@ -27,8 +27,8 @@ /* Sane conditions. */ -#define ISANE ( BRKINT | IGNPAR | ISTRIP | ICRNL | IXON | IXANY ) +#define ISANE ( BRKINT | IGNPAR | ISTRIP | ICRNL | IXON ) #define OSANE ( OPOST | ONLCR ) #define CSANE ( DEF_CFL | CREAD | HUPCL ) -#define LSANE ( ISIG | ICANON | ECHO | ECHOE | ECHOK ) +#define LSANE ( IEXTEN | ISIG | ICANON | ECHO | ECHOE | ECHOK | ECHOKE | ECHOCTL ) #define CC_SANE { CINTR, CQUIT, CERASE, CKILL, CEOF, CNUL, CNUL, CNUL } diff -ru2N getty_ps-2.0.7i/tune.h getty_ps-MCC/tune.h --- getty_ps-2.0.7i/tune.h Sun Nov 19 21:25:14 1995 +++ getty_ps-MCC/tune.h Sat Aug 31 01:23:03 1996 @@ -42,5 +42,5 @@ #ifdef MY_CANON /* #define MY_ERASE '\177' /* 177 = ^?, delete */ -#define MY_ERASE '\10' /* 010 = ^H, bs */ +#define MY_ERASE '\177' /* 010 = ^H, bs */ #define MY_KILL '\025' /* 025 = ^U, nak */ #endif @@ -59,5 +59,5 @@ #define DEFAULTS "/etc/default/%s" /* name of defaults file */ #else -#define DEFAULTS "/etc/conf.%s" /* FSSTND compliant defaults file */ +#define DEFAULTS "/etc/getty_ps/%s" /* FSSTND compliant defaults file */ #endif #define ISSUE "/etc/issue" /* name of the issue file; ENDPATCH make * make install * rm -f /usr/libexec/*getty.old %%