| 1 |
dev-zero |
1.1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
cardoe |
1.2 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt-snmp/libvirt-snmp-0.0.2-r1.ebuild,v 1.1 2012/06/26 09:34:34 dev-zero Exp $ |
| 4 |
dev-zero |
1.1 |
|
| 5 |
|
|
EAPI=4 |
| 6 |
|
|
|
| 7 |
|
|
DESCRIPTION="Provides SNMP functionality for libvirt." |
| 8 |
|
|
HOMEPAGE="http://libvirt.org" |
| 9 |
|
|
SRC_URI="http://www.libvirt.org/sources/snmp/${P}.tar.gz" |
| 10 |
|
|
|
| 11 |
|
|
LICENSE="GPL-2" |
| 12 |
|
|
SLOT="0" |
| 13 |
|
|
KEYWORDS="~amd64" |
| 14 |
|
|
IUSE="" |
| 15 |
|
|
|
| 16 |
|
|
RDEPEND="app-emulation/libvirt |
| 17 |
|
|
net-analyzer/net-snmp" |
| 18 |
|
|
DEPEND="${RDEPEND} |
| 19 |
|
|
virtual/pkgconfig" |
| 20 |
|
|
|
| 21 |
|
|
src_install() { |
| 22 |
|
|
default |
| 23 |
|
|
newinitd "${FILESDIR}/libvirt-snmp.initd-r1" "${PN}" |
| 24 |
|
|
newconfd "${FILESDIR}/libvirt-snmp.confd" "${PN}" |
| 25 |
|
|
} |
| 26 |
|
|
|
| 27 |
|
|
pkg_postinst() { |
| 28 |
|
|
elog "This daemon runs as an AgentX sub-daemon for snmpd. You should therefore" |
| 29 |
|
|
elog "enable the AgentX functionality in snmpd by specifying the following" |
| 30 |
|
|
elog "in /etc/snmp/snmpd.conf:" |
| 31 |
|
|
elog " master agentx" |
| 32 |
|
|
elog "It is further recommended to send traps to the localhost as well using" |
| 33 |
|
|
elog "this option:" |
| 34 |
|
|
elog " trap2sink localhost" |
| 35 |
|
|
elog "More information is available here:" |
| 36 |
|
|
elog " http://wiki.libvirt.org/page/Libvirt-snmp" |
| 37 |
|
|
} |