home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sources.misc
- From: lm@rmit.edu.au (Luke Mewburn)
- Subject: v41i080: casu - comms. & status utils, v3.3, Patch01
- Message-ID: <1994Jan10.025948.4586@sparky.sterling.com>
- X-Md4-Signature: 374fa071c121556e32bef2f530cab573
- Sender: kent@sparky.sterling.com (Kent Landfield)
- Reply-To: Luke Mewburn <lm@rmit.edu.au>
- Organization: Sterling Software
- Date: Mon, 10 Jan 1994 02:59:48 GMT
- Approved: kent@sparky.sterling.com
-
- Submitted-by: lm@rmit.edu.au (Luke Mewburn)
- Posting-number: Volume 41, Issue 80
- Archive-name: casu/patch01
- Environment: UNIX, ANSI-C
- Patch-To: casu: Volume 41, Issue 76-79
-
- This patch brings CaSU-3.3 upto version 3.3.1. CaSU is a package
- (consisting of `flon - a program to list your friends logged
- on' and `to - a program to send short messages to people') of
- Communications And Status Utilities.
-
- It fixes a makefile problem when installing as setgid tty, and
- improves the way that unformatted/formatted manual pages are
- installed.
-
- ---
-
- diff -c /r/staff/lm/src/casu-3.3/ChangeLog ./ChangeLog
- *** /r/staff/lm/src/casu-3.3/ChangeLog Tue Dec 21 17:06:08 1993
- --- ./ChangeLog Thu Dec 23 12:42:38 1993
- ***************
- *** 1,9 ****
- --- 1,39 ----
- + Thu Dec 23 12:36:26 EST 1993 Luke Mewburn (lm@yallara)
- +
- + * increased to version 3.3.1, 931223 and prepared
- + for patch01 generation and release.
- +
- + * touched up README a bit.
- +
- + * separated installation of manuals from programs, and
- + provided installation directives for unformatted (install.man)
- + and formatted (install.catman) manual pages.
- +
- + * changed bitmask from 0x077 to 077 in source for
- + determining tty permissions in configure.in. (Bug
- + found by Michael Schroeder <screen@uni-erlangen.de>)
- +
- +
- + Wed Dec 22 16:22:16 EST 1993 Luke Mewburn (lm@yallara)
- +
- + * added patchlevel.h as a header that source should be
- + dependant upon.
- +
- + * terminated an echo in Makefile.in with a `;' so that
- + the multiline statement that makes _to_ setgid tty
- + work correctly.
- +
- + * split VERSION into VERSION and RELDATE, updated
- + usage statements in source accordingly.
- +
- +
- Tue Dec 21 17:04:46 EST 1993 Luke Mewburn (lm@yallara)
-
- * prepared for comp.sources.misc submission, created patchlevel.h
-
- * increased to version 3.3
-
- +
- Tue Dec 21 14:42:42 EST 1993 Luke Mewburn (lm@yallara)
-
- * added %b (host in brackets) to flon.
- ***************
- *** 243,251 ****
- * placed _flon_ & _to_ changelogs into this file at this point,
- for easier reference.
-
- ! *
- ! * CHANGELOG for _flon_ v3.1 and before:
- ! *
-
- 3.1, 930715
- - added -P (minimum time before it prints time instead of
- --- 273,282 ----
- * placed _flon_ & _to_ changelogs into this file at this point,
- for easier reference.
-
- !
- ! *
- ! * CHANGELOG for _flon_ v3.1 and before:
- ! *
-
- 3.1, 930715
- - added -P (minimum time before it prints time instead of
- ***************
- *** 442,450 ****
- - Undocumented original internal (to RMIT) version.
-
-
- ! *
- ! * CHANGELOG for _to_ v3.1 and before.
- ! *
-
- 3.1, 930715
- - changed a couple of global variable names to reflect changes in
- --- 473,481 ----
- - Undocumented original internal (to RMIT) version.
-
-
- ! *
- ! * CHANGELOG for _to_ v3.1 and before.
- ! *
-
- 3.1, 930715
- - changed a couple of global variable names to reflect changes in
- diff -c /r/staff/lm/src/casu-3.3/FLON.rof ./FLON.rof
- *** /r/staff/lm/src/casu-3.3/FLON.rof Tue Dec 21 14:52:44 1993
- --- ./FLON.rof Thu Dec 23 12:35:39 1993
- ***************
- *** 8,14 ****
- .\" To format this manual page, format it through a `tbl' compatible
- .\" filter, then through an nroff or troff compatible formatter.
- .\"
- ! .TH FLON 1 "December 21 1993"
- .SH NAME
- flon \- show which of your friends are logged on
- .SH SYNOPSIS
- --- 8,14 ----
- .\" To format this manual page, format it through a `tbl' compatible
- .\" filter, then through an nroff or troff compatible formatter.
- .\"
- ! .TH FLON 1 "December 23 1993"
- .SH NAME
- flon \- show which of your friends are logged on
- .SH SYNOPSIS
- ***************
- *** 541,544 ****
- .SH VERSION
- This manual documents
- .I flon
- ! version 3.3, 931221.
- --- 541,544 ----
- .SH VERSION
- This manual documents
- .I flon
- ! version 3.3.1, 931223.
- diff -c /r/staff/lm/src/casu-3.3/Makefile.in ./Makefile.in
- *** /r/staff/lm/src/casu-3.3/Makefile.in Tue Dec 21 17:12:20 1993
- --- ./Makefile.in Thu Dec 23 12:35:52 1993
- ***************
- *** 1,8 ****
- #
- # CaSU Makefile
- #
- ! # Version: 3.3
- ! # Written 931221 by Luke Mewburn <lm@rmit.edu.au>
- #
-
-
- --- 1,8 ----
- #
- # CaSU Makefile
- #
- ! # Version: 3.3.1
- ! # Written 931223 by Luke Mewburn <lm@rmit.edu.au>
- #
-
-
- ***************
- *** 62,75 ****
- CFLAGS = -O
- #CFLAGS = -pipe -Wall -O # gcc <2.0
- #CFLAGS = -pipe -Wall -O2 # gcc 2.0+
- LDFLAGS =
-
-
- # Manual formatting directives - if necessary, change to suit.
- ROFF = @ROFF@
- TBL = @TBL@
- - #ROFF = # set to this if you don't want to format man pages
- - #TBL = cat # set to this if you don't have tbl
-
-
- # Destination directories & files
- --- 62,74 ----
- CFLAGS = -O
- #CFLAGS = -pipe -Wall -O # gcc <2.0
- #CFLAGS = -pipe -Wall -O2 # gcc 2.0+
- +
- LDFLAGS =
-
-
- # Manual formatting directives - if necessary, change to suit.
- ROFF = @ROFF@
- TBL = @TBL@
-
-
- # Destination directories & files
- ***************
- *** 78,90 ****
- exec_prefix = $(prefix)
- binprefix =
- manprefix =
-
- bindir = $(exec_prefix)/bin
- libdir = /etc
- ! mandir = $(prefix)/man/cat1
- ! manext = 0
- ! #mandir = $(prefix)/man/man1 # set to this if the man pages are to be
- ! #manext = 1 # installed as nroff source.
-
- # Set who_prog to empty if you don't want flon linked to who
- who_prog = who
- --- 77,90 ----
- exec_prefix = $(prefix)
- binprefix =
- manprefix =
- + catprefix =
-
- bindir = $(exec_prefix)/bin
- libdir = /etc
- ! mandir = $(prefix)/man/man1
- ! manext = 1
- ! catdir = $(prefix)/cat/cat1
- ! catext = 0
-
- # Set who_prog to empty if you don't want flon linked to who
- who_prog = who
- ***************
- *** 108,114 ****
- SRCS = $(FSRCS) $(TSRCS) $(LSRCS)
- OBJS = $(FOBJS) $(TOBJS) $(LOBJS)
-
- ! HDRS = casu.h
-
- DISTFILES = $(SRCS) $(HDRS) COPYING ChangeLog Makefile.in \
- INSTALL README __TODO__ TO.rof FLON.rof \
- --- 108,114 ----
- SRCS = $(FSRCS) $(TSRCS) $(LSRCS)
- OBJS = $(FOBJS) $(TOBJS) $(LOBJS)
-
- ! HDRS = casu.h patchlevel.h
-
- DISTFILES = $(SRCS) $(HDRS) COPYING ChangeLog Makefile.in \
- INSTALL README __TODO__ TO.rof FLON.rof \
- ***************
- *** 117,149 ****
-
- all: @PROGS@
-
- !
- ! man: flon.doc to.doc
- !
- ! flon.doc: FLON.rof
- ! if test -n "$(ROFF)"; then \
- ! $(TBL) FLON.rof | $(ROFF) > $@; \
- ! else \
- ! cp FLON.rof $@; \
- ! fi
- !
- ! to.doc: TO.rof
- ! if test -n "$(ROFF)"; then \
- ! $(TBL) TO.rof | $(ROFF) > $@; \
- ! else \
- ! cp TO.rof $@; \
- ! fi
- !
-
- .c.o:
- $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir) $<
-
- ! inctree:
- ! inctree $(DEFS) $(SRCS)
- !
- ! $(OBJS): $(HDRS)
- !
- ! install: all man
- $(INSTALL_PROGRAM) flon $(bindir)/$(binprefix)flon
- if test -n "$(who_prog)"; then \
- rm -f $(bindir)/$(binprefix)$(who_prog); \
- --- 117,128 ----
-
- all: @PROGS@
-
- ! $(OBJS): $(HDRS)
-
- .c.o:
- $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir) $<
-
- ! install: all
- $(INSTALL_PROGRAM) flon $(bindir)/$(binprefix)flon
- if test -n "$(who_prog)"; then \
- rm -f $(bindir)/$(binprefix)$(who_prog); \
- ***************
- *** 151,162 ****
- fi
- $(INSTALL_PROGRAM) to $(bindir)/$(binprefix)to
- if test -n "$(to_group)"; then \
- ! echo "Installing to setgid to group $(to_group)" \
- chgrp $(to_group) $(bindir)/$(binprefix)to; \
- chmod g+s $(bindir)/$(binprefix)to; \
- fi
- ! $(INSTALL_DATA) $(srcdir)/flon.doc $(mandir)/$(manprefix)flon.$(manext)
- ! $(INSTALL_DATA) $(srcdir)/to.doc $(mandir)/$(manprefix)to.$(manext)
-
-
- flon: $(FOBJS)
- --- 130,147 ----
- fi
- $(INSTALL_PROGRAM) to $(bindir)/$(binprefix)to
- if test -n "$(to_group)"; then \
- ! echo "Installing _to_ setgid to group $(to_group)"; \
- chgrp $(to_group) $(bindir)/$(binprefix)to; \
- chmod g+s $(bindir)/$(binprefix)to; \
- fi
- !
- ! install.man:
- ! $(INSTALL_DATA) $(srcdir)/FLON.rof $(mandir)/$(manprefix)flon.$(manext)
- ! $(INSTALL_DATA) $(srcdir)/TO.rof $(mandir)/$(manprefix)to.$(manext)
- !
- ! install.catman: catman
- ! $(INSTALL_DATA) $(srcdir)/flon.0 $(catdir)/$(catprefix)flon.$(catext)
- ! $(INSTALL_DATA) $(srcdir)/to.0 $(catdir)/$(catprefix)to.$(catext)
-
-
- flon: $(FOBJS)
- ***************
- *** 170,176 ****
- $(CC) $(LDFLAGS) $(TOBJS) $(LIBS) -o $@
-
-
- ! tags: $(SRCS)
- ctags $(SRCS)
-
- clean:
- --- 155,180 ----
- $(CC) $(LDFLAGS) $(TOBJS) $(LIBS) -o $@
-
-
- ! catman: flon.0 to.0
- !
- ! flon.0: FLON.rof
- ! if test -n "$(ROFF)"; then \
- ! $(TBL) FLON.rof | $(ROFF) > $@; \
- ! else \
- ! cp FLON.rof $@; \
- ! fi
- !
- ! to.0: TO.rof
- ! if test -n "$(ROFF)"; then \
- ! $(TBL) TO.rof | $(ROFF) > $@; \
- ! else \
- ! cp TO.rof $@; \
- ! fi
- !
- ! inctree:
- ! inctree $(DEFS) $(SRCS)
- !
- ! TAGS: $(SRCS)
- ctags $(SRCS)
-
- clean:
- ***************
- *** 182,188 ****
- rm -f Makefile config.status @PROGS@ $(who_prog)
-
- realclean: distclean
- ! rm -f tags flon.doc to.doc
-
- dist: $(DISTFILES)
- echo `pwd` | sed 's|.*/||' > .fname
- --- 186,192 ----
- rm -f Makefile config.status @PROGS@ $(who_prog)
-
- realclean: distclean
- ! rm -f tags flon.0 to.0
-
- dist: $(DISTFILES)
- echo `pwd` | sed 's|.*/||' > .fname
- diff -c /r/staff/lm/src/casu-3.3/NEWS ./NEWS
- *** /r/staff/lm/src/casu-3.3/NEWS Tue Dec 21 16:53:19 1993
- --- ./NEWS Thu Dec 23 12:43:24 1993
- ***************
- *** 1,8 ****
- User visible changes in CaSU.
-
- ! Current version: 3.3
- See the file ChangeLog for details of all changes.
-
- Major changes from 3.2.2 to 3.3:
- * flon: support for machines that run YP/NIS and use a different
- getpwent() added.
- --- 1,11 ----
- User visible changes in CaSU.
-
- ! Current version: 3.3.1
- See the file ChangeLog for details of all changes.
-
- + Major changes from 3.3 to 3.3.1:
- + * improved installation instructions and manual page installation
- +
- Major changes from 3.2.2 to 3.3:
- * flon: support for machines that run YP/NIS and use a different
- getpwent() added.
- diff -c /r/staff/lm/src/casu-3.3/README ./README
- *** /r/staff/lm/src/casu-3.3/README Tue Dec 21 17:10:23 1993
- --- ./README Thu Dec 23 12:35:11 1993
- ***************
- *** 1,5 ****
- --- 1,9 ----
- CaSU -- communications & status utilities.
-
- +
- + Intro:
- + ------
- +
- CaSU is a collection of programs for communicating with, and showing
- the status of, other users (especially your friends). The package
- currently consists of:
- ***************
- *** 18,30 ****
- Refer to the manual (source form is `TO.rof') for more details.
-
-
- ! CaSU 3.3 has successfully been ported (in that the author has personally
- ! tested the auto-configured scripts) to the following architectures:
- ! A/UX 3.0, NetBSD 0.8, Solaris 2, SunOS 4.1.3, Umax 2.4
- ! Flon and To (at various stages of their development) have also been
- ! ported to the following architectures: (and theoretically should still
- ! work without problems)
- ! 386BSD 0.1, AIX, Dynix, Irix 4, Linux, SCO Unix, SVR4 (non-Solaris)
-
- _to_ may need to be installed by the system administrator if your system
- limits who can access a user's tty. During configuration, if a message
- --- 22,43 ----
- Refer to the manual (source form is `TO.rof') for more details.
-
-
- ! Quick Installation Notes:
- ! -------------------------
- ! From your favourite shell, run:
- ! sh ./configure
- ! make
- ! make install
- ! make install.man
- !
- !
- ! Some people may wish to install the manual pages formatted. If this
- ! is the case, type:
- ! make install.catman
- !
- ! By default, _flon_ will install a hardlink to itself with the name of
- ! `who' (to use _flon_ as who). If you don't want this behaviour, modify
- ! the Makefile and clear the `who_prog =' variable.
-
- _to_ may need to be installed by the system administrator if your system
- limits who can access a user's tty. During configuration, if a message
- ***************
- *** 33,50 ****
- - `to' is setgid to group 5
- appears, then this is the case.
-
- - Some people may wish to install the manual pages unformatted. If this
- - is the case, clear the `ROFF =' variable in the Makefile, and the
- - Makefile will determine that you wish to install them unformatted.
- - In this case, you may wish to change the manual destination directory
- - and extensions to man1 and 1 respectively (from cat1 and 0 respectively.)
-
- ! By default, _flon_ will install a hardlink to itself with the name of
- ! `who' (to use _flon_ as who). If you don't want this behaviour, modify
- ! the Makefile and clear the `who_prog =' variable.
-
-
- ! Future enhancements currently being considered include:
- - addition of a calendar program
- - enhance package to become the rcaid (remote communications and
- interactive diary) currently being designed by myself and
- --- 46,63 ----
- - `to' is setgid to group 5
- appears, then this is the case.
-
-
- ! CaSU 3.3.1 has successfully been ported (in that the author has personally
- ! tested the auto-configured scripts) to the following architectures:
- ! A/UX 3.0, NetBSD 0.0, Solaris 2, SunOS 4.1.3, Umax 2.4
- ! Flon and To (at various stages of their development) have also been
- ! ported to the following architectures: (and theoretically should still
- ! work without problems)
- ! 386BSD 0.1, AIX, Dynix, Irix 4, Linux, SCO Unix, SVR4 (non-Solaris)
-
-
- ! Future enhancements:
- ! --------------------
- - addition of a calendar program
- - enhance package to become the rcaid (remote communications and
- interactive diary) currently being designed by myself and
- ***************
- *** 59,62 ****
- accepted by the author, who may be contacted via email at:
- <lm@rmit.edu.au>
-
- ! Luke Mewburn, 931221.
- --- 72,75 ----
- accepted by the author, who may be contacted via email at:
- <lm@rmit.edu.au>
-
- ! Luke Mewburn, 931223.
- diff -c /r/staff/lm/src/casu-3.3/TO.rof ./TO.rof
- *** /r/staff/lm/src/casu-3.3/TO.rof Tue Dec 21 10:51:32 1993
- --- ./TO.rof Thu Dec 23 12:35:59 1993
- ***************
- *** 8,14 ****
- .\" To format this manual page, format it through a `tbl' compatible
- .\" filter, then through an nroff or troff compatible formatter.
- .\"
- ! .TH TO 1 "December 21 1993"
- .SH NAME
- to \- send a one line message to another user.
- .SH SYNOPSIS
- --- 8,14 ----
- .\" To format this manual page, format it through a `tbl' compatible
- .\" filter, then through an nroff or troff compatible formatter.
- .\"
- ! .TH TO 1 "December 23 1993"
- .SH NAME
- to \- send a one line message to another user.
- .SH SYNOPSIS
- ***************
- *** 341,344 ****
- .SH VERSION
- This manual documents
- .I to
- ! version 3.3, 931221.
- --- 341,344 ----
- .SH VERSION
- This manual documents
- .I to
- ! version 3.3.1, 931223.
- diff -c /r/staff/lm/src/casu-3.3/__TODO__ ./__TODO__
- *** /r/staff/lm/src/casu-3.3/__TODO__ Tue Dec 21 16:43:41 1993
- --- ./__TODO__ Thu Dec 23 12:51:38 1993
- ***************
- *** 1,5 ****
- - hunt and perform genocide upon the remaining bugs (there must be a few.)
-
- - ultrix barfs on chmod in sys/stat.h & getpwuid in pwd.h
- -
- - - release as v3.3 to comp.sources.misc
- --- 1,3 ----
- Only in .: casu-3.3.patch01
- diff -c /r/staff/lm/src/casu-3.3/configure ./configure
- *** /r/staff/lm/src/casu-3.3/configure Tue Dec 21 16:44:10 1993
- --- ./configure Thu Dec 23 12:42:48 1993
- ***************
- *** 652,658 ****
- if (!(x = ttyname(0))) exit(1);
- if (stat(x, &sb)) exit(1);
- om = sb.st_mode;
- ! if (chmod(x, om & ~0x077)) exit(1);
- m = system("mesg y");
- if (m == -1 || m == 127) exit(1);
- if (stat(x, &sb)) exit(1);
- --- 652,658 ----
- if (!(x = ttyname(0))) exit(1);
- if (stat(x, &sb)) exit(1);
- om = sb.st_mode;
- ! if (chmod(x, om & ~077)) exit(1);
- m = system("mesg y");
- if (m == -1 || m == 127) exit(1);
- if (stat(x, &sb)) exit(1);
- diff -c /r/staff/lm/src/casu-3.3/configure.in ./configure.in
- *** /r/staff/lm/src/casu-3.3/configure.in Tue Dec 21 12:15:18 1993
- --- ./configure.in Thu Dec 23 12:36:05 1993
- ***************
- *** 1,8 ****
- dnl
- dnl Process this file with autoconf to produce a configure script.
- dnl
- ! dnl Part of the CaSU package, v3.3
- ! dnl Written by Luke Mewburn <lm@rmit.edu.au>, 931221
- dnl
- dnl
- dnl
- --- 1,8 ----
- dnl
- dnl Process this file with autoconf to produce a configure script.
- dnl
- ! dnl Part of the CaSU package, v3.3.1
- ! dnl Written by Luke Mewburn <lm@rmit.edu.au>, 931223
- dnl
- dnl
- dnl
- ***************
- *** 58,64 ****
- if (!(x = ttyname(0))) exit(1);
- if (stat(x, &sb)) exit(1);
- om = sb.st_mode;
- ! if (chmod(x, om & ~0x077)) exit(1);
- m = system("mesg y");
- if (m == -1 || m == 127) exit(1);
- if (stat(x, &sb)) exit(1);
- --- 58,64 ----
- if (!(x = ttyname(0))) exit(1);
- if (stat(x, &sb)) exit(1);
- om = sb.st_mode;
- ! if (chmod(x, om & ~077)) exit(1);
- m = system("mesg y");
- if (m == -1 || m == 127) exit(1);
- if (stat(x, &sb)) exit(1);
- diff -c /r/staff/lm/src/casu-3.3/init.c ./init.c
- *** /r/staff/lm/src/casu-3.3/init.c Tue Dec 21 14:18:49 1993
- --- ./init.c Wed Dec 22 16:25:25 1993
- ***************
- *** 263,274 ****
- {
- fprintf(stderr, "\
- \n\
- ! %s version %s.\n\
- Copyright (C) 1992, 1993 Luke Mewburn.\n\
- Email: <lm@rmit.edu.au>\n\
- This is free software, and you are welcome to redistribute it under certain\n\
- conditions. See version 2 of the GNU Public License for more details.\n\
- ! ", progname, VERSION);
- exit(0);
- }
- exit(1);
- --- 263,274 ----
- {
- fprintf(stderr, "\
- \n\
- ! %s version %s, %s.\n\
- Copyright (C) 1992, 1993 Luke Mewburn.\n\
- Email: <lm@rmit.edu.au>\n\
- This is free software, and you are welcome to redistribute it under certain\n\
- conditions. See version 2 of the GNU Public License for more details.\n\
- ! ", progname, VERSION, RELDATE);
- exit(0);
- }
- exit(1);
- Only in .: patchlevel.h
- diff -c /r/staff/lm/src/casu-3.3/to.c ./to.c
- *** /r/staff/lm/src/casu-3.3/to.c Tue Dec 21 10:49:40 1993
- --- ./to.c Wed Dec 22 16:25:49 1993
- ***************
- *** 470,481 ****
- {
- fprintf(stderr, "\
- \n\
- ! %s version %s.\n\
- Copyright (C) 1993 Luke Mewburn\n\
- Email: <lm@rmit.edu.au>\n\
- This is free software, and you are welcome to redistribute it under certain\n\
- conditions. See version 2 of the GNU Public License for more details.\n\
- ! ", progname, VERSION);
- }
- exit((flags & ERROR ) != 0);
- }
- --- 470,481 ----
- {
- fprintf(stderr, "\
- \n\
- ! %s version %s, %s.\n\
- Copyright (C) 1993 Luke Mewburn\n\
- Email: <lm@rmit.edu.au>\n\
- This is free software, and you are welcome to redistribute it under certain\n\
- conditions. See version 2 of the GNU Public License for more details.\n\
- ! ", progname, VERSION, RELDATE);
- }
- exit((flags & ERROR ) != 0);
- }
-
- --
- ``Concealment is never as hard as people think, you Luke Mewburn
- must understand that. It's action while hiding that's <lm@rmit.edu.au>
- the hard part''
- -- Coyote, in Kim Stanley Robinson's `Green Mars'
-
- exit 0 # Just in case...
-