new upstream icinga 1.7.0 release - full spec file rework+changes

please note the most important changes:

- moved bindir/idomod.o to libdir/idomod.so (requires config update)
- moved /var/icinga to /var/spool/icinga in icinga.spec (upgrade safe)
- renamed icinga-idoutils rpm to icinga-idoutils-libdbi-mysql|pgsql in
icinga.spec

these changes have been provided in order to make packaging more easy as
well as allow clean upstream packages. the move from /var/icinga to
/var/spool/icinga is made upgrade safe, so on package upgrade
retention.dat and objects.precache will be safely copied if existing.

upcoming icinga-web package will recognize and depend on these changes
as well.

below is the full changelog, for the exact changes on icinga itsself,
please refer to the official upstream Changelog.

* Sun May 06 2012 Michael Friedrich <michael.friedrich@univie.ac.at> -
* 1.7.0-1
- drop idoutils, add idoutils-libdbi-mysql and idoutils-libdbi-pgsql
- add requires for libdbi drivers mysql and pgsql
- add conflicts vice versa to mysql and pgsql libdbi package
- sed ido2db.cfg for idoutils-libdbi-pgsql to match pgsql config on
  upgrade
- log info message for idoutils to create db
- use the _sbindir macro instead of hardcoded /usr/sbin
- move pid file to _localstatedir/run/icinga.pid
- use name macro instead of hardcoded "icinga" everywhere
- introduce plugindir macro for global usage
- install icinga.logrotate example
- move ext cmd file location to
  _localstatedir/spool/icinga/cmd/icinga.cmd
- set icinga user's home to _localstatedir/spool/icinga
- move checkresults to _localstatedir/spool/icinga/checkresults
- use --with-http-auth-file from #2533
- add default /etc/icinga/passwd with icingaadmin:icingaadmin default
  login
- use ido2db.lock, ido.sock, idomod.tmp, icinga.chk location change from
  configure params #1856
- use --with-state-dir=$spooldir for status.dat, objects.cache etc
- kick provides: nagios again, as this will cause dependency problems.
  addons must be fixed.
- copy old retention.dat and objects.precache if found #2585
- add most valuable changes to README.RHEL*
- delete old bindir/idomod.o if found

* Sat Feb 25 2012 Michael Friedrich <michael.friedrich@univie.ac.at> -
* 1.6.1-5
- add README.RHEL README.RHEL.idoutils to docs, thx Michael Gruener,
  Stefan Marx #2212
- use newly introduced --with-eventhandler-dir and make
  install-eventhandlers
- install sample eventhandlers to {_libdir}/icinga/eventhandlers
- use --enable-cgi-log from upstream instead of manual sed
- add {_sysconfdir}/icinga/conf.d because upstream will include that
  with cfg_dir

* Fri Feb 24 2012 Michael Friedrich <michael.friedrich@univie.ac.at> -
* 1.6.1-4
- rename idomod.o to idomod.so - see #2354
- use --libdir={_libdir}/icinga to install idomod.so instead of
  {_bindir} - see #2346
- list {_libdir}/icinga/cgi/ cgis one by one, removing build warnings
- remove macros in changelog warnings from rpmlint
- use custom revision macro, don't forget that on spec updates
- drop webuser/group, was used only by deprecated icinga-api (thx
  Michael Gruener) #2356
- change ownership of docs to root (thx Michael Gruener)
- add "README LICENSE Changelog UPGRADING" to all packages as docs (thx
  Michael Gruener) #2212
- change permissions of resource.cfg to icinga:icinga 640 (thx Michael
  Gruener)
- users who use cgi.cfg authorized_for_full_command_resolution must add
  apache user to group themselves (security risk)
- put module/idoutils/db into docs instead of manually copying to
  /etc/icinga/idoutils (thx Michael Gruener) #2357
- revamp the file permissions based on proposals by Michael Gruener
  <michael.gruener@topalis.com>

* Thu Feb 23 2012 Michael Friedrich <michael.friedrich@univie.ac.at> -
* 1.6.1-3
- use --with-plugin-dir instead of --libexexdir for nagios plugins dir
  introduced in #2344
initial import of upstream icinga-web package 1.7.0

this has been extensively tested by community members and developers,
requiring icinga-web to become even more packagable.

as icinga itsself, the database setup must be done manually as well.

there is no implicit dependency on the icinga package, as icinga-web
will use the idoutils database, once configured in databases.xml - but
that can be on a different host.

the configs will be placed into /etc/icinga-web/conf.d/*.xml and not
overriden on upgrades. After install/upgrade a config cache clearing is
invoked, as internal agavi strctures require that. the cache itsself
lives in /var/cache/icinga-web while the logs run into
/var/log/icinga-web - these are web logs and debug logs, apache log is
different.

if icinga-web is installed on the same host as icinga with idoutils the
package sets various defaults, such as the external command file within
/var/spool/icinga/cmd/icinga.cmd (newly introduced in icinga 1.7.0
rpms). furthermore, the icinga binary and config file is referenced as
the icinga package will do.

the apache config will be installed into
/etc/httpd/conf.d/icinga-web.conf where the (rewrite) magic happens.

currently the package does not require php53 on el5, but it could happen
in the future, as the requirement is php 5.2.3 the least currently (and
5.3 is even better).

if you have a pnp4nagios install, and want to integrate that into
icinga-web the module-pnp package will help. This will install the
required cronk xml snippets in order to add pnp urls. you will find the
final install in /usr/share/icinga-web (where icinga-web app lives)
underneath app/modules/Cronks/data/xml/extensions/

since this is the initial push to an official repo, please report any
bugs from the package directly to https://dev.icinga.org as the spec
file is kindly the same as provided with the upstream tarball.
bump icinga to upstream 1.7.1 release
bump icinga-web to upstream 1.7.1 release
Merge remote-tracking branch 'repoforge/master'
Merge pull request #169 from dnsmichi/master

new icinga 1.7.0 upstream release