55 lines
1.3 KiB
Bash
55 lines
1.3 KiB
Bash
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=4
|
|
inherit eutils
|
|
|
|
DESCRIPTION="Open source implementation of the Service Availability Forum (SAF) Hardware Platform Interface (HPI)"
|
|
HOMEPAGE="http://www.openhpi.org/"
|
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="BSD GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~x86 ~amd64"
|
|
IUSE="snmp"
|
|
|
|
COMMONDEPEND=">=dev-libs/glib-2.12:2
|
|
sys-fs/e2fsprogs
|
|
sys-fs/sysfsutils
|
|
>=sys-libs/openipmi-1.4.20
|
|
snmp? ( >=net-analyzer/net-snmp-5.07 )"
|
|
RDEPEND="${COMMONDEPEND}"
|
|
DEPEND="${COMMONDEPEND}
|
|
>=sys-devel/autoconf-2.57
|
|
>=sys-devel/automake-1.8
|
|
>=sys-devel/gcc-3.2.0
|
|
virtual/os-headers"
|
|
|
|
src_configure() {
|
|
econf --with-varpath=/var/lib/openhpi \
|
|
--enable-clients \
|
|
--enable-cpp_wrappers \
|
|
--enable-daemon \
|
|
--enable-ipmidirect \
|
|
--enable-sysfs \
|
|
--enable-watchdog \
|
|
--enable-simulator \
|
|
--disable-testcover \
|
|
$(use_enable snmp snmp_bc)
|
|
}
|
|
|
|
src_install() {
|
|
# Stage main files.
|
|
emake DESTDIR="${D}" install
|
|
|
|
# Stage conf.d-file and init.d-script.
|
|
newinitd "${FILESDIR}"/openhpi-initd openhpid
|
|
newconfd "${FILESDIR}"/openhpi-confd openhpid
|
|
|
|
# Stage documentation.
|
|
dodoc README
|
|
|
|
# Make sure the data dir exists or openhpid will fail silently.
|
|
keepdir /var/lib/openhpi/
|
|
}
|