Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 346741 | Differences between
and this patch

Collapse All | Expand All

(-)cacti-0.8.7h.ebuild (-2 / +7 lines)
Lines 9-18 inherit eutils webapp depend.php Link Here
9
# Support for _p* in version.
9
# Support for _p* in version.
10
MY_P=${P/_p*/}
10
MY_P=${P/_p*/}
11
UPSTREAM_PATCHES=""
11
UPSTREAM_PATCHES=""
12
PLUGIN_VER="PA-v3.0"
12
13
13
DESCRIPTION="Cacti is a complete frontend to rrdtool"
14
DESCRIPTION="Cacti is a complete frontend to rrdtool"
14
HOMEPAGE="http://www.cacti.net/"
15
HOMEPAGE="http://www.cacti.net/"
15
SRC_URI="http://www.cacti.net/downloads/${MY_P}.tar.gz"
16
SRC_URI="http://www.cacti.net/downloads/${MY_P}.tar.gz
17
	plugin? ( http://www.cacti.net/downloads/pia/cacti-plugin-${PV}-${PLUGIN_VER}.tar.gz )"
16
18
17
# patches
19
# patches
18
if [[ -n ${UPSTREAM_PATCHES} ]]; then
20
if [[ -n ${UPSTREAM_PATCHES} ]]; then
Lines 23-29 fi Link Here
23
25
24
LICENSE="GPL-2"
26
LICENSE="GPL-2"
25
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
27
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
26
IUSE="snmp doc"
28
IUSE="snmp doc plugin"
27
29
28
DEPEND=""
30
DEPEND=""
29
31
Lines 39-50 RDEPEND="snmp? ( >=net-analyzer/net-snmp Link Here
39
41
40
src_unpack() {
42
src_unpack() {
41
	unpack ${MY_P}.tar.gz
43
	unpack ${MY_P}.tar.gz
44
	use plugin && unpack cacti-plugin-${PV}-${PLUGIN_VER}.tar.gz
42
	if [[ -n ${UPSTREAM_PATCHES} ]]; then
45
	if [[ -n ${UPSTREAM_PATCHES} ]]; then
43
		[ ! ${MY_P} == ${P} ] && mv ${MY_P} ${P}
46
		[ ! ${MY_P} == ${P} ] && mv ${MY_P} ${P}
44
	fi
47
	fi
45
}
48
}
46
49
47
src_prepare() {
50
src_prepare() {
51
	use plugin && epatch "${WORKDIR}"/cacti-plugin-arch/cacti-plugin-${PV}-${PLUGIN_VER}.diff
48
	if [[ -n ${UPSTREAM_PATCHES} ]]; then
52
	if [[ -n ${UPSTREAM_PATCHES} ]]; then
49
		for i in ${UPSTREAM_PATCHES} ; do
53
		for i in ${UPSTREAM_PATCHES} ; do
50
			EPATCH_OPTS="-p1 -d ${S} -N" epatch "${DISTDIR}"/${i}.patch
54
			EPATCH_OPTS="-p1 -d ${S} -N" epatch "${DISTDIR}"/${i}.patch
Lines 72-77 src_install() { Link Here
72
76
73
	dodir ${MY_HTDOCSDIR}
77
	dodir ${MY_HTDOCSDIR}
74
	cp -r . "${D}"${MY_HTDOCSDIR}
78
	cp -r . "${D}"${MY_HTDOCSDIR}
79
	use plugin && cp "${WORKDIR}"/cacti-plugin-arch/pa.sql "${D}"${MY_HTDOCSDIR}
75
80
76
	webapp_serverowned ${MY_HTDOCSDIR}/rra
81
	webapp_serverowned ${MY_HTDOCSDIR}/rra
77
	webapp_serverowned ${MY_HTDOCSDIR}/log/cacti.log
82
	webapp_serverowned ${MY_HTDOCSDIR}/log/cacti.log
(-)files/postinstall-en.txt (+3 lines)
Lines 60-62 permission to create new files in Cacti' Link Here
60
${MY_INSTALLDIR}/rra
60
${MY_INSTALLDIR}/rra
61
61
62
62
63
If you have selected to install plugin architecture, you need to execute:
64
65
shell> mysql -p --user=root cacti < ${MY_INSTALLDIR}/pa.sql

Return to bug 346741