summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2010-11-15 15:40:25 +0000
committerPeter Volkov <pva@gentoo.org>2010-11-15 15:40:25 +0000
commit02f7ba5355bf94c4bb945d6edb07ea9e701afe4b (patch)
treeffdf36e8a8a62636f148f738da4ad80bc52425f3 /net-analyzer/cacti-spine
parentVersion bump, bug #324457, thank Luca Lesinigo for report and Jens Ott for in... (diff)
downloadhistorical-02f7ba5355bf94c4bb945d6edb07ea9e701afe4b.tar.gz
historical-02f7ba5355bf94c4bb945d6edb07ea9e701afe4b.tar.bz2
historical-02f7ba5355bf94c4bb945d6edb07ea9e701afe4b.zip
Version bump, bug #324457, thank Jens Ott.
Package-Manager: portage-2.1.9.24/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/cacti-spine')
-rw-r--r--net-analyzer/cacti-spine/ChangeLog7
-rw-r--r--net-analyzer/cacti-spine/cacti-spine-0.8.7g.ebuild65
2 files changed, 71 insertions, 1 deletions
diff --git a/net-analyzer/cacti-spine/ChangeLog b/net-analyzer/cacti-spine/ChangeLog
index 684463f7d387..1dc499406469 100644
--- a/net-analyzer/cacti-spine/ChangeLog
+++ b/net-analyzer/cacti-spine/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/cacti-spine
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti-spine/ChangeLog,v 1.20 2010/01/11 22:11:35 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti-spine/ChangeLog,v 1.21 2010/11/15 15:40:25 pva Exp $
+
+*cacti-spine-0.8.7g (15 Nov 2010)
+
+ 15 Nov 2010; Peter Volkov <pva@gentoo.org> +cacti-spine-0.8.7g.ebuild:
+ Version bump, bug #324457, thank Jens Ott.
11 Jan 2010; Peter Volkov <pva@gentoo.org> -cacti-spine-0.8.7a.ebuild,
-cacti-spine-0.8.7c.ebuild, -cacti-spine-0.8.7e.ebuild:
diff --git a/net-analyzer/cacti-spine/cacti-spine-0.8.7g.ebuild b/net-analyzer/cacti-spine/cacti-spine-0.8.7g.ebuild
new file mode 100644
index 000000000000..8221130164c9
--- /dev/null
+++ b/net-analyzer/cacti-spine/cacti-spine-0.8.7g.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti-spine/cacti-spine-0.8.7g.ebuild,v 1.1 2010/11/15 15:40:25 pva Exp $
+
+EAPI="2"
+inherit autotools
+
+UPSTREAM_PATCHES="unified_issues"
+
+MY_P=${PN}-${PV/_p/-}
+
+DESCRIPTION="Spine is a fast poller for Cacti (formerly known as Cactid)"
+HOMEPAGE="http://cacti.net/spine_info.php"
+SRC_URI="http://www.cacti.net/downloads/spine/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND="net-analyzer/net-snmp
+ dev-libs/openssl
+ virtual/mysql"
+RDEPEND="${DEPEND}
+ >net-analyzer/cacti-0.8.7"
+
+if [[ -n ${UPSTREAM_PATCHES} ]]; then
+ for i in ${UPSTREAM_PATCHES}; do
+ SRC_URI="${SRC_URI} http://www.cacti.net/downloads/spine/patches/${PV}/${i}.patch"
+ done
+fi
+
+src_prepare() {
+ if [[ -n ${UPSTREAM_PATCHES} ]]; then
+ for i in ${UPSTREAM_PATCHES} ; do
+ EPATCH_OPTS="-p1 -N" epatch "${DISTDIR}"/${i}.patch
+ done
+ fi
+
+ sed -i -e 's/^bin_PROGRAMS/sbin_PROGRAMS/' Makefile.am
+ AT_M4DIR="config" eautoreconf
+}
+
+src_install() {
+ dosbin spine || die
+ insinto /etc/
+ insopts -m0640 -o root
+ newins spine.conf{.dist,} || die
+ dodoc ChangeLog README || die
+}
+
+pkg_postinst() {
+ ewarn "NOTE: If you upgraded from cactid, do not forgive to setup spine"
+ ewarn "instead of cactid through web interface."
+ ewarn
+ elog "Please see the cacti's site for installation instructions:"
+ elog
+ elog "http://cacti.net/spine_install.php"
+ echo
+ ewarn "/etc/spine.conf should be readable by webserver, thus after you"
+ ewarn "decide on webserver do not forget to run the following command:"
+ ewarn
+ ewarn " # chown root:wwwgroup /etc/spine.conf"
+ echo
+}