From 45e22ff1214da1d190482e7ab13e5240a43e790b Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 28 Dec 1998 16:36:03 +0000 Subject: [PATCH] Added manpage --- imontty/Makefile | 24 +++++++++++++++---- imontty/README | 4 ++-- imontty/imontty.8.in | 55 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 6 deletions(-) create mode 100644 imontty/imontty.8.in diff --git a/imontty/Makefile b/imontty/Makefile index a022dddc..5eadd35c 100644 --- a/imontty/Makefile +++ b/imontty/Makefile @@ -2,22 +2,26 @@ # # (c) 1995-97 Volker Götz # -# $Id: Makefile,v 1.3 1998/09/26 18:28:06 akool Exp $ +# $Id: Makefile,v 1.4 1998/12/28 16:36:03 paul Exp $ ifeq (../.config,$(wildcard ../.config)) # # Automatic config with isdn4k-utils # include ../.config - MAN8PATH := $(CONFIG_MANDIR)/man8 + MAN8DIR := $(CONFIG_MANDIR)/man8 else # # Manual config standalone # CONFIG_SBINDRIR := /sbin - MAN8PATH := /usr/man/man8 + MAN8DIR := /usr/man/man8 endif +INSTALL=install +INSTALL_MAN=$(INSTALL) -o 0 -g 0 -m 0644 +MANPAGE=imontty.8 + CCFLAGS=-O2 #CCFLAGS=-I$(ISDN_INCLUDE) -g @@ -37,7 +41,18 @@ rootperm: exit 1; \ fi -install: $(PROGS) rootperm +imontty.8: imontty.8.in + MANDATE=`grep CHECKIN $< | awk '{print $4}'` + sed \ + -e "s#\@MANDATE\@#${MANDATE}#g" \ + -e "s#\@I4LVERSION\@#${I4LVERSION}#g" \ + < $< > $@ + +install-man: $(MANPAGE) + mkdir -p $(DESTDIR)$(MAN8DIR) + $(INSTALL_MAN) $< $(DESTDIR)$(MAN8DIR)/$(MANPAGE) + +install: $(PROGS) rootperm install-man install -s -o 0 -g 0 -m 0755 $(PROGS) $(DESTDIR)$(CONFIG_SBINDIR) uninstall: rootperm @@ -47,6 +62,7 @@ clean: rm -f *.o $(PROGS) *~ distclean: clean + rm -f $(MANPAGE) # # dummy for isdn4k-utils package diff --git a/imontty/README b/imontty/README index aad903e3..5489b8ad 100644 --- a/imontty/README +++ b/imontty/README @@ -2,7 +2,7 @@ * * (c) 1995-97 Volker Götz * -* $Id: README,v 1.1 1997/03/03 04:10:11 fritz Exp $ +* $Id: README,v 1.2 1998/12/28 16:36:04 paul Exp $ imontty 0.5 =========== @@ -36,7 +36,7 @@ ISDN channel status: Channel Usage Type Number ---------------------------------------------------------------------- -line0 Out Net S7900734 +line0 Out Net 07900734 line0 Off diff --git a/imontty/imontty.8.in b/imontty/imontty.8.in new file mode 100644 index 00000000..ad60da2d --- /dev/null +++ b/imontty/imontty.8.in @@ -0,0 +1,55 @@ +.\" $Id: imontty.8.in,v 1.1 1998/12/28 16:36:04 paul Exp $ +.\" +.\" CHECKIN $Date: 1998/12/28 16:36:04 $ +.\" +.\" Process this file with +.\" groff -man -Tascii imontty.8 for ASCII output, or +.\" groff -man -Tps imontty.8 for PostScript output +.\" +.TH IMONTTY 8 "@MANDATE@" isdn4k-utils-@I4LVERSION@ "Linux System Administration" +.SH NAME +imontty \- display status of all ISDN lines +.SH SYNOPSIS +.BI imontty +.br +.SH DESCRIPTION +.I imontty +displays the status of all ISDN lines. No options are supported. Read access +to \fI/dev/isdninfo\fR is required. + +The output is similar to this: +.nf + +ISDN channel status: + +Channel Usage Type Number +---------------------------------------------------------- +line0 Out Net 0204229700 +line0 Off + +.fi +.I +Usage +is one of \fBOff\fR(line), \fBOut\fR(going), \fBIn\fR(coming) or +\fBExcl\fR(usive). + +.I +Type +is one of \fBraw\fR (raw device), \fBModem\fR (modem/tty emulation), +\fBNet\fR (IP interface), \fBVoice\fR (voice call) or +\fBFax\fR (fax transmission). + +.I +Number +is either the called party's number (outgoing) or the +calling party number (incoming). + +.LP +.SH AUTHOR +Volker Götz volker@oops.franken.de +.br +manpage adapted from the README by Paul Slootman +.LP +.SH SEE ALSO +.I imon\c +\&(8)