1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools systemd
7 DESCRIPTION="IPMI Management Utilities"
8 HOMEPAGE="http://ipmiutil.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13 KEYWORDS="~amd64 ~hppa ~x86"
16 RDEPEND=">=dev-libs/openssl-1:0="
21 "${FILESDIR}"/${PN}-2.9.8-flags.patch
22 "${FILESDIR}"/${PN}-2.9.9-lib_symlink.patch
28 sed -i -e 's|-O2 -g|$(CFLAGS)|g;s|-g -O2|$(CFLAGS)|g' util/Makefile.am* || die
29 sed -i -e 's|which rpm |which we_are_gentoo_rpm_is_a_guest |' configure.ac || die
35 econf --disable-systemd --enable-sha256
39 # Ulgy workaround. Upstream is misusing the make system here
40 # and it doesn't even work.
41 # Please check on each bump if this workaround is still required.
42 pushd lib/lanplus &>/dev/null || die
43 emake || die "emake lanplus failed"
44 cp libipmi_lanplus.a .. || die
45 popd &>/dev/null || die
51 emake DESTDIR="${D}" sysdto="${D}/$(systemd_get_systemunitdir)" install
52 dodoc -r AUTHORS ChangeLog NEWS README TODO doc/UserGuide
54 # Init scripts are only for Fedora
55 rm -r "${ED%/}"/etc/init.d || die 'remove initscripts failed'
57 if ! use static-libs ; then
58 find "${ED}" -name '*.a' -delete || die
61 keepdir /var/lib/ipmiutil