From: Sven Velt Date: Mon, 24 Jan 2011 22:43:45 +0000 (+0100) Subject: Add quilt X-Git-Tag: v_0_6_11-1~48^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eb5cd630dd40337c32411fb34f841eec85123e69;p=pkg-pnp4nagios.git Add quilt --- 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