Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271339 - new ebuild needed icinga (nagios fork)
Summary: new ebuild needed icinga (nagios fork)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 3 votes (vote)
Assignee: Matthew Thode ( prometheanfire )
URL: http://www.icinga.org/
Whiteboard:
Keywords:
Depends on:
Blocks: 332369
  Show dependency tree
 
Reported: 2009-05-26 19:33 UTC by Martin Böcher
Modified: 2011-11-15 05:20 UTC (History)
21 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
First Ebuild. Testing Required. (icinga-0.8.0.ebuild,521 bytes, text/plain)
2009-09-04 16:00 UTC, Tom Lane
Details
new ebuild for latest version. (icinga-0.8.3.ebuild,531 bytes, text/plain)
2009-09-05 13:57 UTC, Tom Lane
Details
new ebuild (icinga-1.0.2.ebuild,817 bytes, text/plain)
2010-07-13 23:39 UTC, Matthew Thode ( prometheanfire )
Details
new metadata (metadata.xml,307 bytes, text/plain)
2010-07-13 23:41 UTC, Matthew Thode ( prometheanfire )
Details
fixed ebuild (icinga-1.0.2.ebuild,826 bytes, text/plain)
2010-07-13 23:42 UTC, Matthew Thode ( prometheanfire )
Details
changed herd (metadata.xml,311 bytes, text/plain)
2010-07-13 23:45 UTC, Matthew Thode ( prometheanfire )
Details
more correct ebuild (icinga-1.0.2.ebuild,1013 bytes, text/plain)
2010-07-14 02:50 UTC, Matthew Thode ( prometheanfire )
Details
more more correct ebuild (icinga-1.0.2.ebuild,1.00 KB, text/plain)
2010-07-14 19:55 UTC, Matthew Thode ( prometheanfire )
Details
reviewed ebuild (icinga-1.0.2.ebuild,996 bytes, text/plain)
2010-07-14 21:09 UTC, Matthew Thode ( prometheanfire )
Details
final (in sunrise) (icinga-1.0.2.ebuild,898 bytes, text/plain)
2010-07-15 00:14 UTC, Matthew Thode ( prometheanfire )
Details
icinga-1.0.2.ebuild (icinga-1.0.2.ebuild,9.18 KB, text/plain)
2010-08-11 20:41 UTC, Mike Becker
Details
icinga-apache.conf (icinga-apache.conf,532 bytes, text/plain)
2010-08-11 20:41 UTC, Mike Becker
Details
icinga-lighty.conf (icinga-lighty.conf,506 bytes, text/plain)
2010-08-11 20:42 UTC, Mike Becker
Details
icinga-conf.d (icinga-conf.d,404 bytes, text/plain)
2010-08-11 20:42 UTC, Mike Becker
Details
icinga-init.d (icinga-init.d,1.68 KB, text/plain)
2010-08-11 20:42 UTC, Mike Becker
Details
ebauild with files for icinga and icinga-core (icinga-1.0.2.patch,15.43 KB, patch)
2010-08-11 20:49 UTC, Ricardo Bartels
Details | Diff
ido2db-init.d (ido2db-init.d,556 bytes, text/plain)
2010-08-11 20:51 UTC, Mike Becker
Details
ido2db-conf.d (ido2db-conf.d,34 bytes, text/plain)
2010-08-11 20:54 UTC, Mike Becker
Details
updated version. wich includes Mike Becker's changes too (icinga-1.0.2-r1.patch,16.33 KB, patch)
2010-08-12 00:57 UTC, Ricardo Bartels
Details | Diff
ebuild for icinga 1.0.3 (icinga-1.0.3.ebuild.patch,15.51 KB, patch)
2010-08-18 10:01 UTC, Ricardo Bartels
Details | Diff
this time with propper checksum (icinga-1.0.3.ebuild.patch,15.51 KB, patch)
2010-08-18 10:05 UTC, Ricardo Bartels
Details | Diff
update for 1.0.3 (metadata.xml,617 bytes, text/plain)
2010-09-20 18:21 UTC, Matthew Thode ( prometheanfire )
Details
1.0.3 sunrise ebuild (working/tested) (icinga-1.0.3.ebuild,6.21 KB, text/plain)
2010-09-20 18:22 UTC, Matthew Thode ( prometheanfire )
Details
fixed id02db-init.d (ido2db-init.d,539 bytes, text/plain)
2010-09-20 18:29 UTC, Matthew Thode ( prometheanfire )
Details
cleaned up more with help from tommy and sedzimir (icinga-1.0.3-r1.ebuild,5.66 KB, text/plain)
2010-09-24 00:31 UTC, Matthew Thode ( prometheanfire )
Details
revbump (no big changes) (icinga-1.2.0.ebuild,5.66 KB, text/plain)
2010-10-06 18:30 UTC, Matthew Thode ( prometheanfire )
Details
add --with-cgiurl=cgi-bin to configure, contributed by RedPepper (icinga-1.2.0-r1.ebuild,5.68 KB, text/plain)
2010-10-07 18:38 UTC, Matthew Thode ( prometheanfire )
Details
revbump no ebuild changes (that I can remember) (icinga-1.2.1.ebuild,5.68 KB, text/plain)
2010-10-25 12:58 UTC, Matthew Thode ( prometheanfire )
Details
fixed enewuser (icinga-1.2.1.ebuild,5.67 KB, text/plain)
2010-10-25 21:40 UTC, Matthew Thode ( prometheanfire )
Details
really this time, enewuser is fixed (missed a '-1') (icinga-1.2.1.ebuild,5.67 KB, text/plain)
2010-10-28 13:12 UTC, Matthew Thode ( prometheanfire )
Details
Updated through comment #56 (icinga-1.2.1.ebuild,5.79 KB, text/plain)
2010-10-29 15:05 UTC, Matthew Thode ( prometheanfire )
Details
Fixed configure (api has less options for configure) (icinga-1.2.1.ebuild,5.83 KB, text/plain)
2010-10-30 22:40 UTC, Matthew Thode ( prometheanfire )
Details
fixed a couple of things (comments 59-60) (icinga-1.2.1.ebuild,5.74 KB, text/plain)
2010-10-31 20:57 UTC, Matthew Thode ( prometheanfire )
Details
fixed depend.apache_pkg_setup (icinga-1.2.1.ebuild,5.74 KB, text/plain)
2010-10-31 23:28 UTC, Matthew Thode ( prometheanfire )
Details
icinga-1.3.0.ebuild (icinga-1.3.0.ebuild,5.74 KB, text/plain)
2011-02-16 15:17 UTC, Matthew Thode ( prometheanfire )
Details
updated --with-cgiurl=icgi-bin to --with-cgiurl=/icinga/cgi-bin (icinga-1.3.0.ebuild,5.75 KB, text/plain)
2011-03-10 19:57 UTC, Matthew Thode ( prometheanfire )
Details
icinga-1.3.1.ebuild (icinga-1.3.1.ebuild,5.75 KB, text/plain)
2011-04-01 16:47 UTC, Matthew Thode ( prometheanfire )
Details
icinga-1.3.1.ebuild with logdir set (icinga-1.3.1.ebuild,5.97 KB, text/plain)
2011-04-07 02:37 UTC, Matthew Thode ( prometheanfire )
Details
icinga-1.3.1.ebuild with libexecdir conditional added (icinga-1.3.1-r2.ebuild,6.07 KB, text/plain)
2011-04-07 15:19 UTC, Matthew Thode ( prometheanfire )
Details
icinga-1.3.1.ebuild with spacing issue fixed (icinga-1.3.1-r2.ebuild,6.07 KB, text/plain)
2011-04-11 14:39 UTC, Matthew Thode ( prometheanfire )
Details
change to ido2db init, thanks to Wolfgang Schricker (ido2db-init.d,817 bytes, text/x-dsrc)
2011-05-09 18:34 UTC, Matthew Thode ( prometheanfire )
Details
made more posix compliant (ido2db-init.d,815 bytes, text/x-dsrc)
2011-05-11 04:40 UTC, Matthew Thode ( prometheanfire )
Details
icinga-1.4.0 version bump, tested amd64 (icinga-1.4.0.ebuild,6.07 KB, text/plain)
2011-05-11 14:57 UTC, Matthew Thode ( prometheanfire )
Details
icinga 1.4.2 version bump, tested amd64 (icinga-1.4.2.ebuild,6.07 KB, text/plain)
2011-07-19 14:03 UTC, Matthew Thode ( prometheanfire )
Details
icinga-1.5.0.ebuild (icinga-1.5.0.ebuild,5.82 KB, text/plain)
2011-08-24 15:24 UTC, Matthew Thode ( prometheanfire )
Details
Ebuild for icinga-1.5.1 (icinga-1.5.1.ebuild,5.82 KB, text/plain)
2011-09-22 13:16 UTC, Thomas Oettli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Böcher 2009-05-26 19:33:07 UTC
icinga is a nagios fork. it is growing fast and as a lot of ex-nagios developers. we need an ebuild to use it with gentoo.
thanks.

Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-05-26 19:42:35 UTC
Try write it youself and attach it. the sunrise project will help you if needed.
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2009-05-26 21:23:11 UTC
I've an ebuild to install icinga from git in my personal overlay:

layman -a dertobi123

unmask et al and emerge icinga ;)
Comment 3 Tom Lane 2009-09-01 21:30:50 UTC
have started work on this ebuild, give me a day or two to have a go at it. will post progress as i make it.

all the best,
Tom Lane
Comment 4 Tom Lane 2009-09-03 12:09:48 UTC
hello,

have just commited icinga-0.8.0.ebuild to the gentoo sunrise overlay, testing needed, current keywords are ~x86.

all the best,
Tom Lane
Comment 5 Tom Lane 2009-09-04 16:00:38 UTC
Created attachment 203125 [details]
First Ebuild. Testing Required.
Comment 6 Tom Lane 2009-09-05 13:57:06 UTC
Created attachment 203194 [details]
new ebuild for latest version.

Some what more complete ebuild, which now fetches and compiles. and also is now the latest version, which is 0.8.3 .
Comment 7 Tobias Scherbaum (RETIRED) gentoo-dev 2009-09-05 17:51:53 UTC
(In reply to comment #6)
> Created an attachment (id=203194) [edit]
> new ebuild for latest version.
> 
> Some what more complete ebuild, which now fetches and compiles. and also is now
> the latest version, which is 0.8.3 .
> 

see comment #2 ...
Comment 8 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-07-08 19:56:24 UTC
There has been no update to this.  Has there been any testing or should I build a new ebuild for 1.0.2?
Comment 9 WOLfgang Schricker 2010-07-11 18:41:13 UTC
Oh YES, please build it. I'm your favorite tester...
Comment 10 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-07-13 23:39:56 UTC
Created attachment 238647 [details]
new ebuild
Comment 11 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-07-13 23:41:49 UTC
Created attachment 238651 [details]
new metadata
Comment 12 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-07-13 23:42:22 UTC
Created attachment 238653 [details]
fixed ebuild

Forgot the slot param
Comment 13 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-07-13 23:45:26 UTC
Created attachment 238655 [details]
changed herd
Comment 14 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-07-14 02:50:55 UTC
Created attachment 238671 [details]
more correct ebuild

It's still broken at this point but it's 'better'
Comment 15 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-07-14 19:55:05 UTC
Created attachment 238755 [details]
more more correct ebuild

it installs this time
Comment 16 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-07-14 21:09:33 UTC
Created attachment 238765 [details]
reviewed ebuild

reviewed by some people in sunrise
Comment 17 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-07-15 00:14:20 UTC
Created attachment 238779 [details]
final (in sunrise)
Comment 18 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-07-16 07:35:27 UTC
tested on ~amd64
Comment 19 Tobias Scherbaum (RETIRED) gentoo-dev 2010-07-21 17:11:27 UTC
- Installs CGIs into /usr/sbin
- No Apache Config
- No Gentoo specific init script
- Installs configuration right into /etc instead of /etc/icinga
- Installs files into /usr/share 
- Depends on at least nagios-plugins and php are missing
- What are you using EAPI=2 for?

Up until today i thought we do have some kind of QA or review session before something is put into the sunrise overlay, but obviously i'm wrong.

I'll suggest to take the nagios ebuild to start with, add libdbi depends and probably php use-deps. 
Comment 20 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-07-21 19:35:29 UTC
As far as I knew we did not have to use libdbi, that's why I have $(use_enable dbi idoutils).  I'll be looking at the Makefile to see what needs to be changed, I do not know how to commit the change once needed (I'll see if I can get it upstream though).

All that is needed to get something into sunrise is a review of the ebuild, I am responsible for the actual content of it.

The reason why I have not added in the web (apache) parts is because I think that the frontend should be split from the backend.

In what directory should I put the cgi scripts and the stuff from /usr/share (it looks like that's the web stuff)?  I am working on getting the conf files put in their own directory.

I have no particular reason to use EAPI=2.
Comment 21 Tobias Scherbaum (RETIRED) gentoo-dev 2010-07-22 05:18:43 UTC
(In reply to comment #19)
> I'll suggest to take the nagios ebuild to start with, add libdbi depends and
> probably php use-deps. 
 
Once again, take the current nagios ebuild to start with. No reason to re-invent the wheel (a quite bad re-invented wheel in that case). You don't need to patch around the Makefile, just add the dbi depend to a renamed nagios ebuild. 
Comment 22 Mike Becker 2010-08-11 20:41:07 UTC
Created attachment 242481 [details]
icinga-1.0.2.ebuild

newly build ebuild with libdbi depencies php useflag and Makefile Patch for correct API Installation
all depencies would be added as attachment
Comment 23 Mike Becker 2010-08-11 20:41:35 UTC
Created attachment 242483 [details]
icinga-apache.conf
Comment 24 Mike Becker 2010-08-11 20:42:02 UTC
Created attachment 242485 [details]
icinga-lighty.conf
Comment 25 Mike Becker 2010-08-11 20:42:31 UTC
Created attachment 242487 [details]
icinga-conf.d
Comment 26 Mike Becker 2010-08-11 20:42:51 UTC
Created attachment 242489 [details]
icinga-init.d
Comment 27 Ricardo Bartels 2010-08-11 20:49:00 UTC
Created attachment 242491 [details, diff]
ebauild with files for icinga and icinga-core

a set of files with icinga-core and icinga multi package
Comment 28 Mike Becker 2010-08-11 20:51:57 UTC
Created attachment 242493 [details]
ido2db-init.d
Comment 29 Mike Becker 2010-08-11 20:54:24 UTC
Created attachment 242495 [details]
ido2db-conf.d
Comment 30 Ricardo Bartels 2010-08-11 20:55:38 UTC
Spent quite a few hours writing and testing the ebuild and then 2 people working parallel the same day. WTF
Comment 31 Mike Becker 2010-08-11 20:56:53 UTC
(In reply to comment #30)
> Spent quite a few hours writing and testing the ebuild and then 2 people
> working parallel the same day. WTF
> 
Sry about that probably its good to merge the changes to get an better ebuild i will give it a look ;)
Comment 32 Ricardo Bartels 2010-08-12 00:57:06 UTC
Created attachment 242511 [details, diff]
updated version. wich includes Mike Becker's changes too

updated version. wich includes Mike Becker's changes too
Comment 33 Ricardo Bartels 2010-08-18 10:01:24 UTC
Created attachment 243421 [details, diff]
ebuild for icinga 1.0.3

new ebuild for new release
Comment 34 Ricardo Bartels 2010-08-18 10:05:09 UTC
Created attachment 243423 [details, diff]
this time with propper checksum

ebuild for icinga 1.0.3
Comment 35 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-09-17 23:06:17 UTC
Working ebuild for in sunrise.  Based on Mike Becker's ebuild (cleaned up and added postgres support).  It is also version 1.0.3
Comment 36 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-09-20 18:21:28 UTC
Created attachment 248180 [details]
update for 1.0.3
Comment 37 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-09-20 18:22:44 UTC
Created attachment 248182 [details]
1.0.3 sunrise ebuild (working/tested)
Comment 38 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-09-20 18:29:33 UTC
Created attachment 248183 [details]
fixed id02db-init.d
Comment 39 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-09-24 00:31:42 UTC
Created attachment 248488 [details]
cleaned up more with help from tommy and sedzimir
Comment 40 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-10-06 18:30:03 UTC
Created attachment 249775 [details]
revbump (no big changes)
Comment 41 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-10-06 18:32:28 UTC
Who's leg do I need to hump to get this in tree :P
Comment 42 Tobias Scherbaum (RETIRED) gentoo-dev 2010-10-07 16:24:24 UTC
(In reply to comment #41)
> Who's leg do I need to hump to get this in tree :P
> 

Should be done within the next two weeks.
Comment 43 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-10-07 18:38:04 UTC
Created attachment 249864 [details]
add --with-cgiurl=cgi-bin to configure, contributed by RedPepper
Comment 44 Thomas Seifert 2010-10-08 07:25:18 UTC
fyi: 1.2.0 has been released 
http://www.icinga.org/2010/10/06/icinga-1-2-unified-stable-released/

Also looking forward to it! :-)
Comment 45 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-10-25 12:58:42 UTC
Created attachment 251937 [details]
revbump no ebuild changes (that I can remember)
Comment 46 WOLfgang Schricker 2010-10-25 20:58:11 UTC
(In reply to comment #45)

# ebuild /usr/local/portage/net-analyzer/icinga/icinga-1.2.1.ebuild test
[...]
* Adding user 'icinga' to your system ...
*  - Userid: 126
* Do not specify /bin/false yourself, use -1
* ERROR: net-analyzer/icinga-1.2.1 failed:
*   Pass '-1' as the shell parameter
[...]
Comment 47 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-10-25 21:40:43 UTC
Created attachment 251963 [details]
fixed enewuser
Comment 48 Andreas Schürch gentoo-dev 2010-10-28 08:47:59 UTC
It doesn't seem to work for me...

* Adding group 'icinga' to your system ...                                                                                                             
*  - Groupid: next available                                                                                                                           
* Adding user 'icinga' to your system ...                                                                                                              
*  - Userid: 103                                                                                                                                       
* A shell was specified but it does not exist !                                                                                                        
* ERROR: net-analyzer/icinga-1.2.1 failed:                                                                                                             
*   /var/spool/icinga does not exist in /       
Comment 49 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-10-28 13:12:25 UTC
Created attachment 252361 [details]
really this time, enewuser is fixed (missed a '-1')
Comment 50 WOLfgang Schricker 2010-10-28 17:06:52 UTC
(In reply to comment #49)
[...]
> really this time, enewuser is fixed
[...]

Here the next step:

make[1]: Leaving directory `/var/tmp/portage/net-analyzer/icinga-1.2.1/work/icinga-1.2.1'
!!! newinitd: /usr/local/portage/net-analyzer/icinga/files/icinga-init.d does not exist
 * ERROR: net-analyzer/icinga-1.2.1 failed:
 *   (no error message)
Comment 51 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-10-28 18:15:35 UTC
(In reply to comment #50)
> (In reply to comment #49)
> [...]
> > really this time, enewuser is fixed
> [...]
> 
> Here the next step:
> 
> make[1]: Leaving directory
> `/var/tmp/portage/net-analyzer/icinga-1.2.1/work/icinga-1.2.1'
> !!! newinitd: /usr/local/portage/net-analyzer/icinga/files/icinga-init.d does
> not exist
>  * ERROR: net-analyzer/icinga-1.2.1 failed:
>  *   (no error message)
> 

are you using sunrise (the file is in sunrise)
the file is also linked above at https://bugs.gentoo.org/attachment.cgi?id=242489
Comment 52 WOLfgang Schricker 2010-10-28 19:40:45 UTC
(In reply to comment #51)
> (In reply to comment #50)
> > (In reply to comment #49)
[...]
> are you using sunrise (the file is in sunrise)
> the file is also linked above at
> https://bugs.gentoo.org/attachment.cgi?id=242489

Thank you, I check it again ;-)
Comment 53 Andreas Schürch gentoo-dev 2010-10-29 08:05:39 UTC
It seems to work over here, but i've found a few things so far...

i haven't found that mysterious line 4!?
# /etc/init.d/icinga restart
: command not found line 4:
 * Restarting icinga ...
 * Stopping icinga ...                                                                                                                             [ ok ]
 * Starting icinga ...                                                                                                                             [ ok ]

I also needed to add 
include "lighttpd_icinga.conf"
to lighttpd.conf.

And then in lighttpd_icinga.conf i added:
auth.backend = "htdigest"
auth.backend.htdigest.userfile = "/etc/lighttpd/icinga.user"

And consequently i created /etc/lighttpd/icinga.user
Comment 54 Thomas Oettli 2010-10-29 10:49:37 UTC
(In reply to comment #49)
> Created an attachment (id=252361) [details]
> really this time, enewuser is fixed (missed a '-1')
> 

I'm working within a stable environment (portage-2.1.8.3) without any overlays like sunrise. Added the icinga-1.2.1.ebuild to my local portage overlay directory and tried to merge it.

An error appeared in the src_install routine, so I have made the following changes in the ebuild:
-    find "${D}"/usr/$(get_libdir)/icinga -type d -exec fperms 755 {} +
+    find "${D}"/usr/$(get_libdir)/icinga -type d -exec chmod 755 {} +
-    find "${D}"/usr/$(get_libdir)/icinga/cgi-bin -type f -exec fperms 755 {} +
+    find "${D}"/usr/$(get_libdir)/icinga/cgi-bin -type f -exec chmod 755 {} +

The problem was that find is a standard bash program, which needs the whole path (including /var/tmp/portage) as parameter to search, the resulting path/filename is then passed to the exec command.
There, the fperms routine was used, which is a special ebuild routine. It always operates in the temporary directory of portage, so the error appears, if the full path is passed as parameter.
So I have replaced the fperms routine with chmod which worked fine for me.

The I recognized, that the wrong group was applied to /var/icinga/rw.
So I've made the following change in the ebuild:
-    use apache2 && webserver=apache2 || use lighttpd && webserver=lighttpd || webserver=icinga
+    if use apache2 ; then
+        webserver=apache
+    elif use lighttpd ; then
+        webserver=lighttpd
+    else
+        webserver=icinga
+    fi

After that, the right group was applied to the directory.
Comment 55 Thomas Oettli 2010-10-29 13:29:34 UTC
(In reply to comment #53)
> It seems to work over here, but i've found a few things so far...
> 
> i haven't found that mysterious line 4!?
> # /etc/init.d/icinga restart
> : command not found line 4:
>  * Restarting icinga ...
>  * Stopping icinga ...                                                         
>                                                                    [ ok ]
>  * Starting icinga ...                                                         
>                                                                    [ ok ]
> 
> I also needed to add 
> include "lighttpd_icinga.conf"
> to lighttpd.conf.
> 
> And then in lighttpd_icinga.conf i added:
> auth.backend = "htdigest"
> auth.backend.htdigest.userfile = "/etc/lighttpd/icinga.user"
> 
> And consequently i created /etc/lighttpd/icinga.user
> 

I've just found the problem which generates this mysterious "Line 4" error message, it seems that the encoding of some files is wrong.

As far as I saw, /etc/conf.d/icinga is in DOS-Format instead uf UNIX. That means that the line delemiters are wrong. Converting the config file and the init scripts to UNIX solves the problem.
Comment 56 Andreas Schürch gentoo-dev 2010-10-29 13:56:09 UTC
chmod instead of fperms indeed does the trick!
Also the tip about the dos-newlines in /etc/conf.d/icinga is good! I already converted the initscripts before, but haven't seen the config to them... :-)
Thanks!

...but there are still some things wrong with the ebuild:
* QA Notice: Unrecognized configure options:
 *                                           
 *      configure: WARNING: unrecognized options: --enable-embedded-perl, --with-perlcache, --enable-idoutils, --enable-ssl, --disable-DEBUG0, --disable-DEBUG1, --disable-DEBUG2, --disable-DEBUG3, --disable-DEBUG4, --disable-DEBUG5, --disable-statuswrl, --with-cgiurl                                       
 *      configure: WARNING: unrecognized options: --enable-embedded-perl, --with-perlcache, --enable-idoutils, --enable-ssl, --disable-DEBUG0, --disable-DEBUG1, --disable-DEBUG2, --disable-DEBUG3, --disable-DEBUG4, --disable-DEBUG5, --disable-statuswrl, --with-cgiurl                                       


 * QA Notice: Pre-stripped files found:
 * /usr/lib64/icinga/cgi-bin/notifications.cgi
 * /usr/lib64/icinga/cgi-bin/extinfo.cgi      
 * /usr/lib64/icinga/cgi-bin/statuswml.cgi    
 * /usr/lib64/icinga/cgi-bin/cmd.cgi          
 * /usr/lib64/icinga/cgi-bin/history.cgi      
 * /usr/lib64/icinga/cgi-bin/statusmap.cgi    
 * /usr/lib64/icinga/cgi-bin/status.cgi       
 * /usr/lib64/icinga/cgi-bin/tac.cgi          
 * /usr/lib64/icinga/cgi-bin/trends.cgi       
 * /usr/lib64/icinga/cgi-bin/showlog.cgi      
 * /usr/lib64/icinga/cgi-bin/histogram.cgi    
 * /usr/lib64/icinga/cgi-bin/avail.cgi        
 * /usr/lib64/icinga/cgi-bin/config.cgi       
 * /usr/lib64/icinga/cgi-bin/summary.cgi      
 * /usr/lib64/icinga/cgi-bin/outages.cgi      
 * /usr/sbin/icingastats                      
 * /usr/sbin/icinga                           
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/sbin/idomod.o                                         
   usr/sbin/ido2db                                 
Comment 57 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-10-29 15:05:09 UTC
Created attachment 252489 [details]
Updated through comment #56

asking about the stripping upstream (debug doesn't seem happy)
Comment 58 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-10-30 22:40:43 UTC
Created attachment 252625 [details]
Fixed configure (api has less options for configure)

Only remaining thing I know of is the prestripped cgi files.
Comment 59 Tobias Scherbaum (RETIRED) gentoo-dev 2010-10-31 15:08:45 UTC
(In reply to comment #58)
> Created an attachment (id=252625) [details]
> Fixed configure (api has less options for configure)
> 
> Only remaining thing I know of is the prestripped cgi files.
> 

Plus two changes, one minor and one to get apache correctly set up:

--- icinga-1.2.1.ebuild	2010-10-31 16:07:15.000000000 +0100
+++ icinga-1.2.1.ebuild	2010-10-31 16:00:07.000000000 +0100
@@ -30,6 +30,7 @@
 want_apache2
 
 pkg_setup() {
+	depend.apache_pkg_setup
 	enewgroup icinga
 	enewuser icinga -1 -1 /var/spool/icinga icinga
 	if use web ; then
@@ -95,7 +96,7 @@
 	$(use_enable debug DEBUG4)
 	$(use_enable debug DEBUG5)
 	--disable-statuswrl
-	--with-cgiurl=cgi-bin"
+	--with-cgiurl=/cgi-bin"
 
 	myconf2="--bindir=/usr/sbin
 	--sbindir=/usr/$(get_libdir)/icinga/cgi-bin
Comment 60 Tobias Scherbaum (RETIRED) gentoo-dev 2010-10-31 15:53:26 UTC
(In reply to comment #59)
> (In reply to comment #58)
> > Created an attachment (id=252625) [details] [details]
> > Fixed configure (api has less options for configure)
> > 
> > Only remaining thing I know of is the prestripped cgi files.
> > 
> 
> Plus two changes, one minor and one to get apache correctly set up:

... and another one: the dep on nagios-syntax is useless, as nagios-syntax only gets active for files residing in /etc/nagios.
Comment 61 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-10-31 20:57:09 UTC
Created attachment 252717 [details]
fixed a couple of things (comments 59-60)

Fixed with-cgiurl option
Fixed depend.apache_pkg_setup (depends go up top not in pkg_setup)
Got rid of the depend on nagios-syntax as suggested.
Comment 62 Tobias Scherbaum (RETIRED) gentoo-dev 2010-10-31 22:25:53 UTC
(In reply to comment #61)
> Created an attachment (id=252717) [details]
> fixed a couple of things (comments 59-60)
> 
> Fixed with-cgiurl option
> Fixed depend.apache_pkg_setup (depends go up top not in pkg_setup)
> Got rid of the depend on nagios-syntax as suggested.
> 

depend.apache_pkg_setup is not an eclass to inherit, but a function to execute in pkg_setup()
Comment 63 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-10-31 23:28:53 UTC
Created attachment 252727 [details]
fixed depend.apache_pkg_setup
Comment 64 Andreas Schürch gentoo-dev 2010-11-02 08:01:28 UTC
Now, the cgi-prefix got wrong in icinga-lighty.conf... I don't know if this is intended or not, but here is what i needed to do:

-$HTTP["url"] =~ "^/icinga/cgi-bin/" {
+$HTTP["url"] =~ "^/cgi-bin/" {
  dir-listing.activate = "disable"
  cgi.assign = (
    ".pl"  => "/usr/bin/perl",
    ".cgi" => ""
  )
}

alias.url += (
-  "/icinga/cgi-bin" => "/usr/lib/icinga/cgi-bin",
+  "/cgi-bin" => "/usr/lib/icinga/cgi-bin",
  "/icinga"         => "/usr/share/icinga/htdocs"
)

But then, the default auth-declaration does not work anymore on the cgi scripts:

-auth.require += ( "/icinga" =>
+auth.require += ( "/" =>
  (
    "method"  => "digest",
    "realm"   => "icinga",
    "require" => "valid-user"
  )
)
Comment 65 Tobias Scherbaum (RETIRED) gentoo-dev 2010-11-02 10:13:45 UTC
(In reply to comment #64)
> Now, the cgi-prefix got wrong in icinga-lighty.conf... I don't know if this is
> intended or not, but here is what i needed to do:

@@ -95,7 +96,7 @@
        $(use_enable debug DEBUG4)
        $(use_enable debug DEBUG5)
        --disable-statuswrl
-       --with-cgiurl=cgi-bin"
+       --with-cgiurl=/cgi-bin"

        myconf2="--bindir=/usr/sbin
        --sbindir=/usr/$(get_libdir)/icinga/cgi-bin

That's probably caused by this one, would make sense to change --with-cgiurl to --with-cgiurl=/icinga/cgi-bin"
Comment 66 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-01-21 01:33:12 UTC
Do we have a list of what needs to be done before this can be added to tree?
Comment 67 WOLfgang Schricker 2011-02-06 13:25:26 UTC
(In reply to comment #65)
[...]
> That's probably caused by this one, would make sense to change --with-cgiurl to
> --with-cgiurl=/icinga/cgi-bin"

Hello, I prefer this.
After 'emerge apache' brings '/etc/apache2/vhosts.d/default_vhost.include' an script alias:
  ScriptAlias /cgi-bin/ "/var/www/localhost/cgi-bin/"

The ScriptAlias via 99_icinga.conf is right for me.
Comment 68 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-02-15 16:55:55 UTC
(In reply to comment #67)
> (In reply to comment #65)
> [...]
> > That's probably caused by this one, would make sense to change --with-cgiurl to
> > --with-cgiurl=/icinga/cgi-bin"
> 
> Hello, I prefer this.
> After 'emerge apache' brings '/etc/apache2/vhosts.d/default_vhost.include' an
> script alias:
>   ScriptAlias /cgi-bin/ "/var/www/localhost/cgi-bin/"
> 
> The ScriptAlias via 99_icinga.conf is right for me.
> 

The reason I have not gone this route is because I think that environments differ too much, also if that is the route that we want to go down, then making it a webapp (through webapp-config) would be best.  Is this the only issue holding us up?  I'm going to be testing icinga 1.3 soon.
Comment 69 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-02-16 15:17:34 UTC
Created attachment 262747 [details]
icinga-1.3.0.ebuild

only update was to the package version, tested amd64
Comment 70 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-03-07 14:13:52 UTC
Again, what is the hold up?
Comment 71 Nico Baggus 2011-03-10 03:19:48 UTC
I prefer to have the --with-cgibin=/icinga/cgi-bin in the ebuild
as that conflicts with less tooling (other web tools) on a server.

At least that is missing atm.

This is based on the 1.3.0 version.

Are you aware on the problems identified in:
http://packetstormsecurity.org/files/99090/Icinga-1.3.0-1.2.1-Cross-Site-Scripting.html
Comment 72 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-03-10 19:55:15 UTC
(In reply to comment #71)
> I prefer to have the --with-cgibin=/icinga/cgi-bin in the ebuild
> as that conflicts with less tooling (other web tools) on a server.
> 
> At least that is missing atm.
> 
> This is based on the 1.3.0 version.
> 
> Are you aware on the problems identified in:
> http://packetstormsecurity.org/files/99090/Icinga-1.3.0-1.2.1-Cross-Site-Scripting.html

It looks like it is set up that way in the conf provided for both apache and lighttpd, I'll change it.  Anything else?
Comment 73 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-03-10 19:57:04 UTC
Created attachment 265487 [details]
updated --with-cgiurl=icgi-bin to --with-cgiurl=/icinga/cgi-bin
Comment 74 Mike Becker 2011-03-10 21:47:55 UTC
(In reply to comment #72)
> (In reply to comment #71)
> > I prefer to have the --with-cgibin=/icinga/cgi-bin in the ebuild
> > as that conflicts with less tooling (other web tools) on a server.
> > 
> > At least that is missing atm.
> > 
> > This is based on the 1.3.0 version.
> > 
> > Are you aware on the problems identified in:
> > http://packetstormsecurity.org/files/99090/Icinga-1.3.0-1.2.1-Cross-Site-Scripting.html
> 
> It looks like it is set up that way in the conf provided for both apache and
> lighttpd, I'll change it.  Anything else?

hi the XSS should now been fixed in git . Please file a bug at the developers site in the future https://dev.icinga.org

For details about the fix see https://dev.icinga.org/issues/1275
Comment 75 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-04-01 16:47:31 UTC
Created attachment 268137 [details]
icinga-1.3.1.ebuild

Updated to 1.3.1 (this fixes the xss vuln)

any other hold ups to geting this in tree?
Comment 76 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-04-01 16:48:51 UTC
Forgot to obsolete https://bugs.gentoo.org/attachment.cgi?id=265487
Comment 77 Marian Rudzynski 2011-04-06 06:25:20 UTC
Some observations:

- Default config has logs in /var/icinga, not /var/log
- Either a previous install I did screwed it up, or it didn't symlink nagios-plugins from lib/nagios to lib/icinga, resulting in plugins not being found

Other than that, good job. Files are generally where I'd expect them now. It could use a message pointing to the apache config.
Comment 78 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-04-06 21:00:02 UTC
(In reply to comment #77)
> Some observations:
> 
> - Default config has logs in /var/icinga, not /var/log
> - Either a previous install I did screwed it up, or it didn't symlink
> nagios-plugins from lib/nagios to lib/icinga, resulting in plugins not being
> found
> 
> Other than that, good job. Files are generally where I'd expect them now. It
> could use a message pointing to the apache config.

For the log file, it looks like we will need to patch the make file, I am going to talk to them to see if we can get a --logdir variable added to it.

For the symlink, I do not know if I want to symlink it in the ebuild, because the ebuild does not install anything or manage lib/nagios and puts content in lib/icinga .
Comment 79 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-04-07 02:37:48 UTC
Created attachment 268799 [details]
icinga-1.3.1.ebuild with logdir set

changed log directory to /var/log/icinga


As for the symlink, nagios creates that directory, so we should not mess with it.
Comment 80 Marian Rudzynski 2011-04-07 08:18:00 UTC
(In reply to comment #79)
> Created attachment 268799 [details]
> icinga-1.3.1.ebuild with logdir set
> 
> changed log directory to /var/log/icinga
> 
> 
> As for the symlink, nagios creates that directory, so we should not mess with
> it.

You're probably right, but having the $USER1$ and $USER2$ macros default to the icinga directory and having a default setup that relies on plugins being there is a little unintuitive.

Did you plan for an icinga-plugins ebuild? If not, maybe at least a message, telling the user that the plugins USE installed nagios-plugins in a different directory and that he should copy/symlink them or change his macros?
Comment 81 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-04-07 15:19:45 UTC
Created attachment 268865 [details]
icinga-1.3.1.ebuild with libexecdir conditional added

made libexecdir dependant on the plugins useflag (if plugins are enabled, then the libexecdir will be /usr/$(get_libdir)/nagios/plugins, else replace nagios with icinga)
Comment 82 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-04-11 14:39:25 UTC
Created attachment 269497 [details]
icinga-1.3.1.ebuild with spacing issue fixed

fixed a spacing issue on the src_configure, and removed an OLD ebuild
Comment 83 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-04-18 15:06:37 UTC
Anything else preventing inclusion in tree?
Comment 84 WOLfgang Schricker 2011-05-06 18:58:19 UTC
After a VM crash the message:

 * Starting ido2db ...
Could not bind socket: Address already in use

This patch is inspired by mysql-init.d:

--- ido2db.orig	2011-05-05 19:53:06.000000000 +0200
+++ ido2db	2011-05-05 21:07:15.000000000 +0200
@@ -4,6 +4,17 @@
 # $Header: $
 
 IDO2DBBIN="/usr/sbin/ido2db"
+SOCKET="/var/icinga/ido.sock"
+
+function check() {
+	if [[ -S "${SOCKET}" ]] ; then
+		ewarn "Strange, the socket file already exist in \"${SOCKET}\""
+		ewarn "it will be removed now and re-created by ido2db"
+		ewarn "BUT please make your checks."
+
+		rm -f "${SOCKET}"
+	fi
+}
 
 depend() {
 	need net
@@ -12,6 +23,8 @@
 }
 
 start() {
+	check
+
 	ebegin "Starting ido2db"
 	start-stop-daemon --quiet --start --pidfile /var/icinga/ido2db.lock --startas ${IDO2DBBIN} -- -c ${IDO2DBCFG}
 	eend $?
Comment 85 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-05-09 18:34:01 UTC
Created attachment 272657 [details]
change to ido2db init, thanks to Wolfgang Schricker
Comment 86 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-05-11 04:40:32 UTC
Created attachment 272803 [details]
made more posix compliant
Comment 87 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-05-11 14:57:31 UTC
Created attachment 272861 [details]
icinga-1.4.0 version bump, tested amd64
Comment 88 upendra 2011-05-11 19:07:32 UTC
Not that I am not grateful for 1.4.0 ebuild. I installed 1.0.2 on amd64 but for some reason all files in htdocs folder are pointing to /cgi-bin instead of /icinga/cgi-bin ..I did change index.html however there are many like files which need update. 

Asa curiosity I tried 1.4.0, however emerge fails as below.

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/sbin/ido2db
   usr/sbin/idomod.o
   usr/sbin/log2ido
'nfs1/var/tmp/portage/portage/net-analyzer/icinga-1.4.0/image///etc/init.d/icinga: line 8: syntax error near unexpected token `{
'nfs1/var/tmp/portage/portage/net-analyzer/icinga-1.4.0/image///etc/init.d/icinga: line 8: `depend() {
 * ERROR: net-analyzer/icinga-1.4.0 failed:
 *   The init.d file has syntax errors: /nfs1/var/tmp/portage/portage/net-analyzer/icinga-1.4.0/image///etc/init.d/icinga
 * 
 * Call stack:
 *   misc-functions.sh, line 979:  Called install_qa_check
 *   misc-functions.sh, line 458:  Called die
 * The specific snippet of code:
 *   			bash -n "${i}" || die "The init.d file has syntax errors: ${i}"
 * 
 * If you need support, post the output of 'emerge --info =net-analyzer/icinga-1.4.0',
 * the complete build log and the output of 'emerge -pqv =net-analyzer/icinga-1.4.0'.
 * This ebuild is from an overlay named 'local': '/usr/local/portage/'
 * The complete build log is located at '/nfs1/var/tmp/portage/portage/net-analyzer/icinga-1.4.0/temp/build.log'.
 * The ebuild environment file is located at '/nfs1/var/tmp/portage/portage/net-analyzer/icinga-1.4.0/temp/environment'.
 * S: '/nfs1/var/tmp/portage/portage/net-analyzer/icinga-1.4.0/work/icinga-1.4.0'
!!! post install failed; exiting.
Comment 89 Moritz Schlarb 2011-05-23 22:20:29 UTC
I can confirm Comment 88!

Emerging fails with the same error!
I checked the specified init script and there seems nothing wrong too me!

Or are we using the wrong icinga-init.d file?
Comment 90 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-05-23 22:34:18 UTC
(In reply to comment #89)
> I can confirm Comment 88!
> 
> Emerging fails with the same error!
> I checked the specified init script and there seems nothing wrong too me!
> 
> Or are we using the wrong icinga-init.d file?

Can I get your use flags?  I use the following.
Installed versions:  1.4.0(18:32:41 05/23/11)(api idoutils lighttpd perl plugins postgres ssl vim-syntax web -apache2 -debug -mysql)

Also, for the init script I updated it to be openrc compliant on the 11th.
Comment 91 Moritz Schlarb 2011-05-23 22:43:07 UTC
(In reply to comment #90)
> Can I get your use flags?  I use the following.
> Installed versions:  1.4.0(18:32:41 05/23/11)(api idoutils lighttpd perl
> plugins postgres ssl vim-syntax web -apache2 -debug -mysql)
> 
> Also, for the init script I updated it to be openrc compliant on the 11th.

Hey, thanks for responding.

My use flags were:

net-analyzer/icinga-1.4.0  USE="apache2 idoutils mysql plugins ssl vim-syntax web -api -debug -lighttpd -perl -postgres"

On 2011-05-11 you only updated ido2db-init.d, but the emerge error occurs while processing icinga-init.d! (which I here find only from 2010-08-11 and has no difference to the one in sunrise)

Or am I missing something?
Comment 92 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-05-23 23:08:10 UTC
(In reply to comment #91)
> (In reply to comment #90)
> > Can I get your use flags?  I use the following.
> > Installed versions:  1.4.0(18:32:41 05/23/11)(api idoutils lighttpd perl
> > plugins postgres ssl vim-syntax web -apache2 -debug -mysql)
> > 
> > Also, for the init script I updated it to be openrc compliant on the 11th.
> 
> Hey, thanks for responding.
> 
> My use flags were:
> 
> net-analyzer/icinga-1.4.0  USE="apache2 idoutils mysql plugins ssl vim-syntax
> web -api -debug -lighttpd -perl -postgres"
> 
> On 2011-05-11 you only updated ido2db-init.d, but the emerge error occurs while
> processing icinga-init.d! (which I here find only from 2010-08-11 and has no
> difference to the one in sunrise)
> 
> Or am I missing something?

You are correct, I misunderstood which init.d I updated lol.  can you print the output of "bash -n ${initscritp_goes_here}" for me?  I get none which means it validates for me.
Comment 93 Moritz Schlarb 2011-05-23 23:31:24 UTC
Narf, I'd like to say!
When I simply use the files/* from sunrise and the icinga-1.4.0.ebuild from here, everything emerges fine. (And runs, by the way!)

Sorry for the mess ;)
Now, let's go for sunrise!

Thx, Matthew!
Comment 94 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-07-19 14:03:47 UTC
Created attachment 280365 [details]
icinga 1.4.2 version bump, tested amd64
Comment 95 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-08-24 15:24:04 UTC
Created attachment 284485 [details]
icinga-1.5.0.ebuild

removed the logdir sed and added --with-log-dir=/var/log/icinga

Tested amd64
Comment 96 Timo Eissler 2011-08-30 13:57:24 UTC
Should´nt ido2db be started before icinga?

--- icinga-init.d	2011-08-30 15:54:51.000000000 +0200
+++ icinga-init.d.orig	2011-08-30 15:45:16.000000000 +0200
@@ -7,7 +7,7 @@
 
 depend() {
         need net
-        use dns logger firewall ido2db
+        use dns logger firewall
         after mysql postgresql
 }
Comment 97 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-08-30 14:34:13 UTC
It is not necessary to install icinga with idoutils support.  That is why the init script is as it is.  Order also does not mater I have found, but since I am using the classic interface that could be why (don't think it uses the DB at all).  Which interface are you using?
Comment 98 Timo Eissler 2011-09-03 09:15:34 UTC
i know that it is not required to install icinga with idoutils, but if you do so ido2db should start before icinga as described in the icinga install manual.
And because i added ido2db with "use" instead of "need" it is no problem if you install icinga without idoutils, but it will start it if it is available.
Comment 99 Ricardo Bartels 2011-09-13 21:00:01 UTC
Anything else preventing inclusion in tree?
Comment 100 Thomas Oettli 2011-09-22 13:16:11 UTC
Created attachment 287405 [details]
Ebuild for icinga-1.5.1

The ebuild for 1.5.0 works for 1.5.1, too.

Tested on amd64.
Comment 101 WOLfgang Schricker 2011-09-27 07:22:25 UTC
(In reply to comment #100)
> The ebuild for 1.5.0 works for 1.5.1, too.

Hello,
the directory '/usr/$(get_libdir)/icinga' was not created from both ebuilds with my USE flags:
net-analyzer/icinga-1.5.1  USE="plugins ssl vim-syntax -apache2 -api -debug -idoutils -lighttpd -mysql -perl -postgres -web"

My HACK in line icinga-1.5.1.ebuild, line 182:
[ ! -d /usr/$(get_libdir)/icinga ] && dodir /usr/$(get_libdir)/icinga || die
Comment 102 sighns 2011-10-06 17:24:35 UTC
I'm grateful for this ebuild, but i tried to emerge icinga-1.5.1 and everytime i got this indipendent which use-flags i choose. I used the ebuild from @Comment 100

 * ERROR: net-analyzer/icinga-1.5.1 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_install
 *   environment, line 2443:  Called die
 * The specific snippet of code:
 *       newinitd "${FILESDIR}"/icinga-init.d icinga || die;


emerge --info -> http://pastebin.com/2dV8wnmp
build.log -> http://pastebin.com/E72eJwn0

Can someone confirm this error?
Comment 103 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-11-15 05:20:39 UTC
I was not able to reproduce the errors from comments number 101 and 102.
I have also fixed the pre-stripped binaries with the help of blueness.

Version 1.5.1 of icinga is in gentoo proper and has been taken out of sunrise.