diff options
author | 2006-02-18 18:39:17 +0000 | |
---|---|---|
committer | 2006-02-18 18:39:17 +0000 | |
commit | 0ca67c4567e45d634afd596f27ab97aaaf39fafd (patch) | |
tree | b5d3d019abb2e0afa416d4ceaf47438de2dccfca /net-analyzer | |
parent | Add gtk-2 patch and fix hl1250, bug 120029, thanks to Alexander Jenisch <nt-@... (diff) | |
download | gentoo-2-0ca67c4567e45d634afd596f27ab97aaaf39fafd.tar.gz gentoo-2-0ca67c4567e45d634afd596f27ab97aaaf39fafd.tar.bz2 gentoo-2-0ca67c4567e45d634afd596f27ab97aaaf39fafd.zip |
1.1 version bump. Set mode=daemon by default and add init script for bug 105354. Thanks to Anatoly Shipitsin <sauron at infocentr dot ru>.
(Portage version: 2.0.54 on steroids)
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/snmptt/ChangeLog | 11 | ||||
-rw-r--r-- | net-analyzer/snmptt/Manifest | 7 | ||||
-rw-r--r-- | net-analyzer/snmptt/files/digest-snmptt-1.1 | 1 | ||||
-rw-r--r-- | net-analyzer/snmptt/files/snmptt.initd | 20 | ||||
-rw-r--r-- | net-analyzer/snmptt/snmptt-1.1.ebuild | 60 |
5 files changed, 95 insertions, 4 deletions
diff --git a/net-analyzer/snmptt/ChangeLog b/net-analyzer/snmptt/ChangeLog index c3874ac70272..48fc6d0264d7 100644 --- a/net-analyzer/snmptt/ChangeLog +++ b/net-analyzer/snmptt/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-analyzer/snmptt -# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snmptt/ChangeLog,v 1.11 2005/02/13 03:29:58 weeve Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snmptt/ChangeLog,v 1.12 2006/02/18 18:39:17 vanquirius Exp $ + +*snmptt-1.1 (18 Feb 2006) + + 18 Feb 2006; Marcelo Goes <vanquirius@gentoo.org> +files/snmptt.initd, + +snmptt-1.1.ebuild: + 1.1 version bump. Set mode=daemon by default and add init script for bug + 105354. Thanks to Anatoly Shipitsin <sauron at infocentr dot ru>. 12 Feb 2005; Jason Wever <weeve@gentoo.org> snmptt-1.0.ebuild: Stable on sparc. diff --git a/net-analyzer/snmptt/Manifest b/net-analyzer/snmptt/Manifest index b580adc01918..7f0a51f3f88b 100644 --- a/net-analyzer/snmptt/Manifest +++ b/net-analyzer/snmptt/Manifest @@ -1,6 +1,9 @@ MD5 90c58212a6fdffc7e18f21628350b323 ChangeLog 1451 +MD5 1563776a631f989d7d781026125a53d0 files/digest-snmptt-0.9-r1 59 +MD5 b6787c534ab58fab31a50732394c5027 files/digest-snmptt-1.0 59 +MD5 c81b0b7af1ade4e4e786b2d2a1bfa334 files/digest-snmptt-1.1 59 +MD5 69a89cbfec26709ad2bd808e347d8514 files/snmptt.initd 403 MD5 193ab07812b3cd299e6fd2dd3d40d15c metadata.xml 215 MD5 500f4c9beba0332135f255256ff5857d snmptt-0.9-r1.ebuild 1267 MD5 8ec6d58ef25157861c1f7595857dea01 snmptt-1.0.ebuild 1264 -MD5 1563776a631f989d7d781026125a53d0 files/digest-snmptt-0.9-r1 59 -MD5 b6787c534ab58fab31a50732394c5027 files/digest-snmptt-1.0 59 +MD5 6bbb2cde8d8001785fd42cc668c7c7f1 snmptt-1.1.ebuild 1460 diff --git a/net-analyzer/snmptt/files/digest-snmptt-1.1 b/net-analyzer/snmptt/files/digest-snmptt-1.1 new file mode 100644 index 000000000000..4c227e30b5e3 --- /dev/null +++ b/net-analyzer/snmptt/files/digest-snmptt-1.1 @@ -0,0 +1 @@ +MD5 e4c2ec342040f33cdf0c7edab1545aab snmptt_1.1.tgz 119251 diff --git a/net-analyzer/snmptt/files/snmptt.initd b/net-analyzer/snmptt/files/snmptt.initd new file mode 100644 index 000000000000..b473fb415c6a --- /dev/null +++ b/net-analyzer/snmptt/files/snmptt.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +depend() { + need net snmptrapd +} + +start() { + ebegin "Starting snmptt" + start-stop-daemon --start --pidfile /var/run/snmptt.pid --exec /usr/sbin/snmptt + eend +} + +stop() { + ebegin "Stopping snmptt" + start-stop-daemon --stop --pidfile /var/run/snmptt.pid + eend +} diff --git a/net-analyzer/snmptt/snmptt-1.1.ebuild b/net-analyzer/snmptt/snmptt-1.1.ebuild new file mode 100644 index 000000000000..399959a0d2fa --- /dev/null +++ b/net-analyzer/snmptt/snmptt-1.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snmptt/snmptt-1.1.ebuild,v 1.1 2006/02/18 18:39:17 vanquirius Exp $ + +MY_P="${P/-/_}" + +DESCRIPTION="SNMP Trap Translator" +SRC_URI="mirror://sourceforge/snmptt/${MY_P}.tgz" +HOMEPAGE="http://www.snmptt.org/" + +LICENSE="GPL-2" + +KEYWORDS="~ppc ~sparc ~x86" +SLOT="0" +IUSE="mysql postgres" + +S="${WORKDIR}/${MY_P}" + +RDEPEND=">=dev-lang/perl-5.6.1 + dev-perl/Config-IniFiles + >=net-analyzer/net-snmp-5.1 + mysql? ( dev-perl/DBD-mysql ) + postgres? ( dev-perl/DBD-Pg )" + +src_unpack() { + unpack ${A} + cd "${S}" + + # bug 105354, daemonize this thing + sed -i -e "s:mode = standalone:mode = daemon:g" snmptt.ini || die + + echo "traphandle default /usr/sbin/snmptt" >examples/snmptrapd.conf.sample +} + +src_install() { + into /usr + dosbin snmptt + dosbin snmptthandler + dosbin snmptt-net-snmp-test + dosbin snmpttconvert + dosbin snmpttconvertmib + + insinto /etc/snmp + doins snmptt.ini + doins examples/snmptt.conf.generic + cp -pPR ${D}/etc/snmp/snmptt.conf.generic ${D}/etc/snmp/snmptt.conf + doins examples/snmptrapd.conf.sample + + dodoc BUGS ChangeLog README sample-trap + dohtml docs/faqs.html docs/index.html docs/layout1.css docs/snmptt.html docs/snmpttconvert.html docs/snmpttconvertmib.html + + newinitd "${FILESDIR}"/snmptt.initd snmptt +} + +pkg_postinst() { + if ( use mysql || use postgres ); then + einfo "Read the html documentation to configure your database." + fi + einfo "Please configure /etc/snmp/snmptt.conf before running." +} |