From: Lennart Poettering Date: Sat, 6 Aug 2005 13:11:18 +0000 (+0000) Subject: preliminary mn page work X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=61eb92b1ba30fd4da9be7e9dc9714125c1576cca;p=catta preliminary mn page work git-svn-id: file:///home/lennart/svn/public/avahi/trunk@247 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/Makefile.am b/Makefile.am index 62ee027..2523408 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,8 +21,29 @@ ACLOCAL_AMFLAGS = -I common include $(srcdir)/common/doxygen.mk -EXTRA_DIST = bootstrap.sh LICENSE $(DX_CONFIG) docs/INSTALL docs/TODO docs/DBUS-API docs/README docs/HACKING docs/overview.dia -SUBDIRS = common avahi-common avahi-core avahi-discover-standalone avahi-client avahi-daemon initscript avahi-dnsconfd avahi-utils examples +EXTRA_DIST = \ + bootstrap.sh \ + LICENSE \ + $(DX_CONFIG) \ + docs/INSTALL \ + docs/TODO \ + docs/DBUS-API \ + docs/README \ + docs/HACKING \ + docs/overview.dia + +SUBDIRS = \ + common \ + avahi-common \ + avahi-core \ + avahi-discover-standalone \ + avahi-client \ + avahi-daemon \ + initscript \ + avahi-dnsconfd \ + avahi-utils \ + examples \ + man pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = avahi-core.pc diff --git a/configure.ac b/configure.ac index a4ad8fd..5da0054 100644 --- a/configure.ac +++ b/configure.ac @@ -253,6 +253,7 @@ avahi-utils/Makefile avahi-utils/avahi/Makefile examples/Makefile common/Makefile +man/Makefile ]) AC_OUTPUT diff --git a/man/Makefile.am b/man/Makefile.am new file mode 100644 index 0000000..2d382ee --- /dev/null +++ b/man/Makefile.am @@ -0,0 +1,48 @@ +# $Id$ + +# This file is part of avahi. +# +# avahi is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# avahi is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public +# License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with avahi; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. + +man_MANS = avahi-browse.1 + +noinst_DATA = \ + avahi-browse.1.xml + +EXTRA_DIST = \ + $(man_MANS) \ + avahi-browse.1.xml.in \ + xmltoman.css \ + xmltoman.xsl \ + xmltoman.dtd + +CLEANFILES = \ + $(noinst_DATA) + +avahi-browse.1.xml: avahi-browse.1.xml.in Makefile + sed -e 's,@sysconfdir\@,$(sysconfdir),g' \ + -e 's,@sbindir\@,$(sbindir),g' \ + -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \ + -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@ + +if USE_XMLTOMAN + +CLEANFILES += $(man_MANS) + +avahi-browse.1: avahi-browse.1.xml Makefile + xmltoman $< > $@ + +endif diff --git a/man/avahi-browse.1.xml.in b/man/avahi-browse.1.xml.in new file mode 100644 index 0000000..e9fb2c2 --- /dev/null +++ b/man/avahi-browse.1.xml.in @@ -0,0 +1,127 @@ + + + + + + + + + + + + ifplugstatus [options] [INTERFACE] + + + +

ifplugstatus is an utility which may be used to detect the link + status of a local Linux ethernet device, much in the same way + mii-diag, mii-tool and ethtool work. In fact it supports all + three different APIs these three tools use. In addition it supports + link checking with the IFF_RUNNING interface flag, which most modern + drivers (not only ethernet) support, and association status checking + with the wireless extension API for WLAN devices.

+ +

The APIs are tried in the following order:

+ +

First the newest API: SIOCETHTOOL (aka ethtool API)

+

Second the next older API: SIOCGMIIREG (aka mii-diag API)

+

Than the WLAN API: wireless extension (aka iwconfig API)

+

Followed by the cleanest API: IFF_RUNNING (aka ifconfig API)

+ +

The oldest API (SIOCPRIV aka mii-tool API) is not tested since it is obsolete.

+ +

ifplugstatus may be used in shell script since it returns the + current status as return value. It is especially useful to + detect the available APIs on the used network driver. (Option + -v)

+
+ + + +

You may specify an ethernet device on the command + line. Otherwise ifplugstatus will check all available network interfaces.

+ + + + + + + + + + + + +
+ +
+

0 Success

+

1 Failure

+

2 Link beat detected (only available when an interface is specified)

+

3 Unplugged (same here)

+
+ +
+

ifplugd was written by Lennart Poettering + <@PACKAGE_BUGREPORT@>. ifplugd is available + at +

+
+ +
+

+ , , , +

+
+ +
+

This man page was written using by Oliver Kurth.

+
+ +
diff --git a/man/xmltoman.css b/man/xmltoman.css new file mode 100644 index 0000000..caab604 --- /dev/null +++ b/man/xmltoman.css @@ -0,0 +1,30 @@ +/* $Id: xmltoman.css 52 2003-10-17 00:09:23Z lennart $ */ + +/*** + This file is part of ifplugd. + + ifplugd is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your + option) any later version. + + ifplugd is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with ifplugd; if not, write to the Free Software Foundation, + Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +***/ + +body { color: black; background-color: white; margin: 0.5cm; } +a:link, a:visited { color: #900000; } +h1 { text-transform:uppercase; font-size: 18pt; color: #00009F; } +p { margin-left:1cm; margin-right:1cm; } +.cmd { font-family:monospace; } +.file { font-family:monospace; } +.arg { text-transform:uppercase; font-family:monospace; font-style: italic; } +.opt { font-family:monospace; font-weight: bold; } +.manref { font-family:monospace; } +.option .optdesc { margin-left:2cm; } diff --git a/man/xmltoman.dtd b/man/xmltoman.dtd new file mode 100644 index 0000000..42809db --- /dev/null +++ b/man/xmltoman.dtd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/man/xmltoman.xsl b/man/xmltoman.xsl new file mode 100644 index 0000000..2048708 --- /dev/null +++ b/man/xmltoman.xsl @@ -0,0 +1,120 @@ + + + + + + + + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + + + + + + <xsl:value-of select="@name"/>(<xsl:value-of select="@section"/>) + + + + +

Name

+

+ + - + +

+ + + +
+ + +

+ +

+
+ + +

+ +

+
+ + + + + + + + + + + + + + +
+ +
+
+ + +

Synopsis

+ +
+ + +

Synopsis

+ +
+ + +

Description

+ +
+ + +

Options

+ +
+ + +

+ +
+ + +
+
+ + + + + () + + + () + + + + + + + + +