summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer/nagtrap
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-analyzer/nagtrap')
-rw-r--r--net-analyzer/nagtrap/Manifest1
-rw-r--r--net-analyzer/nagtrap/metadata.xml7
-rw-r--r--net-analyzer/nagtrap/nagtrap-0.1.3.ebuild46
3 files changed, 54 insertions, 0 deletions
diff --git a/net-analyzer/nagtrap/Manifest b/net-analyzer/nagtrap/Manifest
new file mode 100644
index 000000000000..3eba44d17bdc
--- /dev/null
+++ b/net-analyzer/nagtrap/Manifest
@@ -0,0 +1 @@
+DIST nagtrap-0.1.3.tar.gz 141934 SHA256 25082a363101a321d46649d4e5afca92acbafa37564470eadcc331235f4656f1 SHA512 4603157beb35850a6f8b69919cd0ce8f108e6de8e85711b9c18665b69f91082d6703da396b1170633172cef630c2f3d73b717f1893cb4da6b6d15a3f577d445a WHIRLPOOL a17dfe70c6e5fda47347199312e068a1a0429cd1a9880e183f9f31057b70b20282852f48c91fce52435f4a14db90375cc119672087aba13148c04e234b76ad45
diff --git a/net-analyzer/nagtrap/metadata.xml b/net-analyzer/nagtrap/metadata.xml
new file mode 100644
index 000000000000..ff62877c67ae
--- /dev/null
+++ b/net-analyzer/nagtrap/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/net-analyzer/nagtrap/nagtrap-0.1.3.ebuild b/net-analyzer/nagtrap/nagtrap-0.1.3.ebuild
new file mode 100644
index 000000000000..9ff932ab8193
--- /dev/null
+++ b/net-analyzer/nagtrap/nagtrap-0.1.3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+inherit eutils multilib
+
+DESCRIPTION="NagTrap is an integrated snmptt visualization addon for the Nagios monitoring system"
+HOMEPAGE="http://www.nagtrap.org/"
+SRC_URI="http://www.nagiosforge.org/gf/download/frsrelease/126/252/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="virtual/httpd-php"
+RDEPEND="dev-lang/php[mysql]
+ net-analyzer/snmptt[mysql]
+ net-analyzer/nagios-core
+ virtual/httpd-php"
+
+src_install() {
+ dodoc ChangeLog THANKS
+
+ dodir /usr/share/nagtrap
+ cp -r {db,nagtrap} "${D}"/usr/share/nagtrap/
+ fperms 640 "${D}"/usr/share/nagtrap/nagtrap/etc/config.ini.php-dist
+
+ sed -i -e 's#use lib.*#use lib "/usr/lib/nagios/plugins";#g' \
+ plugin/check_snmptraps.pl || die "sed failed"
+
+ insinto /usr/$(get_libdir)/nagios/plugins
+ insopts -m 750 -g nagios
+ doins plugin/check_snmptraps.pl
+}
+pkg_postinst() {
+ elog "Before running NagTrap for the first time, you will need setup its configuration"
+ elog "/usr/share/nagtrap/nagtrap/etc/config.ini.php"
+ elog "A sample is installed in"
+ elog "/usr/share/nagtrap/nagtrap/etc/config.ini.php-sample"
+ elog
+ elog "NagTrap requires snmptt to write traps into a MySQL database."
+ elog "A database schema is available in {$D}usr/share/nagtrap/db"
+}