[csw-devel] SF.net SVN: gar:[3985] csw/mgar/pkg

j_arndt at users.sourceforge.net j_arndt at users.sourceforge.net
Thu Mar 26 23:38:20 CET 2009


Revision: 3985
          http://gar.svn.sourceforge.net/gar/?rev=3985&view=rev
Author:   j_arndt
Date:     2009-03-26 22:38:19 +0000 (Thu, 26 Mar 2009)

Log Message:
-----------
ndoutils: initial commit

Added Paths:
-----------
    csw/mgar/pkg/ndoutils/
    csw/mgar/pkg/ndoutils/branches/
    csw/mgar/pkg/ndoutils/tags/
    csw/mgar/pkg/ndoutils/trunk/
    csw/mgar/pkg/ndoutils/trunk/Makefile
    csw/mgar/pkg/ndoutils/trunk/checksums
    csw/mgar/pkg/ndoutils/trunk/files/
    csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.gspec
    csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.postinstall
    csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.prototype
    csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.gspec
    csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.postinstall
    csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.prototype
    csw/mgar/pkg/ndoutils/trunk/files/CSWpackage.gspec
    csw/mgar/pkg/ndoutils/trunk/files/config.diff
    csw/mgar/pkg/ndoutils/trunk/files/cswndoutils
    csw/mgar/pkg/ndoutils/trunk/files/installdb.diff


Property changes on: csw/mgar/pkg/ndoutils/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/ndoutils/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/Makefile	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,85 @@
+GARNAME = ndoutils
+GARVERSION = 1.4b7
+CATEGORIES = apps
+
+SPKG_DESC_CSWndoutils2x = NDOutils for nagios 2.x
+SPKG_DESC_CSWndoutils3x = NDOutils for nagios 3.x
+
+define BLURB
+  NDOUtils allows you to export current and historical data from one or more Nagios instances to a MySQL database. Several community addons use this as one of their data sources.
+endef
+
+SF_PROJ = nagios
+MASTER_SITES = $(SF_MIRRORS)
+#MASTER_SITES = http://mesh.dl.sourceforge.net/sourceforge/nagios/
+DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+DISTFILES += $(call admfiles,CSWndoutils2x, prototype postinstall)
+DISTFILES += $(call admfiles,CSWndoutils3x, prototype postinstall)
+DISTFILES += cswndoutils
+
+PATCHFILES += config.diff
+PATCHFILES += installdb.diff
+
+# We define upstream file regex so we can be notifed of new upstream software release
+#UFILES_REGEX = -(\d+(?:\.\d+)*).tar.gz
+
+# If the url used to check for software update is different of MASTER_SITES, then 
+# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
+# UPSTREAM_MASTER_SITES = 
+
+REQUIRED_PKGS_CSWndoutils2x = CSWmysql5rt CSWzlib CSWnagios CSWcswclassutils
+REQUIRED_PKGS_CSWndoutils3x = CSWmysql5rt CSWzlib CSWnagios CSWcswclassutils
+
+SPKG_CLASSES_CSWndoutils2x = none cswpreserveconf cswinitsmf
+SPKG_CLASSES_CSWndoutils3x = none cswpreserveconf cswinitsmf
+
+ENABLE_CHECK = 0
+
+EXTRA_INC += /opt/csw/mysql5/include
+EXTRA_LIB += /opt/csw/mysql5/lib/mysql
+
+CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --disable-pgsql	# Postgres is not supported in the current version
+CONFIGURE_ARGS += --with-mysql-lib=/opt/csw/mysql5/lib/mysql
+CONFIGURE_ARGS += --with-mysql-inc=/opt/csw/mysql5/include
+
+localstatedir=/opt/csw/nagios/ndoutils/var
+
+SKIPTEST = 1
+INSTALL_SCRIPTS = custom
+
+CFGDIR = $(prefix)/nagios/ndoutils/etc
+BINDIR = $(prefix)/nagios/ndoutils/bin
+DOCDIR = $(prefix)/share/doc/ndoutils
+CONTRIBDIR = $(prefix)/nagios/ndoutils/contrib
+DOCS = Changelog README REQUIREMENTS TODO UPGRADING 
+
+include gar/category.mk
+
+install-custom:
+	@cp $(WORKSRC)/docs/"NDOUtils Documentation.pdf" $(WORKSRC)/docs/NDOUtils_Documentation.pdf
+	@cp $(WORKSRC)/docs/"NDOUTILS DB Model.pdf" $(WORKSRC)/docs/NDOUTILS_DB_Model.pdf
+	@ginstall -m 755 -d $(DESTDIR)/$(CFGDIR)
+	@ginstall -m 755 -d $(DESTDIR)/$(BINDIR)
+	@ginstall -m 755 -d $(DESTDIR)/$(DOCDIR)
+	@ginstall -m 755 -d $(DESTDIR)/$(localstatedir)
+	@ginstall -m 755 -d $(DESTDIR)/$(CONTRIBDIR)/db
+	@ginstall -m 644 $(WORKSRC)/config/ndo2db.cfg $(DESTDIR)/$(CFGDIR)/ndo2db.cfg.CSW
+	@ginstall -m 644 $(WORKSRC)/config/ndomod.cfg $(DESTDIR)/$(CFGDIR)/ndomod.cfg.CSW
+	@ginstall -m 644 $(WORKSRC)/config/nagios2.cfg $(DESTDIR)/$(CFGDIR)/nagios2.cfg.CSW
+	@ginstall -m 644 $(WORKSRC)/config/nagios3.cfg $(DESTDIR)/$(CFGDIR)/nagios3.cfg.CSW
+	@ginstall -m 644 $(WORKSRC)/config/misccommands.cfg $(DESTDIR)/$(CFGDIR)/ndomisccommands.cfg.CSW
+	@ginstall -m 755 $(WORKSRC)/src/ndo2db-2x $(DESTDIR)/$(BINDIR)
+	@ginstall -m 755 $(WORKSRC)/src/ndo2db-3x $(DESTDIR)/$(BINDIR)
+	@ginstall -m 755 $(WORKSRC)/src/ndomod-2x.o $(DESTDIR)/$(BINDIR)
+	@ginstall -m 755 $(WORKSRC)/src/ndomod-3x.o $(DESTDIR)/$(BINDIR)
+	@ginstall -m 755 $(WORKSRC)/src/file2sock $(DESTDIR)/$(BINDIR)
+	@ginstall -m 755 $(WORKSRC)/src/log2ndo $(DESTDIR)/$(BINDIR)
+	cp -r $(WORKSRC)/db $(DESTDIR)/$(CONTRIBDIR)
+	#@ginstall -m 744 $(WORKSRC)/db/installdb $(DESTDIR)/$(DOCDIR)/db
+	@ginstall -m 644 $(WORKSRC)/docs/"NDOUTILS_DB_Model.pdf" $(DESTDIR)/$(DOCDIR)
+	@ginstall -m 644 $(WORKSRC)/docs/"NDOUtils_Documentation.pdf" $(DESTDIR)/$(DOCDIR)
+	@$(foreach DOC,$(DOCS), ginstall -m 644 $(WORKSRC)/$(DOC) $(DESTDIR)/$(DOCDIR);)
+	@ginstall -d $(DESTDIR)/etc/opt/csw/init.d/
+	@ginstall -m 755 $(FILEDIR)/cswndoutils $(DESTDIR)/etc/opt/csw/init.d/
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/ndoutils/trunk/checksums
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/checksums	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,10 @@
+a454f7434f401bd48047cc42b045ff8b  download/ndoutils-1.4b7.tar.gz
+cde137a94e5ab14705407a9b55e2a947  download/CSWndoutils2x.gspec
+eb253a3c37b6f9240aa2625ae67fd832  download/CSWndoutils2x.prototype
+b9897c5e7715f5b188655b7e9bdc451b  download/CSWndoutils2x.postinstall
+5b1fa6c2971d0f13d1e56ab7bb9939bd  download/CSWndoutils3x.gspec
+eb253a3c37b6f9240aa2625ae67fd832  download/CSWndoutils3x.prototype
+18c01d48f73ba5384d9b011edf6bc91e  download/CSWndoutils3x.postinstall
+4da9261cd9a7d499454625aa229f0cef  download/cswndoutils
+28d9fb431e6f6ebb6ff49f0b918d0795  download/config.diff
+a1d5f59d751be796f367a1eb8b0db7c3  download/installdb.diff

Added: csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.gspec
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.gspec	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.gspec	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,3 @@
+%var            bitname ndotuils2x
+%var           	pkgname CSWndoutils2x
+%include        url file://%{PKGLIB}/csw_dyndepend.gspec

Added: csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.postinstall
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.postinstall	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.postinstall	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+cat << EOF
+
+ To initialize the database follow these steps:"
+
+ Setup a database in your MySQL-Server:"
+
+ CREATE DATABASE nagios;"
+ GRANT CREATE, SELECT, INSERT, UPDATE, DELETE ON nagios.* TO 'nagios' \\"
+ IDENTIFIED BY 'nagios';"
+
+ (user / password are the defaults - if you change them keep in mind, "
+ that you have to change the configuration of apps depending on"
+ ndoutils too, i.e., NagVis)"
+
+ Run the perl script installdb to initialize the database with the"
+ necessary tables:"
+
+ cd /opt/csw/nagios/ndoutils/contrib/db/"
+ ./installdb"
+
+ Restart the NDO-Service
+
+EOF

Added: csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.prototype
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.prototype	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils2x.prototype	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,69 @@
+f none /opt/csw/nagios/ndoutils/bin/file2sock 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/bin/log2ndo 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/bin/ndo2db-3x 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/bin/ndomod-3x.o 0755 nagios nagios
+d none /opt/csw/nagios/ndoutils/etc 0755 nagios nagios
+f cswpreserveconf /opt/csw/nagios/ndoutils/etc/ndo2db.cfg.CSW 0644 nagios nagios
+f cswpreserveconf /opt/csw/nagios/ndoutils/etc/ndomod.cfg.CSW 0644 nagios nagios
+f cswpreserveconf /opt/csw/nagios/ndoutils/etc/nagios3.cfg.CSW 0644 nagios nagios
+f cswpreserveconf /opt/csw/nagios/ndoutils/etc/ndomisccommands.cfg.CSW 0644 nagios nagios
+d none /opt/csw/share/doc/ndoutils 0755 root bin
+f none /opt/csw/share/doc/ndoutils/Changelog 0644 root bin
+f none /opt/csw/share/doc/ndoutils/NDOUTILS_DB_Model.pdf 0644 root bin
+f none /opt/csw/share/doc/ndoutils/NDOUtils_Documentation.pdf 0644 root bin
+f none /opt/csw/share/doc/ndoutils/README 0644 root bin
+f none /opt/csw/share/doc/ndoutils/REQUIREMENTS 0644 root bin
+f none /opt/csw/share/doc/ndoutils/TODO 0644 root bin
+f none /opt/csw/share/doc/ndoutils/UPGRADING 0644 root bin
+d none /opt/csw/nagios/ndoutils/var 0755 nagios nagios
+d none /opt/csw/nagios/ndoutils/contrib 0755 nagios nagios
+d none /opt/csw/nagios/ndoutils/contrib/db 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/README 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/installdb 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-mods-1.4b5.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-mods-1.4b7.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.3.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b1.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b2.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b3.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b4.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b5.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b6.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/prepsql 0755 nagios nagios
+d none /opt/csw/nagios/ndoutils/contrib/db/queries 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/comment_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/comments.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/contact_notification_methods.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/contact_notifications.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/contact_status.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/contactgroup_membership.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/contacts.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/downtime_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/event_handlers.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/flapping_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_comments.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_downtime_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_event_handlers.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_flapping_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_notifications.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_state_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_status.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/hostgroup_membership.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/hosts.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/notifications.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/scheduled_downtime.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_comments.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_downtime_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_event_handlers.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_flapping_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_notifications.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_state_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_status.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/servicegroup_membership.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/services.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/state_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/timed_event_queue.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/timed_events.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/upgradedb 0755 nagios nagios
+f cswinitsmf /etc/opt/csw/init.d/cswndoutils 0755 root bin

Added: csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.gspec
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.gspec	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.gspec	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,3 @@
+%var            bitname ndoutils3x
+%var            pkgname CSWndoutils3x
+%include        url file://%{PKGLIB}/csw_dyndepend.gspec

Added: csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.postinstall
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.postinstall	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.postinstall	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+cat << EOF
+
+ To initialize the database follow these steps:
+
+ - Setup a database in your MySQL-Server:
+
+   CREATE DATABASE nagios;
+   GRANT CREATE, SELECT, INSERT, UPDATE, DELETE ON nagios.* TO 'nagios' \\
+   IDENTIFIED BY 'nagios';
+
+   (user / password are the defaults - if you change them keep in mind,
+   that you have to change the configuration of apps depending on
+   ndoutils too, i.e., NagVis)
+
+ - Run the perl script installdb to fill the database with the
+   necessary tables:
+
+   cd /opt/csw/nagios/ndoutils/contrib/db/
+   ./installdb
+
+ !!! Before starting NDOutils make sure, that the user running NDOutils
+ (default: "nagios") has a valid login shell. The default for "nagios" is
+ /bin/false which won't work.
+
+ - (Re)start the NDO-Service
+
+EOF

Added: csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.prototype
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.prototype	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/files/CSWndoutils3x.prototype	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,69 @@
+f none /opt/csw/nagios/ndoutils/bin/file2sock 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/bin/log2ndo 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/bin/ndo2db-3x 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/bin/ndomod-3x.o 0755 nagios nagios
+d none /opt/csw/nagios/ndoutils/etc 0755 nagios nagios
+f cswpreserveconf /opt/csw/nagios/ndoutils/etc/ndo2db.cfg.CSW 0644 nagios nagios
+f cswpreserveconf /opt/csw/nagios/ndoutils/etc/ndomod.cfg.CSW 0644 nagios nagios
+f cswpreserveconf /opt/csw/nagios/ndoutils/etc/nagios3.cfg.CSW 0644 nagios nagios
+f cswpreserveconf /opt/csw/nagios/ndoutils/etc/ndomisccommands.cfg.CSW 0644 nagios nagios
+d none /opt/csw/share/doc/ndoutils 0755 root bin
+f none /opt/csw/share/doc/ndoutils/Changelog 0644 root bin
+f none /opt/csw/share/doc/ndoutils/NDOUTILS_DB_Model.pdf 0644 root bin
+f none /opt/csw/share/doc/ndoutils/NDOUtils_Documentation.pdf 0644 root bin
+f none /opt/csw/share/doc/ndoutils/README 0644 root bin
+f none /opt/csw/share/doc/ndoutils/REQUIREMENTS 0644 root bin
+f none /opt/csw/share/doc/ndoutils/TODO 0644 root bin
+f none /opt/csw/share/doc/ndoutils/UPGRADING 0644 root bin
+d none /opt/csw/nagios/ndoutils/var 0755 nagios nagios
+d none /opt/csw/nagios/ndoutils/contrib 0755 nagios nagios
+d none /opt/csw/nagios/ndoutils/contrib/db 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/README 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/installdb 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-mods-1.4b5.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-mods-1.4b7.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.3.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b1.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b2.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b3.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b4.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b5.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql-upgrade-1.4b6.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/mysql.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/prepsql 0755 nagios nagios
+d none /opt/csw/nagios/ndoutils/contrib/db/queries 0755 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/comment_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/comments.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/contact_notification_methods.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/contact_notifications.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/contact_status.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/contactgroup_membership.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/contacts.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/downtime_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/event_handlers.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/flapping_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_comments.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_downtime_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_event_handlers.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_flapping_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_notifications.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_state_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/host_status.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/hostgroup_membership.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/hosts.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/notifications.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/scheduled_downtime.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_comments.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_downtime_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_event_handlers.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_flapping_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_notifications.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_state_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/service_status.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/servicegroup_membership.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/services.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/state_history.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/timed_event_queue.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/queries/timed_events.sql 0644 nagios nagios
+f none /opt/csw/nagios/ndoutils/contrib/db/upgradedb 0755 nagios nagios
+f cswinitsmf /etc/opt/csw/init.d/cswndoutils 0755 root bin

Added: csw/mgar/pkg/ndoutils/trunk/files/CSWpackage.gspec
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/files/CSWpackage.gspec	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/files/CSWpackage.gspec	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,4 @@
+%var            bitname package
+%var            pkgname CSWpackage
+%include        url file://%{PKGLIB}/csw_dyndepend.gspec
+%copyright      url file://%{WORKSRC}/LICENSE

Added: csw/mgar/pkg/ndoutils/trunk/files/config.diff
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/files/config.diff	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/files/config.diff	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,93 @@
+diff --speed-large-files --minimal -Nru ndoutils-1.4b7.orig/config/misccommands.cfg ndoutils-1.4b7/config/misccommands.cfg
+--- ndoutils-1.4b7.orig/config/misccommands.cfg	2007-01-08 01:35:58.000000000 +0100
++++ ndoutils-1.4b7/config/misccommands.cfg	2009-03-25 19:26:16.530574647 +0100
+@@ -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 /opt/csw/nagios/ndoutils/var/ndo.dat /opt/csw/nagios/ndoutils/var/ndo.`date +%s`
+         }
+diff --speed-large-files --minimal -Nru ndoutils-1.4b7.orig/config/nagios2.cfg ndoutils-1.4b7/config/nagios2.cfg
+--- ndoutils-1.4b7.orig/config/nagios2.cfg	1970-01-01 01:00:00.000000000 +0100
++++ ndoutils-1.4b7/config/nagios2.cfg	2009-03-25 19:28:01.481126866 +0100
+@@ -0,0 +1,11 @@
++# SAMPLE NAGIOS CONFIG SNIPPET FOR NDOMOD
++#
++# In order to have Nagios run the NDOMOD event broker module, you'll need
++# to place a statement like the one found below in your main Nagios
++# 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=/opt/csw/nagios/ndoutils/bin/ndomod-2x.o config_file=/opt/csw/nagios/ndoutils/etc/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 --speed-large-files --minimal -Nru ndoutils-1.4b7.orig/config/nagios3.cfg ndoutils-1.4b7/config/nagios3.cfg
+--- ndoutils-1.4b7.orig/config/nagios3.cfg	1970-01-01 01:00:00.000000000 +0100
++++ ndoutils-1.4b7/config/nagios3.cfg	2009-03-25 19:28:33.346051027 +0100
+@@ -0,0 +1,11 @@
++# SAMPLE NAGIOS CONFIG SNIPPET FOR NDOMOD
++#
++# In order to have Nagios run the NDOMOD event broker module, you'll need
++# to place a statement like the one found below in your main Nagios
++# 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
++
++# Uncomment the line below if you're running Nagios 3.x
++broker_module=/opt/csw/nagios/ndoutils/bin/ndomod-3x.o config_file=/opt/csw/nagios/ndoutils/etc/ndomod.cfg
+diff --speed-large-files --minimal -Nru ndoutils-1.4b7.orig/config/ndomod.cfg ndoutils-1.4b7/config/ndomod.cfg
+--- ndoutils-1.4b7.orig/config/ndomod.cfg	2007-09-27 18:47:44.000000000 +0200
++++ ndoutils-1.4b7/config/ndomod.cfg	2009-03-25 19:33:19.422465176 +0100
+@@ -37,7 +37,7 @@
+ 
+ #output=/usr/local/nagios/var/ndo.dat
+ #output=127.0.0.1
+-output=/usr/local/nagios/var/ndo.sock
++output=/opt/csw/nagios/ndoutils/var/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=/opt/csw/nagios/ndoutils/var/ndomod.tmp
+ 
+ 
+
+diff --speed-large-files --minimal -Nru ndoutils-1.4b7.orig/config/ndo2db.cfg ndoutils-1.4b7/config/ndo2db.cfg
+--- ndoutils-1.4b7.orig/config/ndo2db.cfg	2007-10-31 19:17:04.000000000 +0100
++++ ndoutils-1.4b7/config/ndo2db.cfg	2009-03-25 22:57:22.528212535 +0100
+@@ -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=/opt/csw/nagios/ndoutils/var/ndo.sock
+ 
+ 
+ 
+@@ -94,8 +94,8 @@
+ # The user needs at least SELECT, INSERT, UPDATE, and DELETE privileges on
+ # the database.
+ 
+-db_user=ndouser
+-db_pass=ndopassword
++db_user=nagios
++db_pass=nagios
+ 
+ 
+ 
+@@ -152,7 +152,7 @@
+ # DEBUG FILE
+ # This option determines where the daemon should write debugging information.
+ 
+-debug_file=@localstatedir@/ndo2db.debug
++debug_file=/opt/csw/nagios/ndoutils/var/ndo2db.debug
+ 
+ 
+ 

Added: csw/mgar/pkg/ndoutils/trunk/files/cswndoutils
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/files/cswndoutils	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/files/cswndoutils	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,58 @@
+#!/bin/sh
+#
+# For OpenCSW by Juergen Arndt 2009-03-24
+
+#FMRI application       # FMRI path for service
+
+SMF_EXIT_OK=0
+SMF_EXIT_ERR_CONFIG=1
+
+if [ -f /lib/svc/share/smf_include.sh ]
+then
+	. /lib/svc/share/smf_include.sh
+fi
+
+CONFIG_FILE=/opt/csw/nagios/ndoutils/etc/ndo2db.cfg
+
+if [ ! -f $CONFIG_FILE ]
+then
+	exit $SMF_EXIT_ERR_CONFIG
+fi
+
+NAGIOS_MAJOR_RELEASE=`/opt/csw/nagios/bin/nagios -v | head -2 | tail -1 | awk '{print $2}' | awk -F. '{print $1}'`
+
+BIN_DIR="/opt/csw/nagios/ndoutils/bin"
+if [ $NAGIOS_MAJOR_RELEASE -eq 2 ]
+then
+	BIN_FILE="ndo2db-2x"
+fi
+
+if [ $NAGIOS_MAJOR_RELEASE -eq 3 ]
+then
+	BIN_FILE="ndo2db-3x"
+fi
+
+NDO_USER=nagios
+
+case "$1" in
+'start')
+	su - $NDO_USER -c "$BIN_DIR/$BIN_FILE -c $CONFIG_FILE"
+	;;
+'stop') 
+	su - $NDO_USER -c "pkill $BIN_FILE"
+	sleep 1
+	su - $NDO_USER -c "pkill -9 $BIN_FILE"
+	;;
+'restart')
+	su - $NDO_USER -c "pkill $BIN_FILE"
+	sleep 1
+	su - $NDO_USER -c "pkill -9 $BIN_FILE"
+	sleep 1
+	su - $NDO_USER -c "$BIN_DIR/$BIN_FILE -c $CONFIG_FILE"
+	;;
+*)
+        echo "Usage: $0 { start | stop | restart }"
+        exit 1
+        ;;
+esac
+exit $SMF_EXIT_OK

Added: csw/mgar/pkg/ndoutils/trunk/files/installdb.diff
===================================================================
--- csw/mgar/pkg/ndoutils/trunk/files/installdb.diff	                        (rev 0)
+++ csw/mgar/pkg/ndoutils/trunk/files/installdb.diff	2009-03-26 22:38:19 UTC (rev 3985)
@@ -0,0 +1,9 @@
+diff --speed-large-files --minimal -Nru ndoutils-1.4b7.orig/db/installdb ndoutils-1.4b7/db/installdb
+--- ndoutils-1.4b7.orig/db/installdb	2007-10-31 19:17:04.000000000 +0100
++++ ndoutils-1.4b7/db/installdb	2009-03-25 21:31:34.967626155 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl
++#!/opt/csw/bin/perl
+ #
+ # SYNTAX:
+ my $usage = "installdb -u user -p password -h hostname -d database";


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list