blob: 6ff0038441f7122cfff29304c9cbb460ad158e6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit autotools eutils systemd
DESCRIPTION="IPMI Management Utilities"
HOMEPAGE="http://ipmiutil.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~x86"
RDEPEND=">=dev-libs/openssl-1:0"
DEPEND="${RDEPEND}
virtual/os-headers"
src_prepare() {
epatch "${FILESDIR}"/${P}-flags.patch
epatch "${FILESDIR}"/${P}-tmpdir.patch
sed -i -e 's|-O2 -g|$(CFLAGS)|g;s|-g -O2|$(CFLAGS)|g' util/Makefile.am* || die
eautoreconf
}
src_configure() {
econf --disable-systemd --enable-sha256
}
src_install() {
emake DESTDIR="${D}" sysdto="${D}/$(systemd_get_unitdir)" install
dodoc -r AUTHORS ChangeLog NEWS README TODO doc/UserGuide
rm -r "${ED}"/etc/init.d || die 'remove initscripts failed' # These are only for Fedora
}
|