Stuart Henderson wrote:
--On 07 December 2005 16:52 +0000, Simon H wrote:
Thanks for this Stuart. I tried it withe right way from the man page
and it failed because the plugins dont support chroot flavor.
Plugins and the main software are in subdirectories
(/usr/ports/net/nagios/nagios & /usr/ports/net/nagios/plugins), you can
compile them separately, one with flavours, one without. But you don't
need to, read on..
So I cleaned everything up again and tried a normal make && make
install and it still fails with the original message. This is even
after the fact that I did a pkg_delete and cleaned the directories
recommended after the pkg_delete.
So any ideas why this would happen in a normal build of the port?
I'll perhaps try to install the package instead of the port but I
like installing from src where possible.
When you 'make install', the port is built, packages are created (you'll
see them in /usr/ports/packages/...) then installed. Packages for ftp
sites and CDs are made this way too. For e.g. Nagios, well, take a look
at /usr/ports/net/nagios/Makefile and see how it works...
Making the packages is done inside fake directories so multiple flavours
don't conflict until they're actually installed.
So, your current system probably has
/usr/ports/packages/.../All/nagios-* already built for both flavours of
the port, and you can just pkg_add (this is all 'make install' does
anyway: see for yourself with 'make -n install').
I understand this and have tried just installing the chroot package
manually also but nothing seems to be going in the right place
(/var/www/nagios is empty after adding the chrooted package). I'm doing
this in a VM so I'm reverting back to a snapshot which is just after
updating the ports tree and starting again.
What I dont understand is why the plugins dont require the chroot flavor
and how they would work with nagios chrooted. Also, what about the
dependencies such as GD and the like...do they all get chrooted
automagically too and if not, how does it work?
Is it really possible to get a full nagios implementation (inc. plugins)
chrooted?
Thanks
--
Simon H