Both 1.1-r4 and 1.1-r5 ebuilds of nagios reference: DEPEND=">=net-mail/mailx-8.1 !noweb? ( >=media-libs/jpeg-6b-r3 >=media-libs/libpng-1.2.5-r4 >=media-libs/libgd-1.8.3-r5 apache2? ( >=net-www/apache-2.0.43-r1 ) !apache2? ( <net-www/apache-2 ) ) perl? ( >=dev-lang/perl-5.6.1-r7 ) mysql? ( >=dev-db/mysql-3.23.56 ) pgsql? ( >=dev-db/postgresql-7.3.2 )" Where ufed reports that postgres is the proper USE flag to integrate into ebuilds.
I'm beginning that it's probably this way because it doesn't compile with postgres support enabled. Still working with it.
Created attachment 24668 [details, diff] Ebuild patch to allow nagios to build with postgreSQL support. Ebuild patch to allow nagios to build with postgreSQL support. NOTE: This does a --with-pgsql-inc=/usr/include/postgresql hard-coded into the ebuild. So if the postgresql ebuild moves it for some reason this will be broken.
Ok, figured it out. Because of the way postgreSQL is installed and the way it's referenced by nagios there are two solutions. One is to apply the nagios.patch as attached to the 1.1-r4 and 1.1-r5 ebuilds. The other is to find and patch all the places where #include <pgsql/XXX.h> is used. I'm torn as to which is the "right" way to do it for gentoo. I've already considered pg_config --includedir, but it outputs /usr/include doesn't help. Thoughts?
I just want to let you know that I am in the process of verifying the updated ebuild on both stable and unstable x86. I'll post a note when you can get -r6 from your local rsync mirror. Sorry for the inconvinience.
Created attachment 24885 [details] nagios-core-1.1-r6.ebuild Proposed ebuild.
Created attachment 24886 [details, diff] ChangeLog diff Changelog diff
I am experiancing some hardware problems at the moment. tigger^ promised to take care of this bug for the time being.
Another thing that would be nice is to possibly move the sample config files for nagios from /etc/nagios to /usr/share/doc/nagios. I've noticed in the past that when you upgrade nagios, it will put <nagios config file names>-sample files back in /etc/nagios. I really think if you want to look for sample configs, they should be in the directory posted above.
sorted and in cvs as -6