/[gentoo-x86]/net-analyzer/cacti-spine/cacti-spine-0.8.7g.ebuild
Gentoo

Contents of /net-analyzer/cacti-spine/cacti-spine-0.8.7g.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Mon May 21 19:10:55 2012 UTC (2 years, 2 months ago) by xarthisius
Branch: MAIN
Changes since 1.8: +2 -2 lines
Add missing inheritance of eutils.eclass

(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti-spine/cacti-spine-0.8.7g.ebuild,v 1.8 2012/04/01 17:23:18 armin76 Exp $
4
5 EAPI="2"
6 inherit autotools eutils
7
8 UPSTREAM_PATCHES="unified_issues"
9
10 MY_P=${PN}-${PV/_p/-}
11
12 DESCRIPTION="Spine is a fast poller for Cacti (formerly known as Cactid)"
13 HOMEPAGE="http://cacti.net/spine_info.php"
14 SRC_URI="http://www.cacti.net/downloads/spine/${MY_P}.tar.gz"
15
16 LICENSE="LGPL-2.1"
17 SLOT="0"
18 KEYWORDS="amd64 ~ppc ~ppc64 x86"
19 IUSE=""
20
21 DEPEND="net-analyzer/net-snmp
22 dev-libs/openssl
23 virtual/mysql"
24 RDEPEND="${DEPEND}
25 >net-analyzer/cacti-0.8.7"
26
27 if [[ -n ${UPSTREAM_PATCHES} ]]; then
28 for i in ${UPSTREAM_PATCHES}; do
29 SRC_URI="${SRC_URI} http://www.cacti.net/downloads/spine/patches/${PV}/${i}.patch"
30 done
31 fi
32
33 src_prepare() {
34 if [[ -n ${UPSTREAM_PATCHES} ]]; then
35 for i in ${UPSTREAM_PATCHES} ; do
36 EPATCH_OPTS="-p1 -N" epatch "${DISTDIR}"/${i}.patch
37 done
38 fi
39
40 sed -i -e 's/^bin_PROGRAMS/sbin_PROGRAMS/' Makefile.am
41 AT_M4DIR="config" eautoreconf
42 }
43
44 src_install() {
45 dosbin spine || die
46 insinto /etc/
47 insopts -m0640 -o root
48 newins spine.conf{.dist,} || die
49 dodoc ChangeLog README || die
50 }
51
52 pkg_postinst() {
53 ewarn "NOTE: If you upgraded from cactid, do not forgive to setup spine"
54 ewarn "instead of cactid through web interface."
55 ewarn
56 elog "Please see the cacti's site for installation instructions:"
57 elog
58 elog "http://cacti.net/spine_install.php"
59 echo
60 ewarn "/etc/spine.conf should be readable by webserver, thus after you"
61 ewarn "decide on webserver do not forget to run the following command:"
62 ewarn
63 ewarn " # chown root:wwwgroup /etc/spine.conf"
64 echo
65 }

  ViewVC Help
Powered by ViewVC 1.1.20