summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-emulation/libvirt-snmp
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-emulation/libvirt-snmp')
-rw-r--r--app-emulation/libvirt-snmp/Manifest2
-rw-r--r--app-emulation/libvirt-snmp/files/0001-Fix-build-rules-to-use-LDADD-to-add-libraries.patch81
-rw-r--r--app-emulation/libvirt-snmp/files/libvirt-snmp.confd6
-rw-r--r--app-emulation/libvirt-snmp/files/libvirt-snmp.initd-r127
-rw-r--r--app-emulation/libvirt-snmp/libvirt-snmp-0.0.2-r2.ebuild43
-rw-r--r--app-emulation/libvirt-snmp/libvirt-snmp-0.0.3.ebuild39
-rw-r--r--app-emulation/libvirt-snmp/metadata.xml8
7 files changed, 206 insertions, 0 deletions
diff --git a/app-emulation/libvirt-snmp/Manifest b/app-emulation/libvirt-snmp/Manifest
new file mode 100644
index 000000000000..4d1e31cc4635
--- /dev/null
+++ b/app-emulation/libvirt-snmp/Manifest
@@ -0,0 +1,2 @@
+DIST libvirt-snmp-0.0.2.tar.gz 152790 SHA256 c54896710ea7cc346a9c241738b342eb624a519166749073be3538230248be2c SHA512 13a522c765d278d3b8f8ab9f32f97c8531f6d131afcb0ce62ae397631db92ed3b585ad221a1f2b3bc17907cc4d61adca4a2071b0458a05f2bff5ca06191e1478 WHIRLPOOL b5f1ada3764d5e8cfbd81814a72b752b40bb41c7aaa7dbd0002f11d687294032773ac2543bf1e4b489c5ea2dc416174f9b7ff42fcd24f5ad824939853d17120a
+DIST libvirt-snmp-0.0.3.tar.gz 161186 SHA256 0a9a94d87d4c189011ca7643bbaf653a289fead52c9ac52fcdf69ea1feeee988 SHA512 6ffda3594ddc513e05e31e7d347a12e371dca3cc698ca790a70e2d01b2ceac6acb5dd6e3cd19723817b41aa62e0c0a49c01c47cb9ce379ac491856a7e88e5a08 WHIRLPOOL 6cc34fd80c4f1497ac4684681f3dc49451f16184b42af5d894826d1544b2d9cddf5e646456fff1439fb0a4dc3c07674136c2d5c94f071b8d08b470ed51f28887
diff --git a/app-emulation/libvirt-snmp/files/0001-Fix-build-rules-to-use-LDADD-to-add-libraries.patch b/app-emulation/libvirt-snmp/files/0001-Fix-build-rules-to-use-LDADD-to-add-libraries.patch
new file mode 100644
index 000000000000..7aa3560cc0f0
--- /dev/null
+++ b/app-emulation/libvirt-snmp/files/0001-Fix-build-rules-to-use-LDADD-to-add-libraries.patch
@@ -0,0 +1,81 @@
+From 810fef8fbf0c4f6383d870a21f729875a8e16f91 Mon Sep 17 00:00:00 2001
+From: Doug Goldstein <cardoe@cardoe.com>
+Date: Mon, 13 Aug 2012 00:18:04 -0500
+Subject: [libvirt-snmp] [PATCH] Fix build rules to use LDADD to add libraries
+
+Fix build rules to use LDADD to add libraries to support --as-needed.
+Also refactored some of the other automake variables in the same fashion
+of the libvirt's automake rules.
+
+Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
+---
+ configure.ac | 4 ++++
+ src/Makefile.am | 31 ++++++++++++++++---------------
+ 2 files changed, 20 insertions(+), 15 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index a2bb1ac..9d7d03c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -3,6 +3,10 @@ AM_INIT_AUTOMAKE([-Wall -Werror])
+ AC_CONFIG_HEADERS([config.h])
+
+ AC_PREREQ([2.50])
++
++AC_PROG_CC
++AM_PROG_CC_C_O
++
+ AC_CHECK_FUNCS([memset])
+ AC_CHECK_FUNCS([strdup])
+ AC_CHECK_HEADERS([stdlib.h])
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 6d27bf5..622a280 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,19 +1,5 @@
+ bin_PROGRAMS=libvirtMib_subagent
+
+-AM_CFLAGS = \
+- $(COVERAGE_CFLAGS) \
+- $(DRIVER_MODULE_CFLAGS) \
+- $(SNMP_CFLAGS) \
+- $(LIBVIRT_CFLAGS) \
+- $(WARN_CFLAGS) \
+- $(LOCK_CHECKING_CFLAGS)
+-
+-AM_LDFLAGS = \
+- $(COVERAGE_LDFLAGS) \
+- $(PTHREAD_LIBS) \
+- $(LIBVIRT_LIBS) \
+- $(SNMP_LIBS)
+-
+ LIBVIRT_OLD_SRCS = \
+ threads.c \
+ event_poll.c \
+@@ -58,7 +44,22 @@ HDRS = \
+ libvirtGuestTable.h
+
+ libvirtMib_subagent_SOURCES=${SRCS} ${HDRS}
+-libvirtMib_subagent_LDFLAGS=${AM_LDFLAGS}
++
++libvirtMib_subagent_CFLAGS= \
++ $(DRIVER_MODULE_CFLAGS) \
++ $(SNMP_CFLAGS) \
++ $(LIBVIRT_CFLAGS) \
++ $(COVERAGE_CFLAGS) \
++ $(WARN_CFLAGS) \
++ $(LOCK_CHECKING_CFLAGS)
++
++libvirtMib_subagent_LDFLAGS= \
++ $(COVERAGE_LDFLAGS)
++
++libvirtMib_subagent_LDADD= \
++ $(PTHREAD_LIBS) \
++ $(LIBVIRT_LIBS) \
++ $(SNMP_LIBS)
+
+ if LIBVIRT_OLD
+ libvirtMib_subagent_SOURCES+=${LIBVIRT_OLD_SRCS} ${LIBVIRT_OLD_HDRS}
+--
+1.7.8.6
+
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-r1 b/app-emulation/libvirt-snmp/files/libvirt-snmp.initd-r1
new file mode 100644
index 000000000000..46974b2b0e55
--- /dev/null
+++ b/app-emulation/libvirt-snmp/files/libvirt-snmp.initd-r1
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+ # "--exec /usr/bin/libvirtMib_subagent" does not work and the name gets truncated
+ start-stop-daemon --stop \
+ --name libvirtMib_suba
+ eend $?
+}
diff --git a/app-emulation/libvirt-snmp/libvirt-snmp-0.0.2-r2.ebuild b/app-emulation/libvirt-snmp/libvirt-snmp-0.0.2-r2.ebuild
new file mode 100644
index 000000000000..d4162ceb5225
--- /dev/null
+++ b/app-emulation/libvirt-snmp/libvirt-snmp-0.0.2-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+}
diff --git a/app-emulation/libvirt-snmp/libvirt-snmp-0.0.3.ebuild b/app-emulation/libvirt-snmp/libvirt-snmp-0.0.3.ebuild
new file mode 100644
index 000000000000..fdff7d8dd493
--- /dev/null
+++ b/app-emulation/libvirt-snmp/libvirt-snmp-0.0.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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_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"
+}
diff --git a/app-emulation/libvirt-snmp/metadata.xml b/app-emulation/libvirt-snmp/metadata.xml
new file mode 100644
index 000000000000..75dd2ca7d302
--- /dev/null
+++ b/app-emulation/libvirt-snmp/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>dev-zero@gentoo.org</email>
+ <name>Tiziano Müller</name>
+ </maintainer>
+</pkgmetadata>