--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').

