[Pkg-nagios-devel] Bug#671231: pnp4nagios-web: Should not depend on apache2

Matthias Wamser mw at ilk.net
Wed May 2 15:34:48 UTC 2012


Package: pnp4nagios-web
Version: 0.6.12-1~bpo60+1
Severity: normal
Tags: patch


Trying to install pnp4nagios-web (from squeeze-backports on debian squeeze) on a system with lighttpd already installed:

pnp4nagios-web wants to install apache2. This is caused by dependency on php5. 
I think this ist not ok.
It should also work with lighttpd and php5-cgi or any other webserver/php5 combination.

The following procedure did me let install it without apache2:

1. install php5-cgi (which is one dependency of php5)
2. install php5 (which is now satisfied by php5-cgi)

these to steps prevent the installation of apache2

3. touch and chmod +x /etc/init.d/apache2

this prevents pnp4nagios-web from postinst error

4. install pnp4nagios-web

OK, this is just a workaround.

And this is the "patch":
imho the package should get another OR dependency on php5-cgi
(Depends: libapache2-mod-php5 | php5-cgi | php5)
and postinst should not rely on an existing apache2 start script.

regards,
Matthias

-- System Information:
Debian Release: 6.0.4
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash





More information about the Pkg-nagios-devel mailing list