File: README

package info (click to toggle)
wmnut 0.62-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,096 kB
  • ctags: 161
  • sloc: sh: 3,972; ansic: 1,080; makefile: 94
file content (74 lines) | stat: -rw-r--r-- 2,510 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
	wmnut - A wmaker dock app that displays UPS statistics from NUT's upsd

  Copyright (C) 2002-2003 Arnaud Quette

  wmnut 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.

  This program 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 this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

Comments are welcome.

Installation instructions for WMNUT.

Requirements
--------------------------------------------------------------
  WMNUT requires the:

	* X Window client and Xpm libraries and development files
	* NUT framework (www.exploits.org/nut) installed with misc
  	files (upsclient.h/o installed in /usr/local/ups/lib by
	make install-misc).

  In order to compile WMNUT using the Makefile, GNU make must
be used (FreeBSD users, the default BSD 'make' does not work,
so use gmake instead).

Installation
--------------------------------------------------------------

1) % tar -zxvf wmnut-X.YZ.tar.gz
or % tar -jxvf wmnut-X.YZ.tar.bz2

2) % cd wmnut-X.YZ/

3) % ./configure

Note that you can force NUT library files path by using
"--with-nut-libs" and "--with-nut-includes" or only "--with-nut"
to indicate the respective directories of upsclient.o and
upsclient.h.

4) % make (or gmake on most *BSD systems)

5) % make install (must be root) or simply copy binary (and
	optionally the man page) to a directory in your path.

6) (Optional) edit and tune (if needed) wmnutrc, then copy
   it to your home or/and etc directory :
   % cp wmnutrc /etc/wmnutrc
	or / and 
   % cp wmnutrc ~/.wmnutrc

Notes: 
- if both files exist, "~/.wmnutrc" takes precedence.
- command lines options takes precedence on above files.
- on debian, wmnutrc is located in /usr/share/doc/wmnut/

7) % wmnut & (or 'wmnut -h' for help, or 'man wmnut' for the man page)
If no parameter is given, wmnut will try to access the UPS at
"localhost" address ; otherwise try "wmnut -U upsname@hostname" or
edit your wmnutrc files.

Be sure to read the HINTS and TODO files too!

	- Arnaud Quette <arnaud.quette@free.fr>