Contents of this file for my own reference and can be seen as unofficial.


default root method:
./configure --prefix=/usr
possible user method:
./configure --userinstall=/home/bla/lsnet
possible user method (long):
./configure --sysconfdir=/home/bla/lsnet --htmldir=/home/bla/lsnet/html --logdir=/home/bla/lsnet/log


/usr/bin/lsnetd
/var/lib/lsnet/lsmem.log
/var/www/htdocs/lsnet/index.html

/home/bla/lsnet/bin/lsnetd
/home/bla/lsnet/log/lsmem.log
/home/bla/lsnet/html/index.html


defaults.c/.h

defines:

from config.h

SYSCONFDIR
HTMLDIR
LOGDIR

Reaplace:

        cp lsnet.conf $sysconfdir && \
if it doesn't exist createdir and write it from C

        mkdir -p $(DESTDIR)/var/www/htdocs/lsnet && \
if it doesn't exist createdir

        cp index.html-bak $(DESTDIR)/var/www/htdocs/lsnet/index.html && \
if it doesn't exist write it from C

        mkdir -p $(DESTDIR)/var/lib/lsnet && \
if it doesn't exist create it LOGDIR

        touch $(DESTDIR)/var/lib/lsnet/lsmem.log && touch $(DESTDIR)/var/lib/lsnet/lscpu.log && touch $(DESTDIR)/var/lib/lsnet/lsnet.log
*create if don't exist



0.3.4
*create in errors.h  to keep clean:
*check/create lockfile  /usr/lib/lsnet/lock for lsnetd
*check write permissions to /usr/lib/lsnet on lsnetd start
*check for clock skew in logs on lsnetd start

maybe add message during install or first run telling user to configure  lsnet/index.html
*add a lsnetd -s option to kill all running daemon instances and remove locks

-Pushed back/canceled
0.3.5
-create lsnet-html for generation of index.html containing any number of hosts
add a lsnet.conf entry for image size preference
clean up to have the entire lsnet installation in one dir:
-possibly move /etc/lsnet.conf to /usr/lib/lsnet
possibly move /var/www/htdocs/lsnet to /usr/lib/lsnet/http and replace with symbolic link

-possibly do the breakup of lsnetd, replacing use of fork with 3 different binaries, reducing memory usage slightly
pthreads combinations for  polling data, calculations/writing data, possible single lsnetd binary



0.3.5
*apply oneforall's makefile.am/in patches
*edit all unacceptable hardlinks out in .c/.h files for DESTDIR etc.
*get clock skew code working --was already done, added menu options and verified

0.3.6
*gd's combined into lsgd
*add config option for WEBDIR
*describe what each chart is plotting in README average/max/etc.
*implement 1 month internet usage chart
*fixed bug for NaN values in cpu logs, rarely causing offchart plotting
*moved double declaration for te0 in cpuoneminute() function

0.3.7
config option for image sizes
*config option for log dir
alternate config file(fully portable, no root needed) 
lock/log/config files possibly in ~/.lsnet
pthreads as alternative to fork
possibly multi-month charts

implement 1 month average mem usage chart
add uptime, users, and other info
implement pthreads support
make different network interfaces configurable, ie: ppp, eth1, etc.
need more error checks...


conform to HDB UUCP lock file format and use /var/lock and /var/log combination instead of /var/lib
add check for write permissions
add check for "no data in logs" for gd's
add check for write permission in gd's
possibly move all logs/images to local user dir for paranoid clowns...

Likely never:
add fall back / spring forward  logic (I don't care, it don't bother me)
this would just mean fixing 1 hour of overwritten chart data for 1 day once every year ....


-idea:
-lsnetd -c   configure option for prompting/dynamic generation of index.html and lsnet.conf
