From eb5cd630dd40337c32411fb34f841eec85123e69 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Mon, 24 Jan 2011 23:43:45 +0100 Subject: [PATCH] Add quilt --- debian/patches/adjust-template-path | 19 +++++++++++++++++++ debian/patches/series | 1 + debian/rules | 6 ++++-- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 debian/patches/adjust-template-path create mode 100644 debian/patches/series diff --git a/debian/patches/adjust-template-path b/debian/patches/adjust-template-path new file mode 100644 index 0000000..7c2abe4 --- /dev/null +++ b/debian/patches/adjust-template-path @@ -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 index 0000000..2ef2caa --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +adjust-template-path diff --git a/debian/rules b/debian/rules index f0087dd..1434a81 100644 --- a/debian/rules +++ b/debian/rules @@ -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 -- 2.30.2