summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2007-07-01 08:29:56 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2007-07-01 08:29:56 +0000
commitd3a2da13e9c3fc6b76a2251c45db176425351d7e (patch)
treeb56293d77b27dc4cdab361e9f1a418c21c5b1b3e /net-analyzer/ndoutils
parentRemove obsolete dbus dependency (bug #183696). (diff)
downloadgentoo-2-d3a2da13e9c3fc6b76a2251c45db176425351d7e.tar.gz
gentoo-2-d3a2da13e9c3fc6b76a2251c45db176425351d7e.tar.bz2
gentoo-2-d3a2da13e9c3fc6b76a2251c45db176425351d7e.zip
Initial import for bug #176780
(Portage version: 2.1.3_rc6)
Diffstat (limited to 'net-analyzer/ndoutils')
-rw-r--r--net-analyzer/ndoutils/ChangeLog10
-rw-r--r--net-analyzer/ndoutils/Manifest20
-rw-r--r--net-analyzer/ndoutils/files/digest-ndoutils-1.4_beta43
-rwxr-xr-xnet-analyzer/ndoutils/files/ndo2db.init22
-rw-r--r--net-analyzer/ndoutils/metadata.xml9
-rw-r--r--net-analyzer/ndoutils/ndoutils-1.4_beta4.ebuild69
6 files changed, 133 insertions, 0 deletions
diff --git a/net-analyzer/ndoutils/ChangeLog b/net-analyzer/ndoutils/ChangeLog
new file mode 100644
index 000000000000..2713932d527b
--- /dev/null
+++ b/net-analyzer/ndoutils/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-analyzer/ndoutils
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndoutils/ChangeLog,v 1.1 2007/07/01 08:29:56 dertobi123 Exp $
+
+*ndoutils-1.4_beta4 (01 Jul 2007)
+
+ 01 Jul 2007; Tobias Scherbaum <dertobi123@gentoo.org> +files/ndo2db.init,
+ +metadata.xml, +ndoutils-1.4_beta4.ebuild:
+ Initial import for bug #176780
+
diff --git a/net-analyzer/ndoutils/Manifest b/net-analyzer/ndoutils/Manifest
new file mode 100644
index 000000000000..5983ff7348c2
--- /dev/null
+++ b/net-analyzer/ndoutils/Manifest
@@ -0,0 +1,20 @@
+AUX ndo2db.init 442 RMD160 8eeaf9974a7fc7bce088e45f8ee4b911c9f5eb28 SHA1 71e3268aabd4feaa646469114e1ae95f5d250610 SHA256 0d1d45fedc014f8a45d6f9bddfa9b477d9b546e9f19210090b3b915ab6cbeb48
+MD5 6815ee1b3d47fc4714d1d6bba870dbbf files/ndo2db.init 442
+RMD160 8eeaf9974a7fc7bce088e45f8ee4b911c9f5eb28 files/ndo2db.init 442
+SHA256 0d1d45fedc014f8a45d6f9bddfa9b477d9b546e9f19210090b3b915ab6cbeb48 files/ndo2db.init 442
+DIST ndoutils-1.4b4.tar.gz 930244 RMD160 c94a108f6736d90de570c1eb96e98175656e37d8 SHA1 1ae31192715083c5d33647838c3db58adf6350ee SHA256 22b42fc34b805fcb1ac34480d95483e3c593982040fc5b550e075078a537b935
+EBUILD ndoutils-1.4_beta4.ebuild 1831 RMD160 e2492f06ba4a7ae0adadbbd1b7e4d177c382bc56 SHA1 3ba29dcd9a47f0897e1657cf27be33743e8a97bb SHA256 376ec6d1221dcc002fdaf6038c5a9390f2910b91a66a1eafaf4dfa303da1c597
+MD5 f2da746aa09ea0ccf3043d941e8ab457 ndoutils-1.4_beta4.ebuild 1831
+RMD160 e2492f06ba4a7ae0adadbbd1b7e4d177c382bc56 ndoutils-1.4_beta4.ebuild 1831
+SHA256 376ec6d1221dcc002fdaf6038c5a9390f2910b91a66a1eafaf4dfa303da1c597 ndoutils-1.4_beta4.ebuild 1831
+MISC ChangeLog 312 RMD160 3c0eba2013cb7d4f8748ede11229eb36e0e7ee6f SHA1 7db42974a8303c8a8c6f02f83f989d4f2d75830a SHA256 54f7c1176e17a5a637eedbacc989af784c875fb2c856683cd3b6f14f68e8f50c
+MD5 ac5c495b1c013b9beb22c381627147e4 ChangeLog 312
+RMD160 3c0eba2013cb7d4f8748ede11229eb36e0e7ee6f ChangeLog 312
+SHA256 54f7c1176e17a5a637eedbacc989af784c875fb2c856683cd3b6f14f68e8f50c ChangeLog 312
+MISC metadata.xml 260 RMD160 ac6f569eb1667b364a6d503a3f273505ff0ee274 SHA1 07ea89243966d135d235f7e464a480ab0e698d6b SHA256 eafa2ff6e208c288e02395e29355263b6c969ae23f19ec118835c14f2fcee05f
+MD5 d9b7a7890fbeb817c7e929e00352ccb2 metadata.xml 260
+RMD160 ac6f569eb1667b364a6d503a3f273505ff0ee274 metadata.xml 260
+SHA256 eafa2ff6e208c288e02395e29355263b6c969ae23f19ec118835c14f2fcee05f metadata.xml 260
+MD5 ca15a88831ea33581bb45664cd0500ef files/digest-ndoutils-1.4_beta4 244
+RMD160 189399d7dab6274569e6ba1097af92b1a11119c7 files/digest-ndoutils-1.4_beta4 244
+SHA256 e4aa10afb8dbf3c75d36264a506b1bed2db54135c3641c1bc547ca54f73d99e3 files/digest-ndoutils-1.4_beta4 244
diff --git a/net-analyzer/ndoutils/files/digest-ndoutils-1.4_beta4 b/net-analyzer/ndoutils/files/digest-ndoutils-1.4_beta4
new file mode 100644
index 000000000000..0a9eaa6e0402
--- /dev/null
+++ b/net-analyzer/ndoutils/files/digest-ndoutils-1.4_beta4
@@ -0,0 +1,3 @@
+MD5 4f530487ec888a85acec2ca4a5838a2e ndoutils-1.4b4.tar.gz 930244
+RMD160 c94a108f6736d90de570c1eb96e98175656e37d8 ndoutils-1.4b4.tar.gz 930244
+SHA256 22b42fc34b805fcb1ac34480d95483e3c593982040fc5b550e075078a537b935 ndoutils-1.4b4.tar.gz 930244
diff --git a/net-analyzer/ndoutils/files/ndo2db.init b/net-analyzer/ndoutils/files/ndo2db.init
new file mode 100755
index 000000000000..d2864be7efc0
--- /dev/null
+++ b/net-analyzer/ndoutils/files/ndo2db.init
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndoutils/files/ndo2db.init,v 1.1 2007/07/01 08:29:56 dertobi123 Exp $
+
+depends() {
+ before nagios
+ need mysql
+}
+
+start() {
+ ebegin "Starting ndo2db"
+ start-stop-daemon --start --quiet --exec /usr/nagios/bin/ndo2db-2x \
+ -- -c /etc/nagios/ndo2db.cfg
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ndo2db"
+ start-stop-daemon --stop --quiet --exec /usr/nagios/bin/ndo2db-2x
+ eend $?
+}
diff --git a/net-analyzer/ndoutils/metadata.xml b/net-analyzer/ndoutils/metadata.xml
new file mode 100644
index 000000000000..4428cc4fa2ae
--- /dev/null
+++ b/net-analyzer/ndoutils/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>netmon</herd>
+ <maintainer>
+ <email>dertobi123@gentoo.org</email>
+ <name>Tobias Scherbaum</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-analyzer/ndoutils/ndoutils-1.4_beta4.ebuild b/net-analyzer/ndoutils/ndoutils-1.4_beta4.ebuild
new file mode 100644
index 000000000000..60b82ee7cfca
--- /dev/null
+++ b/net-analyzer/ndoutils/ndoutils-1.4_beta4.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndoutils/ndoutils-1.4_beta4.ebuild,v 1.1 2007/07/01 08:29:56 dertobi123 Exp $
+
+inherit eutils
+
+MY_P=${P/_beta/b}
+
+DESCRIPTION="Nagios addon to store Nagios data in a MySQL database"
+HOMEPAGE="http://www.nagios.org"
+SRC_URI="mirror://sourceforge/nagios/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="dev-db/mysql"
+RDEPEND="${DEPEND}
+ >=net-analyzer/nagios-core-2.7"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ enewgroup nagios
+ enewuser nagios -1 /bin/bash /var/nagios/home nagios
+}
+
+src_compile() {
+ econf \
+ --prefix=/usr/nagios \
+ --sysconfdir=/etc/nagios \
+ --enable-mysql \
+ --disable-pgsql || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ dodir /usr/nagios/bin
+ cp ${S}/src/{file2sock,log2ndo,ndo2db-2x,ndomod-2x.o,sockdebug} ${D}/usr/nagios/bin
+
+ dodir /usr/nagios/share/
+ cp -R ${S}/db ${D}/usr/nagios/share
+
+ chown -R root:nagios ${D}/usr/nagios || die "Failed chown of ${D}/usr/nagios"
+ chmod 750 ${D}/usr/nagios/bin/{file2sock,log2ndo,ndo2db-2x,ndomod-2x.o,sockdebug} || "Failed chmod"
+
+ dodoc README REQUIREMENTS TODO UPGRADING Changelog "docs/NDOUTILS DB Model.pdf" "docs/NDOUtils Documentation.pdf"
+
+cat << EOF > "${T}"/55-ndoutils-revdep
+SEARCH_DIRS="/usr/nagios/bin"
+EOF
+
+ insinto /etc/revdep-rebuild
+ doins "${T}"/55-ndoutils-revdep
+
+ insinto /etc/nagios
+ doins ${S}/config/ndo2db.cfg
+ doins ${S}/config/ndomod.cfg
+
+ newinitd ${FILESDIR}/ndo2db.init ndo2db
+}
+
+pkg_postinst() {
+ elog "To include NDO in your Nagios setup you'll need to activate the NDO broker module"
+ elog "in /etc/nagios/nagios.cfg:"
+ elog "\tbroker_module=/usr/nagios/bin/ndomod-2x.o config_file=/etc/nagios/ndomod.cfg"
+}