Code

README.Debian: Be a bit more verbose about how to setup Gearman mode.
[pkg-pnp4nagios.git] / debian / rules
index 3b4aeee22d411733e980dce6c5d05370d23f51ae..9f9611aa186511ef772dc2ff2b68e6af34dd8967 100755 (executable)
@@ -32,9 +32,8 @@ config.status: configure
 
        ./configure $(CROSS) \
                                --with-layout=debian \
-                               --prefix=/usr \
-                               --mandir=\$${prefix}/share/man \
-                               --infodir=\$${prefix}/share/info \
+                               --mandir=/usr/share/man \
+                               --infodir=/usr/share/info \
                                --without-kohana \
                                --with-kohana_system=/usr/share/php/kohana2/system \
                                --with-httpd-conf=/etc/apache2/conf.d \
@@ -70,6 +69,8 @@ clean: unpatch
 
        [ ! -f Makefile ] || $(MAKE) distclean
 
+       rm -f scripts/rc.pnp_gearman_worker
+
        dh_clean
        debconf-updatepo
 
@@ -138,6 +139,10 @@ install: build
 
        cp -av sample-config/httpd.conf debian/tmp/etc/pnp4nagios/apache.conf
 
+       # Remove unnecessary config files (duplicates)
+       rm -f debian/tmp/etc/pnp4nagios/config_local.php
+       rm -f debian/tmp/etc/pnp4nagios/config.php.0.6*
+
        # Add subdirs to /var/spool/pnp4nagios/ to prepare for different modes
        mkdir debian/tmp/var/spool/pnp4nagios/nagios
        mkdir debian/tmp/var/spool/pnp4nagios/npcd
@@ -177,7 +182,8 @@ binary-arch: build install
        dh_installexamples -a
        dh_installdebconf -a
        dh_installinit -ppnp4nagios-bin --name=npcd
-       dh_installman -a man/npcd.8
+       dh_installinit -ppnp4nagios-bin --name=pnp_gearman_worker
+       dh_installman -a
        dh_link -a
        dh_strip -a
        dh_compress -a