Admin center:Ocsinventory-agent OpenBSD

From OCS Inventory NG
Jump to: navigation, search


Installing Ocsinventory-agent on OpenBSD

With the OpenBSD port

An OpenBSD port has been created to install OCS Inventory Agent but it is not in the OpenBSD port tree for the moment.


IMPORTANT: for the moment, use this port on OpenBSD CURRENT only. The port and the package should be integrated in the future OpenBSD 4.8 stable release if everything goes well.


You have to use bazaar to get the port which is in launchpad.net. So install bazaar first:

pkg_add -v bzr

When bazaar is installed, get the port from launchpad.net :

bzr branch lp:ocsinventory-unix-agent-openbsd

A new directory named trunk has been created. Just copy this directory in your /usr/ports/mystuff like this :

mdkir -p /usr/ports/mystuff/net
cp -r your_path/trunk /usr/ports/mystuff/net/ocsinventory-agent/

Now go to the /usr/ports/mystuff/net/ocsinventory-agent and install the port :

cd /usr/ports/mystuff/net/ocsinventory-agent
make install clean

Enjoy !

NB: don't forget to read /usr/local/share/doc/ocsinventory-agent/README.OpenBSD to find informations about configuring OCS Agent in OpenBSD.

Without the OpenBSD port

export PKG_PATH="http://ftp.arcane-networks.com/pub/OpenBSD/4.5/packages/i386/"
export OCS_VERSION="1.1.2"
mkdir /var/lib
pkg_add wget 
pkg_add nmap
pkg_add dmidecode
pkg_add pciutils
pkg_add p5-libwww
pkg_add p5-XML-Simple
pkg_add p5-Net-IP	
pkg_add p5-Proc-Daemon
cd
mkdir ocs
cd ocs
wget http://launchpad.net/ocsinventory-unix-agent/1.1.x/ocsinventory-unix-agent-$OCS_VERSION/+download/Ocsinventory-Agent-$OCS_VERSION.tar.gz
tar xvzf Ocsinventory-Agent-$OCS_VERSION.tar.gz
cd Ocsinventory-Agent-$OCS_VERSION
perl Makefile.PL
make
make install