[Pkg-nagios-changes] [pkg-nagios] r1200 - in nagiosgrapher: . trunk trunk/debian trunk/debian/exmpl trunk/debian/patches
Hendrik Frenzel
hfrenzel-guest at alioth.debian.org
Sat Jul 21 10:10:04 UTC 2007
tags 401113 pending
thanks
Author: hfrenzel-guest
Date: 2007-07-21 10:10:04 +0000 (Sat, 21 Jul 2007)
New Revision: 1200
Added:
nagiosgrapher/trunk/
nagiosgrapher/trunk/debian/
nagiosgrapher/trunk/debian/README.Debian
nagiosgrapher/trunk/debian/changelog
nagiosgrapher/trunk/debian/compat
nagiosgrapher/trunk/debian/control
nagiosgrapher/trunk/debian/copyright
nagiosgrapher/trunk/debian/dirs
nagiosgrapher/trunk/debian/docs
nagiosgrapher/trunk/debian/examples
nagiosgrapher/trunk/debian/exmpl/
nagiosgrapher/trunk/debian/exmpl/process-service-perfdata.cfg
nagiosgrapher/trunk/debian/init
nagiosgrapher/trunk/debian/links
nagiosgrapher/trunk/debian/logrotate
nagiosgrapher/trunk/debian/patches/
nagiosgrapher/trunk/debian/patches/00list
nagiosgrapher/trunk/debian/patches/configure.dpatch
nagiosgrapher/trunk/debian/patches/debian.dpatch
nagiosgrapher/trunk/debian/patches/nmgraph.dpatch
nagiosgrapher/trunk/debian/postinst.in
nagiosgrapher/trunk/debian/rules
nagiosgrapher/trunk/debian/watch
Log:
initial inject
Property changes on: nagiosgrapher/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
+ 1
Added: nagiosgrapher/trunk/debian/README.Debian
===================================================================
--- nagiosgrapher/trunk/debian/README.Debian (rev 0)
+++ nagiosgrapher/trunk/debian/README.Debian 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,51 @@
+nagiosgrapher for Debian
+------------------------
+
+Thank you for using this software. There are some steps to get them all work.
+
+Taken from make output:
+
+ =============================================================
+ Just a few steps to run the grapher ...
+
+ =============================================================
+ Serviceexttype, MULTIPLE:
+ Add these line to your nagios.cfg.
+ cfg_dir=/etc/nagios2/serviceext
+
+ Serviceexttype, SINGLE:
+ Add these line to your cgi.cfg.
+ xedtemplate_config_file=/etc/nagios2/serviceextinfo.cfg
+
+ =============================================================
+ To tell nagios to write service perfdata add these lines to your nagios.cfg:
+
+ process_performance_data=1
+ service_perfdata_command=process-service-perfdata
+
+ =============================================================
+ And add one of the following commands to your misccommands.cfg
+ (Based on the interface you are using: updecho for network, fifo_write for pipe)
+
+ define command{
+ command_name process-service-perfdata
+ command_line /usr/lib/nagiosgrapher/udpecho 127.0.0.1 '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 5667
+ }
+
+ define command{
+ command_name process-service-perfdata
+ command_line /usr/lib/nagiosgrapher/fifo_write '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 3
+ }
+
+ Note if you are using other tools like netcat or printf to passthrough this string:
+ '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n'
+
+ =============================================================
+ Please do not forget to set a proper loglevel!
+ Default loglevel is set to 511 which means all. That is why the logfile can grow very fast!
+
+There is an example in /usr/share/doc/nagiosgrapher/examples with some more ways
+to define process-service-perfdata.
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net> Mon, 16 Jul 2007 11:27:27 +0200
+
Added: nagiosgrapher/trunk/debian/changelog
===================================================================
--- nagiosgrapher/trunk/debian/changelog (rev 0)
+++ nagiosgrapher/trunk/debian/changelog 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,7 @@
+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
+
Added: nagiosgrapher/trunk/debian/compat
===================================================================
--- nagiosgrapher/trunk/debian/compat (rev 0)
+++ nagiosgrapher/trunk/debian/compat 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1 @@
+5
Added: nagiosgrapher/trunk/debian/control
===================================================================
--- nagiosgrapher/trunk/debian/control (rev 0)
+++ nagiosgrapher/trunk/debian/control 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,21 @@
+Source: nagiosgrapher
+Section: misc
+Priority: extra
+Maintainer: Hendrik Frenzel <hfrenzel at scunc.net>
+Build-Depends: debhelper (>= 5), dpatch, cdbs, autoconf
+Standards-Version: 3.7.2
+
+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, nagios2
+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.
+ .
+ Homepage: http://www.nagiosexchange.org/NagiosGrapher.84.0.html
Added: nagiosgrapher/trunk/debian/copyright
===================================================================
--- nagiosgrapher/trunk/debian/copyright (rev 0)
+++ nagiosgrapher/trunk/debian/copyright 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,34 @@
+This package was debianized by Frenzel <hfrenzel at scunc.net> on
+Mon, 16 Jul 2007 11:27:27 +0200.
+
+It was downloaded from http://www.nagiosexchange.org/NagiosGrapher.84.0.html
+
+Upstream Authors:
+
+ Gerd Müller <gmueller at netways.de>
+
+Copyright:
+
+ Copyright (C) 2004-2007 NETWAYS GmbH
+
+License:
+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2007, Frenzel <hfrenzel at scunc.net> and
+is licensed under the GPL, see above.
Added: nagiosgrapher/trunk/debian/dirs
===================================================================
--- nagiosgrapher/trunk/debian/dirs (rev 0)
+++ nagiosgrapher/trunk/debian/dirs 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,4 @@
+usr/sbin
+usr/share/nagios2/htdocs/images/logos
+var/cache/nagiosgrapher
+usr/lib/cgi-bin/nagios2
Added: nagiosgrapher/trunk/debian/docs
===================================================================
--- nagiosgrapher/trunk/debian/docs (rev 0)
+++ nagiosgrapher/trunk/debian/docs 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,2 @@
+doc/ABOUT
+doc/CONFIG
Added: nagiosgrapher/trunk/debian/examples
===================================================================
--- nagiosgrapher/trunk/debian/examples (rev 0)
+++ nagiosgrapher/trunk/debian/examples 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,2 @@
+debian/exmpl/process-service-perfdata.cfg
+
Added: nagiosgrapher/trunk/debian/exmpl/process-service-perfdata.cfg
===================================================================
--- nagiosgrapher/trunk/debian/exmpl/process-service-perfdata.cfg (rev 0)
+++ nagiosgrapher/trunk/debian/exmpl/process-service-perfdata.cfg 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,23 @@
+# And add one of the following commands to your misccommands.cfg
+# (Based on the interface you are using: updecho for network, fifo_write for pipe)
+
+define command {
+ command_name process-service-perfdata
+ command_line /usr/lib/nagiosgrapher/fifo_write.pl /var/lib/nagiosgrapher/ngraph.pipe '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 3
+}
+
+#define command{
+# command_name process-service-perfdata
+# command_line echo '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' | nc -u -w 3 localhost 5667
+#}
+
+#define command{
+# command_name process-service-perfdata
+# command_line /usr/lib/nagiosgrapher/udpecho 127.0.0.1 '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 5667
+#}
+
+#define command{
+# command_name process-service-perfdata
+# command_line /usr/lib/nagiosgrapher/fifo_write '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 3
+#}
+
Added: nagiosgrapher/trunk/debian/init
===================================================================
--- nagiosgrapher/trunk/debian/init (rev 0)
+++ nagiosgrapher/trunk/debian/init 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,78 @@
+#! /bin/sh
+#
+# skeleton example file to build /etc/init.d/ scripts.
+# This file should be used to construct scripts for /etc/init.d.
+#
+# Written by Miquel van Smoorenburg <miquels at cistron.nl>.
+# Modified for Debian
+# by Ian Murdock <imurdock at gnu.ai.mit.edu>.
+#
+# Version: @(#)skeleton 1.9 26-Feb-2001 miquels at cistron.nl
+#
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/nagiosgrapher
+NAME=nagiosgrapher
+DESC=nagiosgrapher
+
+test -x $DAEMON || exit 0
+
+# Include #PACKAGE# defaults if available
+#if [ -f /etc/default/#PACKAGE# ] ; then
+# . /etc/default/#PACKAGE#
+#fi
+
+set -e
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ start-stop-daemon --start --quiet --pidfile /var/run/$NAME/$NAME.pid \
+ --exec $DAEMON -- $DAEMON_OPTS
+ echo "$NAME."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/$NAME/$NAME.pid
+ echo "$NAME."
+ ;;
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # echo "Reloading $DESC configuration files."
+ # start-stop-daemon --stop --signal 1 --quiet --pidfile \
+ # /var/run/$NAME.pid --exec $DAEMON
+ #;;
+ force-reload)
+ #
+ # If the "reload" option is implemented, move the "force-reload"
+ # option to the "reload" entry above. If not, "force-reload" is
+ # just the same as "restart" except that it does nothing if the
+ # daemon isn't already running.
+ # check wether $DAEMON is running. If so, restart
+ start-stop-daemon --stop --test --quiet --pidfile /var/run/$NAME/$NAME.pid \
+ && $0 restart \
+ || exit 0
+ ;;
+ restart)
+ echo -n "Restarting $DESC: "
+ start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/$NAME/$NAME.pid
+ sleep 1
+ start-stop-daemon --start --quiet --pidfile \
+ /var/run/$NAME/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+ echo "$NAME."
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $N {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
Property changes on: nagiosgrapher/trunk/debian/init
___________________________________________________________________
Name: svn:executable
+ *
Added: nagiosgrapher/trunk/debian/links
===================================================================
--- nagiosgrapher/trunk/debian/links (rev 0)
+++ nagiosgrapher/trunk/debian/links 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,8 @@
+usr/lib/cgi-bin/nagiosgrapher/graphs.cgi usr/lib/cgi-bin/nagios2/graphs.cgi
+usr/lib/cgi-bin/nagiosgrapher/rrd2-graph.cgi usr/lib/cgi-bin/nagios2/rrd2-graph.cgi
+usr/lib/cgi-bin/nagiosgrapher/rrd2-system.cgi usr/lib/cgi-bin/nagios2/rrd2-system.cgi
+usr/share/nagiosgrapher/htdocs/images/dot.png usr/share/nagios2/htdocs/images/dot.png
+usr/share/nagiosgrapher/htdocs/images/graph.png usr/share/nagios2/htdocs/images/graph.png
+usr/share/nagiosgrapher/htdocs/images/logos/dot.png usr/share/nagios2/htdocs/images/logos/dot.png
+usr/share/nagiosgrapher/htdocs/images/logos/graph.png usr/share/nagios2/htdocs/images/logos/graph.png
+usr/lib/nagiosgrapher/collect2.pl usr/sbin/nagiosgrapher
Added: nagiosgrapher/trunk/debian/logrotate
===================================================================
--- nagiosgrapher/trunk/debian/logrotate (rev 0)
+++ nagiosgrapher/trunk/debian/logrotate 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,15 @@
+/var/log/nagiosgrapher/ngraph.log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ create 644 nagios nagios
+ charedscripts
+ postrotate
+ if [ -f /var/run/nagiosgrapher/nagiosgrapher.pid ]; then
+ /etc/init.d/nagiosgrapher restart > /dev/null
+ fi
+ endscript
+}
Added: nagiosgrapher/trunk/debian/patches/00list
===================================================================
--- nagiosgrapher/trunk/debian/patches/00list (rev 0)
+++ nagiosgrapher/trunk/debian/patches/00list 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,3 @@
+debian
+nmgraph
+
Added: nagiosgrapher/trunk/debian/patches/configure.dpatch
===================================================================
--- nagiosgrapher/trunk/debian/patches/configure.dpatch (rev 0)
+++ nagiosgrapher/trunk/debian/patches/configure.dpatch 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,171 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## configure.dpatch by <h.frenzel at wlile238.postdirekt.loc>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad nagiosgrapher-1.6.1~/Makefile.in nagiosgrapher-1.6.1/Makefile.in
+--- nagiosgrapher-1.6.1~/Makefile.in 2007-03-07 15:03:44.000000000 +0100
++++ nagiosgrapher-1.6.1/Makefile.in 2007-07-17 15:00:17.000000000 +0200
+@@ -135,17 +135,17 @@
+
+ dirs:
+ mkdir -p $(DESTDIR)/$(NG_SRVEXT_DIR)
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_SRVEXT_DIR)
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_SRVEXT_DIR)
+ mkdir -p $(DESTDIR)/$(NG_RRD)
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_RRD)
+- mkdir -p $(DESTDIR)/etc/init.d
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_RRD)
++ #mkdir -p $(DESTDIR)/etc/init.d
+ mkdir -p `dirname $(DESTDIR)/$(NG_LOGFILE)`
+ mkdir -p $(DESTDIR)/$(NG_DAEMON)
+ mkdir -p $(DESTDIR)/$(NG_RRD)
+
+ logfile:
+ touch $(DESTDIR)/$(NG_LOGFILE)
+- chown $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_LOGFILE)
++ #chown $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_LOGFILE)
+
+ config-install:
+ mkdir -p $(DESTDIR)/$(NG_CONFIG)
+@@ -156,15 +156,15 @@
+ cp -r cfg/templates/extra $(DESTDIR)/$(NG_CONFIG_SUB)
+ cp -r cfg/templates/standard $(DESTDIR)/$(NG_CONFIG_SUB)
+
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_CONFIG)/*.ncfg
+- chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NG_CONFIG)/*.ncfg
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_CONFIG)/*.ncfg
++ #chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NG_CONFIG)/*.ncfg
+
+
+ cgi-install:
+ mkdir -p $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
+ cp sbin/*.cgi $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
+- chgrp -R $(APACHE_GROUP) $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
++ #chgrp -R $(APACHE_GROUP) $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
+ chmod -R 0755 $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
+
+ bin-install:
+@@ -175,8 +175,8 @@
+ contrib/udpecho/udpecho.c \
+ $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+- chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
++ #chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+ chmod -R 0755 $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+
+ bin-compile:
+@@ -186,8 +186,8 @@
+ gcc $(DESTDIR)/$(NAGIOS_CONTRIBUTION)/udpecho.c -o \
+ $(DESTDIR)/$(NAGIOS_CONTRIBUTION)/udpecho
+
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+- chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
++ #chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+
+ perl-install:
+ mkdir -p $(DESTDIR)/$(PERL_INC)
+@@ -195,8 +195,8 @@
+ cp -r lib/NagiosGrapher $(DESTDIR)/$(PERL_INC)
+
+ init-script:
+- cp nagios_grapher $(DESTDIR)/etc/init.d
+- chmod 0755 $(DESTDIR)/etc/init.d/nagios_grapher
++ #cp nagios_grapher $(DESTDIR)/etc/init.d
++ #chmod 0755 $(DESTDIR)/etc/init.d/nagios_grapher
+
+ image-install:
+ mkdir -p $(DESTDIR)/$(NAGIOS_IMAGES)
+diff -urNad nagiosgrapher-1.6.1~/cfg/ngraph.ncfg.in nagiosgrapher-1.6.1/cfg/ngraph.ncfg.in
+--- nagiosgrapher-1.6.1~/cfg/ngraph.ncfg.in 2007-03-07 15:03:44.000000000 +0100
++++ nagiosgrapher-1.6.1/cfg/ngraph.ncfg.in 2007-07-17 15:01:39.000000000 +0200
+@@ -11,7 +11,7 @@
+ interface @NG_INTERFACE@
+
+ # please use subfolder
+- pidfile @NG_DAEMON@/nagios_grapher.pid
++ pidfile @NG_DAEMON@/nagiosgrapher.pid
+ user @NAGIOS_PROC_USER@
+ group @NAGIOS_PROC_GROUP@
+
+diff -urNad nagiosgrapher-1.6.1~/config.layout nagiosgrapher-1.6.1/config.layout
+--- nagiosgrapher-1.6.1~/config.layout 2007-03-07 15:03:44.000000000 +0100
++++ nagiosgrapher-1.6.1/config.layout 2007-07-17 15:00:17.000000000 +0200
+@@ -22,22 +22,22 @@
+
+ # layout for debian package install
+ <Layout debian>
+- prefix: /usr/local/nagios
+- nagios_config: /etc/nagios/nagios.cfg
+- nagios_config_cgi: /etc/nagios/cgi.cfg
+- nagios_images: /usr/share/nagios/htdocs/images
+- nagios_images_logos: /usr/share/nagios/htdocs/images/logos
+- nagios_folder_cgi: /usr/lib/cgi-bin/nagios
+- perl_inc: /etc/perl
+- nagios_contribution: /usr/share/nagios/contrib
+- ng_config: /etc/nagios
++ prefix: /usr/share/nagiosgrapher
++ nagios_config: /etc/nagios2/nagios.cfg
++ nagios_config_cgi: /etc/nagios2/cgi.cfg
++ nagios_images: /usr/share/nagiosgrapher/htdocs/images
++ nagios_images_logos: /usr/share/nagiosgrapher/htdocs/images/logos
++ nagios_folder_cgi: /usr/lib/cgi-bin/nagiosgrapher
++ perl_inc: /usr/share/perl5
++ nagios_contribution: /usr/lib/nagiosgrapher
++ ng_config: /etc/nagiosgrapher
+ ng_config_sub: ${ng_config}/ngraph.d
+- ng_daemon: /var/run/nagios_grapher
+- ng_srvext_file: /etc/nagios/serviceextinfo.cfg
+- ng_srvext_dir: /etc/nagios/serviceext
+- ng_interface_pipe: /var/lib/nagios/ngraph.pipe
+- ng_logfile: /var/log/nagios/ngraph.log
+- ng_rrd: /var/lib/nagios/rrd
++ ng_daemon: /var/run/nagiosgrapher
++ ng_srvext_file: /etc/nagios2/serviceextinfo.cfg
++ ng_srvext_dir: /etc/nagios2/serviceext
++ ng_interface_pipe: /var/lib/nagiosgrapher/ngraph.pipe
++ ng_logfile: /var/log/nagiosgrapher/ngraph.log
++ ng_rrd: /var/lib/nagiosgrapher/rrd
+ </Layout>
+
+ # PLD layout
+diff -urNad nagiosgrapher-1.6.1~/configure.ac nagiosgrapher-1.6.1/configure.ac
+--- nagiosgrapher-1.6.1~/configure.ac 2007-03-07 15:03:44.000000000 +0100
++++ nagiosgrapher-1.6.1/configure.ac 2007-07-17 15:00:17.000000000 +0200
+@@ -18,7 +18,7 @@
+ AC_MSG_ERROR([cannot use $PACKAGE_NAME without perl])
+ fi
+
+-AC_PREFIX_DEFAULT([/usr/local/nagios])
++AC_PREFIX_DEFAULT([/usr/share/nagiosgrapher])
+
+
+ AC_DEFUN([NG_ENABLE_LAYOUT], [
+@@ -323,7 +323,7 @@
+ AC_SUBST([NG_DAEMON], ${exp_ng_daemon})
+ AC_SUBST([NG_SRVEXT_FILE], ${exp_ng_srvext_file})
+ AC_SUBST([NG_SRVEXT_DIR], ${exp_ng_srvext_dir})
+-AC_SUBST([NG_INTERFACE_PIPE], ${exp_interface_pipe})
++AC_SUBST([NG_INTERFACE_PIPE], ${exp_ng_interface_pipe})
+ AC_SUBST([NG_LOGFILE], ${exp_ng_logfile})
+ AC_SUBST([NG_RRD], ${exp_ng_rrd})
+
+diff -urNad nagiosgrapher-1.6.1~/lib/NagiosGrapher.pm.in nagiosgrapher-1.6.1/lib/NagiosGrapher.pm.in
+--- nagiosgrapher-1.6.1~/lib/NagiosGrapher.pm.in 2007-03-07 15:03:44.000000000 +0100
++++ nagiosgrapher-1.6.1/lib/NagiosGrapher.pm.in 2007-07-17 15:00:17.000000000 +0200
+@@ -49,7 +49,7 @@
+ our $ngraphcfg = '@NG_CONFIG@/ngraph.ncfg';
+ our $xmlfile = 'index.xml';
+ our $uniqueInstance = undef;
+-our $object_cache = '@NG_DAEMON@/NagiosGrapher.obj';
++our $object_cache = '/var/cache/nagiosgrapher/NagiosGrapher.obj';
+
+ $LOG_CONFIG = 128;
+ $LOG_HOOK = 256;
Property changes on: nagiosgrapher/trunk/debian/patches/configure.dpatch
___________________________________________________________________
Name: svn:executable
+ *
Added: nagiosgrapher/trunk/debian/patches/debian.dpatch
===================================================================
--- nagiosgrapher/trunk/debian/patches/debian.dpatch (rev 0)
+++ nagiosgrapher/trunk/debian/patches/debian.dpatch 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,218 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## debian.dpatch by <hfrenzel at scunc.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad nagiosgrapher-1.6.1rc3~/Makefile.in nagiosgrapher-1.6.1rc3/Makefile.in
+--- nagiosgrapher-1.6.1rc3~/Makefile.in 2007-03-07 15:03:44.000000000 +0100
++++ nagiosgrapher-1.6.1rc3/Makefile.in 2007-07-19 16:04:33.000000000 +0200
+@@ -135,17 +135,17 @@
+
+ dirs:
+ mkdir -p $(DESTDIR)/$(NG_SRVEXT_DIR)
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_SRVEXT_DIR)
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_SRVEXT_DIR)
+ mkdir -p $(DESTDIR)/$(NG_RRD)
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_RRD)
+- mkdir -p $(DESTDIR)/etc/init.d
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_RRD)
++ #mkdir -p $(DESTDIR)/etc/init.d
+ mkdir -p `dirname $(DESTDIR)/$(NG_LOGFILE)`
+ mkdir -p $(DESTDIR)/$(NG_DAEMON)
+ mkdir -p $(DESTDIR)/$(NG_RRD)
+
+ logfile:
+ touch $(DESTDIR)/$(NG_LOGFILE)
+- chown $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_LOGFILE)
++ #chown $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_LOGFILE)
+
+ config-install:
+ mkdir -p $(DESTDIR)/$(NG_CONFIG)
+@@ -156,15 +156,15 @@
+ cp -r cfg/templates/extra $(DESTDIR)/$(NG_CONFIG_SUB)
+ cp -r cfg/templates/standard $(DESTDIR)/$(NG_CONFIG_SUB)
+
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_CONFIG)/*.ncfg
+- chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NG_CONFIG)/*.ncfg
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_CONFIG)/*.ncfg
++ #chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NG_CONFIG)/*.ncfg
+
+
+ cgi-install:
+ mkdir -p $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
+ cp sbin/*.cgi $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
+- chgrp -R $(APACHE_GROUP) $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
++ #chgrp -R $(APACHE_GROUP) $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
+ chmod -R 0755 $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
+
+ bin-install:
+@@ -175,8 +175,8 @@
+ contrib/udpecho/udpecho.c \
+ $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+- chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
++ #chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+ chmod -R 0755 $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+
+ bin-compile:
+@@ -186,8 +186,8 @@
+ gcc $(DESTDIR)/$(NAGIOS_CONTRIBUTION)/udpecho.c -o \
+ $(DESTDIR)/$(NAGIOS_CONTRIBUTION)/udpecho
+
+- chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+- chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
++ #chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
++ #chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
+
+ perl-install:
+ mkdir -p $(DESTDIR)/$(PERL_INC)
+@@ -195,8 +195,8 @@
+ cp -r lib/NagiosGrapher $(DESTDIR)/$(PERL_INC)
+
+ init-script:
+- cp nagios_grapher $(DESTDIR)/etc/init.d
+- chmod 0755 $(DESTDIR)/etc/init.d/nagios_grapher
++ #cp nagios_grapher $(DESTDIR)/etc/init.d
++ #chmod 0755 $(DESTDIR)/etc/init.d/nagios_grapher
+
+ image-install:
+ mkdir -p $(DESTDIR)/$(NAGIOS_IMAGES)
+diff -urNad nagiosgrapher-1.6.1rc3~/cfg/ngraph.ncfg.in nagiosgrapher-1.6.1rc3/cfg/ngraph.ncfg.in
+--- nagiosgrapher-1.6.1rc3~/cfg/ngraph.ncfg.in 2007-03-07 15:03:44.000000000 +0100
++++ nagiosgrapher-1.6.1rc3/cfg/ngraph.ncfg.in 2007-07-19 16:04:33.000000000 +0200
+@@ -11,7 +11,7 @@
+ interface @NG_INTERFACE@
+
+ # please use subfolder
+- pidfile @NG_DAEMON@/nagios_grapher.pid
++ pidfile @NG_DAEMON@/nagiosgrapher.pid
+ user @NAGIOS_PROC_USER@
+ group @NAGIOS_PROC_GROUP@
+
+@@ -24,21 +24,21 @@
+ rrdpath @NG_RRD@/
+ tmppath /tmp/nagiosgrapher/
+
+- fontfile /usr/local/rrdtool/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
++ fontfile /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
+
+ serviceext_type @NG_SRVEXT@
+ serviceextinfo @NG_SRVEXT_FILE@
+ serviceext_path @NG_SRVEXT_DIR@
+
+- url /nagios/cgi-bin/graphs.cgi
++ url /cgi-bin/nagios2/graphs.cgi
+ notes_url /wiki/index.php/$HOSTNAME$#$SERVICEDESC$
+
+ nagios_config @NAGIOS_CONFIG@
+ cgi_config @NAGIOS_CONFIG_CGI@
+
+ icon_image_tag ' dot.png' border="0"></a><A TARGET="_blank" HREF="graphs.cgi?###URL###"><img src='###IMAGESRC###' '
+- icon_image_src /nagios/images/logos/graph.png
+- icon_image_script /nagios/cgi-bin/rrd2-system.cgi?###URL###&start=-5400&title=Actual&width=20&height=20&type=AVERAGE&only-graph=true
++ icon_image_src /nagios2/images/logos/graph.png
++ icon_image_script /cgi-bin/nagios2/rrd2-system.cgi?###URL###&start=-5400&title=Actual&width=20&height=20&type=AVERAGE&only-graph=true
+ icon_image_static no
+
+ log_file @NG_LOGFILE@
+diff -urNad nagiosgrapher-1.6.1rc3~/config.layout nagiosgrapher-1.6.1rc3/config.layout
+--- nagiosgrapher-1.6.1rc3~/config.layout 2007-03-07 15:03:44.000000000 +0100
++++ nagiosgrapher-1.6.1rc3/config.layout 2007-07-19 16:04:33.000000000 +0200
+@@ -22,22 +22,22 @@
+
+ # layout for debian package install
+ <Layout debian>
+- prefix: /usr/local/nagios
+- nagios_config: /etc/nagios/nagios.cfg
+- nagios_config_cgi: /etc/nagios/cgi.cfg
+- nagios_images: /usr/share/nagios/htdocs/images
+- nagios_images_logos: /usr/share/nagios/htdocs/images/logos
+- nagios_folder_cgi: /usr/lib/cgi-bin/nagios
+- perl_inc: /etc/perl
+- nagios_contribution: /usr/share/nagios/contrib
+- ng_config: /etc/nagios
++ prefix: /usr/share/nagiosgrapher
++ nagios_config: /etc/nagios2/nagios.cfg
++ nagios_config_cgi: /etc/nagios2/cgi.cfg
++ nagios_images: /usr/share/nagiosgrapher/htdocs/images
++ nagios_images_logos: /usr/share/nagiosgrapher/htdocs/images/logos
++ nagios_folder_cgi: /usr/lib/cgi-bin/nagiosgrapher
++ perl_inc: /usr/share/perl5
++ nagios_contribution: /usr/lib/nagiosgrapher
++ ng_config: /etc/nagiosgrapher
+ ng_config_sub: ${ng_config}/ngraph.d
+- ng_daemon: /var/run/nagios_grapher
+- ng_srvext_file: /etc/nagios/serviceextinfo.cfg
+- ng_srvext_dir: /etc/nagios/serviceext
+- ng_interface_pipe: /var/lib/nagios/ngraph.pipe
+- ng_logfile: /var/log/nagios/ngraph.log
+- ng_rrd: /var/lib/nagios/rrd
++ ng_daemon: /var/run/nagiosgrapher
++ ng_srvext_file: /etc/nagios2/serviceextinfo.cfg
++ ng_srvext_dir: /etc/nagios2/serviceext
++ ng_interface_pipe: /var/lib/nagiosgrapher/ngraph.pipe
++ ng_logfile: /var/log/nagiosgrapher/ngraph.log
++ ng_rrd: /var/lib/nagiosgrapher/rrd
+ </Layout>
+
+ # PLD layout
+diff -urNad nagiosgrapher-1.6.1rc3~/configure.ac nagiosgrapher-1.6.1rc3/configure.ac
+--- nagiosgrapher-1.6.1rc3~/configure.ac 2007-03-07 15:03:44.000000000 +0100
++++ nagiosgrapher-1.6.1rc3/configure.ac 2007-07-19 16:04:53.000000000 +0200
+@@ -18,7 +18,7 @@
+ AC_MSG_ERROR([cannot use $PACKAGE_NAME without perl])
+ fi
+
+-AC_PREFIX_DEFAULT([/usr/local/nagios])
++AC_PREFIX_DEFAULT([/usr/share/nagiosgrapher])
+
+
+ AC_DEFUN([NG_ENABLE_LAYOUT], [
+@@ -248,9 +248,9 @@
+
+ dnl NG_INTERFACE
+ AC_ARG_WITH(ng-interface,
+- AC_HELP_STRING([--with-ng-interface=INTERFACE], [the interface to use (default: network)]),
++ AC_HELP_STRING([--with-ng-interface=INTERFACE], [the interface to use (default: pipe)]),
+ NG_INTERFACE=$withval,
+- NG_INTERFACE=network
++ NG_INTERFACE=pipe
+ )
+ AC_SUBST(NG_INTERFACE)
+
+@@ -290,7 +290,7 @@
+ AC_ARG_WITH(ng-loglevel,
+ AC_HELP_STRING([--with-ng-loglevel=INT], [the loglevel]),
+ NG_LOGLEVEL=$withval,
+- NG_LOGLEVEL=1023
++ NG_LOGLEVEL=63
+ )
+ AC_SUBST(NG_LOGLEVEL)
+
+@@ -323,7 +323,7 @@
+ AC_SUBST([NG_DAEMON], ${exp_ng_daemon})
+ AC_SUBST([NG_SRVEXT_FILE], ${exp_ng_srvext_file})
+ AC_SUBST([NG_SRVEXT_DIR], ${exp_ng_srvext_dir})
+-AC_SUBST([NG_INTERFACE_PIPE], ${exp_interface_pipe})
++AC_SUBST([NG_INTERFACE_PIPE], ${exp_ng_interface_pipe})
+ AC_SUBST([NG_LOGFILE], ${exp_ng_logfile})
+ AC_SUBST([NG_RRD], ${exp_ng_rrd})
+
+diff -urNad nagiosgrapher-1.6.1rc3~/lib/NagiosGrapher.pm.in nagiosgrapher-1.6.1rc3/lib/NagiosGrapher.pm.in
+--- nagiosgrapher-1.6.1rc3~/lib/NagiosGrapher.pm.in 2007-03-07 15:03:44.000000000 +0100
++++ nagiosgrapher-1.6.1rc3/lib/NagiosGrapher.pm.in 2007-07-19 16:04:33.000000000 +0200
+@@ -49,7 +49,7 @@
+ our $ngraphcfg = '@NG_CONFIG@/ngraph.ncfg';
+ our $xmlfile = 'index.xml';
+ our $uniqueInstance = undef;
+-our $object_cache = '@NG_DAEMON@/NagiosGrapher.obj';
++our $object_cache = '/var/cache/nagiosgrapher/NagiosGrapher.obj';
+
+ $LOG_CONFIG = 128;
+ $LOG_HOOK = 256;
Property changes on: nagiosgrapher/trunk/debian/patches/debian.dpatch
___________________________________________________________________
Name: svn:executable
+ *
Added: nagiosgrapher/trunk/debian/patches/nmgraph.dpatch
===================================================================
--- nagiosgrapher/trunk/debian/patches/nmgraph.dpatch (rev 0)
+++ nagiosgrapher/trunk/debian/patches/nmgraph.dpatch 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,127 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## nmgraph.dpatch by <hfrenzel at scunc.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad nagiosgrapher-1.6.1~/cfg/nmgraph.ncfg nagiosgrapher-1.6.1/cfg/nmgraph.ncfg
+--- nagiosgrapher-1.6.1~/cfg/nmgraph.ncfg 1970-01-01 01:00:00.000000000 +0100
++++ nagiosgrapher-1.6.1/cfg/nmgraph.ncfg 2007-03-07 15:03:44.000000000 +0100
+@@ -0,0 +1,56 @@
++# Multi Graphs #########################################
++
++define nmgraph{
++ host_name * Multigraphen
++ service_name nethq-dev Services
++ # RegEX
++ hosts nethq-dev
++ # RegEX
++ services .*?
++ # line or stack or area
++ graph_type line
++}
++
++
++define nmgraph{
++ host_name * Multigraphen
++ service_name all ping
++ # RegEX
++ hosts .*?
++ # RegEX
++ services PING
++ # line or stack or area
++ graph_type stack
++ # normal or reverse or leave blank
++ order reverse
++ colors ff8000, 00ff00, 0000ff
++}
++
++define nmgraph{
++ host_name * Multigraphen
++ service_name all http
++ # RegEX
++ hosts .*?
++ # RegEX
++ services HTTP.*?
++ # line or stack or area
++ graph_type stack
++ # normal or reverse or leave blank
++ order reverse
++ colors ff8000, 00ff00, 0000ff
++}
++
++define nmgraph{
++ host_name * Multigraphen
++ service_name all services
++ # RegEX
++ hosts .*?
++ # RegEX
++ services .*?
++ # line or stack or area
++ graph_type area
++ # normal or reverse or leave blank
++ # order normal
++ # colors ff8000, 00ff00, 0000ff
++}
++
+diff -urNad nagiosgrapher-1.6.1~/cfg/nmgraph.ncfg-sample nagiosgrapher-1.6.1/cfg/nmgraph.ncfg-sample
+--- nagiosgrapher-1.6.1~/cfg/nmgraph.ncfg-sample 2007-03-07 15:03:44.000000000 +0100
++++ nagiosgrapher-1.6.1/cfg/nmgraph.ncfg-sample 1970-01-01 01:00:00.000000000 +0100
+@@ -1,56 +0,0 @@
+-# Multi Graphs #########################################
+-
+-define nmgraph{
+- host_name * Multigraphen
+- service_name nethq-dev Services
+- # RegEX
+- hosts nethq-dev
+- # RegEX
+- services .*?
+- # line or stack or area
+- graph_type line
+-}
+-
+-
+-define nmgraph{
+- host_name * Multigraphen
+- service_name all ping
+- # RegEX
+- hosts .*?
+- # RegEX
+- services PING
+- # line or stack or area
+- graph_type stack
+- # normal or reverse or leave blank
+- order reverse
+- colors ff8000, 00ff00, 0000ff
+-}
+-
+-define nmgraph{
+- host_name * Multigraphen
+- service_name all http
+- # RegEX
+- hosts .*?
+- # RegEX
+- services HTTP.*?
+- # line or stack or area
+- graph_type stack
+- # normal or reverse or leave blank
+- order reverse
+- colors ff8000, 00ff00, 0000ff
+-}
+-
+-define nmgraph{
+- host_name * Multigraphen
+- service_name all services
+- # RegEX
+- hosts .*?
+- # RegEX
+- services .*?
+- # line or stack or area
+- graph_type area
+- # normal or reverse or leave blank
+- # order normal
+- # colors ff8000, 00ff00, 0000ff
+-}
+-
Property changes on: nagiosgrapher/trunk/debian/patches/nmgraph.dpatch
___________________________________________________________________
Name: svn:executable
+ *
Added: nagiosgrapher/trunk/debian/postinst.in
===================================================================
--- nagiosgrapher/trunk/debian/postinst.in (rev 0)
+++ nagiosgrapher/trunk/debian/postinst.in 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,71 @@
+#!/bin/sh
+# postinst script for #PACKAGE#
+#
+# see: dh_installdeb(1)
+
+set -e
+
+setperm() { # thx 2 nagios2/debian/nagios2-common.postinst
+ local user="$1"
+ local group="$2"
+ local mode="$3"
+ local file="$4"
+ shift 4
+ # only do something when no setting exists
+ if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then
+ chown "$user":"$group" "$file"
+ chmod "$mode" "$file"
+ fi
+}
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+CFGS=@@CFGS@@
+
+case "$1" in
+ configure)
+ for cfg in @@CFGS@@; do
+ ucf /usr/share/nagiosgrapher/debian/cfg/$cfg \
+ /etc/nagiosgrapher/$cfg
+ done
+
+ for dir in /var/lib/nagiosgrapher{,/rrd} \
+ /var/cache/nagiosgrapher \
+ /var/log/nagiosgrapher \
+ etc/nagios2/serviceext; do
+ test -d $dir && setperm nagios nagios 0755 $dir
+ done
+
+ for file in /var/log/nagiosgrapher/ngraph.log \
+ /var/cache/nagiosgrapher/NagiosGrapher.obj \
+ /etc/nagios2/serviceext; do
+ test -f $file && setperm nagios nagios 0644 $file
+ done
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
Added: nagiosgrapher/trunk/debian/rules
===================================================================
--- nagiosgrapher/trunk/debian/rules (rev 0)
+++ nagiosgrapher/trunk/debian/rules 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+CFGS=ngraph.{,d/{nmgraph,extra/check_weather,standard/check_{procs,ping,pop,http,load,users}}.}ncfg
+PKG=nagiosgrapher
+
+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
+DEB_AUTO_UPDATE_AUTOCONF := 1
+
+install/$(PKG)::
+ rm -f debian/$(PKG)/usr/lib/$(PKG)/*.c
+ mkdir -p debian/$(PKG)/usr/share/$(PKG)/debian/cfg/ngraph.d/{standard,extra}
+ for cfg in $(CFGS); do \
+ mv debian/$(PKG)/etc/$(PKG)/$$cfg \
+ debian/$(PKG)/usr/share/$(PKG)/debian/cfg/$$cfg; \
+ done
+ sed "s#@@CFGS@@#$(CFGS)#g" < debian/postinst.in > debian/postinst
+
Property changes on: nagiosgrapher/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: nagiosgrapher/trunk/debian/watch
===================================================================
--- nagiosgrapher/trunk/debian/watch (rev 0)
+++ nagiosgrapher/trunk/debian/watch 2007-07-21 10:10:04 UTC (rev 1200)
@@ -0,0 +1,22 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php nagiosgrapher-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/nagiosgrapher-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/nagiosgrapher-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for debscripts >= 2.9
+# http://sf.net/nagiosgrapher/nagiosgrapher-(.*)\.tar\.gz
+opts=versionmangle=s/([\d\.]+)-?([\d\w]*)/$1$2/ \
+http://sf.net/nagiosgrapher/NagiosGrapher-(.*).tar.bz2
More information about the Pkg-nagios-changes
mailing list