diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /net-analyzer/snmptt/snmptt-1.4.2.ebuild | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'net-analyzer/snmptt/snmptt-1.4.2.ebuild')
-rw-r--r-- | net-analyzer/snmptt/snmptt-1.4.2.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
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..027b00ad2231 --- /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 +} |