# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A tool for integrating Nagios with RRD-tool" HOMEPAGE="http://apan.sourceforge.net/" MY_P=${P}-sql SRC_URI="mirror://sourceforge/apan/${MY_P}.tar.gz" RESTRICT="nomirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" RDEPEND="=net-analyzer/nagios-core-1* net-analyzer/rrdtool dev-db/mysql app-shells/bash sys-devel/bc " S=${WORKDIR}/${PN}-sql src_install() { APAN="/usr/nagios/apan" dodir ${APAN} insinto ${APAN} exeinto ${APAN} doexe apan-sql.cgi apan-sql.sh apanconf-sql createdb.sh generate-sql.cgi import.sh doins apan.defs apanconf.defs generate-sql.cgi graph.png import.sh sql.conf for apansubdir in libexec plugs-sql ; do mv ${S}/${apansubdir} ${D}/${APAN}/${apansubdir} done dodoc CHANGELOG README README.apanconf } pkg_postinst() { einfo "APAN uses MySQL to store its configuration." einfo "Please read the installation instructions in the provided README." }