/[gentoo-x86]/sys-libs/openhpi/openhpi-2.0.3.ebuild
Gentoo

Contents of /sys-libs/openhpi/openhpi-2.0.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Jul 22 11:54:24 2015 UTC (4 years, 2 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/openhpi/openhpi-2.0.3.ebuild,v 1.4 2014/03/12 03:11:06 patrick Exp $
4
5 inherit flag-o-matic
6
7 DESCRIPTION="Open source implementation of the Service Availability Forum (SAF) Hardware Platform Interface (HPI)"
8 HOMEPAGE="http://openhpi.sourceforge.net/"
9 MY_P="${P}-1"
10 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="~x86"
14 IUSE="snmp examples"
15 RDEPEND=">=sys-fs/sysfsutils-1.0
16 >=sys-libs/openipmi-0.26
17 <sys-libs/openipmi-1.4
18 snmp? ( >=net-analyzer/net-snmp-5.07 )"
19 DEPEND="${RDEPEND}
20 virtual/os-headers"
21
22 src_compile() {
23 local myconf
24 myconf="${myconf} `use_enable snmp snmp_client`"
25 myconf="${myconf} `use_enable snmp snmp_bc`"
26 myconf="${myconf} `use_enable examples`"
27
28 # these binaries are all system-core stuff
29 # so I'm putting them into sbin
30 econf \
31 --bindir='/usr/sbin' \
32 --with-confpath=/etc/openhpi/ \
33 --with-varpath=/var/lib/openhpi/ \
34 --enable-thread \
35 --enable-daemon \
36 --enable-shell_client \
37 --enable-dummy \
38 --enable-watchdog \
39 --enable-ipmi \
40 --enable-sysfs \
41 --enable-ipmidirect \
42 --enable-remote_client \
43 --enable-simulator \
44 --disable-testcover \
45 ${myconf} \
46 || die "econf failed"
47 emake || die "emake failed"
48 }
49
50 src_install() {
51 dodoc COPYING README
52 emake \
53 DESTDIR="${D}" \
54 docdir="/usr/share/doc/${PF}" \
55 mkinstalldirs="mkdir -pv" \
56 install install-data-local \
57 || die "emake install failed"
58 cd ${S}/examples
59 emake \
60 DESTDIR="${D}" \
61 docdir="/usr/share/doc/${PF}" \
62 mkinstalldirs="mkdir -pv" \
63 install-data-local \
64 || die "emake install-data-local for config failed"
65 if use examples; then
66 dodoc list_resources*.c
67 newsbin list_resources hpi_list_resources
68 [ -f list_resources_threaded ] && newsbin list_resources_threaded hpi_list_resources_threaded
69 fi
70 keepdir /var/lib/openhpi/
71 }

  ViewVC Help
Powered by ViewVC 1.1.20