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