# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Cpqarrayd is a daemon to monitor HP (compaq) arraycontrollers." HOMEPAGE="http://www.strocamp.net/opensource/cpqarrayd.php" SRC_URI="http://www.strocamp.net/opensource/compaq/downloads/${P}.tar.gz" LICENSE="GPL-2" WANT_AUTOMAKE=1.9 inherit autotools SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="snmp" DEPEND="virtual/linux-sources snmp? ( net-analyzer/net-snmp )" RDEPEND="${DEPEND}" src_compile() { local myconf="" if ! use snmp ; then myconf="${myconf} --disable-snmptrap" fi econf \ ${myconf} || die "econf failed" emake || die "emake failed" } src_install() { emake install DESTDIR="${D}" || die "make install failed" newinitd "${FILESDIR}"/cpqarrayd.rc cpqarrayd newconfd "${FILESDIR}"/cpqarrayd.confd cpqarrayd }