[Pkg-nagios-changes] [pkg-nagios] r1988 - in nagiosgrapher/tags: . 1.7.1-3/debian
Alexander Reichle-Schmehl
tolimar at alioth.debian.org
Sat Dec 3 12:47:43 UTC 2011
Author: tolimar
Date: 2011-12-03 12:47:43 +0000 (Sat, 03 Dec 2011)
New Revision: 1988
Added:
nagiosgrapher/tags/1.7.1-3/
nagiosgrapher/tags/1.7.1-3/debian/README.source
nagiosgrapher/tags/1.7.1-3/debian/changelog
nagiosgrapher/tags/1.7.1-3/debian/control
nagiosgrapher/tags/1.7.1-3/debian/postrm.in
nagiosgrapher/tags/1.7.1-3/debian/rules
Removed:
nagiosgrapher/tags/1.7.1-3/debian/changelog
nagiosgrapher/tags/1.7.1-3/debian/control
nagiosgrapher/tags/1.7.1-3/debian/postrm.in
nagiosgrapher/tags/1.7.1-3/debian/rules
Log:
[svn-buildpackage] Tagging nagiosgrapher 1.7.1-3
Copied: nagiosgrapher/tags/1.7.1-3/debian/README.source (from rev 1986, nagiosgrapher/trunk/debian/README.source)
===================================================================
--- nagiosgrapher/tags/1.7.1-3/debian/README.source (rev 0)
+++ nagiosgrapher/tags/1.7.1-3/debian/README.source 2011-12-03 12:47:43 UTC (rev 1988)
@@ -0,0 +1,2 @@
+This package uses dpatch for patch management. See
+/usr/share/doc/dpatch/README.source.gz for more details.
Deleted: nagiosgrapher/tags/1.7.1-3/debian/changelog
===================================================================
--- nagiosgrapher/trunk/debian/changelog 2011-11-01 16:12:25 UTC (rev 1977)
+++ nagiosgrapher/tags/1.7.1-3/debian/changelog 2011-12-03 12:47:43 UTC (rev 1988)
@@ -1,93 +0,0 @@
-nagiosgrapher (1.7.1-2) unstable; urgency=low
-
- [ Hendrik Frenzel ]
- * rrd2-graph.cgi:
- fixed uninitialized value error in rrd2-graph.cgi (Closes: 536876)
- fixed empty $end variable (Closes: 566248)
- * removed duplicate logrotate config (Closes: 516076)
- * added $remote_fs $syslog dependency to the init script
- * removed empty var/run
- * escaped minus sign in manpage
-
- -- Hendrik Frenzel <hfrenzel at scunc.net> Thu, 18 Feb 2010 16:58:26 +0100
-
-nagiosgrapher (1.7.1-1) unstable; urgency=low
-
- [ Hendrik Frenzel ]
- * packaged current stable upstream release (Closes: 514362, 565914)
- * removed useless README (Closes: 495640)
- * fixed graph_log_regex in templates/standard/check_smtp.ncfg to better match
- the log output and changed graph_log_regex to graph_perf_regex in
- templates/standard/check_http.ncfg according to check_imap.ncfg (Closes:
- 513969)
- * changed order of setuid/setgid and added checks if those operations fail
- and changed permission in create_pipe in collect2.pl from 0666 to 0660
- (Closes: 483695)
-
- -- Hendrik Frenzel <hfrenzel at scunc.net> Sun, 15 Feb 2009 13:18:02 +0100
-
-nagiosgrapher (1.6.1rc5-6) unstable; urgency=low
-
- * patched ignorance of comments into NagiosGrapher.pm (Closes: 466854)
- + changed tags in ngraph.ncfg
- (see /usr/share/doc/nagiosgrapher/NEWS.Debian.gz)
- * switched to nagios3 support (Closes: 479291)
- + moved nagiosgraphers config for nagios3 to /etc/nagiosgrapher/nagios3
- and symlinked to /etc/nagios3/conf.d/ngraph for inclusion
- * debian/watch
- + changed upstreams download URL
- + removed unused comments
- * debian/postrm.in
- + purge ucf handled configs on package purge
- * debian/copyright
- + switched to format as proposed on
- http://wiki.debian.org/Proposals/CopyrightFormat
-
- -- Hendrik Frenzel <hfrenzel at scunc.net> Mon, 19 May 2008 22:51:09 +0200
-
-nagiosgrapher (1.6.1rc5-5) unstable; urgency=low
-
- * patched clean and distclean targets to Makefile.in
-
- -- Hendrik Frenzel <hfrenzel at scunc.net> Mon, 21 Jan 2008 19:56:58 +0100
-
-nagiosgrapher (1.6.1rc5-4) unstable; urgency=low
-
- * Fixed Vcs-* fields in debian/control
- * update to Standards-Version to 3.7.3.
- * enabled DM-Upload
- * removed old Homepage stanza in debian/control
-
- -- Hendrik Frenzel <hfrenzel at scunc.net> Thu, 10 Jan 2008 00:59:43 +0100
-
-nagiosgrapher (1.6.1rc5-3) unstable; urgency=low
-
- * Fixed example process-service-perfdata fifo_write command in README.Debian
-
- -- Hendrik Frenzel <hfrenzel at scunc.net> Thu, 18 Oct 2007 12:18:30 +0200
-
-nagiosgrapher (1.6.1rc5-2) unstable; urgency=low
-
- * Fixed typo in logrotate script (Closes: #440149)
-
- -- Hendrik Frenzel <hfrenzel at scunc.net> Thu, 30 Aug 2007 17:17:08 +0200
-
-nagiosgrapher (1.6.1rc5-1) unstable; urgency=low
-
- * New upstream release (Closes: #437124, #439777, #442042)
-
- -- Hendrik Frenzel <hfrenzel at scunc.net> Sat, 18 Aug 2007 00:31:55 +0200
-
-nagiosgrapher (1.6.1rc3-2) unstable; urgency=low
-
- * Fixed some lintian warnings.
-
- -- Hendrik Frenzel <hfrenzel at scunc.net> Mon, 23 Jul 2007 22:03:14 +0200
-
-nagiosgrapher (1.6.1rc3-1) unstable; urgency=low
-
- * Initial release (Closes: #401113: ITP: nagiosgrapher -- A graphing system for
- the Nagios monitoring system project.)
-
- -- Hendrik Frenzel <hfrenzel at scunc.net> Mon, 16 Jul 2007 11:27:27 +0200
-
Copied: nagiosgrapher/tags/1.7.1-3/debian/changelog (from rev 1987, nagiosgrapher/trunk/debian/changelog)
===================================================================
--- nagiosgrapher/tags/1.7.1-3/debian/changelog (rev 0)
+++ nagiosgrapher/tags/1.7.1-3/debian/changelog 2011-12-03 12:47:43 UTC (rev 1988)
@@ -0,0 +1,117 @@
+nagiosgrapher (1.7.1-3) unstable; urgency=medium
+
+ * Update maintainer list
+ * Call ucf in postrm conditionally (Closes: #639279)
+ * Update Homepage field
+ * Remove dm-upload-allowed as there's currently no maintainer
+ * Depend on nagios or icinga (Closes: #603705)
+ * Bump standards to 3.9.2
+ * Add debian/README.source
+ * Set urgency to medium due to rc bug fix
+
+ -- Alexander Reichle-Schmehl <tolimar at debian.org> Sat, 03 Dec 2011 13:40:13 +0100
+
+nagiosgrapher (1.7.1-2.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * debian/rules: install standard//check_disk.ncfg
+ standard//check_swap.ncfg standard//check_ping.ncfg
+ standard//check_load.ncfg standard//check_procs.ncfg via ucf instead of
+ directly in the package (as it was done before) (Closes: #603456)
+ * Set urgency to medium due to rc bug fix
+
+ -- Alexander Reichle-Schmehl <tolimar at debian.org> Fri, 26 Nov 2010 17:29:27 +0100
+
+nagiosgrapher (1.7.1-2) unstable; urgency=low
+
+ [ Hendrik Frenzel ]
+ * rrd2-graph.cgi:
+ fixed uninitialized value error in rrd2-graph.cgi (Closes: 536876)
+ fixed empty $end variable (Closes: 566248)
+ * removed duplicate logrotate config (Closes: 516076)
+ * added $remote_fs $syslog dependency to the init script
+ * removed empty var/run
+ * escaped minus sign in manpage
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net> Thu, 18 Feb 2010 16:58:26 +0100
+
+nagiosgrapher (1.7.1-1) unstable; urgency=low
+
+ [ Hendrik Frenzel ]
+ * packaged current stable upstream release (Closes: 514362, 565914)
+ * removed useless README (Closes: 495640)
+ * fixed graph_log_regex in templates/standard/check_smtp.ncfg to better match
+ the log output and changed graph_log_regex to graph_perf_regex in
+ templates/standard/check_http.ncfg according to check_imap.ncfg (Closes:
+ 513969)
+ * changed order of setuid/setgid and added checks if those operations fail
+ and changed permission in create_pipe in collect2.pl from 0666 to 0660
+ (Closes: 483695)
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net> Sun, 15 Feb 2009 13:18:02 +0100
+
+nagiosgrapher (1.6.1rc5-6) unstable; urgency=low
+
+ * patched ignorance of comments into NagiosGrapher.pm (Closes: 466854)
+ + changed tags in ngraph.ncfg
+ (see /usr/share/doc/nagiosgrapher/NEWS.Debian.gz)
+ * switched to nagios3 support (Closes: 479291)
+ + moved nagiosgraphers config for nagios3 to /etc/nagiosgrapher/nagios3
+ and symlinked to /etc/nagios3/conf.d/ngraph for inclusion
+ * debian/watch
+ + changed upstreams download URL
+ + removed unused comments
+ * debian/postrm.in
+ + purge ucf handled configs on package purge
+ * debian/copyright
+ + switched to format as proposed on
+ http://wiki.debian.org/Proposals/CopyrightFormat
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net> Mon, 19 May 2008 22:51:09 +0200
+
+nagiosgrapher (1.6.1rc5-5) unstable; urgency=low
+
+ * patched clean and distclean targets to Makefile.in
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net> Mon, 21 Jan 2008 19:56:58 +0100
+
+nagiosgrapher (1.6.1rc5-4) unstable; urgency=low
+
+ * Fixed Vcs-* fields in debian/control
+ * update to Standards-Version to 3.7.3.
+ * enabled DM-Upload
+ * removed old Homepage stanza in debian/control
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net> Thu, 10 Jan 2008 00:59:43 +0100
+
+nagiosgrapher (1.6.1rc5-3) unstable; urgency=low
+
+ * Fixed example process-service-perfdata fifo_write command in README.Debian
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net> Thu, 18 Oct 2007 12:18:30 +0200
+
+nagiosgrapher (1.6.1rc5-2) unstable; urgency=low
+
+ * Fixed typo in logrotate script (Closes: #440149)
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net> Thu, 30 Aug 2007 17:17:08 +0200
+
+nagiosgrapher (1.6.1rc5-1) unstable; urgency=low
+
+ * New upstream release (Closes: #437124, #439777, #442042)
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net> Sat, 18 Aug 2007 00:31:55 +0200
+
+nagiosgrapher (1.6.1rc3-2) unstable; urgency=low
+
+ * Fixed some lintian warnings.
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net> Mon, 23 Jul 2007 22:03:14 +0200
+
+nagiosgrapher (1.6.1rc3-1) unstable; urgency=low
+
+ * Initial release (Closes: #401113: ITP: nagiosgrapher -- A graphing system for
+ the Nagios monitoring system project.)
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net> Mon, 16 Jul 2007 11:27:27 +0200
+
Deleted: nagiosgrapher/tags/1.7.1-3/debian/control
===================================================================
--- nagiosgrapher/trunk/debian/control 2011-11-01 16:12:25 UTC (rev 1977)
+++ nagiosgrapher/tags/1.7.1-3/debian/control 2011-12-03 12:47:43 UTC (rev 1988)
@@ -1,24 +0,0 @@
-Source: nagiosgrapher
-Section: misc
-Priority: extra
-Maintainer: Hendrik Frenzel <hfrenzel at scunc.net>
-Uploaders: Debian Nagios Maintainer Group <pkg-nagios-devel at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 5), dpatch, cdbs, autoconf
-Standards-Version: 3.8.4
-Homepage: http://www.nagiosexchange.org/NagiosGrapher.84.0.html
-Vcs-Svn: svn://svn.debian.org/svn/pkg-nagios/nagiosgrapher/trunk/
-Vcs-Browser: http://svn.debian.org/wsvn/pkg-nagios/nagiosgrapher/trunk/
-Dm-Upload-Allowed: yes
-
-Package: nagiosgrapher
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, ucf, ttf-dejavu, rrdtool, librrds-perl, libgd-gd2-perl, libimage-magick-perl, libcalendar-simple-perl, liburi-perl, nagios3, nagios-images
-Suggests: netcat
-Description: Charting add-on for Nagios
- The "NETWAYS Nagios Grapher" is a Graphing system which uses templates to
- assign services to various data sources (RRDs). Thus it is possible to
- create a quantity of graphs using only a small configuration, keeping it
- easy to manage. These templates are automatically applied to incoming
- data, thus creating a new service in Nagios will automatically create the
- graph once valid data is seen for that service. Correlations between
- different graphs is also possible.
Copied: nagiosgrapher/tags/1.7.1-3/debian/control (from rev 1986, nagiosgrapher/trunk/debian/control)
===================================================================
--- nagiosgrapher/tags/1.7.1-3/debian/control (rev 0)
+++ nagiosgrapher/tags/1.7.1-3/debian/control 2011-12-03 12:47:43 UTC (rev 1988)
@@ -0,0 +1,23 @@
+Source: nagiosgrapher
+Section: misc
+Priority: extra
+Maintainer: Debian Nagios Maintainer Group <pkg-nagios-devel at lists.alioth.debian.org>
+Uploaders: Alexander Reichle-Schmehl <tolimar at debian.org>
+Build-Depends: debhelper (>= 5), dpatch, cdbs, autoconf
+Standards-Version: 3.9.2
+Homepage: http://www.netways.de/en/de/produkte/nagios_addons/nagiosgrapher/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-nagios/nagiosgrapher/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-nagios/nagiosgrapher/trunk/
+
+Package: nagiosgrapher
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ucf, ttf-dejavu, rrdtool, librrds-perl, libgd-gd2-perl, libimage-magick-perl, libcalendar-simple-perl, liburi-perl, nagios3 | icinga, nagios-images
+Suggests: netcat
+Description: Charting add-on for Nagios
+ The "NETWAYS Nagios Grapher" is a Graphing system which uses templates to
+ assign services to various data sources (RRDs). Thus it is possible to
+ create a quantity of graphs using only a small configuration, keeping it
+ easy to manage. These templates are automatically applied to incoming
+ data, thus creating a new service in Nagios will automatically create the
+ graph once valid data is seen for that service. Correlations between
+ different graphs is also possible.
Deleted: nagiosgrapher/tags/1.7.1-3/debian/postrm.in
===================================================================
--- nagiosgrapher/trunk/debian/postrm.in 2011-11-01 16:12:25 UTC (rev 1977)
+++ nagiosgrapher/tags/1.7.1-3/debian/postrm.in 2011-12-03 12:47:43 UTC (rev 1988)
@@ -1,51 +0,0 @@
-#!/bin/sh
-# postrm script for nagiosgrapher
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-# * <postrm> `remove'
-# * <postrm> `purge'
-# * <old-postrm> `upgrade' <new-version>
-# * <new-postrm> `failed-upgrade' <old-version>
-# * <new-postrm> `abort-install'
-# * <new-postrm> `abort-install' <old-version>
-# * <new-postrm> `abort-upgrade' <old-version>
-# * <disappearer's-postrm> `disappear' <overwriter>
-# <overwriter-version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-CFGS="@@CFGS@@"
-TMPL_CFGS="@@TMPL_CFGS@@"
-case "$1" in
- purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
- ;;
-
- *)
- echo "postrm called with unknown argument \`$1'" >&2
- exit 1
- ;;
-esac
-
-if [ "$1" = "purge" ]; then
- for cfg in $CFGS; do
- ucf --purge /etc/nagiosgrapher/$cfg
- rm -f /etc/nagiosgrapher/$cfg
- done
-
- for tmpl in $TMPL_CFGS; do
- ucf --purge /etc/nagiosgrapher/ngraph.d/$tmpl
- rm -f /etc/nagiosgrapher/ngraph.d/$tmpl
- done
-fi
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
Copied: nagiosgrapher/tags/1.7.1-3/debian/postrm.in (from rev 1982, nagiosgrapher/trunk/debian/postrm.in)
===================================================================
--- nagiosgrapher/tags/1.7.1-3/debian/postrm.in (rev 0)
+++ nagiosgrapher/tags/1.7.1-3/debian/postrm.in 2011-12-03 12:47:43 UTC (rev 1988)
@@ -0,0 +1,55 @@
+#!/bin/sh
+# postrm script for nagiosgrapher
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+CFGS="@@CFGS@@"
+TMPL_CFGS="@@TMPL_CFGS@@"
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+if [ "$1" = "purge" ]; then
+ for cfg in $CFGS; do
+ if [-x /usr/bin/ucf ] ; then
+ ucf --purge /etc/nagiosgrapher/$cfg
+ fi
+ rm -f /etc/nagiosgrapher/$cfg
+ done
+
+ for tmpl in $TMPL_CFGS; do
+ if [ -x /usr/bin/ucf ] ; then
+ ucf --purge /etc/nagiosgrapher/ngraph.d/$tmpl
+ fi
+ rm -f /etc/nagiosgrapher/ngraph.d/$tmpl
+ done
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
Deleted: nagiosgrapher/tags/1.7.1-3/debian/rules
===================================================================
--- nagiosgrapher/trunk/debian/rules 2011-11-01 16:12:25 UTC (rev 1977)
+++ nagiosgrapher/tags/1.7.1-3/debian/rules 2011-12-03 12:47:43 UTC (rev 1988)
@@ -1,58 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-
-#CFGS=ngraph.{,d/{nmgraph,extra/check_weather,standard/check_{procs,ping,pop,http,load,users}}.}ncfg
-CFGS := ngraph.ncfg ngraph.d/nmgraph.ncfg
-TMPL_DIR := extra/ standard/
-
-PKG:=nagiosgrapher
-PKG_TMP:=debian/$(PKG)
-
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/dpatch.mk
-include /usr/share/cdbs/1/class/autotools.mk
-
-#DEB_MAKE_ENVVARS := BUILD_ROOT=$(CURDIR)/debian/tmp LC_ALL=C
-#DEB_DH_INSTALL_SOURCEDIR := debian/tmp
-DEB_CONFIGURE_EXTRA_FLAGS := --with-layout=debian-patch --with-ng-srvext-dir=/etc/nagiosgrapher/nagios3/serviceext --with-ng-srvext-file=/etc/nagiosgrapher/nagios3/serviceext.cfg
-DEB_AUTO_UPDATE_AUTOCONF := 1
-
-install/$(PKG)::
- rm -f $(PKG_TMP)/usr/lib/$(PKG)/*.c
-
- for dir in $(TMPL_DIR); do \
- mkdir -p $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/ngraph.d/$$dir; \
- done
-
- # install config templates
- for cfg in $(CFGS); do \
- mv $(PKG_TMP)/etc/$(PKG)/$$cfg* \
- $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/$$cfg; \
- done
- mkdir -p $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/nagios3
- cp debian/commands.cfg $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/nagios3/
-
- # install service perf. templates
- tmpl_root=$(PKG_TMP)/etc/$(PKG)/ngraph.d/templates; \
- for tmpl_dir in $(TMPL_DIR); do \
- for tmpl in $$tmpl_root/$$tmpl_dir/*.ncfg_disabled; do \
- dest=`echo $$tmpl | sed "s#.*\($$tmpl_dir/.*\.ncfg\).*#\1#"`; \
- mv $${tmpl} $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/ngraph.d/$$dest; \
- tmpl_cfgs="$$tmpl_cfgs $$dest"; \
- done; \
- mv $$tmpl_root/$$tmpl_dir $(PKG_TMP)/etc/$(PKG)/ngraph.d/; \
- done; \
- sed "s#@@CFGS@@#$(CFGS) nagios3/commands.cfg#g;s#@@TMPL_CFGS@@#$$tmpl_cfgs#g" < debian/postinst.in > debian/postinst
-
- # fix permissions
- find $(PKG_TMP)/usr/share/nagiosgrapher/htdocs/images/ -type f -name "*.png" -print0 \
- | xargs -0 chmod 0644
- chmod 0644 $(PKG_TMP)/usr/share/nagiosgrapher/debian/cfg/ngraph.d/nmgraph.ncfg
-
- mv README .README
- rm -rf $(PKG_TMP)/var/run
-
-clean::
- [ ! -f .README ] || mv .README README
- rm -f debian/postinst
- rm -f cfg/ngraph.ncfg
Copied: nagiosgrapher/tags/1.7.1-3/debian/rules (from rev 1978, nagiosgrapher/trunk/debian/rules)
===================================================================
--- nagiosgrapher/tags/1.7.1-3/debian/rules (rev 0)
+++ nagiosgrapher/tags/1.7.1-3/debian/rules 2011-12-03 12:47:43 UTC (rev 1988)
@@ -0,0 +1,77 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+#CFGS=ngraph.{,d/{nmgraph,extra/check_weather,standard/check_{procs,ping,pop,http,load,users}}.}ncfg
+CFGS := ngraph.ncfg ngraph.d/nmgraph.ncfg
+TMPL_DIR := extra/ standard/
+
+PKG:=nagiosgrapher
+PKG_TMP:=debian/$(PKG)
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+include /usr/share/cdbs/1/class/autotools.mk
+
+#DEB_MAKE_ENVVARS := BUILD_ROOT=$(CURDIR)/debian/tmp LC_ALL=C
+#DEB_DH_INSTALL_SOURCEDIR := debian/tmp
+DEB_CONFIGURE_EXTRA_FLAGS := --with-layout=debian-patch --with-ng-srvext-dir=/etc/nagiosgrapher/nagios3/serviceext --with-ng-srvext-file=/etc/nagiosgrapher/nagios3/serviceext.cfg
+DEB_AUTO_UPDATE_AUTOCONF := 1
+
+install/$(PKG)::
+ rm -f $(PKG_TMP)/usr/lib/$(PKG)/*.c
+
+ for dir in $(TMPL_DIR); do \
+ mkdir -p $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/ngraph.d/$$dir; \
+ done
+
+ # install config templates
+ for cfg in $(CFGS); do \
+ mv $(PKG_TMP)/etc/$(PKG)/$$cfg* \
+ $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/$$cfg; \
+ done
+ mkdir -p $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/nagios3
+ cp debian/commands.cfg $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/nagios3/
+
+ # install service perf. templates
+ echo "List $(PKG_TMP)"
+ ls $(PKG_TMP)
+ echo "List $(PKG_TMP)/etc/"
+ ls $(PKG_TMP)/etc/
+ echo "List $(PKG_TMP)/etc/$(PKG)"
+ ls $(PKG_TMP)/etc/$(PKG)
+ echo "List $(PKG_TMP)/etc/$(PKG)/ngraph.d/"
+ ls $(PKG_TMP)/etc/$(PKG)/ngraph.d/
+ echo "$(PKG_TMP)/etc/$(PKG)/ngraph.d/templates/"
+ ls $(PKG_TMP)/etc/$(PKG)/ngraph.d/templates/
+ echo "$(PKG_TMP)/etc/$(PKG)/ngraph.d/templates/standard"
+ ls $(PKG_TMP)/etc/$(PKG)/ngraph.d/templates/
+ tmpl_cfgs="standard//check_disk.ncfg standard//check_swap.ncfg standard//check_ping.ncfg standard//check_load.ncfg standard//check_procs.ncfg standard//check_users.ncfg" \
+ mv $(PKG_TMP)/etc/$(PKG)/ngraph.d/templates/standard/check_disk.ncfg $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/ngraph.d/standard/check_disk.ncfg; \
+ mv $(PKG_TMP)/etc/$(PKG)/ngraph.d/templates/standard/check_swap.ncfg $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/ngraph.d/standard/check_swap.ncfg; \
+ mv $(PKG_TMP)/etc/$(PKG)/ngraph.d/templates/standard/check_ping.ncfg $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/ngraph.d/standard/check_ping.ncfg; \
+ mv $(PKG_TMP)/etc/$(PKG)/ngraph.d/templates/standard/check_load.ncfg $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/ngraph.d/standard/check_load.ncfg; \
+ mv $(PKG_TMP)/etc/$(PKG)/ngraph.d/templates/standard/check_procs.ncfg $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/ngraph.d/standard/check_procs.ncfg; \
+ mv $(PKG_TMP)/etc/$(PKG)/ngraph.d/templates/standard/check_users.ncfg $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/ngraph.d/standard/check_users.ncfg; \
+ tmpl_root=$(PKG_TMP)/etc/$(PKG)/ngraph.d/templates; \
+ for tmpl_dir in $(TMPL_DIR); do \
+ for tmpl in $$tmpl_root/$$tmpl_dir/*.ncfg_disabled; do \
+ dest=`echo $$tmpl | sed "s#.*\($$tmpl_dir/.*\.ncfg\).*#\1#"`; \
+ mv $${tmpl} $(PKG_TMP)/usr/share/$(PKG)/debian/cfg/ngraph.d/$$dest; \
+ tmpl_cfgs="$$tmpl_cfgs $$dest"; \
+ done; \
+ mv $$tmpl_root/$$tmpl_dir $(PKG_TMP)/etc/$(PKG)/ngraph.d/; \
+ done; \
+ sed "s#@@CFGS@@#$(CFGS) nagios3/commands.cfg#g;s#@@TMPL_CFGS@@#$$tmpl_cfgs#g" < debian/postinst.in > debian/postinst
+
+ # fix permissions
+ find $(PKG_TMP)/usr/share/nagiosgrapher/htdocs/images/ -type f -name "*.png" -print0 \
+ | xargs -0 chmod 0644
+ chmod 0644 $(PKG_TMP)/usr/share/nagiosgrapher/debian/cfg/ngraph.d/nmgraph.ncfg
+
+ mv README .README
+ rm -rf $(PKG_TMP)/var/run
+
+clean::
+ [ ! -f .README ] || mv .README README
+ rm -f debian/postinst
+ rm -f cfg/ngraph.ncfg
More information about the Pkg-nagios-changes
mailing list