LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="net-analyzer/nagios-core dev-lang/php net-www/apache" pkg_setup() { if built_with_use --missing true dev-lang/php apache2 ; then eerror "You MUST build dev-lang/php with the apache2 USE flag" die "You MUST build dev-lang/php with the apache2 USE flag" fi if built_with_use --missing true dev-lang/php gd ; then eerror "You MUST build dev-lang/php with the gd USE flag" die "You MUST build dev-lang/php with the gd USE flag" fi if built_with_use --missing true dev-lang/php mysql ; then eerror "You MUST build dev-lang/php with the mysql USE flag" die "You MUST build dev-lang/php with the mysql USE flag" fi } src_compile() { return } src_install() { mkdir -p ${D}/usr/nagios/share mv nagvis ${D}/usr/nagios/share } pkg_postinst() { elog "You will need to set up your /usr/nagios/share/nagvis/nagvis/etc/config.ini.php file before" elog "running NagViz for the first time. there is a sample one in /usr/nagios/share/nagvis/nagvis/etc/config.ini.dist" elog "copy it to /usr/nagios/share/nagvis/nagvis/etc/config.ini.php and edit it with your favourite text editor" }