From 0e62034030efc4ccde0eee1a70621a12b8b9039f Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 8 Dec 2014 21:01:48 -0600 Subject: [PATCH] wmifinfo: Add manpage. Adapted from Debian manpage: http://sources.debian.net/src/wmifinfo/0.09-7/debian/wmifinfo.1/ --- wmifinfo/Makefile | 3 +++ wmifinfo/wmifinfo.1 | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 wmifinfo/wmifinfo.1 diff --git a/wmifinfo/Makefile b/wmifinfo/Makefile index 38da6c9..80b61c9 100644 --- a/wmifinfo/Makefile +++ b/wmifinfo/Makefile @@ -19,6 +19,7 @@ COPTS = -D'VERSION="$(VERSION)"' -D'NAME="$(NAME)"' LDOPTS = -lX11 -lXpm -lXext PREFIX = /usr/local BINDIR = $(PREFIX)/bin +MANDIR = $(PREFIX)/share/man BIN = wmifinfo FILES = wmifinfo.o xutils.o @@ -42,6 +43,8 @@ clean: install: $(INSTALL) -d $(DESTDIR)$(BINDIR) $(INSTALL) $(BIN) $(DESTDIR)$(BINDIR) + $(INSTALL) -d $(DESTDIR)$(MANDIR)/man1 + $(INSTALL) -m 644 wmifinfo.1 $(DESTDIR)$(MANDIR)/man1 dist: clean rm -rf /tmp/wmifinfo-$(VERSION) diff --git a/wmifinfo/wmifinfo.1 b/wmifinfo/wmifinfo.1 new file mode 100644 index 0000000..1a396af --- /dev/null +++ b/wmifinfo/wmifinfo.1 @@ -0,0 +1,37 @@ +.TH WMIFINFO 1 "June 7, 2002" +.SH NAME +wmifinfo \- dockapp for showing basic network info for all available interfaces +.SH SYNOPSIS +.B wmifinfo +[\fIOPTIONS\fR] +.SH DESCRIPTION +\fBwmifinfo\fP is is a simple applet showing basic network info for all +available interfaces. +It shows IP address, netmask, gateway and MAC address. A bit like ifconfig. +Left-button click moves to the next interface, right-button click calls +ifup/ifdown scripts. +Please report bugs if you find any. +.SH OPTIONS +A summary of options is included below. +.TP +.B \-h +Show summary of options. +.TP +.B \-v +Show version of program. +.TP +.B \-d +Command to exec for iface-down +.TP +.B \-i +Start with given interface, if available +.TP +.B \-l +LCD display mode +.TP +.B \-u +Command to exec for iface-up +.br +.SH AUTHOR +This manual page was written by S\[/o]ren Boll Overgaard , +for the Debian GNU/Linux system (but may be used by others).