# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/centreon/centreon-1.4.2.4.ebuild,v 1.3 2008/04/03 08:30:17 hollow Exp $ inherit depend.apache depend.php DESCRIPTION="Centreon is a monitoring web-frontend based on the nagios monitoring engine" HOMEPAGE="http://www.centreon.org" SRC_URI="http://download.centreon.com/${PN}/${P}.tar.gz" EAPI=2 LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="ldap xmlwriter" #version 1 cannot be upgraded DEPEND="!> "${SUDOERS}" echo "# centreon configuration" >> "${SUDOERS}" echo "User_Alias CENTREON=apache" >> "${SUDOERS}" echo "CENTREON ALL = NOPASSWD: /etc/init.d/nagios restart" >> "${SUDOERS}" echo "CENTREON ALL = NOPASSWD: /etc/init.d/nagios reload" >> "${SUDOERS}" echo "CENTREON ALL = NOPASSWD: /etc/init.d/snmptrapd restart" >> "${SUDOERS}" fi }