diff options
Diffstat (limited to 'net-analyzer/nagtrap')
-rw-r--r-- | net-analyzer/nagtrap/Manifest | 5 | ||||
-rw-r--r-- | net-analyzer/nagtrap/metadata.xml | 5 | ||||
-rw-r--r-- | net-analyzer/nagtrap/nagtrap-0.1.3.ebuild | 45 |
3 files changed, 55 insertions, 0 deletions
diff --git a/net-analyzer/nagtrap/Manifest b/net-analyzer/nagtrap/Manifest new file mode 100644 index 000000000000..ee6255490c37 --- /dev/null +++ b/net-analyzer/nagtrap/Manifest @@ -0,0 +1,5 @@ +DIST nagtrap-0.1.3.tar.gz 141934 SHA256 25082a363101a321d46649d4e5afca92acbafa37564470eadcc331235f4656f1 SHA512 4603157beb35850a6f8b69919cd0ce8f108e6de8e85711b9c18665b69f91082d6703da396b1170633172cef630c2f3d73b717f1893cb4da6b6d15a3f577d445a WHIRLPOOL a17dfe70c6e5fda47347199312e068a1a0429cd1a9880e183f9f31057b70b20282852f48c91fce52435f4a14db90375cc119672087aba13148c04e234b76ad45 +EBUILD nagtrap-0.1.3.ebuild 1338 SHA256 d049b24c64c71b4406db267ebe8cb6447127b0bcdadebf9364c71ef54c7c5d0d SHA512 d1283c81b9fd3654721f1190ee51c7e74ebdebfe6ee04012b49af0f3058cdd94096268134ce91e689d85a21ad9e666c61210b54ed5f1716e4071c4f0092eba19 WHIRLPOOL 5694f76716aeef359177395003a9c208ebf72360dc6715a1729eaa2f6c63ac1b5c08b56abd855c7527f269898ff96647b5cc139ae49ad8d6d6497e49922404fa +MISC ChangeLog 2526 SHA256 efb93f0c37cdb75878a6008bbc8ce25d2530d8dadba4e31c2d4dbd19663ed03b SHA512 110c4a297d2e617fe86be302e45dfd568cd8defc0e5b93a5ff7b7b119661d4e169b2db187ca8f9cc42fd56ea6a55b560c5da7578390d61ff8d34b801172a9ac7 WHIRLPOOL 81260e940ee36a55de977fe207c6f8b72a49f3fc63735be75f3b2701e474057e3c152d05887458cfa1f01960c8d081236c5cb846800aec7b0be82c3d8d4c5778 +MISC ChangeLog-2015 729 SHA256 9839cf1aaba94d6546306867e176ccea1f46981ebd03184fe9aec91c409934b0 SHA512 4c4c3288bf896226b57b0d622b768db805ff946b95f2fda9520ae4251819cbd6a16775694e138a6fe611e4440d28999d8f6e3d0e495be2af4127e32cbc6fc68d WHIRLPOOL 669530e8d1c56a3d52fac32f7c5da4b51047c797abdafb6da0209a421188c5cd4ce1938ee3f83f9f86e34657275534e297d7978b02989cccce7512912c2d40a6 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-analyzer/nagtrap/metadata.xml b/net-analyzer/nagtrap/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-analyzer/nagtrap/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</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..d1ed7bd19ebb --- /dev/null +++ b/net-analyzer/nagtrap/nagtrap-0.1.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +inherit eutils multilib + +DESCRIPTION="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" +} |