/[gentoo-x86]/net-analyzer/snmptt/snmptt-1.3.ebuild
Gentoo

Contents of /net-analyzer/snmptt/snmptt-1.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sat May 12 16:31:50 2012 UTC (12 months, 1 week ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Drop sparc keywords

(Portage version: 2.1.10.53/cvs/Linux ia64)

1 armin76 1.2 # Copyright 1999-2012 Gentoo Foundation
2 jer 1.1 # Distributed under the terms of the GNU General Public License v2
3 armin76 1.2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/snmptt/snmptt-1.3.ebuild,v 1.1 2011/06/09 18:27:26 jer Exp $
4 jer 1.1
5     EAPI="3"
6    
7     MY_P="${P/-/_}"
8    
9     DESCRIPTION="SNMP Trap Translator"
10     SRC_URI="mirror://sourceforge/snmptt/${MY_P}.tgz"
11     HOMEPAGE="http://www.snmptt.org/"
12    
13     LICENSE="GPL-2"
14    
15 armin76 1.2 KEYWORDS="~amd64 ~ppc ~x86"
16 jer 1.1 SLOT="0"
17     IUSE="mysql postgres"
18    
19     S="${WORKDIR}/${MY_P}"
20    
21     RDEPEND="
22     dev-lang/perl
23     dev-perl/Config-IniFiles
24     net-analyzer/net-snmp
25     mysql? ( dev-perl/DBD-mysql )
26     postgres? ( dev-perl/DBD-Pg )
27     "
28    
29     src_prepare() {
30     # bug 105354, daemonize this thing
31     sed -i -e "s:mode = standalone:mode = daemon:g" snmptt.ini || die
32    
33     echo "traphandle default /usr/sbin/snmptt" >examples/snmptrapd.conf.sample
34     }
35    
36     src_install() {
37     into /usr
38     dosbin snmptt snmptthandler snmptt-net-snmp-test snmpttconvert \
39     snmpttconvertmib || die
40    
41     insinto /etc/snmp
42     doins snmptt.ini examples/snmptt.conf.generic \
43     examples/snmptrapd.conf.sample || die
44     newins examples/snmptt.conf.generic snmptt.conf || die
45    
46     dodoc BUGS ChangeLog README sample-trap
47     dohtml docs/faqs.html docs/index.html docs/layout1.css docs/snmptt.html \
48     docs/snmpttconvert.html docs/snmpttconvertmib.html || die
49    
50     newinitd "${FILESDIR}"/snmptt.initd snmptt || die
51     }

  ViewVC Help
Powered by ViewVC 1.1.13