Installation
==================
Application required:
for command line tools
- GCC C++ compiler > 3.2
- rrdtool 1.2.x  - http://oss.oetiker.ch/rrdtool/, it requires only if you want
  store result of the analisis into rrd files and you want generate graphs from
  this rrd files.

for web application
- Apache mod_rewrite http://www.apache.org
- PHP 5.2.1+  http://www.php.net
- Zend Framework 1.0.0 or better - http://framework.zend.com

Application uses GNU autoconf make deployment system.

A quick way

1.) Unpak archive anywhere (tar -xzf ndevinfo-x.x.tar.gz)
2.) Build and install all stuff
 $ ./configure --with-rrdtool --enable-www
 $ make
 $ make install

For the detailed description of all options see output from

 $ ./configure --help

Command line tool portinfoexp is now installed. For detail information about
command line options and XML configuration, see
man page portinfoexp or portinfoexp.txt in the docs directory in the package.

3.) Set web application

Web application has the special configure options:
--with-zf-library-dir=ZFDIR     Zend Framework library directory
--with-web-base=WEBAPPURL       Relative URL for the web application

Web application is installed into $datadir/ndevinfowebUI - default is
/usr/local/share/ndevinfowebUI, it will be WEBTARGETDIR in the next description.

3.1)
After "make install" you need set apache environment for a web application:

Alias WEBAPPURL "WEBTARGETDIR/www"
<Directory "WEBTARGETDIR/www">
    AllowOverride All
    DirectoryIndex index.php
    Allow from all
</Directory>

You can change mod_rewrite or other appache directives in the
WEBTARGETDIR/www/.htaccess file.

3.2) Edit the application XML config file WEBTARGETDIR/app/config.xml
Set the content for  <deviceXMLConfig> tag. It must be filepath for
the next XML configuration for devices and groups definition. For more
about XML devices and groups definition, see item 2.)

Now you can go to http://mydomain/WEBAPPURL.
