diff options
Diffstat (limited to 'net-analyzer/jffnms/jffnms-0.8.3-r1.ebuild')
-rw-r--r-- | net-analyzer/jffnms/jffnms-0.8.3-r1.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/net-analyzer/jffnms/jffnms-0.8.3-r1.ebuild b/net-analyzer/jffnms/jffnms-0.8.3-r1.ebuild new file mode 100644 index 000000000000..0b4b0ae4ea0e --- /dev/null +++ b/net-analyzer/jffnms/jffnms-0.8.3-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/jffnms/jffnms-0.8.3-r1.ebuild,v 1.1 2007/02/01 16:37:54 jokey Exp $ + +inherit eutils depend.php + +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 + net-analyzer/rrdtool + media-libs/gd + dev-php/PEAR-PEAR + net-analyzer/net-snmp + sys-apps/diffutils + app-mobilephone/smsclient" + +RDEPEND="${DEPEND} + media-gfx/graphviz + net-analyzer/nmap + net-analyzer/fping" + +need_php_cli + +pkg_setup() { + local flags="pcre session snmp sockets wddx" + use mysql && flags="${flags} mysql" + use postgres && flags="${flags} postgres" + + if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} \ + || ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then + eerror + eerror "${PHP_PKG} needs to be re-installed with all of the following" + eerror "USE flags enabled:" + eerror + eerror "${flags}" + eerror + eerror "as well as any of the following USE flags enabled:" + eerror + eerror "gd or gd-external" + eerror + die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external" + fi + + enewgroup jffnms + enewuser jffnms -1 /bin/bash -1 jffnms,apache +} + +src_install(){ + INSTALL_DIR="/opt/${PN}" + IMAGE_DIR="${D}${INSTALL_DIR}" + + dodir "${INSTALL_DIR}" + cp -r * "${IMAGE_DIR}" || die + rm -f "${IMAGE_DIR}/LICENSE" + + # Clean up windows related stuff + rm -f "${IMAGE_DIR}/*.win32.txt" + rm -rf "${IMAGE_DIR}/docs/windows" + rm -rf "${IMAGE_DIR}/engine/windows" + + chown -R jffnms:apache "${IMAGE_DIR}" || die + chmod -R ug+rw "${IMAGE_DIR}" || die + + elog "${PN} has been partialy installed on your system. However you" + elog "still need proceed with final installation and configuration." + elog "You can visit http://www.gentoo.org/doc/en/jffnms.xml in order" + elog "to get detailed information on how to get jffnms up and running." +} |