Code

Add quilt
authorSven Velt <sven@velt.de>
Mon, 24 Jan 2011 22:43:45 +0000 (23:43 +0100)
committerSven Velt <sven@velt.de>
Mon, 24 Jan 2011 22:43:45 +0000 (23:43 +0100)
debian/patches/adjust-template-path [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/rules

diff --git a/debian/patches/adjust-template-path b/debian/patches/adjust-template-path
new file mode 100644 (file)
index 0000000..7c2abe4
--- /dev/null
@@ -0,0 +1,19 @@
+Index: pkg-pnp4nagios/sample-config/pnp/config.php.in
+===================================================================
+--- pkg-pnp4nagios.orig/sample-config/pnp/config.php.in        2011-01-24 23:37:42.251054015 +0100
++++ pkg-pnp4nagios/sample-config/pnp/config.php.in     2011-01-24 23:38:08.707054015 +0100
+@@ -214,12 +214,12 @@
+ # Add your own template directories here
+ # First match wins!
+ #$conf['template_dirs'][] = '/usr/local/check_mk/pnp-templates';
+-$conf['template_dirs'][] = '@datarootdir@/templates';
++$conf['template_dirs'][] = '@sysconfdir@/templates';
+ $conf['template_dirs'][] = '@datarootdir@/templates.dist';
+ #
+ # Directory to search for special templates
+ #
+-$conf['special_template_dir'] = '@datarootdir@/templates.special';
++$conf['special_template_dir'] = '@sysconfdir@/templates.special';
+ ?>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..2ef2caa
--- /dev/null
@@ -0,0 +1 @@
+adjust-template-path
index f0087dd77618fe6aeab81046d721c8e134c6b3ef..1434a8116874c289e275ea49e894adead435be9b 100644 (file)
@@ -6,6 +6,8 @@
 # dh-make output file, you may use that output file without restriction.
 # This special exception was added by Craig Small in version 0.37 of dh-make.
 
+include /usr/share/quilt/quilt.make
+
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
@@ -42,7 +44,7 @@ config.status: configure
 
 build: build-stamp
 
-build-stamp:  config.status 
+build-stamp: $(QUILT_STAMPFN) config.status
        dh_testdir
 
        # Add here commands to compile the package.
@@ -50,7 +52,7 @@ build-stamp:  config.status
 
        touch $@
 
-clean: 
+clean: unpatch
        dh_testdir
        dh_testroot
        rm -f build-stamp