Local USE flags should be used to decide if you want to install the CGI's or not. On a distributed installation you don't need or want a webserver with cgi's on. There is already a bug against the dependency of apache, bug id 20617.
Graphical cgi's should only be compiled if USE="gd" is set.
Created attachment 14325 [details, diff] Added few more features USE="mysql -pgsql" will log data into mysql - status: tested. USE="-mysql pgsql" needs to be confirmed - status: not yet tested. Debugging features (debug0 - 5 ) are also available. Ebuild can still be better improved by providing file-based performance data routines feature, which I haven't look at it yet. Please re-confirm what I have done and change from ~x86 to x86 once ebuild is checked. Thanks!
comments on Jasmine's ebuild: s/IUSE="gd apache2 perl"/IUSE="gd apache2 perl mysql pgsql"/ s/KEYWORDS="x86 ~sparc ~ppc"/KEYWORDS="~x86 ~sparc ~ppc" also, the ">= apache-1.3.27-r3" in the gd? section seems to conflict with apache2, I believe because the two are slotted differently.
Jasmine: Regarding your patch, if I'm reading it correctly, you're using the gd USE flag to determine whether or not /usr/nagios/(share|sbin) should be deleted. Is this reasonable? Seems like there might be cases where you didn't want GD, but still wanted to have the web interface to nagios. If I'm misunderstanding something, please let me know.
Created attachment 14792 [details, diff] patch for earlier attachment good point spotted! Thanks! apache2 does conflict with gd in the earlier attachment. Current changes made: "USE= gd" will include web interface with apache1 "USE= gd apache2" will include web interface with apache2 Else by default no web interface.
Created attachment 14793 [details, diff] patch for earlier attachment good point spotted! Thanks! apache2 does conflict with gd in the earlier attachment. Current changes made: "USE= gd" will include web interface with apache1 "USE= gd apache2" will include web interface with apache2 Else by default no web interface.
Along with these patches, the source URI is not globally accessible. SRC_URI="mirror://sourceforge/nagios/nagios-1.1.tar.gz" and IUSE still does not have mysql or pgsql listed. I would also find it important to tell the user that USE="gd" needs to be defined to install the web interface. I had to read the ebuild source. Not all that nice for all users.
Created attachment 15230 [details] net-analyzer/nagios-core-1.1-r3.ebuild This is a full nagios-core ebuild. pgsql == postgres && IUSE is already set to "gd apache2 perl mysql postgres debug" in earlier attachment. I think SRC_URI is globally accessible and dont see the problem there too. Ok I have added comments to inform user to compile with USE="gd" if web interface is required.
ok, that -r3 ebuild is pretty damn broken and its unmasked! 1. IUSE is not declarated correctly, pgsql and mysql are missing. 2. Changelog is missing! Nothing about the -gd thing in there 3. your are compiling the cgis and then _afterwards_ deleting it. thats even crazy i think. klieber, i think you should have tested this before going stable. Its damn ugly to get this happening in stable.
Ok, i'll try to be a bit more constructive but Christian is absolutely right IUSE is missing mysql pgsql debug[0-5] rm -rf ${D}/usr/nagios/{sbin,share}/* is where i think he's saying the cgi's are being deleted, this is acceptable but it'd be way prettier to sed the Makefile and not waste processor cycles compiling something that is just going to be deleted the real kicker though, is that debug[0-5] isn't in use.local.desc, i'm not even sure how this got into portage.. looks like -r4 has the same problems, only the installation is tweaked in it it also looks like most of the above comments were ignored.. *shrug*
Created attachment 15905 [details] net-analyzer/nagios-core-1.1-r3.ebuild The nagios-core-1.1-r3.ebuild attached is tested and worked. Please feel free to look at it.
*** Bug 31731 has been marked as a duplicate of this bug. ***
Sorry to bark in like this, but I just had to do this. Suddenly I had a irristable itch I just _had_ to scratch. You can find nagios-1.1-r5 on the mirrors shortly. I have introduced a "noweb" local USE flag. If that flag is set no HTML/CGI will be installed. I also added a metadata.xml to it, stating that I'll take the fame and blame for the meantime until someone else steps up to take propper care of it.
Can't take ownership and close the bug at the same time...