summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2011-05-11 09:02:31 +0000
committerTiziano Müller <dev-zero@gentoo.org>2011-05-11 09:02:31 +0000
commit5985fcca5c3bc88a3c208e787addcc75ff8d0cc0 (patch)
tree289c476472392152f18deaef5f46aa56c85c3d50 /app-emulation/libvirt-snmp
parentClean up old revisions. (diff)
downloadhistorical-5985fcca5c3bc88a3c208e787addcc75ff8d0cc0.tar.gz
historical-5985fcca5c3bc88a3c208e787addcc75ff8d0cc0.tar.bz2
historical-5985fcca5c3bc88a3c208e787addcc75ff8d0cc0.zip
Initial commit, ebuild written by me.
Package-Manager: portage-2.1.9.46/cvs/Linux x86_64
Diffstat (limited to 'app-emulation/libvirt-snmp')
-rw-r--r--app-emulation/libvirt-snmp/ChangeLog11
-rw-r--r--app-emulation/libvirt-snmp/files/libvirt-snmp.confd6
-rw-r--r--app-emulation/libvirt-snmp/files/libvirt-snmp.initd26
-rw-r--r--app-emulation/libvirt-snmp/libvirt-snmp-0.0.2.ebuild37
-rw-r--r--app-emulation/libvirt-snmp/metadata.xml9
5 files changed, 89 insertions, 0 deletions
diff --git a/app-emulation/libvirt-snmp/ChangeLog b/app-emulation/libvirt-snmp/ChangeLog
new file mode 100644
index 000000000000..9eb8da6b9ca0
--- /dev/null
+++ b/app-emulation/libvirt-snmp/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-emulation/libvirt-snmp
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt-snmp/ChangeLog,v 1.1 2011/05/11 08:57:32 dev-zero Exp $
+
+*libvirt-snmp-0.0.2 (11 May 2011)
+
+ 11 May 2011; Tiziano Müller <dev-zero@gentoo.org>
+ +libvirt-snmp-0.0.2.ebuild, +files/libvirt-snmp.confd,
+ +files/libvirt-snmp.initd, +metadata.xml:
+ Initial commit, ebuild written by me.
+
diff --git a/app-emulation/libvirt-snmp/files/libvirt-snmp.confd b/app-emulation/libvirt-snmp/files/libvirt-snmp.confd
new file mode 100644
index 000000000000..f1685bb5e9d9
--- /dev/null
+++ b/app-emulation/libvirt-snmp/files/libvirt-snmp.confd
@@ -0,0 +1,6 @@
+
+# Specify the URI where your libvirt instance is listening
+LIBVIRT_DEFAULT_URI="qemu:///system"
+
+# additional options
+LIBVIRT_SNMP_OPTIONS=""
diff --git a/app-emulation/libvirt-snmp/files/libvirt-snmp.initd b/app-emulation/libvirt-snmp/files/libvirt-snmp.initd
new file mode 100644
index 000000000000..c8c5020f2c9b
--- /dev/null
+++ b/app-emulation/libvirt-snmp/files/libvirt-snmp.initd
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt-snmp/files/libvirt-snmp.initd,v 1.1 2011/05/11 08:57:32 dev-zero Exp $
+
+depend() {
+ need snmpd
+ use snmptrapd
+ use libvirtd
+}
+
+start() {
+ ebegin "Starting libvirt subagent"
+ start-stop-daemon --start \
+ --env LIBVIRT_DEFAULT_URI="${LIBVIRT_DEFAULT_URI}" \
+ --exec /usr/bin/libvirtMib_subagent \
+ -- ${LIBVIRT_SNMP_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping libvirt subagent"
+ start-stop-daemon --stop \
+ --exec /usr/bin/libvirtMib_subagent
+ eend $?
+}
diff --git a/app-emulation/libvirt-snmp/libvirt-snmp-0.0.2.ebuild b/app-emulation/libvirt-snmp/libvirt-snmp-0.0.2.ebuild
new file mode 100644
index 000000000000..fd91c396ec31
--- /dev/null
+++ b/app-emulation/libvirt-snmp/libvirt-snmp-0.0.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2011 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.ebuild,v 1.1 2011/05/11 08:57:32 dev-zero Exp $
+
+EAPI=4
+
+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}
+ dev-util/pkgconfig"
+
+src_install() {
+ default
+ newinitd "${FILESDIR}/libvirt-snmp.initd" "${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"
+}
diff --git a/app-emulation/libvirt-snmp/metadata.xml b/app-emulation/libvirt-snmp/metadata.xml
new file mode 100644
index 000000000000..9f8438a7910f
--- /dev/null
+++ b/app-emulation/libvirt-snmp/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>dev-zero@gentoo.org</email>
+ <name>Tiziano Müller</name>
+ </maintainer>
+</pkgmetadata>