blob: 22168655302fb74287373e8895ac2f09df2a7e4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/jffnms/jffnms-0.8.2.ebuild,v 1.1 2006/03/13 23:22:34 angusyoung Exp $
inherit eutils
DESCRIPTION="Network Management and Monitoring System."
HOMEPAGE="http://www.jffnms.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="mysql postgres snmp"
DEPEND="net-www/apache
mysql? ( dev-db/mysql )
postgres? ( dev-db/postgresql )
>=net-analyzer/rrdtool-1.0.33
media-libs/gd
=dev-lang/php-4*
dev-php/PEAR-PEAR
snmp? ( net-analyzer/net-snmp )
sys-apps/diffutils
media-gfx/graphviz
net-analyzer/nmap
net-analyzer/fping
app-mobilephone/smsclient"
pkg_setup() {
local flags="gd wddx sockets session spl cli"
if use mysql ; then
flags="$flags mysql"
fi
if use postgres ; then
flags="$flags postgres"
fi
for flagname in $flags ; do
if ! built_with_use "=dev-lang/php-4*" $flagname; then
eerror "You need to build php with $flagname USE flag"
die "Jffnms requires php with $flagname USE flag"
fi
done
enewgroup jffnms
enewuser jffnms -1 /bin/bash /dev/null jffnms,apache
}
src_install(){
MY_DESTDIR="/opt/jffnms"
dodir ${MY_DESTDIR}
cp -r * "${D}${MY_DESTDIR}" || die
chown -R jffnms:apache "${D}${MY_DESTDIR}" || die
chmod -R ug+gw "${D}${MY_DESTDIR}" || die
einfo "JFFNMS has been partialy installed on your system. However you"
einfo "still need proceed with final installation and configuration."
einfo "You can visit http://www.gentoo.org/doc/en/jffnms.xml in order"
einfo "to get detailed information on how to get jffnms up and running."
}
|