[Pkg-nagios-changes] [pkg-nagios] r1181 - in ndoutils/trunk: . debian debian/patches

Hendrik Frenzel hfrenzel-guest at alioth.debian.org
Wed Jun 20 21:19:06 UTC 2007


tags 413418 pending
thanks

Author: hfrenzel-guest
Date: 2007-06-20 21:19:06 +0000 (Wed, 20 Jun 2007)
New Revision: 1181

Added:
   ndoutils/trunk/debian/
   ndoutils/trunk/debian/TODO
   ndoutils/trunk/debian/changelog
   ndoutils/trunk/debian/compat
   ndoutils/trunk/debian/control
   ndoutils/trunk/debian/copyright
   ndoutils/trunk/debian/dirs
   ndoutils/trunk/debian/docs
   ndoutils/trunk/debian/ndoutils-DB.config.in
   ndoutils/trunk/debian/ndoutils-DB.dirs.in
   ndoutils/trunk/debian/ndoutils-DB.ndoutils.default.in
   ndoutils/trunk/debian/ndoutils-DB.ndoutils.init.in
   ndoutils/trunk/debian/ndoutils-DB.postinst.in
   ndoutils/trunk/debian/ndoutils-DB.postrm.in
   ndoutils/trunk/debian/ndoutils-DB.preinst.in
   ndoutils/trunk/debian/ndoutils-DB.prerm.in
   ndoutils/trunk/debian/ndoutils-doc.dirs
   ndoutils/trunk/debian/ndoutils-doc.docs
   ndoutils/trunk/debian/ndoutils-doc.install
   ndoutils/trunk/debian/patches/
   ndoutils/trunk/debian/patches/00list
   ndoutils/trunk/debian/patches/01-pathnames.dpatch
   ndoutils/trunk/debian/patches/02-makefiles.dpatch
   ndoutils/trunk/debian/rules
   ndoutils/trunk/debian/watch
Log:
Initial Import of Debian modifications to trunk


Property changes on: ndoutils/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: ndoutils/trunk/debian/TODO
===================================================================
--- ndoutils/trunk/debian/TODO	                        (rev 0)
+++ ndoutils/trunk/debian/TODO	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,4 @@
+* build ndoutils-pgsql
+* build ndoutils-doc
+	+ examples
+

Added: ndoutils/trunk/debian/changelog
===================================================================
--- ndoutils/trunk/debian/changelog	                        (rev 0)
+++ ndoutils/trunk/debian/changelog	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,12 @@
+ndoutils (1.4b4-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net>  Wed, 20 Jun 2007 09:00:47 +0200
+
+ndoutils (1.4b3-1) unstable; urgency=low
+
+  * Initial release. (Closes: #413418: RFP: ndoutils -- This is a
+    database addon for Nagios. - Debian Bug report logs)
+
+ -- Hendrik Frenzel <hfrenzel at scunc.net>  Sun, 10 Jun 2007 14:14:29 +0200

Added: ndoutils/trunk/debian/compat
===================================================================
--- ndoutils/trunk/debian/compat	                        (rev 0)
+++ ndoutils/trunk/debian/compat	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1 @@
+5

Added: ndoutils/trunk/debian/control
===================================================================
--- ndoutils/trunk/debian/control	                        (rev 0)
+++ ndoutils/trunk/debian/control	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,33 @@
+Source: ndoutils
+Section: net
+Priority: extra
+Maintainer: Hendrik Frenzel <hfrenzel at scunc.net>
+Build-Depends: debhelper (>= 5), dpatch, autotools-dev, libmysqlclient-dev
+Standards-Version: 3.7.2
+
+Package: ndoutils-mysql
+Architecture: any
+Provides: ndoutils
+Conflicts: ndoutils-pgsql
+Pre-Depends: nagios2
+Depends: mysql-client, ucf, debconf, dbconfig-common, ${shlibs:Depends}, ${misc:Depends}
+Recommends: mysql-server
+Suggests: ndoutols-doc
+Description: This provides the NDOUtis for Nagios with MySQL support
+ The NDOUTILS (Nagios Data Output Utils) addon allows you to move status
+ and event information from Nagios to a database for later retrieval and
+ processing.
+ .
+ This package uses MySQL databases.
+
+Package: ndoutils-doc
+Section: doc
+Architecture: all
+Suggests: ndoutils
+Description: Documentation for ndoutils
+ The NDOUTILS (Nagios Data Output Utils) addon allows you to move status
+ and event information from Nagios to a database for later retrieval and
+ processing.
+ .
+ This is the documentation package.
+

Added: ndoutils/trunk/debian/copyright
===================================================================
--- ndoutils/trunk/debian/copyright	                        (rev 0)
+++ ndoutils/trunk/debian/copyright	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,31 @@
+This package was debianized by Hendrik Frenzel <hfrenzel at scunc.net> on
+Sun,  4 Mar 2007 16:45:14 +0100.
+
+It was downloaded from http://nagios.org
+
+Upstream Author: Ethan Galstad <nagios at nagios.org>
+
+Copyright: 2005-2007 Ethan Galstad
+
+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, Hendrik Frenzel <hfrenzel at scunc.net> and
+is licensed under the GPL, see above.
+

Added: ndoutils/trunk/debian/dirs
===================================================================
--- ndoutils/trunk/debian/dirs	                        (rev 0)
+++ ndoutils/trunk/debian/dirs	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin

Added: ndoutils/trunk/debian/docs
===================================================================
--- ndoutils/trunk/debian/docs	                        (rev 0)
+++ ndoutils/trunk/debian/docs	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,2 @@
+README
+TODO

Added: ndoutils/trunk/debian/ndoutils-DB.config.in
===================================================================
--- ndoutils/trunk/debian/ndoutils-DB.config.in	                        (rev 0)
+++ ndoutils/trunk/debian/ndoutils-DB.config.in	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+. /usr/share/debconf/confmodule
+
+dbc_dbuser=ndoutils
+dbc_dbname=ndoutils
+
+if [ -f /usr/share/dbconfig-common/dpkg/config.@@DB@@ ]; then
+	. /usr/share/dbconfig-common/dpkg/config.@@DB@@
+	dbc_go @@PACKAGE@@ $@
+fi
+

Added: ndoutils/trunk/debian/ndoutils-DB.dirs.in
===================================================================
--- ndoutils/trunk/debian/ndoutils-DB.dirs.in	                        (rev 0)
+++ ndoutils/trunk/debian/ndoutils-DB.dirs.in	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,6 @@
+/usr/lib/ndoutils
+/usr/sbin
+/usr/share/@@PACKAGE@@/tmpl
+/usr/share/dbconfig-common/data/@@PACKAGE@@/install
+/usr/share/dbconfig-common/data/@@PACKAGE@@/upgrade/@@DB@@
+

Added: ndoutils/trunk/debian/ndoutils-DB.ndoutils.default.in
===================================================================
--- ndoutils/trunk/debian/ndoutils-DB.ndoutils.default.in	                        (rev 0)
+++ ndoutils/trunk/debian/ndoutils-DB.ndoutils.default.in	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,10 @@
+# Defaults for @@PACKAGE@@ initscript
+# sourced by /etc/init.d/ndoutils
+# installed at /etc/default/ndoutils by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS="-c /etc/nagios2/ndo2db.cfg"

Added: ndoutils/trunk/debian/ndoutils-DB.ndoutils.init.in
===================================================================
--- ndoutils/trunk/debian/ndoutils-DB.ndoutils.init.in	                        (rev 0)
+++ ndoutils/trunk/debian/ndoutils-DB.ndoutils.init.in	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,87 @@
+#! /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
+#
+
+### BEGIN INIT INFO
+# Provides:          ndoutils
+# Required-Start:    $syslog
+# Required-Stop:     $syslog
+# Should-Start:      $local_fs
+# Should-Stop:       $local_fs
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Starts ndo2db daemon at boot time
+# Description:       This will start the ndo2db daemon at boot time
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/ndo2db
+NAME=ndoutils
+DESC=ndoutils
+
+test -x $DAEMON || exit 0
+
+# Include ndoutils defaults if available
+if [ -f /etc/default/ndoutils ] ; then
+	. /etc/default/ndoutils
+fi
+
+set -e
+
+case "$1" in
+  start)
+	echo -n "Starting $DESC: "
+	start-stop-daemon --start --quiet --user nagios --group nagios --exec $DAEMON --background -- $DAEMON_OPTS
+	echo "$NAME."
+	;;
+  stop)
+	echo -n "Stopping $DESC: "
+	start-stop-daemon --stop --quiet --exec $DAEMON 
+	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 --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 --exec $DAEMON \
+	&& $0 restart \
+	|| exit 0
+	;;
+  restart)
+    echo -n "Restarting $DESC: "
+	start-stop-daemon --stop --quiet --user nagios --group nagios --exec $DAEMON 
+	sleep 1
+	start-stop-daemon --start --quiet --exec $DAEMON --background -- $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

Added: ndoutils/trunk/debian/ndoutils-DB.postinst.in
===================================================================
--- ndoutils/trunk/debian/ndoutils-DB.postinst.in	                        (rev 0)
+++ ndoutils/trunk/debian/ndoutils-DB.postinst.in	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,85 @@
+#!/bin/sh
+# postinst script for @@PACKAGE@@
+#
+# see: dh_installdeb(1)
+
+set -e
+
+dbc_remember_app_pass="true"
+
+. /usr/share/debconf/confmodule
+if [ -f /usr/share/dbconfig-common/dpkg/postinst.@@DB@@ ]; then
+	. /usr/share/dbconfig-common/dpkg/postinst.@@DB@@
+	dbc_go @@PACKAGE@@ $@
+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
+
+
+case "$1" in
+    configure)
+	db_get @@PACKAGE@@/remote/host && host="$RET"
+	db_get @@PACKAGE@@/remote/port && port="$RET"
+	db_get @@PACKAGE@@/db/dbname && db_name="$RET"
+	db_get @@PACKAGE@@/@@DB@@/app-pass && app_pass="$RET"
+	db_get @@PACKAGE@@/db/app-user && app_user="$RET"
+	dbc_forget_app_password @@PACKAGE@@ $@
+	
+	if [ -z "$host" ]; then host=localhost; fi
+	if [ -z "$port" ]; then port=@@DBPORT@@; fi
+
+    	cd /usr/share/@@PACKAGE@@/tmpl
+	tmp=`mktemp`
+	sed -e "s/^ *[^#]* *\(\<db_servertype\) *=.*\$/\1=@@DB@@/;
+		s/^ *[^#]* *\(\<db_host\) *=.*\$/\1=$host/;
+		s/^ *[^#]* *\(\<db_port\) *=.*\$/\1=$port/;
+		s/^ *[^#]* *\(\<db_name\) *=.*\$/\1=$db_name/;
+		s/^ *[^#]* *\(\<db_user\) *=.*\$/\1=$app_user/;
+		s/^ *[^#]* *\(\<db_pass\) *=.*\$/\1=$app_pass/" \
+		< ndo2db.cfg > $tmp
+	ucf $tmp /etc/nagios2/ndo2db.cfg
+	rm -f $tmp
+	
+	ucf ndomod.cfg /etc/nagios2/ndomod.cfg
+
+	# change nagios.cfg
+	broker_module='/usr/lib/ndoutils/ndomod.o config_file=/etc/nagios2/ndomod.cfg'
+	if ! `grep -e '^\s*[^#]*\s*\<broker_module\s*=' /etc/nagios2/nagios.cfg 2>&1 >/dev/null`; then
+		echo 'broker_module=${broker_module}' >> /etc/nagios2/nagios.cfg
+	fi
+	tmp=`mktemp`
+	sed -e "s@^ *[^#]* *\(\<broker_module\) *=.*\$@\1=${broker_module}@" < /etc/nagios2/nagios.cfg > $tmp
+	ucf $tmp /etc/nagios2/nagios.cfg
+	rm -f $tmp
+
+	# (re)start nagios2
+	#invoke-rc.d nagios2 restart 
+    ;;
+
+    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: ndoutils/trunk/debian/ndoutils-DB.postrm.in
===================================================================
--- ndoutils/trunk/debian/ndoutils-DB.postrm.in	                        (rev 0)
+++ ndoutils/trunk/debian/ndoutils-DB.postrm.in	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,60 @@
+#!/bin/sh
+# postrm script for @@PACKAGE@@
+#
+# see: dh_installdeb(1)
+
+set -e
+
+if [ -f /usr/share/debconf/confmodule ]; then
+	. /usr/share/debconf/confmodule
+fi
+
+if [ -f /usr/share/dbconfig-common/dpkg/postrm.@@DB@@ ]; then
+	. /usr/share/dbconfig-common/dpkg/postrm.@@DB@@
+	dbc_go @@PACKAGE@@ $@
+fi
+
+# 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
+
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    	if which ucf > /dev/null 2>&1; then
+		have_ucf="yes"
+	fi
+
+	for f in ndomod.cfg ndo2db.cfg; do
+		rm -f /etc/nagios2/$f
+		if [ "$have_ucf" = "yes" ]; then
+			ucf --purge /etc/nagios2/$f
+		fi
+	done
+	
+	invoke-rc.d nagios2 start
+    ;;
+
+    *)
+        echo "postrm 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: ndoutils/trunk/debian/ndoutils-DB.preinst.in
===================================================================
--- ndoutils/trunk/debian/ndoutils-DB.preinst.in	                        (rev 0)
+++ ndoutils/trunk/debian/ndoutils-DB.preinst.in	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,39 @@
+#!/bin/sh
+# preinst script for @@PACKAGE@@
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+    	# stop nagios2
+	invoke-rc.d nagios2 stop
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst 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: ndoutils/trunk/debian/ndoutils-DB.prerm.in
===================================================================
--- ndoutils/trunk/debian/ndoutils-DB.prerm.in	                        (rev 0)
+++ ndoutils/trunk/debian/ndoutils-DB.prerm.in	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,45 @@
+#!/bin/sh
+# prerm script for @@PACKAGE@@
+#
+# see: dh_installdeb(1)
+
+set -e
+
+. /usr/share/debconf/confmodule
+. /usr/share/dbconfig-common/dpkg/prerm.@@DB@@
+dbc_go @@PACKAGE@@ $@
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+    	invoke-rc.d nagios2 stop
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm 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: ndoutils/trunk/debian/ndoutils-doc.dirs
===================================================================
--- ndoutils/trunk/debian/ndoutils-doc.dirs	                        (rev 0)
+++ ndoutils/trunk/debian/ndoutils-doc.dirs	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,2 @@
+/usr/share/doc/ndoutils
+

Added: ndoutils/trunk/debian/ndoutils-doc.docs
===================================================================
--- ndoutils/trunk/debian/ndoutils-doc.docs	                        (rev 0)
+++ ndoutils/trunk/debian/ndoutils-doc.docs	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,2 @@
+#DOCS#
+

Added: ndoutils/trunk/debian/ndoutils-doc.install
===================================================================
--- ndoutils/trunk/debian/ndoutils-doc.install	                        (rev 0)
+++ ndoutils/trunk/debian/ndoutils-doc.install	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,2 @@
+#DOCS#
+

Added: ndoutils/trunk/debian/patches/00list
===================================================================
--- ndoutils/trunk/debian/patches/00list	                        (rev 0)
+++ ndoutils/trunk/debian/patches/00list	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,3 @@
+01-pathnames
+02-makefiles
+

Added: ndoutils/trunk/debian/patches/01-pathnames.dpatch
===================================================================
--- ndoutils/trunk/debian/patches/01-pathnames.dpatch	                        (rev 0)
+++ ndoutils/trunk/debian/patches/01-pathnames.dpatch	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,109 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01-pathnames.dpatch by  <hfrenzel at assos.scunc.home>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad ndoutils-1.4b3~/config/misccommands.cfg ndoutils-1.4b3/config/misccommands.cfg
+--- ndoutils-1.4b3~/config/misccommands.cfg	2007-01-08 01:35:58.000000000 +0100
++++ ndoutils-1.4b3/config/misccommands.cfg	2007-06-05 21:05:04.000000000 +0200
+@@ -7,5 +7,5 @@
+ 
+ define command{
+ 	command_name	rotate_ndo_log
+-	command_line	/bin/mv /usr/local/nagios/var/ndo.dat /usr/local/nagios/var/ndo.`date +%s`
++	command_line	/bin/mv /var/cache/nagios2/ndo.dat /var/cache/nagios2/ndo.`date +%s`
+         }
+diff -urNad ndoutils-1.4b3~/config/nagios.cfg ndoutils-1.4b3/config/nagios.cfg
+--- ndoutils-1.4b3~/config/nagios.cfg	2007-01-08 01:35:58.000000000 +0100
++++ ndoutils-1.4b3/config/nagios.cfg	2007-06-05 21:05:04.000000000 +0200
+@@ -5,7 +5,7 @@
+ # configuration file (nagios.cfg).  Adjust the paths, etc. to suit your needs.
+ 
+ # Uncomment the line below if you're running Nagios 2.x
+-broker_module=/usr/local/nagios/bin/ndomod-2x.o config_file=/usr/local/nagios/etc/ndomod.cfg
++broker_module=/usr/sbin/ndomod config_file=/etc/nagios2/ndomod.cfg
+ 
+ # Uncomment the line below if you're running Nagios 3.x
+ #broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg
+diff -urNad ndoutils-1.4b3~/config/ndo2db.cfg ndoutils-1.4b3/config/ndo2db.cfg
+--- ndoutils-1.4b3~/config/ndo2db.cfg	2007-01-08 01:35:58.000000000 +0100
++++ ndoutils-1.4b3/config/ndo2db.cfg	2007-06-05 21:05:04.000000000 +0200
+@@ -32,7 +32,7 @@
+ # This option is only valid if the socket type specified above
+ # is "unix".
+ 
+-socket_name=/usr/local/nagios/var/ndo.sock
++socket_name=/var/cache/nagios2/ndo.sock
+ 
+ 
+ 
+diff -urNad ndoutils-1.4b3~/config/ndomod.cfg ndoutils-1.4b3/config/ndomod.cfg
+--- ndoutils-1.4b3~/config/ndomod.cfg	2007-02-19 05:48:11.000000000 +0100
++++ ndoutils-1.4b3/config/ndomod.cfg	2007-06-05 21:05:04.000000000 +0200
+@@ -35,9 +35,9 @@
+ # of fully qualified domain name of the host that the module should
+ # connect to for sending output.
+ 
+-#output=/usr/local/nagios/var/ndo.dat
++#output=/var/cache/nagios2/ndo.dat
+ #output=127.0.0.1
+-output=/usr/local/nagios/var/ndo.sock
++output=/var/cache/nagios2/ndo.sock
+ 
+ 
+ 
+@@ -68,7 +68,7 @@
+ # Nagios (re)starts, the NDO NEB module will read the contents of this
+ # file and send it to the NDO2DB daemon for processing.
+ 
+-buffer_file=/usr/local/nagios/var/ndomod.tmp
++buffer_file=/var/cache/nagios2/ndomod.tmp
+ 
+ 
+ 
+diff -urNad ndoutils-1.4b3~/include/nagios-2x/locations.h ndoutils-1.4b3/include/nagios-2x/locations.h
+--- ndoutils-1.4b3~/include/nagios-2x/locations.h	2007-04-10 18:21:35.000000000 +0200
++++ ndoutils-1.4b3/include/nagios-2x/locations.h	2007-06-05 21:11:31.000000000 +0200
+@@ -18,22 +18,22 @@
+  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+  ************************************************************************/
+ 
+-#define DEFAULT_TEMP_FILE			"/usr/local/nagios-2x/var/tempfile"
+-#define DEFAULT_STATUS_FILE			"/usr/local/nagios-2x/var/status.dat"
+-#define DEFAULT_LOG_FILE			"/usr/local/nagios-2x/var/nagios.log"
+-#define DEFAULT_LOG_ARCHIVE_PATH		"/usr/local/nagios-2x/var/archives/"
+-#define DEFAULT_COMMENT_FILE			"/usr/local/nagios-2x/var/comments.dat"
+-#define DEFAULT_DOWNTIME_FILE			"/usr/local/nagios-2x/var/downtime.dat"
+-#define DEFAULT_RETENTION_FILE			"/usr/local/nagios-2x/var/retention.dat"
+-#define DEFAULT_COMMAND_FILE			"/usr/local/nagios-2x/var/rw/nagios.cmd"
+-#define DEFAULT_CONFIG_FILE			"/usr/local/nagios-2x/etc/nagios.cfg"
+-#define DEFAULT_PHYSICAL_HTML_PATH		"/usr/local/nagios-2x/share"
+-#define DEFAULT_URL_HTML_PATH			"/nagios-2x"
+-#define DEFAULT_PHYSICAL_CGIBIN_PATH		"/usr/local/nagios-2x/sbin"
+-#define DEFAULT_URL_CGIBIN_PATH			"/nagios-2x/cgi-bin"
+-#define DEFAULT_CGI_CONFIG_FILE			"/usr/local/nagios-2x/etc/cgi.cfg"
+-#define DEFAULT_LOCK_FILE			"/usr/local/nagios-2x/var/nagios.lock"
+-#define DEFAULT_OBJECT_CACHE_FILE		"/usr/local/nagios-2x/var/objects.cache"
+-#define DEFAULT_EVENT_BROKER_FILE		"/usr/local/nagios-2x/var/broker.socket"
+-#define DEFAULT_P1_FILE				"/usr/local/nagios-2x/bin/p1.pl"	/**** EMBEDDED PERL ****/
++#define DEFAULT_TEMP_FILE			"/var/cache/nagios2/tempfile"
++#define DEFAULT_STATUS_FILE			"/var/cache/nagios2/status.dat"
++#define DEFAULT_LOG_FILE			"/var/log/nagios2/nagios.log"
++#define DEFAULT_LOG_ARCHIVE_PATH		"/var/log/nagios2/archives/"
++#define DEFAULT_COMMENT_FILE			"/var/lib/nagios2/comments.dat"
++#define DEFAULT_DOWNTIME_FILE			"/var/lib/nagios2/downtime.dat"
++#define DEFAULT_RETENTION_FILE			"/var/lib/nagiod2/retention.dat"
++#define DEFAULT_COMMAND_FILE			"/var/lib/nagios2/rw/nagios.cmd"
++#define DEFAULT_CONFIG_FILE			"/etc/nagios2/nagios.cfg"
++#define DEFAULT_PHYSICAL_HTML_PATH		"/usr/share/nagios2/htdocs"
++#define DEFAULT_URL_HTML_PATH			"/nagios2"
++#define DEFAULT_PHYSICAL_CGIBIN_PATH		"/usr/lib/cgi-bin/nagios2"
++#define DEFAULT_URL_CGIBIN_PATH			"/cgi-bin/nagios2"
++#define DEFAULT_CGI_CONFIG_FILE			"/etc/nagios2/cgi.cfg"
++#define DEFAULT_LOCK_FILE			"/var/lock/nagios2/nagios.lock"
++#define DEFAULT_OBJECT_CACHE_FILE		"/var/cache/nagios2/objects.cache"
++#define DEFAULT_EVENT_BROKER_FILE		"/var/cache/nagios2/broker.socket"
++#define DEFAULT_P1_FILE				"/usr/lib/nagios2/bin/p1.pl"	/**** EMBEDDED PERL ****/
+ #define DEFAULT_AUTH_FILE			""			/**** EMBEDDED PERL - IS THIS USED? ****/


Property changes on: ndoutils/trunk/debian/patches/01-pathnames.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: ndoutils/trunk/debian/patches/02-makefiles.dpatch
===================================================================
--- ndoutils/trunk/debian/patches/02-makefiles.dpatch	                        (rev 0)
+++ ndoutils/trunk/debian/patches/02-makefiles.dpatch	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,79 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02-makefiles.dpatch by  <hfrenzel at assos.scunc.home>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad ndoutils-1.4beta2~/src/Makefile.in ndoutils-1.4beta2/src/Makefile.in
+--- ndoutils-1.4beta2~/src/Makefile.in	2007-03-12 14:58:45.000000000 +0100
++++ ndoutils-1.4beta2/src/Makefile.in	2007-03-12 15:00:27.000000000 +0100
+@@ -11,6 +11,7 @@
+ CC=@CC@
+ 
+ CFLAGS=@CFLAGS@ @DEFS@ 
++CPPFLAGS=@CPPFLAGS@
+ 
+ # We don't like ANSI because ANSI doesn't like us! phhht!
+ #CFLAGS=-g -Wall -ansi -pedantic -DHAVE_CONFIG_H
+@@ -43,48 +44,48 @@
+ all: file2sock log2ndo ndo2db ndomod sockdebug
+ 
+ file2sock: file2sock.c $(COMMON_INC) $(COMMON_OBJS)
+-	$(CC) $(CFLAGS) -o $@ file2sock.c $(COMMON_OBJS) $(LDFLAGS) $(LIBS) $(MATHLIBS) $(SOCKETLIBS) $(OTHERLIBS)
++	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ file2sock.c $(COMMON_OBJS) $(LDFLAGS) $(LIBS) $(MATHLIBS) $(SOCKETLIBS) $(OTHERLIBS)
+ 
+ log2ndo: log2ndo.c $(COMMON_INC) $(COMMON_OBJS)
+-	$(CC) $(CFLAGS) -o $@ log2ndo.c $(COMMON_OBJS) $(LDFLAGS) $(LIBS) $(MATHLIBS) $(SOCKETLIBS) $(OTHERLIBS)
++	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ log2ndo.c $(COMMON_OBJS) $(LDFLAGS) $(LIBS) $(MATHLIBS) $(SOCKETLIBS) $(OTHERLIBS)
+ 
+ ndo2db:
+ 	$(MAKE) ndo2db-2x
+ 	$(MAKE) ndo2db-3x
+ 
+ ndo2db-2x: ndo2db.c $(NDO_INC) $(NDO_OBJS) $(COMMON_INC) $(COMMON_OBJS) dbhandlers-2x.o
+-	$(CC) $(CFLAGS) $(DBCFLAGS) -D BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c dbhandlers-2x.o $(COMMON_OBJS) $(NDO_OBJS) $(LDFLAGS) $(DBLDFLAGS) $(LIBS) $(SOCKETLIBS) $(DBLIBS) $(OTHERLIBS)
++	$(CC) $(CFLAGS) $(CPPFLAGS) $(DBCFLAGS) -D BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c dbhandlers-2x.o $(COMMON_OBJS) $(NDO_OBJS) $(LDFLAGS) $(DBLDFLAGS) $(LIBS) $(MATHLIBS) $(SOCKETLIBS) $(DBLIBS) $(OTHERLIBS)
+ 
+ ndo2db-3x: ndo2db.c $(NDO_INC) $(NDO_OBJS) $(COMMON_INC) $(COMMON_OBJS) dbhandlers-3x.o
+-	$(CC) $(CFLAGS) $(DBCFLAGS) -D BUILD_NAGIOS_3X -o ndo2db-3x ndo2db.c dbhandlers-3x.o $(COMMON_OBJS) $(NDO_OBJS) $(LDFLAGS) $(DBLDFLAGS) $(LIBS) $(SOCKETLIBS) $(DBLIBS) $(OTHERLIBS)
++	$(CC) $(CFLAGS) $(CPPFLAGS) $(DBCFLAGS) -D BUILD_NAGIOS_3X -o ndo2db-3x ndo2db.c dbhandlers-3x.o $(COMMON_OBJS) $(NDO_OBJS) $(LDFLAGS) $(DBLDFLAGS) $(LIBS) $(MATHLIBS) $(SOCKETLIBS) $(DBLIBS) $(OTHERLIBS)
+ 
+ ndomod: 
+ 	$(MAKE) ndomod-2x.o
+ 	$(MAKE) ndomod-3x.o
+ 
+ ndomod-2x.o: ndomod.c $(COMMON_INC) $(COMMON_OBJS)
+-	$(CC) $(MOD_CFLAGS) $(CFLAGS) -D BUILD_NAGIOS_2X -o ndomod-2x.o ndomod.c $(COMMON_OBJS) $(MOD_LDFLAGS) $(LDFLAGS) $(LIBS) $(SOCKETLIBS) $(OTHERLIBS)
++	$(CC) $(MOD_CFLAGS) $(CFLAGS) $(CPPFLAGS) -D BUILD_NAGIOS_2X -o ndomod-2x.o ndomod.c $(COMMON_OBJS) $(MOD_LDFLAGS) $(LDFLAGS) $(LIBS) $(MATHLIBS) $(SOCKETLIBS) $(OTHERLIBS)
+ 
+ ndomod-3x.o: ndomod.c $(COMMON_INC) $(COMMON_OBJS)
+-	$(CC) $(MOD_CFLAGS) $(CFLAGS) -D BUILD_NAGIOS_3X -o ndomod-3x.o ndomod.c $(COMMON_OBJS) $(MOD_LDFLAGS) $(LDFLAGS) $(LIBS) $(SOCKETLIBS) $(OTHERLIBS)
++	$(CC) $(MOD_CFLAGS) $(CFLAGS) $(CPPFLAGS) -D BUILD_NAGIOS_3X -o ndomod-3x.o ndomod.c $(COMMON_OBJS) $(MOD_LDFLAGS) $(LDFLAGS) $(LIBS) $(MATHLIBS) $(SOCKETLIBS) $(OTHERLIBS)
+ 
+ sockdebug: sockdebug.c $(COMMON_INC) $(COMMON_OBJS)
+-	$(CC) $(CFLAGS) -o $@ sockdebug.c $(COMMON_OBJS) $(LDFLAGS) $(LIBS) $(MATHLIBS) $(SOCKETLIBS) $(OTHERLIBS)
++	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ sockdebug.c $(COMMON_OBJS) $(LDFLAGS) $(LIBS) $(MATHLIBS) $(SOCKETLIBS) $(OTHERLIBS)
+ 
+ io.o: io.c $(SRC_INCLUDE)/io.h
+-	$(CC) $(MOD_CFLAGS) $(CFLAGS) -c -o $@ io.c
++	$(CC) $(MOD_CFLAGS) $(CFLAGS) $(CPPFLAGS) -c -o $@ io.c
+ 
+ utils.o: utils.c $(SRC_INCLUDE)/utils.h
+-	$(CC) $(MOD_CFLAGS) $(CFLAGS) -c -o $@ utils.c
++	$(CC) $(MOD_CFLAGS) $(CFLAGS) $(CPPFLAGS) -c -o $@ utils.c
+ 
+ db.o: db.c $(SRC_INCLUDE)/db.h
+-	$(CC) $(CFLAGS) -c -o $@ db.c
++	$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ db.c
+ 
+ dbhandlers-2x.o: dbhandlers.c $(SRC_INCLUDE)/dbhandlers.h
+-	$(CC) $(CFLAGS) -D BUILD_NAGIOS_2X -c -o $@ dbhandlers.c
++	$(CC) $(CFLAGS) $(CPPFLAGS) -D BUILD_NAGIOS_2X -c -o $@ dbhandlers.c
+ 
+ dbhandlers-3x.o: dbhandlers.c $(SRC_INCLUDE)/dbhandlers.h
+-	$(CC) $(CFLAGS) -D BUILD_NAGIOS_3X -c -o $@ dbhandlers.c
++	$(CC) $(CFLAGS) $(CPPFLAGS) -D BUILD_NAGIOS_3X -c -o $@ dbhandlers.c
+ 
+ clean:
+ 	rm -f core file2sock log2ndo ndo2db-2x ndo2db-3x sockdebug *.o


Property changes on: ndoutils/trunk/debian/patches/02-makefiles.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: ndoutils/trunk/debian/rules
===================================================================
--- ndoutils/trunk/debian/rules	                        (rev 0)
+++ ndoutils/trunk/debian/rules	2007-06-20 21:19:06 UTC (rev 1181)
@@ -0,0 +1,248 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# 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.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+b=$(shell pwd)/debian
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+include /usr/share/dpatch/dpatch.make
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+#CONFIGURE = ./configure  --prefix=/usr
+#	--host=$(DEB_HOST_GNU_TYPE) \
+#	--build=$(DEB_BUILD_GNU_TYPE) \
+#	--mandir=\$${prefix}/share/man \
+#	--infodir=\$${prefix}/share/info \
+#	CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+CONFIGURE = ./configure
+CONFIG_MYSQL = CPPFLAGS=`mysql_config --include` $(CONFIGURE) \
+	--enable-mysql --disable-pgsql
+#CONFIG_PGSQL = CPPFLAGS="-I`pg_config --includedir`" $(CONFIGURE) \
+	--enable-pgsql --disable-mysql --with-pgsql-lib=`pg_config --libdir` --with-pgsql-inc=`pg_config --includedir`
+
+clean: unpatch
+	dh_testdir -a
+	dh_testroot -a
+	-rm -f {build,config}-ndoutils-{mysql,pgsql}-stamp
+	-$(MAKE) distclean
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	rm -f src/*-{mysql,pgsql}-{2,3}x*
+	rm -f src/*-{mysql,pgsql}
+	rm -f {install,configure,build}-stamp
+	#rm -f debian/*.7.gz # TODO: manpages!
+	rm -f debian/ndoutils-{my,pg}sql.{dirs,ndoutils.{default,init},config,{pre,post}{inst,rm}}
+	dh_clean
+
+config-ndoutils-mysql: config-ndoutils-mysql-stamp
+config-ndoutils-mysql-stamp: patch
+	dh_testdir -a
+	@echo " ### Doing $@"
+	-make clean;
+	$(CONFIG_MYSQL)
+	touch $@
+
+#config-ndoutils-pgsql: config-ndoutils-pgsql-stamp
+#config-ndoutils-pgsql-stamp: patch
+#	dh_testdir -a
+#	@echo " ### Doing $@"
+#	-make clean;
+#	$(CONFIG_PGSQL)
+#	touch $@
+
+build-ndoutils-mysql: build-ndoutils-mysql-stamp
+build-ndoutils-mysql-stamp: config-ndoutils-mysql-stamp
+	dh_testdir -a
+	@echo " ### Doing $@"
+	$(MAKE) && \
+		(cd src && \
+			mv ndomod-2x.o ndomod-mysql-2x.o && \
+			mv ndo2db-2x ndo2db-mysql-2x && \
+			mv log2ndo log2ndo-mysql && \
+			mv sockdebug sockdebug-mysql && \
+			mv file2sock file2sock-mysql \
+		);
+	touch $@
+
+#build-ndoutils-pgsql: build-ndoutils-pgsql-stamp
+#build-ndoutils-pgsql-stamp: config-ndoutils-pgsql-stamp
+#	dh_testdir -a
+#	@echo " ### Doing $@"
+#	$(MAKE) && \
+#		(cd src && \
+#			mv ndomod-2x.o ndomod-pgsql-2x.o && \
+#			mv ndo2db-2x ndo2db-pgsql-2x && \
+#			mv log2ndo log2ndo-pgsql && \
+#			mv sockdebug sockdebug-pgsql && \
+#			mv file2sock file2sock-pgsql \
+#		);
+#	touch $@
+
+# TODO: ndoutils-pgsql
+binary-arch: ndoutils-mysql
+	dh_testdir -a
+	dh_testroot -a
+
+binary-indep: ndoutils-doc
+
+ndoutils-mysql: build-ndoutils-mysql
+	@echo " ### Doing $@"
+	for script in dirs ndoutils.{default,init} config {pre,post}{rm,inst}; do \
+		sed "s/@@DB@@/mysql/g;s/@@PACKAGE@@/$@/g;s/@@DBPORT@@/3306/g" \
+			< debian/ndoutils-DB.$${script}.in  > debian/$@.$${script}; \
+	done
+	dh_installdirs -p$@ -P$(b)/$@
+	# install the binaries
+	install -m 755 src/ndomod-mysql-2x.o debian/$@/usr/lib/ndoutils/ndomod.o
+	install -m 755 src/ndo2db-mysql-2x   debian/$@/usr/sbin/ndo2db
+	install -m 755 src/sockdebug-mysql   debian/$@/usr/sbin/sockdebug
+	install -m 755 src/file2sock-mysql   debian/$@/usr/sbin/file2sock
+	install -m 755 src/log2ndo-mysql     debian/$@/usr/sbin/log2ndo
+	# install the config templates
+	install -m 644 config/ndomod.cfg debian/$@/usr/share/$@/tmpl/
+	install -m 644 config/ndo2db.cfg debian/$@/usr/share/$@/tmpl/
+	# install the SQL schemes
+	install -m 644 db/mysql.sql               debian/$@/usr/share/dbconfig-common/data/$@/install/mysql
+	install -m 644 db/mysql-upgrade-1.3.sql   debian/$@/usr/share/dbconfig-common/data/$@/upgrade/mysql/1.3
+	install -m 644 db/mysql-upgrade-1.4b1.sql debian/$@/usr/share/dbconfig-common/data/$@/upgrade/mysql/1.4b1
+	install -m 644 db/mysql-upgrade-1.4b2.sql debian/$@/usr/share/dbconfig-common/data/$@/upgrade/mysql/1.4b2
+	
+	# TODO: manpages!
+	#for binary in log2ndo ndo2db ndomod sockdebug file2sock; do \
+	#	ln -s /usr/share/man/man7/undocumented.7.gz debian/$${binary}.7.gz; \
+	#done
+	
+	# use debhelper
+	dh_installchangelogs -p$@ -P$(b)/$@
+	dh_installdebconf -p$@ -P$(b)/$@
+	dh_installdocs  -p$@ -P$(b)/$@
+	dh_installinit  -p$@ -P$(b)/$@ --name=ndoutils
+	#dh_installman   -p$@ -P$(b)/$@ # TODO: manpages!
+	dh_strip       -p$@ -P$(b)/$@
+	dh_compress    -p$@ -P$(b)/$@
+	dh_fixperms    -p$@ -P$(b)/$@
+	dh_makeshlibs  -p$@ -P$(b)/$@ -V
+	dh_installdeb  -p$@ -P$(b)/$@
+	dh_shlibdeps   -p$@ -P$(b)/$@
+	dh_gencontrol  -p$@ -P$(b)/$@
+	dh_md5sums     -p$@ -P$(b)/$@
+	dh_builddeb    -p$@ -P$(b)/$@
+
+#ndoutils-pgsql: build-ndoutils-pgsql
+#	@echo " ### Doing $@"
+#	dh_installdirs -p$@ -P$(b)/$@
+#	# install the binaries
+#	install -m 755 src/ndomod-pgsql-2x.o debian/$@/usr/lib/ndoutils/ndomod.o
+#	install -m 755 src/ndo2db-pgsql-2x   debian/$@/usr/sbin/ndo2db
+#	install -m 755 src/sockdebug-pgsql   debian/$@/usr/sbin/sockdebug
+#	install -m 755 src/file2sock-pgsql   debian/$@/usr/sbin/file2sock
+#	install -m 755 src/log2ndo-pgsql     debian/$@/usr/sbin/log2ndo
+#	# install the config templates
+#	install -m 644 config/ndomod.cfg debian/$@/usr/share/$@/tmpl
+#	install -m 644 config/ndo2db.cfg debian/$@/usr/share/$@/tmpl
+#	# there are NO SQL scheme to install
+#	
+#	# TODO: manpages!
+#	#for binary in log2ndo ndo2db ndomod sockdebug file2sock; do \
+#	#	ln -s /usr/share/man/man7/undocumented.7.gz debian/$${binary}.7.gz; \
+#	#done
+#	
+#	sed "s/@@DB@@/pgsql/g; s/@@PACKAGE@@/$@/g; s/@@DBPORT@@/5432/g" < debian/ndoutils-DB.preinst.in  > debian/$@.preinst
+#	sed "s/@@DB@@/pgsql/g; s/@@PACKAGE@@/$@/g; s/@@DBPORT@@/5432/g" < debian/ndoutils-DB.postinst.in > debian/$@.postinst
+#	sed "s/@@DB@@/pgsql/g; s/@@PACKAGE@@/$@/g; s/@@DBPORT@@/5432/g" < debian/ndoutils-DB.prerm.in    > debian/$@.prerm
+#	sed "s/@@DB@@/pgsql/g; s/@@PACKAGE@@/$@/g; s/@@DBPORT@@/5432/g" < debian/ndoutils-DB.postrm.in   > debian/$@.postrm
+#	
+#	# use debhelper
+#	dh_installchangelogs -p$@ -P$(b)/$@
+#	dh_installdebconf -p$@ -P$(b)/$@
+#	dh_installdocs -p$@ -P$(b)/$@
+#	dh_installinit -p$@ -P$(b)/$@ --name=ndoutils
+#	#dh_installman  -p$@ -P$(b)/$@	# TODO: manpages!
+#	dh_link        -p$@ -P$(b)/$@
+#	dh_strip       -p$@ -P$(b)/$@
+#	dh_compress    -p$@ -P$(b)/$@
+#	dh_fixperms    -p$@ -P$(b)/$@
+#	dh_makeshlibs  -p$@ -P$(b)/$@ -V
+#	dh_installdeb  -p$@ -P$(b)/$@
+#	dh_shlibdeps   -p$@ -P$(b)/$@
+#	dh_gencontrol  -p$@ -P$(b)/$@
+#	dh_md5sums     -p$@ -P$(b)/$@
+#	dh_builddeb    -p$@ -P$(b)/$@
+
+ndoutils-doc:
+	@echo " ### Doing $@"
+	dh_installdirs -p$@ -P$(b)/$@
+	install -m 644 docs/*.pdf debian/$@/usr/share/doc/ndoutils
+	# use debhelper
+	dh_installchangelogs -p$@ -P$(b)/$@ 
+	dh_installdocs -p$@ -P$(b)/$@
+	dh_compress    -p$@ -P$(b)/$@
+	dh_fixperms    -p$@ -P$(b)/$@
+	dh_installdeb  -p$@ -P$(b)/$@
+	dh_gencontrol  -p$@ -P$(b)/$@
+	dh_md5sums     -p$@ -P$(b)/$@
+	dh_builddeb    -p$@ -P$(b)/$@
+
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+#binary-common:
+#	dh_testdir
+#	dh_testroot
+#	dh_installchangelogs 
+#	dh_installdocs
+#	dh_installexamples
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate	
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installinit --name=ndoutils
+#	dh_installcron
+#	dh_installinfo
+#	dh_installman
+#	dh_link
+#	dh_strip
+#	dh_compress 
+#	dh_fixperms
+#	dh_perl
+#	dh_makeshlibs
+#	dh_installdeb
+#	dh_shlibdeps
+#	dh_gencontrol
+#	dh_md5sums
+#	dh_builddeb
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary-mysql-arch binary install install-indep install-arch


Property changes on: ndoutils/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: ndoutils/trunk/debian/watch
===================================================================
--- ndoutils/trunk/debian/watch	                        (rev 0)
+++ ndoutils/trunk/debian/watch	2007-06-20 21:19:06 UTC (rev 1181)
@@ -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 ndoutils-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/ndoutils-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/ndoutils-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for debscripts >= 2.9
+http://sf.net/nagios/ndoutils-(.*)\.tar\.gz
+
+




More information about the Pkg-nagios-changes mailing list