If you do not know theses powerfull tools you should consider try them…. Here is my "installation how-to" for installing these commands on a netBSD because the task is not so easy :
First of all, let's get the source :
$>wget ftp://sunsite.unc.edu/pub/Linux/system/status/sysstat-9.1.7.tar.gz
$>tar -xzvf sysstat-9.1.7.tar.gz
We need some limits that are setted in linux kernel headers. You should find it as /usr/include/linux/limits.h if you have a runing Linux somewhere. Otherwise there is free download of the C structures available on the debian repository https://packages.debian.org/wheezy/i386/linux-headers-3.2.0-4-amd64/download
$>cp limit.h ./sysstat-9.1.7/
$>cd sysstat-9.1.7/
We will need to include the limit headers structures previously mentionned in the C tree before we can compile it.
$> vi common.h
and add a line "#include limit.h"
Now we are ready to configure the code, we will disable nls to avoid _string(gettext) probleme under nls compilation directives :
$> ./configure –disable-nls
Well, let's create some tree that the compilation result may need
$> mkdir /etc/sysconfig /usr/local/ /etc/rc.d/init.d
And now use the gnu make tool : gmake !!!
Warning : do not use BSD make or you will encounter "Need an operator", "Missing dependency operator" & "warning: duplicate script for target ifeq ignored" errors during the compilation
$> pkg_add gmake
$> gmake
Under linux the group of root is root ! Uhu ! Let's fix the env variable used by code.
$> export man_group="wheel"
$> gmake install
Enjoy !
Lionix