diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-07-25 11:35:49 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-07-25 11:38:15 +0200 |
commit | 1548c6ca5671e874b98fbd4c4107c4dd49e3e222 (patch) | |
tree | 887aad9bc2bf636a036a9edc53f2f98b4031b241 /net-analyzer | |
parent | net-misc/socat: Old (diff) | |
download | gentoo-1548c6ca5671e874b98fbd4c4107c4dd49e3e222.tar.gz gentoo-1548c6ca5671e874b98fbd4c4107c4dd49e3e222.tar.bz2 gentoo-1548c6ca5671e874b98fbd4c4107c4dd49e3e222.zip |
net-analyzer/snmptt: Version 1.4.2
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/snmptt/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/snmptt/snmptt-1.4.2.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/net-analyzer/snmptt/Manifest b/net-analyzer/snmptt/Manifest index c9a22c1494f2..f68f7085a9ab 100644 --- a/net-analyzer/snmptt/Manifest +++ b/net-analyzer/snmptt/Manifest @@ -1,2 +1,3 @@ DIST snmptt_1.4.1.tgz 142271 BLAKE2B 4b2af3b3c94e40efba1c497da16c80426c6e8b28e4a310bd44c8f353d304c67b651ef26eefce1c0208d5216a34339bcc3c3959a5cae93016ed57120495420d65 SHA512 2a51356f575ae7f7abc6640d802f67a107dc653a6224d5e208f85f2d17ba735d10a2fc0a3815f83ac449f6a058d870389d61ed501e5ca8c324f88d3c14b8d8bd +DIST snmptt_1.4.2.tgz 142697 BLAKE2B 5603197adb919a8e34d07d6981f35ff60db5674f254ce3ac4e9e12f7aad31b4ba85ddfa5b785df0c759bd97929a24e9f694b9511d060fc94d60fe2e70764c662 SHA512 b8782aa5789227253c1b65c98771de7eba319f1f29b56224415f89d0c687515cd099f0ba7d0e304d43a9d054fa66335fe09d99545f50415745ac86b8b56a2b9d DIST snmptt_1.4.tgz 148504 BLAKE2B b49e51d0ec207f1250536010e6475649eeca1a89f85bf31e1a7545cae2fa6ac66951916932863543336bb63a8519f35e9c54e7c67bcd14a43ed7ce6d8d63876b SHA512 200ebe565766c15f85b9b9cbc178baeef740663efc951af4c790c4b28d27398c14a95c4b38306ec3503cefe9b86634d5f24ec5f2482694f07789e9025ea39a80 diff --git a/net-analyzer/snmptt/snmptt-1.4.2.ebuild b/net-analyzer/snmptt/snmptt-1.4.2.ebuild new file mode 100644 index 000000000000..3596946f8312 --- /dev/null +++ b/net-analyzer/snmptt/snmptt-1.4.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="SNMP Trap Translator" +SRC_URI="mirror://sourceforge/snmptt/${P/-/_}.tgz" +HOMEPAGE="http://www.snmptt.org/" +LICENSE="GPL-2" + +KEYWORDS="~amd64 ~ppc ~x86" +SLOT="0" + +S="${WORKDIR}/${P/-/_}" + +RDEPEND=" + dev-lang/perl + dev-perl/Config-IniFiles + net-analyzer/net-snmp +" + +src_prepare() { + default + + # bug 105354, daemonize by default + sed -i \ + -e 's:mode = standalone:mode = daemon:g' \ + -e '/pid_file/s:/var/run:/run:g' \ + snmptt.ini || die + + echo "traphandle default /usr/sbin/snmptt" > examples/snmptrapd.conf.sample || die +} + +src_install() { + into /usr + dosbin \ + snmptt \ + snmptt-net-snmp-test \ + snmpttconvert \ + snmpttconvertmib \ + snmptthandler \ + snmptthandler-embedded + + insinto /etc/snmp + doins \ + examples/snmptrapd.conf.sample \ + examples/snmptt.conf.generic \ + snmptt.ini + newins examples/snmptt.conf.generic snmptt.conf + + dodoc ChangeLog README sample-trap + + docinto html + dodoc docs/* + + newinitd "${FILESDIR}"/snmptt.initd-r1 snmptt + + insinto /etc/logrotate.d + newins snmptt.logrotate snmptt +} |