-------------------------------------
 INSTALL for ipmiutil source
-------------------------------------
 
The ipmiutil source package provides IPMI-based utilities and kernel 
patches for managing various servers in Linux or Windows.
 
-----------------------
  Build instructions
-----------------------

To add LanDesk IPMI support:
Support for the LanDesk IPMI driver requires a library supplied by 
LanDesk (libipmiapi.a).  After obtaining this library, place it in
lib/libipmiapi.a.  Then you can link ipmiutil to support it by 
specifying the following during configure:
   "./configure --enable-landesk=yes"

To build with GNU freeipmi:
Edit util/Makefile.am to uncomment the line with -lfreeipmi and
also comment out the following GNU_STUB line.

To build without IPMI LAN 2.0 and lanplus plugin 
(to decrease size, or to avoid using libcrypto), which may
be desirable for use on bootable media (USB/CDROM),
specify the following during configure:
   "./configure --disable-lanplus"

Steps to build for Linux:
# ./beforeconf.sh
  Which automates these functions:
   * copying libtool files
   * aclocal   (may be needed if automake versions are different)
   * autoconf  (may be needed if automake versions are different)
# ./configure
# make
To install this package, use one of the following:
#  make install
#  make rpm
The make rpm produces a binary rpm, and a source rpm, which can be 
installed with "rpm -i *.rpm".

Steps to build for Windows:
1) Install Visual Studio 6.0 or later.
2) Download the contributed files needed, see
     http://ipmiutil.sf.net/FILES/ipmiutil-contrib.zip 
   or from their original locations 
   public domain getopt.c:
     http://www.koders.com/c/fid034963469B932D9D87F91C86680EB08DB4DE9AA3.aspx
   GNU LGPL getopt.c:
     http://svn.xiph.org/trunk/ogg-tools/oggsplit/
   openssl:
     http://www.openssl.org/source/openssl-0.9.7l.tar.gz
3) Copy getopt.* to util/
4) Build the openssl for Windows as per INSTALL.W32 for VC++
5) Copy the resulting *.lib to lib/ and *.dll to util/
   Copy openssl/*.h to lib/lanplus/openssl/
6) Edit buildwin.cmd to reflect the installed location of the VC libraries.
7) Run buildwin.cmd

