diff options
author | Peter Volkov <pva@gentoo.org> | 2009-10-06 18:31:04 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2009-10-06 18:31:04 +0000 |
commit | d63c635f438e571ded187d6fe6e5f47da7db5fcf (patch) | |
tree | eb23ebf8ec6a669025846fd9869e9c3a76833ff1 /net-analyzer | |
parent | Version bump (diff) | |
download | gentoo-2-d63c635f438e571ded187d6fe6e5f47da7db5fcf.tar.gz gentoo-2-d63c635f438e571ded187d6fe6e5f47da7db5fcf.tar.bz2 gentoo-2-d63c635f438e571ded187d6fe6e5f47da7db5fcf.zip |
Added upstream patches.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/cacti-spine/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/cacti-spine/cacti-spine-0.8.7e-r1.ebuild | 68 |
2 files changed, 74 insertions, 1 deletions
diff --git a/net-analyzer/cacti-spine/ChangeLog b/net-analyzer/cacti-spine/ChangeLog index 4d3d8f764436..ad4ca18aeebe 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-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti-spine/ChangeLog,v 1.14 2009/10/06 18:07:29 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti-spine/ChangeLog,v 1.15 2009/10/06 18:31:04 pva Exp $ + +*cacti-spine-0.8.7e-r1 (06 Oct 2009) + + 06 Oct 2009; Peter Volkov <pva@gentoo.org> +cacti-spine-0.8.7e-r1.ebuild: + Added upstream patches. 06 Oct 2009; Peter Volkov <pva@gentoo.org> -cacti-spine-0.8.7a_p4650.ebuild: diff --git a/net-analyzer/cacti-spine/cacti-spine-0.8.7e-r1.ebuild b/net-analyzer/cacti-spine/cacti-spine-0.8.7e-r1.ebuild new file mode 100644 index 000000000000..9c6ec8c71a0c --- /dev/null +++ b/net-analyzer/cacti-spine/cacti-spine-0.8.7e-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2009 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.7e-r1.ebuild,v 1.1 2009/10/06 18:31:04 pva Exp $ + +inherit autotools + +UPSTREAM_PATCHES="snmp_v3_fix + mysql_client_reconnect + ping_reliability" + +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/${i}.patch" + done +fi + +src_unpack() { + unpack ${MY_P}.tar.gz + cd "${S}" + 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 + doins spine.conf || 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 +} |