| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/freeipmi/freeipmi-1.1.6-r1.ebuild,v 1.1 2012/07/29 02:46:27 flameeyes Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools eutils
|
| 8 |
|
| 9 |
DESCRIPTION="Provides Remote-Console and System Management Software as per IPMI v1.5/2.0"
|
| 10 |
HOMEPAGE="http://www.gnu.org/software/freeipmi/"
|
| 11 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz
|
| 12 |
http://ftp.gluster.com/pub/${PN}/${PV}/${P}.tar.gz"
|
| 13 |
LICENSE="GPL-3"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~x86"
|
| 16 |
IUSE="debug"
|
| 17 |
|
| 18 |
RDEPEND="dev-libs/libgcrypt"
|
| 19 |
DEPEND="${RDEPEND}
|
| 20 |
virtual/os-headers"
|
| 21 |
RDEPEND="${RDEPEND}
|
| 22 |
sys-apps/openrc"
|
| 23 |
|
| 24 |
src_prepare() {
|
| 25 |
epatch "${FILESDIR}"/${PN}-1.1.1-strictaliasing.patch
|
| 26 |
epatch "${FILESDIR}"/${P}-thresholds.patch
|
| 27 |
|
| 28 |
AT_M4DIR="config" eautoreconf
|
| 29 |
}
|
| 30 |
|
| 31 |
src_configure() {
|
| 32 |
econf \
|
| 33 |
$(use_enable debug) \
|
| 34 |
--disable-dependency-tracking \
|
| 35 |
--enable-fast-install \
|
| 36 |
--disable-static \
|
| 37 |
--disable-init-scripts \
|
| 38 |
--enable-logrotate-config \
|
| 39 |
--localstatedir=/var
|
| 40 |
}
|
| 41 |
|
| 42 |
# There are no tests
|
| 43 |
src_test() { :; }
|
| 44 |
|
| 45 |
src_install() {
|
| 46 |
emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" install
|
| 47 |
find "${D}" -name '*.la' -delete
|
| 48 |
|
| 49 |
# freeipmi by defaults install _all_ commands to /usr/sbin, but
|
| 50 |
# quite a few can be run remotely as standard user, so move them
|
| 51 |
# in /usr/bin afterwards.
|
| 52 |
dodir /usr/bin
|
| 53 |
for file in ipmi{detect,ping,power,console}; do
|
| 54 |
mv "${D}"/usr/{s,}bin/${file} || die
|
| 55 |
|
| 56 |
# The default install symlinks these commands to add a dash
|
| 57 |
# after the ipmi prefix; we repeat those after move for
|
| 58 |
# consistency.
|
| 59 |
rm "${D}"/usr/sbin/${file/ipmi/ipmi-}
|
| 60 |
dosym ${file} /usr/bin/${file/ipmi/ipmi-}
|
| 61 |
done
|
| 62 |
|
| 63 |
dodoc AUTHORS ChangeLog* DISCLAIMER* NEWS README* TODO doc/*.txt
|
| 64 |
|
| 65 |
keepdir \
|
| 66 |
/var/cache/ipmimonitoringsdrcache \
|
| 67 |
/var/lib/freeipmi \
|
| 68 |
/var/log/{freeipmi,ipmiconsole}
|
| 69 |
|
| 70 |
newinitd "${FILESDIR}"/ipmidetectd.initd.3 ipmidetectd
|
| 71 |
|
| 72 |
newinitd "${FILESDIR}"/bmc-watchdog.initd.3 bmc-watchdog
|
| 73 |
newconfd "${FILESDIR}"/bmc-watchdog.confd bmc-watchdog
|
| 74 |
}
|