Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/cacti-spine: ChangeLog cacti-spine-0.8.7e-r1.ebuild
Date: Tue, 06 Oct 2009 18:31:09
Message-Id: E1MvEoT-0000vd-6C@stork.gentoo.org
1 pva 09/10/06 18:31:05
2
3 Modified: ChangeLog
4 Added: cacti-spine-0.8.7e-r1.ebuild
5 Log:
6 Added upstream patches.
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.15 net-analyzer/cacti-spine/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti-spine/ChangeLog?rev=1.15&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti-spine/ChangeLog?rev=1.15&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti-spine/ChangeLog?r1=1.14&r2=1.15
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/cacti-spine/ChangeLog,v
19 retrieving revision 1.14
20 retrieving revision 1.15
21 diff -u -r1.14 -r1.15
22 --- ChangeLog 6 Oct 2009 18:07:29 -0000 1.14
23 +++ ChangeLog 6 Oct 2009 18:31:04 -0000 1.15
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-analyzer/cacti-spine
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti-spine/ChangeLog,v 1.14 2009/10/06 18:07:29 pva Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti-spine/ChangeLog,v 1.15 2009/10/06 18:31:04 pva Exp $
29 +
30 +*cacti-spine-0.8.7e-r1 (06 Oct 2009)
31 +
32 + 06 Oct 2009; Peter Volkov <pva@g.o> +cacti-spine-0.8.7e-r1.ebuild:
33 + Added upstream patches.
34
35 06 Oct 2009; Peter Volkov <pva@g.o>
36 -cacti-spine-0.8.7a_p4650.ebuild:
37
38
39
40 1.1 net-analyzer/cacti-spine/cacti-spine-0.8.7e-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti-spine/cacti-spine-0.8.7e-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/cacti-spine/cacti-spine-0.8.7e-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: cacti-spine-0.8.7e-r1.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $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 $
50
51 inherit autotools
52
53 UPSTREAM_PATCHES="snmp_v3_fix
54 mysql_client_reconnect
55 ping_reliability"
56
57 MY_P=${PN}-${PV/_p/-}
58
59 DESCRIPTION="Spine is a fast poller for Cacti (formerly known as Cactid)"
60 HOMEPAGE="http://cacti.net/spine_info.php"
61 SRC_URI="http://www.cacti.net/downloads/spine/${MY_P}.tar.gz"
62
63 LICENSE="LGPL-2.1"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
66 IUSE=""
67
68 DEPEND="net-analyzer/net-snmp
69 dev-libs/openssl
70 virtual/mysql"
71 RDEPEND="${DEPEND}
72 >net-analyzer/cacti-0.8.7"
73
74 if [[ -n ${UPSTREAM_PATCHES} ]]; then
75 for i in ${UPSTREAM_PATCHES}; do
76 SRC_URI="${SRC_URI} http://www.cacti.net/downloads/spine/patches/${i}.patch"
77 done
78 fi
79
80 src_unpack() {
81 unpack ${MY_P}.tar.gz
82 cd "${S}"
83 if [[ -n ${UPSTREAM_PATCHES} ]]; then
84 for i in ${UPSTREAM_PATCHES} ; do
85 EPATCH_OPTS="-p1 -N" epatch "${DISTDIR}"/${i}.patch
86 done
87 fi
88
89 sed -i -e 's/^bin_PROGRAMS/sbin_PROGRAMS/' Makefile.am
90 AT_M4DIR="config" eautoreconf
91 }
92
93 src_install() {
94 dosbin spine || die
95 insinto /etc/
96 insopts -m0640 -o root
97 doins spine.conf || die
98 dodoc ChangeLog README || die
99 }
100
101 pkg_postinst() {
102 ewarn "NOTE: If you upgraded from cactid, do not forgive to setup spine"
103 ewarn "instead of cactid through web interface."
104 ewarn
105 elog "Please see the cacti's site for installation instructions:"
106 elog
107 elog "http://cacti.net/spine_install.php"
108 echo
109 ewarn "/etc/spine.conf should be readable by webserver, thus after you"
110 ewarn "decide on webserver do not forget to run the following command:"
111 ewarn
112 ewarn " # chown root:wwwgroup /etc/spine.conf"
113 echo
114 }