Add a man page for dhcpcd-gtk.
authorRoy Marples <roy@marples.name>
Fri, 9 Jul 2010 09:34:01 +0000 (09:34 +0000)
committerRoy Marples <roy@marples.name>
Fri, 9 Jul 2010 09:34:01 +0000 (09:34 +0000)
configure
mk/man.mk [new file with mode: 0644]
mk/prog.mk
mk/sys.mk
src/dhcpcd-gtk/Makefile
src/dhcpcd-gtk/dhcpcd-gtk.8 [new file with mode: 0644]

index 9d92c09b8b38c054ce21f2e825899ff198c77a1b..0e85ec729a6c8e6537ae0e685c135ab91aafbc46 100755 (executable)
--- a/configure
+++ b/configure
@@ -142,6 +142,7 @@ for x in PREFIX SYSCONFDIR BINDIR ICONDIR; do
        [ $l -gt 2 ] && t="     "
        echo "#define $x$t      \"$v\"" >>$CONFIG_H
 done
+echo "MANDIR=          ${MANDIR}" >>$CONFIG_MK
 
 if [ -z "$CC" ]; then
        printf "Looking for compiler ... "
@@ -292,6 +293,7 @@ echo "   SYSCONFDIR =               $SYSCONFDIR"
 echo "   BINDIR =              $BINDIR"
 echo "   LIBDIR =              $LIBDIR"
 echo "   ICONDIR =             $ICONDIR"
+echo "   MANDIR =              $MANDIR"
 echo "   UI =                  $UI"
 echo
 
diff --git a/mk/man.mk b/mk/man.mk
new file mode 100644 (file)
index 0000000..dcfc1f0
--- /dev/null
+++ b/mk/man.mk
@@ -0,0 +1,3 @@
+_maninstall: ${MAN8}
+       ${INSTALL} -d ${DESTDIR}${MANDIR}/man8
+       ${INSTALL} -m ${MANMODE} ${MAN8} ${DESTDIR}${MANDIR}/man8
index 4a3e8e78862e14c4fe81b67801ee18a92a93ea3e..7844bfa2d33b6e28173c2b60ac22d0a844439e64 100644 (file)
@@ -21,8 +21,9 @@ _proginstall: ${PROG}
 include ${MKDIR}/sys.mk
 include ${MKDIR}/depend.mk
 include ${MKDIR}/files.mk
+include ${MKDIR}/man.mk
 
-install: _proginstall _filesinstall
+install: _proginstall _filesinstall _maninstall
 
 clean:
        rm -f ${OBJS} ${PROG} ${PROG}.core ${CLEANFILES}
index 311a6ec1a2f3227724b270f3c810f9bb09ad14d1..b32819089d5e08660373bb745a96e7925d7f4b2a 100644 (file)
--- a/mk/sys.mk
+++ b/mk/sys.mk
@@ -6,6 +6,7 @@ BINDIR?=        ${PREFIX}/bin
 BINMODE?=      0755
 NONBINMODE?=   0644
 LIBMODE?=      ${NONBINMODE}
+MANMODE?=      ${NONBINMODE}
 
 INCDIR?=       ${PREFIX}/include
 INCMODE?=      ${NONBINMODE}
index 301f37ca63e7c0c5e658d8f9faeeb58a61b29994..56e16ea2f8a2eebd19c2a4c5528746b2abf2584f 100644 (file)
@@ -8,6 +8,7 @@ ICONDIR?=       ${PREFIX}/share/dhcpcd/icons
 AUTOSTARTDIR?= ${PREFIX}/share/gnome/autostart
 FILESDIR=      ${AUTOSTARTDIR}
 FILES=         dhcpcd-gtk.desktop
+MAN8=          dhcpcd-gtk.8
 
 CPPFLAGS+=     ${NOTIFY} -I${TOPDIR}
 
diff --git a/src/dhcpcd-gtk/dhcpcd-gtk.8 b/src/dhcpcd-gtk/dhcpcd-gtk.8
new file mode 100644 (file)
index 0000000..66ae06a
--- /dev/null
@@ -0,0 +1,46 @@
+.\" Copyright (c) 2009-2010 Roy Marples
+.\" All rights reserved
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.Dd June 10, 2010
+.Dt DHCPCD-GTK 8 SMM
+.Os
+.Sh NAME
+.Nm dhcpcd-gtk
+.Nd a GTK+ frontend for network configuration
+.Sh DESCRIPTION
+.Nm
+is a GTK+ frotend for network configuration.
+It uses
+.Xr dhcpcd 8
+as the backend and communicates to it and optionally
+.Xr wpa_supplicant 8
+via
+.Nm dhcpcd_dbus .
+.Sh SEE ALSO
+.Xr dhcpcd 8 ,
+.Xr wpa_supplicant 8
+.Sh AUTHORS
+.An Roy Marples Aq roy@marples.name
+.Sh BUGS
+Please report them to http://roy.marples.name/projects/dhcpcd