# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Utility for managing and configuring devices that support IPMI v1.5 and v2.0 specifications" HOMEPAGE="http://ipmitool.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~x86" IUSE="freeipmi" RDEPEND="dev-libs/openssl freeipmi? (sys-libs/freeipmi)" DEPEND="${RDEPEND} virtual/os-headers" src_compile() { econf \ --enable-intf-lan \ --enable-intf-lanplus \ $(use_enable freeipmi intf-free) \ --enable-intf-open \ --enable-intf-imb \ --enable-intf-bmc \ --enable-ipmishell \ --with-kerneldir=/usr \ || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" PACKAGE="${PF}" install || die "emake install failed" newinitd ${FILESDIR}/ipmievd.sh ipmievd newconfd ${FILESDIR}/ipmievd.conf ipmievd into /usr dobin contrib/bmclanconf }