From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- net-analyzer/nagtrap/Manifest | 1 + net-analyzer/nagtrap/metadata.xml | 7 +++++ net-analyzer/nagtrap/nagtrap-0.1.3.ebuild | 46 +++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 net-analyzer/nagtrap/Manifest create mode 100644 net-analyzer/nagtrap/metadata.xml create mode 100644 net-analyzer/nagtrap/nagtrap-0.1.3.ebuild (limited to 'net-analyzer/nagtrap') 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 @@ + + + + + maintainer-needed@gentoo.org + + 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" +} -- cgit v1.2.3-65-gdbad